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
Sets the amount of additional speed the entity can provide to an active entity.
public void setAddSpeed(float addSpeed) { this.addSpeed = addSpeed; setChanged(); notifyObservers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "public void setSpeed(float val) {speed = val;}", "public void setSpeed(double multiplier);", "public void setCurrentSpeed (double speed);", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}", "public abstract void setSpeed(int sp);", "void setSpeed(RobotSpeedValue newSpeed);", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public void setSpeed( Vector2 sp ) { speed = sp; }", "private void incrementSpeed(double amount){\n currentSpeed = Math.min(getCurrentSpeed() + speedFactor() * amount, enginePower);\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}", "public void setSpeed(int value) {\n this.speed = value;\n }", "public void accelerationSet(double speed){\n\t\tdouble currentDelta = Math.abs(currentSpeed - speed);\r\n\t\tif(currentDelta > maxDelta){\r\n\t\t\tif(speed > currentSpeed){\r\n\t\t\t\tspeed = currentSpeed + maxDelta;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tspeed = currentSpeed - maxDelta;\r\n\t\t\t}\r\n\t\t}\r\n\t//\tSystem.out.println(\"Speed:\" + speed);\r\n\t\tcurrentSpeed = speed;\r\n\t\tsuper.set(speed * motorDirection);\r\n\t}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public void accelerate() {\n\t\tif (this.hasOnlyOneCar())\n\t\t{\n\t\t\tif (this.getHead().getSpeed()==Speed.SLOW)\n\t\t\t\tthis.getHead().setSpeed(Speed.NORMAL);\n\t\t\telse\n\t\t\t\tthis.getHead().setSpeed(Speed.FAST);\n\t\t}\n\t}", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public void setMaxSpeed(double value) {\n super.setMaxSpeed(value);\n }", "void changeSpeed(int speed) {\n\n this.speed = speed;\n }", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "private void incrementSpeed(double amount) {\n currentSpeed = Math.min(getCurrentSpeed() + speedFactor() * amount,enginePower);\n }", "public void increaseSpeed() {\n\t\t\n\t\tif(this.getSpeed() < this.getMaximumSpeed()) {\n\t\t\tthis.setSpeed(this.getSpeed() + 5);\n\t\t\tSystem.out.println(\"increase speed by 5 \\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the max speed \" + this.getMaximumSpeed() +\"\\n\");\n\t\t}\n\n\t}", "public static void setSpeed(LivingEntity entity, double speed) {\n\t\tEntityLiving nmsEntity = CommonNMS.getNative(entity);\n\t\tnmsEntity.getAttributeInstance(GenericAttributes.d).setValue(speed);\n\t}", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }", "public void setSpeed(float speed) {\n this.speed = (int) speed * 13;\n }", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "public void addSpeed(int speed) {\n this.speed += speed;\n }", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "public void accelerate(){\n speed += 5;\n }", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "void changeUpdateSpeed();", "public void setElevatorSpeed(double spd)\n {\n mSpeed = spd;\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public void setMaxSpeed() {\n\t\tspeed = MAX_SPEED;\n\t}", "public void setMaxSpeed(double speed){\n\t\tthis.speed = speed;\n\t}", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }", "public void increaseSpeed()\r\n\t{\r\n\t\t//Do nothing if maximum speed is achieved\r\n\t\tif(currentSpeed == SnakeSpeed.MAX)\r\n\t\t\treturn;\r\n\t\t//Else, increase the speed to next level\r\n\t\telse if(currentSpeed == SnakeSpeed.DEFAULT)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MEDIUM;\r\n\t\t}\r\n\t\telse if(currentSpeed == SnakeSpeed.MEDIUM)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MAX;\r\n\t\t}\r\n\r\n\t\t//Set the updated speed for the snake of the current player \r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "public void currentSpeed(double currentSpeed)\n\t{\n\t\tspeed = currentSpeed;\n\t\t\n\t}", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "public void setSpeed(int wpm);", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public void setSpeedLimit(int speedLim) {\n \tthis.currentSpeedLimit = trkMdl.getBlock(this.lineColor,this.currentBlock).getSpeedLimit();\n }", "public void setSpeed(int speed) {\n this.movementSpeed = speed;\n }", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "public void changeSpeed(int speed);", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "public void setSpeed(final int speed) {\n mSpeed = speed;\n }", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000800;\n speed_ = value;\n onChanged();\n return this;\n }", "public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }", "void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }", "public void setSpeed(long speed) {\n\t\tmSpeed = speed;\n\t}", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000080;\n speed_ = value;\n onChanged();\n return this;\n }", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void setSpeed(double left, double right){\n leftMasterVictor.setSpeed(left);\n rightMasterVictor.setSpeed(-right);\n }", "public void set(double speed) {\n climb_spark_max.set(speed);\n }", "public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }", "public void setNewSpeed(float simSpeed) {\n synchronized (settings){\n settings.setSimSpeed(simSpeed);\n\n if(settings.getSimSpeed() > 1000){\n settings.setSimSpeed(1000f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 1000\");\n }\n if(settings.getSimSpeed() < 0){\n settings.setSimSpeed(0.001f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 0.001\");\n }\n }\n }", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void changeSpeed() {\n Random gen = new Random();\n speedX += gen.nextInt(3);\n speedY += gen.nextInt(3);\n }", "public void setFlySpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setFlySpeed ( value ) );\n\t}", "public void increaseSpeed(int time) {\n\t\tvelocity += acceleration;\r\n\t}", "public Builder setSpeed(int value) {\n \n speed_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "public void set(double speed) {\n\t\tleftIntake.set(speed);\n\t\trightIntake.set(-speed);\n\t}", "NetTankSpeed(float speed)\n\t{\n\t\tthis.speed = speed;\n\t}", "public void incSpeed()\n\t{\n\t\t//only increase if a PlayerShip is currently spawned\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\t((PlayerShip)gameObj[1].get(0)).incSpeed();\n\t\t\tSystem.out.println(\"Speed +10\");\n\t\t}else\n\t\t\tSystem.out.println(\"A player ship is not currently spawned\");\n\t}", "public void setSpeed(float n)\n\t{\n\t\tthis.speed = n;\n\t}", "public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }", "public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}", "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "private void setBallSpeed() {\n RandomGenerator rgen = RandomGenerator.getInstance();\n vx = rgen.nextDouble(1.0, 3.0);\n if (rgen.nextBoolean(0.5)) {\n vx = - vx;\n }\n vy = BALL_SPEED;\n }", "public void setWalkSpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setWalkSpeed ( value ) );\n\t}", "public void setFrontSpeed(double speed) { \r\n fmMotor.set(speed);\r\n }", "public void setXSpeed(int speed){\n xSpeed = speed;\n }", "public static void setSpeed(int speed) {\n leftMotor.setSpeed(speed);\n rightMotor.setSpeed(speed);\n }", "public void decelerate() {\n\t\tif (this.hasOnlyOneCar())\n\t\t{\n\t\t\tif (this.getHead().getSpeed()==Speed.FAST)\n\t\t\t\tthis.getHead().setSpeed(Speed.NORMAL);\n\t\t\telse\n\t\t\t\tthis.getHead().setSpeed(Speed.SLOW);\n\t\t}\n\t}", "public void set(double speed) {\n\t\tcurrentSpeed = speed;\n\t\tmotor.set(speed);\n\t}", "public void setEditSpeedPressed() {\n String value = JOptionPane.showInputDialog(this, this.applicationDelayText, this.setApplicationDelayText, 3);\n if (value != null) {\n int newSpeed = Integer.parseInt(value.toString());\n this.setSpeed(newSpeed);\n }\n }", "public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }", "public void setSpeed(float speed) {\n this.movementComposer.setSpeed(speed);\n }", "@Override\r\n protected void execute() {\n driveSubsystem.setSpeed(speed, speed);\r\n }" ]
[ "0.72779506", "0.72254235", "0.72046995", "0.7125296", "0.7030824", "0.6999638", "0.6970489", "0.6888321", "0.6868627", "0.686541", "0.6862797", "0.685699", "0.68305665", "0.68282455", "0.6826489", "0.6823394", "0.68180346", "0.67979306", "0.6790411", "0.67573816", "0.6741199", "0.6740662", "0.67296034", "0.6717668", "0.671203", "0.6675558", "0.6675558", "0.66717625", "0.6671356", "0.6670412", "0.6667821", "0.6667821", "0.6665755", "0.66454756", "0.66381556", "0.66318995", "0.6613072", "0.66011864", "0.65605146", "0.655074", "0.65440917", "0.6541495", "0.6537747", "0.65090793", "0.6496702", "0.6485575", "0.64822114", "0.64707494", "0.6456725", "0.64514947", "0.64426506", "0.6413687", "0.64043397", "0.6402623", "0.6394716", "0.6388015", "0.6383534", "0.6366365", "0.6357624", "0.6339031", "0.6332691", "0.6327461", "0.6327194", "0.6326374", "0.63254315", "0.63254315", "0.6323902", "0.63111585", "0.6302682", "0.6286745", "0.6283166", "0.6272625", "0.6268089", "0.62636226", "0.6253485", "0.6253485", "0.6253485", "0.6252459", "0.62296796", "0.62255657", "0.6223811", "0.6221471", "0.61819917", "0.6180326", "0.61721915", "0.61698884", "0.61394763", "0.61377895", "0.61322033", "0.6123949", "0.6117688", "0.6114477", "0.6113803", "0.6112359", "0.61089", "0.6071174", "0.60663533", "0.60649544", "0.6053838", "0.60465664" ]
0.7069649
4
Gets the amount of additional health the entity can provide to an active entity.
public float getAddHealth() { return addHealth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHealth() {\n return getStat(health);\n }", "public int getHealth() {\n return this.health;\n }", "public Integer getHealth();", "public int getHealthCost();", "public static int getHealth()\r\n\t{\r\n\t\treturn health;\r\n\t}", "public double getHealth() {\n return classData.getHealth(level);\n }", "public int getHealth();", "public int getHealthCount() {\n return healthCount;\n }", "public int getHealth() {\n\t\treturn this.Health;\n\t}", "public int getHealth()\r\n {\r\n return this.health;\r\n }", "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "@Override\r\n\tpublic int getHealth() {\n\t\treturn health;\r\n\t}", "public double getHealth() {\r\n\t\treturn health;\r\n\t}", "public int getHealth() {\n \t\treturn health;\n \t}", "public float getHealth(){\n return health.getHealth();\n }", "public int getHealthGain();", "int getHealth();", "public int getCurrentHealth() {\n return currentHealth;\n }", "public int getCurrentHealth() {\r\n return currentHealth;\r\n }", "public int getHealth()\r\n {\r\n return health;\r\n }", "public int getBaseHealth()\r\n {\r\n return mBaseHealth;\r\n }", "public int getHealth() {\n\t\treturn health;\n\t}", "public int getHealth() {\n\t\treturn health;\n\t}", "public int getHealth() {\n\t\treturn currentHealth;\n\t}", "@Override\r\n\tprotected double getHealth() \r\n\t{\r\n\t\treturn this._health;\r\n\t}", "int getHealth() {\n return health;\n }", "public int getHealth() { return this.health; }", "public float getHealth() {\n\t\treturn _health;\n\t}", "public int getHealthCredits() {\r\n\t\treturn super.getHealthCredits();\r\n\t}", "Float getHealth();", "public double getHealthRelative() {\n\t\treturn getHealth() / (double) getMaxHealth();\n\t}", "public float getHealth()\n {\n return health;\n }", "public int getHealth(){\n return health;\n }", "public double getHealth(){\r\n return health;\r\n }", "public int getMaxHealth();", "public double getCurrentHealth() {\n return ((Growable)delegate).currentHealth;\n }", "float getPercentHealth();", "public int getCurHealth() {\n return this.curHealth;\n }", "public double getHealth() { return health; }", "public int getCurHealth() {\n\t\treturn curHealth;\n\t}", "@Override\n\tpublic double getHealth() {\n\t\treturn 0;\n\t}", "public int getCurHealth()\n\t{\n\t\treturn this.curHealth;\n\t}", "public int getMaxHealth() {\n return maxHealth;\n }", "public int getBaseMaxHealth()\r\n\t{\treturn this.baseMaxHealth;\t}", "public int getMaxHealth()\r\n\t{\r\n\t\treturn MaxHealth;\r\n\t}", "@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }", "public int getMaxHealth() {\r\n return maxHealth;\r\n }", "public double getMaxHealth() {\n return maxHealth;\n }", "public int getMaxHealth() {\n return this.maxHealth;\n }", "public float getInitialHealth() {\n\t\treturn _initialHealth;\n\t}", "public double bossHealth(ArrayList<Enemy> currentEnemies) {\n return -1;\n }", "@Override\n public int maxHealth() {\n return 25;\n }", "public static int getPreviousHealth(EntityLiving entity) {\n return entity.getEntityData().getInteger(\"phb\");\n }", "int getSuperEffectiveChargeAttacksUsed();", "public Integer getHealthPoints() {\n return healthPoints;\n }", "public float getMaxHealth()\n {\n return maxHealth;\n }", "public int getInitHealth() {\n \t\treturn 3;\n \t}", "public double getPlayerFullHP();", "public int getMaxHealth() {\n\t\treturn maxHealth;\n\t}", "public int getMaxHealth() {\n\t\treturn maxHealth;\n\t}", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "public int getAttackStrength(Entity par1Entity)\n {\n ItemStack var2 = this.getHeldItem();\n int var3 = 5;\n\n\n return var3;\n }", "public int getShipHealth()\r\n\t{\r\n\t\treturn ShipHealth;\r\n\t}", "int getBonusHP();", "@Override\r\n\tpublic void getHealth() {\n\t\t\r\n\t}", "float getBonusPercentHP();", "public int getMaxHealth() {\n \t\treturn (int)(maxHealthModifier + (stamina/2 + strength/4)*Math.PI);\n \t}", "public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }", "@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }", "@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }", "public boolean getHasCustomHealth() {\n return this.hasCustomHealth;\n }", "public String getDentalhealth() {\n\t\treturn dentalhealth;\n\t}", "public int getBonusHP() {\n return bonusHP_;\n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "public int getDamage() {\n //TODO\n return 1;\n }", "protected float getHealthPoint() {\n\t\treturn healthPoint;\n\t}", "public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}", "public int getHP()\n\t{\n\t\tUnit u = this;\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}", "public int getBonusHP() {\n return bonusHP_;\n }", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "public int getDamageTaken() {\n return this.damageTaken;\n }", "public int getPointsHealthy()\n {\n return pointsHealthy;\n }", "public Integer getMinHealthyPercentage() {\n return this.minHealthyPercentage;\n }", "public Health getHealthObj() {\n return health;\n }", "public boolean health(){\n return health;\n }", "public int getHp() {\n return hp;\n }", "@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\n }", "public double getOccupiedHdGB () { return getHdBaseResource().getOccupiedCapacity(); }", "public int getHp() {\r\n return hp;\r\n }", "public int getAdditionalImpactCount() {\n if (additionalImpactBuilder_ == null) {\n return additionalImpact_.size();\n } else {\n return additionalImpactBuilder_.getCount();\n }\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "public int getHp() {\n return hp;\n }", "public Double getTotalAvailable(){\n return totalAvailable;\n }", "public short getSiegeWeaponDamage();" ]
[ "0.7387676", "0.71840936", "0.71610475", "0.71377295", "0.71321845", "0.71128094", "0.7096076", "0.70932746", "0.7091051", "0.70869625", "0.70676345", "0.70641255", "0.7059071", "0.7050726", "0.7038428", "0.7033856", "0.70244443", "0.7024078", "0.70208454", "0.7001657", "0.69977766", "0.6964013", "0.6964013", "0.69617176", "0.6950633", "0.6940968", "0.69191927", "0.68391997", "0.679326", "0.6774402", "0.6729297", "0.6719435", "0.67012924", "0.6695365", "0.66946864", "0.6681231", "0.6643113", "0.65895605", "0.6582132", "0.6518144", "0.65017325", "0.64358044", "0.6401124", "0.6397224", "0.6381578", "0.6377209", "0.6372487", "0.6368142", "0.6352717", "0.63441366", "0.6302017", "0.62938994", "0.62724745", "0.62434435", "0.62326187", "0.6221954", "0.62112874", "0.61589897", "0.61345315", "0.61345315", "0.6121995", "0.610701", "0.61036706", "0.6101472", "0.6094774", "0.60927457", "0.6080918", "0.6062011", "0.6052624", "0.6045278", "0.60252565", "0.6017254", "0.6014038", "0.60030556", "0.60007185", "0.598644", "0.5983346", "0.59825796", "0.5981238", "0.597977", "0.5963673", "0.59370327", "0.5933809", "0.59311193", "0.59167", "0.5912388", "0.590199", "0.5895164", "0.58950144", "0.5893434", "0.58814484", "0.58761066", "0.5872741", "0.5872741", "0.5872741", "0.5872741", "0.5872741", "0.5872357", "0.5870036", "0.58675754" ]
0.7313078
1
Gets the amount of additional speed the entity can provide to an active entity.
public float getAddSpeed() { return addSpeed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSpeed() {\n if (getDamaged() > 2) {\n return super.getSpeed() - 50;\n }\n else if (getDamaged() > 4) {\n return super.getSpeed() - 80;\n }\n \n else {\n return super.getSpeed();\n }\n }", "public double getSpeed();", "public double getCurrentSpeed(){\r\n return speed;\r\n }", "public int getSpeed() {\n return mSpeed;\n }", "public int getSpeed() {\r\n return speed;\r\n }", "public static double getSpeed(LivingEntity entity) {\n\t\tEntityLiving nmsEntity = CommonNMS.getNative(entity);\n\t\treturn nmsEntity.getAttributeInstance(GenericAttributes.d).getValue();\n\t}", "public abstract double getSpeed();", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed()\n {\n return (int) (getMovement().getLength() * 10);\n }", "double getSpeed();", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "@Override\r\n\tpublic double getSpeed() {\n\t\treturn this.speed;\r\n\t}", "public double getCurrentSpeed();", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "public double getSpeed() {\n return speed;\n }", "public float getSpeed() {\n return this.speedValue;\n }", "public int getBaseMovementSpeed()\r\n {\r\n return mBaseMovementSpeed;\r\n }", "public abstract int getSpeed();", "public abstract int getSpeed();", "public double getSpeed() {\r\n\t\treturn speed;\r\n\t}", "public double getBaseAttackSpeed()\r\n {\r\n return mBaseAttackSpeed;\r\n }", "public int getSpeed(){\r\n\t\treturn speed;\r\n\t}", "public double speed()\r\n {\r\n return speed;\r\n }", "public synchronized double get() {\n return m_liftSpeed;\n }", "public int getSpeed()\n\t{\n\t\treturn speed;\n\t}", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public float getSpeed() {\n return speed;\n }", "public float getSpeed() {\n return speed;\n }", "public float getSpeed()\n\t{\n\t\treturn this.speed;\n\t}", "public float getSpeed()\n\t{\n\t\treturn this.speed;\n\t}", "protected float getMovementSpeed() {\r\n\t\tfloat speed = getSpeed();\r\n\t\treturn speed / 17f + (float) Math.pow(Math.sqrt(speed), 1.225f) * 0.985f;\r\n\t}", "public double getHitSpeed() {\n return hitSpeed;\n }", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public TransmissionAndSpeed getSpeed()\n {\n\treturn this.speed;\n }", "public int getAttackspeed(){\n\t\treturn attackspeed;\n\t}", "public static double getSpeed(Entity entity) {\r\n\t\treturn new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ).distanceTo(new Vec3d(mc.player.lastTickPosX, mc.player.lastTickPosY, mc.player.lastTickPosZ));\r\n\t}", "public float getSpeed() {\n return this.movementComposer.getSpeed();\n }", "public int getAdditionalDistance() {\n return additionalDistance;\n }", "public double getSpeed() {\n return m_master.getEncoder().getVelocity() / MotorConstants.kNeoRPM;\n }", "private int speed() {\n final int slowfactor = 3;\n return speed * (cd.isSlow(curpos) ? slowfactor : 1);\n }", "public double getSpeed() {\r\n\t\tif (this.base.equals(\"zombie\")) {\r\n\t\t\treturn speed;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public int getWeaponSpeed() {\n\n\t\treturn Math.round(type.getWeaponSpeed()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public float getSpeed (){\n return speed;\n }", "public Vector2 getSpeed() { return speed; }", "@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }", "public int getSpeed() {\r\n\t\t\tlong elapsedTime = System.currentTimeMillis() - tStartTime;\r\n\t\t\t\r\n\t\t\t// Refresh cache every 5 secs & prevent fake speed when resume\r\n\t\t\tif (elapsedTime > 5000) {\r\n\t\t\t\tspeedRefresh();\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Math.round(1000f * tDownloaded / elapsedTime);\r\n\t\t}", "public int getSpeed() {\r\n\t\tint currentSpeed = 0;\r\n\t\tfor (DownloadThread thread : dDownloadThreadList) {\r\n\t\t\tcurrentSpeed += thread.getSpeed();\r\n\t\t}\r\n\t\treturn currentSpeed;\r\n\t}", "public int getSpeed() {\n\t\tint speed = (this.speed < 4) ? 4 : this.speed;\n\t\treturn speed;\n\t}", "public int getSpeed() {\n\t\t\treturn 0;\n\t\t}", "public float getSpeed()\n\t{\n\t\treturn speed;\n\t}", "public double getSpeed() {\n\t\tdouble speed = 0;\n\t\tfor (Motor motor : this) {\n\t\t\tspeed += motor.get();\n\t\t}\n\t\treturn speed / this.size();\n\t}", "public float getSpeed() {\n\t\treturn speed;\n\t}", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+20;\n\t\t}", "@Override\n\tpublic int getMaxSpeed() {\n\t\treturn super.getMaxSpeed();\n\t}", "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public Integer getEffectSpeed() {\r\n return effectSpeed;\r\n }", "public int getLowSpeed() {\r\n return this.lowSpeed;\r\n }", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "public int getSpeed()\r\n\t{\n\t\treturn 90;\r\n\t}", "public int getSpeed(){return this.speed;}", "public int getInitialSpeed() {\n return initialSpeed;\n }", "private double getElevatorSpeed()\n {\n // if second speed is toggled use second instead of main speed\n if (useSecondSpeed)\n {\n return mSecondSpeed * mDirection * -1;\n }\n else\n { // else just use main speed\n return mSpeed * mDirection * -1;\n }\n }", "public int getSpeedRating(){\n\t\treturn speedRating;\n\t}", "public Speed getSpeed() {\n\t\treturn Speed.FAST;\n\t}", "public int getTopSpeed() {\n return topSpeed;\n }", "public double getAvgSpeedValue() {\n return avgSpeedValue;\n }", "public double getMovementSpeed() {\n return movementSpeed;\n }", "public int speed()\n \n {\n \t\n\t\treturn (((7 - speedClass) * 5 ) + 7);\n }", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}", "public Speed getSpeed() {\n\t\treturn speed;\n\t}", "public Float getAdditionalCost() {\r\n\t\treturn additionalCost;\r\n\t}", "public int getHighSpeed() {\r\n return this.highSpeed;\r\n }", "public float getFlySpeed ( ) {\n\t\treturn extract ( handle -> handle.getFlySpeed ( ) );\n\t}" ]
[ "0.6848111", "0.68177986", "0.67772347", "0.676953", "0.6769222", "0.67662066", "0.6740544", "0.67305064", "0.67305064", "0.67305064", "0.67305064", "0.67305064", "0.6728188", "0.67251796", "0.6710267", "0.6710267", "0.6710267", "0.6710267", "0.669727", "0.66809416", "0.6680611", "0.6680611", "0.66761595", "0.66533875", "0.66487443", "0.6629621", "0.6629621", "0.66257566", "0.6616811", "0.66058445", "0.6583146", "0.6582949", "0.6573342", "0.65645695", "0.65645695", "0.65645695", "0.65645695", "0.65645695", "0.65645695", "0.65562797", "0.65562797", "0.65562797", "0.65562797", "0.65562797", "0.65562797", "0.65489846", "0.65489846", "0.6543665", "0.6543665", "0.6543453", "0.65366364", "0.65295076", "0.65295076", "0.65295076", "0.65217966", "0.6518427", "0.6514904", "0.6511989", "0.6511695", "0.650452", "0.6497877", "0.6490416", "0.64883405", "0.6475185", "0.6475185", "0.6475185", "0.6475185", "0.6475185", "0.6475185", "0.6435786", "0.6427586", "0.6423635", "0.64163464", "0.64127386", "0.6411643", "0.6402234", "0.63909674", "0.6388985", "0.6377824", "0.6374617", "0.6365941", "0.6365216", "0.63578844", "0.63416255", "0.63384783", "0.63262683", "0.6311968", "0.6299774", "0.6285965", "0.6275959", "0.62725407", "0.62717617", "0.62714285", "0.6267608", "0.62657714", "0.6263997", "0.62613714", "0.6246536", "0.6225934", "0.62239754" ]
0.71368927
0
the word to be evaluated
public static void main(String[] args) { String word = "whiteleaf"; //initialize the task and pool elfish task = new elfish(word.toCharArray(), 0, word.length() - 1); ForkJoinPool pool = new ForkJoinPool(); //invoke the task pool.invoke(task); //check to see if all checks were passed if(elfish.checkE && elfish.checkL && elfish.checkF) { System.out.println("The word " + word + " is elfish."); } else { System.out.println("The word " + word + " is not elfish."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getWord();", "String evaluate();", "public String getWord()\n\t{\n\t\treturn word.get(matcher());\n\t}", "public void getWord() {\n\t\t\n\t}", "public String getWord(){\r\n\t\t return word;\r\n\t }", "public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}", "public String getWord(){\r\n\t\treturn word;\r\n\t}", "public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}", "public String getWord(){\n\t\treturn word;\n\t}", "public String getWord(){\n return this.word;\n }", "public String getWord() {\n return this.word;\n }", "public String getWord() {\n\t\treturn word;\r\n\t}", "public String getWord()\n\t{\n\t\treturn word;\n\t}", "public String getWord() {\n return word;\n }", "@Override\n public String getWord(){\n return word;\n }", "public String evaluate(String expression);", "Hojas eval();", "public String wordAdmitted(String word) {\n if(!this._keyWords.contains(word)) {\n Etat currentState = this._start;\n String[] characters = word.split(\"\");\n\n for(String s : characters) {\n Etat next = currentState.isAdmitted(s);\n //If no transition exist with this character\n if(Objects.isNull(next)) return \"missingTransition\";\n else {\n currentState = next;\n }\n }\n //If last state is final\n if(currentState.isFinal()) return \"final\";\n //If last state isn't final\n else return \"notFinal\";\n } else {\n //Word is in keyWords\n return \"keyWord\";\n }\n }", "public String eval(String p1 ) {\n\t}", "public static CommandType getWord(String word){\r\n\t\treturn dictionary.get(word);\r\n\t}", "private String containingWord(String attribute, String word) {\r\n return \"contains(concat(' ',normalize-space(@\" + attribute + \"),' '),' \"\r\n + word + \" ')\";\r\n }", "public boolean pass(String word);", "String getExpression();", "String getExpression();", "private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public Expression determine(String s);", "public String process(Item word) throws ProcessException {\n\t\t\treturn wordPunc(word);\n\t\t}", "@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}", "private String buildWordMatch(Matcher matcher, String word){\n return \"(\" + matcher.replaceAll(\"% \"+word+\" %\")\n + \" or \" + matcher.replaceAll(word+\" %\")\n + \" or \" + matcher.replaceAll(word)\n + \" or \" + matcher.replaceAll(\"% \"+word) + \")\" ;\n }", "public static String getWord() {\r\n\t\treturn Text;\r\n\t}", "public String getMyword() {\n return myword;\n }", "public void printWord(String generatedWord) {\n System.out.printf(COMPARATOR_PRINT, generatedWord);\n System.out.println();\n }", "public Word getWord() {\n return word;\n }", "String getLiteral();", "String getLiteral();", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "public abstract String guessedWord();", "double eval();", "private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }", "public StringSolrWord(String word) {\n this.word = word;\n if (StringUtils.startsWith(word, \"\\\"\")) {\n startByQuote = true;\n }\n if (StringUtils.endsWith(word, \"\\\"\")) {\n endByQuote = true;\n }\n if (StringUtils.equalsIgnoreCase(word, \"and\")) {\n and = true;\n }\n if (StringUtils.equalsIgnoreCase(word, \"or\")) {\n or = true;\n }\n }", "private boolean isWord(String word) {\n\t\treturn dict.isWord(word);\n\t}", "String getKeyword();", "public void setWord(String word){\n this.word = word; //Only used in testing.\n }", "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "java.lang.String getKeyword();", "public int calWord() {\n for(int i = 0; i < newWord.length(); i++) {\n for (String c : keySetPoint) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n point += mapPoint.get(c);\n }\n }\n }\n\n return point;\n }", "public boolean find(T word);", "public String getCurrent_word(){\n\t\treturn current_word;\n\t}", "Expression getActionSentence();", "@Override\n public void execute(Tuple tuple) {\n String word = tuple.getFields().get(0);\n String line = null;\n if(word.equals(\"word1\")){\n line = (String) tuple.getValueByField(\"word1\");\n }else if(word.equals(\"word2\")){\n line = (String) tuple.getValueByField(\"word2\");\n }\n System.out.println(line);\n }", "public String dispaly(String result, String which) {\n String fword=\"\";\n String dump=result;\n Log.i(\"result \"+which,result);\n if(result!=null){\n result=result.replaceAll(\"lang=en\",\"\");\n String ts;\n if(result.contains(\"[[\")||result.contains(\"{{\"))\n {\tdump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n if(dump.startsWith(\"[[\"))\n {\n int i=result.indexOf(\"[[\");\n int j=result.indexOf(\"]]\");\n fword=result.substring(i,j);\n int k=fword.indexOf('|');\n fword=fword.substring(k+1);\n //System.out.println(\"First Word \"+fword);\n //System.out.println(\"FIND \"+result);\n result=result.substring(j+2);\n //\tSystem.out.println(\"FIND \"+result);\n result=fword.concat(result);\n result=result.replace('|',' ');\n\n }\n else\n {\n System.out.println(\"Esle called \"+result);\n dump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n String arr[]=dump.split(\" \");\n for(int aa=0;aa<arr.length;aa++)\n {\n\n if(arr[aa].contains(\"[[\")&&arr[aa].contains(\"|\"))\n {\n //System.out.println(arr[aa]);\n String min=arr[aa];\n //System.out.println(\"MINNN \"+min);\n int x=min.indexOf(\"[[\");\n int y=min.indexOf(\"|\");\n min=min.substring(y+1);\n //System.out.println(min);\n result=result.replace(arr[aa], min);\n }\n }\n result=result.replace('|',' ');\n }\n }\n //if(result.matches(\"[[[a-zA-Z|]\"))\n send+=\"<h3>\"+which+\"</h3>\"+\"\\n\";\n // System.out.println(\"Meaning for \"+which);\n if(result.contains(\"}}\"))\n {\n int resultindex=result.indexOf(\"}}\");\n //\t System.out.println(resultindex);\n result=result.substring(resultindex);\n }\n\n result = result.replaceAll(\"[^a-zA-Z0-9.,;\\\\s+]\", \"\");\n result=result.replaceAll(\";\",\".\\n\");\n\n // result.endsWith(\".\");\n // System.out.println(result);\n int newline=0;\n for(int i=0;i<result.length();i++)\n {\n if(result.charAt(i)=='\\n')\n {\n newline++;\n }\n }\n\n // System.out.println(\"New Line \"+newline);\n for(int i=0;i<newline;i++)\n {\n int nn=result.indexOf(\"\\n\");\n // System.out.println(\"First line \"+nn);\n String res=result.substring(0,nn);\n result=result.substring(nn+1);\n // System.out.println(res);\n send+=res+\"\\n\";\n }\n int nn=result.indexOf(\"\\n\");\n\n\n result=result.substring(nn+1);\n send+=result+\"\\n\";\n // System.out.println(result);\n /* fword=fword.trim();\n if(!fword.isEmpty())\n {\n\n fword=fword.concat(\" \");\n // send=fword+send;\n send=fword.concat(send);\n\n // System.out.println(\"Called\");\n return send;\n }*/\n\n\n\n }\n /*else {\n result1.setText(\"Wrorng\");\n send+=\"Enter Correct word\";\n // System.out.println(\"Enter correct word\");\n return \"Wrong\";\n }*/\n\n return send;\n }", "public String operator( String op);", "public void checkWord(String word, PlayerHandler playerHandler) {\n\n StringInputScanner ask = new StringInputScanner();\n ask.setMessage(GFXGenerator.drawRope(score, teams[0], teams[1]) + word + \" = ?? \\n\");\n\n if (playerHandler.getPrompt().getUserInput(ask).equals(word)) {\n updateScore(playerHandler);\n }\n }", "public boolean isActivationString(String word);", "public void displayWord() {\n System.out.println(String.valueOf(display));\n }", "public String getWord() {\n if(words[index] != null) {\n return words[index];\n } else {\n return \"\";\n }\n }", "String getWordIn(String schar, String echar);", "boolean hasWord();", "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "@Override\n public String getText() {\n return analyzedWord;\n }", "public int expressionEval(String expression){\n\n int result = 0;\n\n\n\n return result;\n }", "public void match( String word )\n { \n for( int i=0; i<numAssocs; i++ )\n if( word.equalsIgnoreCase( associations[i] ) )\n {\n incrActivation();\n// System.out.println( this.toString() + \" from processing \" + word );\n }\n }", "@NonNull\n @Override\n public String toString() {\n return word;\n }", "WordBean getWord(String word);", "@Override\n public void evaluate(Word word, ResultStore<WordWithKey> resultStore) {\n findAlphabeticalSequences(word, resultStore, FORWARDS);\n findAlphabeticalSequences(word, resultStore, BACKWARDS);\n }", "public String chooseWord(){\n\t\tRandom a = new Random();\t\t\r\n\t\t\r\n\t\tint randomNumber = a.nextInt(words.length);\r\n\t\t\r\n\t\tString gameWord = words[randomNumber];\r\n\t\t\r\n\t\treturn gameWord;\r\n\t\t\t\t\r\n\t}", "public String getEvaluate() {\r\n return evaluate;\r\n }", "String processing();", "public String getKeyword(String word) {\n\t\tboolean foundPunct = false;\n String returnStr = \"\";\n for(int inc = 0; inc < word.length(); inc++) {\n char testChar = word.charAt(inc);\n if(Character.isLetter(testChar) == true) {\n if(foundPunct == true) {return null;}\n else{returnStr = returnStr + Character.toString(testChar).toLowerCase();}}\n else {foundPunct = true;}}\n if(noiseWords.contains(returnStr) == true) {\n return null;}\n if(returnStr == \"\") {\n return null;}\n return returnStr;\n\t}", "public Const evaluate();", "public static void gotoFn(Map<Character, Num> value,Map<String, String> expression ,String word, String nextWord,String whereToGo,char var){\n\t\n\t\tNum val = value.get(var);\n\t\tNum numWhrTo = new Num (whereToGo);\n\t\tNum present = new Num (word);\n\t\tSet set = expression.entrySet();\n\t\t\n\t\tNum zero = new Num(\"0\");\n\t\t\n\t\tIterator it = set.iterator();\n\t\tMap.Entry me = (Map.Entry)it.next();\n\t\t\n\t\t\n\t\t\twhile(!me.getKey().equals(whereToGo))\n\t\t\t\tme = (Map.Entry)it.next();\n\t\t\t\n\t\n\t\t\tparse(it,value,expression,me);\n\t\t\treturn;\n\t\t\t\n\t\t\n\t}", "public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryLookup = rwDictionary.get(reducedWord);\n if(rwdictionaryLookup != null) {\n return rwdictionaryLookup;\n }\n return \"NO SUGGESTION\";\n }", "private String matchVariable(String key) {\n\t\treturn variables.get(key);\n\t}", "public Object eval(String expression) throws Exception;", "public String toString()\n\t{\n\t\treturn word;\n\t}", "public abstract Object eval();", "@Test\n\tpublic void keywordEvaluationOrder()\n\t{\n\t\tTemplate t1 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>\");\n\t\tString output1 = t1.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"1;3\", output1);\n\n\t\tTemplate t2 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(2), y=makevar(1))?>\");\n\t\tString output2 = t2.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"2;3\", output2);\n\t}", "public void eval (String command){\r\n if (matlabEng==null) return;\r\n matlabEng.engEvalString (id,command);\r\n }", "public void storeEval(final String expression, final String variableName);", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "String getVariable();", "String getRune_lit();", "private String pickWord() {\n \thangmanWords = new HangmanLexicon();\n \tint randomWord = rgen.nextInt(0, (hangmanWords.getWordCount() - 1)); \n \tString pickedWord = hangmanWords.getWord(randomWord);\n \treturn pickedWord;\n }", "public int scoreOf(String word) {\n // 1. check if the word is in dictionary. dict.contains(word) is true or not\n\n // 2. calculate the score of the word\n int score = calScore(word);\n return score;\n }", "@Override\n\tprotected int keywordWeighting(String word) {\n\t\tif (this.keywordWeight.containsKey(word)) {\n\t\t\treturn this.keywordWeight.get(word);\n\t\t}\n\t\treturn 1;\n\t}", "public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}", "public String getEvaluate() {\n return evaluate;\n }", "private String search_words(String word, int index){\n\t\tString found_words = \"\";\n\t\tint local_index = index +1;\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\tif(local_index > word.length()-1 || word.toLowerCase().charAt(local_index) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, local_index);\n\t\t}\n\t\tif(current_word != null && word.length() > current_word.length())\n\t\t\treturn found_words;\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\" + found_words +\"#\" : current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\": current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }", "public Word (String word){\n this.word = word;\n count = 0;\n }", "public Object eval (Object expression);", "private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }", "abstract String getOp();", "private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}", "private void createWord() {\n\t\tString value = \"\";\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t}\n\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\tvalue += data[currentIndex++];\n\t\t\tvalue += data[currentIndex++];\n\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\treturn;\n\t\t}\n\t\t// no escaping!\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& !Character.isWhitespace(data[currentIndex])) {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tthrow new LexerException(\"No exceping alowed.\");\n\t\t\t}\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.WORD, value);\n\n\t}", "@Test\r\n public void partialAndExactMatching() {\n\r\n eval( \"f <- function(fumble, fooey) { fumble ^ fooey } \");\r\n assertThat( eval( \"f(f = 3, fooey = 4)\"), equalTo( c(81) ) );\r\n }", "boolean isWord(String potentialWord);", "public String getVariable();", "@Override\n\tpublic String visitTerm(MicroParser.TermContext ctx) {\n\t\tString prefix = visit(ctx.factor_prefix());\n\t\tString termExpr = prefix + visit(ctx.factor());\n\t\t//System.out.println(\"in term :\"+termExpr);\n\t\t//System.out.println(\"in term, prefix is:\"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return termExpr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = termExpr.split(\"/|\\\\*\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> mulops = new ArrayList<Character>();\n\t \n\t //create a list of mulops\n\t for(int i=0;i<termExpr.length();i++) {\n\t \tif(termExpr.charAt(i)=='*' || termExpr.charAt(i)=='/')\n\t \t\tmulops.add(termExpr.charAt(i));\n\t }\n\t //create a list of operands \n\t for(String i:ids) \n\t \toperands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t //System.out.println(\"in term op1 op2: \"+op1 +\" \" + op2);\n\t temp = new Temporary(type);\n \tresult = temp.fullName;\n \ttempList.addT(temp);\n\t //System.out.println(\"in term result: \"+result);\n\t if(mulops.get(0)=='*') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t //System.out.println(\"AFTER IF\");\n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(mulops.get(0)=='*') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result;\n\t\t\n\t}", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "void setWord(Word word);" ]
[ "0.67172676", "0.64338803", "0.639868", "0.635524", "0.63263714", "0.6303391", "0.63001996", "0.6262806", "0.6203543", "0.61897236", "0.6189639", "0.6179731", "0.61756647", "0.61292833", "0.6126324", "0.6047424", "0.59951854", "0.5977227", "0.5949447", "0.5847203", "0.5831039", "0.5784902", "0.5777555", "0.5777555", "0.574527", "0.5729365", "0.57290584", "0.56973517", "0.5694916", "0.5692319", "0.56868887", "0.56763285", "0.56549186", "0.5642702", "0.5642702", "0.563015", "0.5623709", "0.5608668", "0.5596511", "0.559282", "0.55926526", "0.5584331", "0.5552761", "0.555076", "0.5550571", "0.5548041", "0.5538563", "0.5527784", "0.55260783", "0.55034375", "0.54953957", "0.5491169", "0.5459368", "0.545655", "0.54558396", "0.5449874", "0.5447628", "0.5444934", "0.54442996", "0.5439662", "0.54389226", "0.5404202", "0.53953046", "0.53900033", "0.53875464", "0.53782547", "0.53737164", "0.53698057", "0.53523844", "0.5352023", "0.5352005", "0.5347971", "0.53342384", "0.5330334", "0.5325418", "0.5325159", "0.53197646", "0.5319199", "0.53173643", "0.5316721", "0.5308065", "0.53049225", "0.53042597", "0.5301621", "0.52913743", "0.5288035", "0.5281746", "0.52812594", "0.5277092", "0.52741677", "0.5265274", "0.5258564", "0.52540463", "0.52499473", "0.52487594", "0.52454734", "0.5244681", "0.52384096", "0.52358115", "0.5230145", "0.5226189" ]
0.0
-1
elfish will initialize the charArray, startIndex, and endIndex, for the compute() method to evaluate whether the word has an 'e', 'l', and 'f'. If it contains all three, it is considered elfish, and will intitialize each static check to true.
public elfish(char[] srcArray, int startIndex, int endIndex) { charArray = srcArray; this.startIndex = startIndex; this.endIndex = endIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void elfish(String str,int countL,int countE,int countF) {\n if (str.length() == 0 ) {\n if((countE>0 &&countF>0 && countL>0)){\n System.out.println(\"This is an elfish word!\");\n }\n else{\n System.out.println(\"This is not an elfish word!\");\n }\n return;\n }\n if (str.substring(0, 1).equals(\"l\")) {\n countL ++;\n }\n else if(str.substring(0,1).equals(\"e\")){\n countE++;\n }\n else if(str.substring(0,1).equals(\"f\")){\n countF++;\n }\n\n elfish(str.substring(1),countL,countE,countF);\n }", "@Test\n public void testWordGuessArray() {\n\n // If I make a new word\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess the letter L (uppercase)\n // it should return true, because 'Llama' contains 2 Ls.\n Assert.assertTrue(word.guessLetter('L'));\n\n // It should update the 'guess' character array\n // to have all L's revealed regardless of casing\n // all other letters should stay hidden as '_'\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess an M, it should also be true\n Assert.assertTrue(word.guessLetter('M'));\n\n // and now the m should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // And finally an A\n Assert.assertTrue(word.guessLetter('A'));\n\n // The whole word should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n // If I guess a bunch of other letters, they should all return false\n // because the word has already been completed, and revealed\n Assert.assertFalse(word.guessLetter('l'));\n Assert.assertFalse(word.guessLetter('m'));\n Assert.assertFalse(word.guessLetter('a'));\n Assert.assertFalse(word.guessLetter('c'));\n Assert.assertFalse(word.guessLetter('v'));\n Assert.assertFalse(word.guessLetter('b'));\n\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n }", "public static void main(String[] args) throws Exception {\n java.io.File threeLetterFile = new java.io.File(\"three-letter-words.txt\");\n \n //create custom SearchArray object with my search Methods\n threeletterwords.SearchArray search = new SearchArray();\n \n //create Scanner objects\n Scanner loadList = new Scanner(threeLetterFile);\n Scanner input = new Scanner(System.in);\n \n //declare arrays\n String[] threeLetterList = new String[1012];\n char[] startWordArray = new char[3];\n char[] finalWordArray = new char[3];\n char[] wordHolderArray = new char[3];\n char[] partialMatchArray = new char[3];\n char[] firstTwoArray = new char[2];\n char[] lastTwoArray = new char[2];\n \n //declare String Variables\n String startWord;\n String finalWord;\n String wordHolder;\n String partialMatch;\n String firstTwoHolder;\n String lastTwoHolder;\n \n //initialize boolean variables\n boolean wordCheck = true;\n boolean partialCheck = false;\n boolean firstTwoCheck = true;\n \n //initialize integer variables\n \n int moves = 0;\n int index = 0;\n \n /*This while loop will transfer the three letter words to the array\n * threeLetterList\n */\n \n while(loadList.hasNextLine()){\n threeLetterList[index] = loadList.nextLine();\n threeLetterList[index] = threeLetterList[index].toLowerCase();\n index++;\n }\n loadList.close();\n \n \n \n /* These do ... while loops make sure user only inputs a valid 3 letter \n * word from the list. Will loop until user gets it right.\n */\n \n do{\n System.out.println(\"Type in a Three Letter word from the list\");\n startWord = input.next();\n if (startWord.length() != 3){\n System.out.println(\"Word must be three Letters!\");\n }\n if (search.searchList(threeLetterList, startWord) == false){\n System.out.println(\"Word must be in list!\");\n }\n }while(startWord.length() != 3 || search.searchList(threeLetterList, startWord) == false);\n \n do{\n System.out.println(\"Type in a Second Three Letter word from the list\");\n finalWord = input.next();\n if (finalWord.length() != 3){\n System.out.println(\"Word must be three Letters!\");\n }\n if (search.searchList(threeLetterList, finalWord) == false){\n System.out.println(\"Word must be in list!\");\n }\n }while(finalWord.length() != 3 || search.searchList(threeLetterList, finalWord) == false);\n \n //initialize strings and arrays\n System.arraycopy(startWord.toCharArray(), 0, startWordArray, 0, 3);\n System.arraycopy(startWord.toCharArray(), 0, wordHolderArray, 0, 3);\n System.arraycopy(finalWord.toCharArray(), 0, finalWordArray, 0, 3);\n System.arraycopy(startWord.toCharArray(), 0, firstTwoArray, 0, 2);\n System.arraycopy(startWord.toCharArray(), 1, lastTwoArray, 0, 2);\n wordHolder = String.copyValueOf(wordHolderArray);\n firstTwoHolder = String.copyValueOf(firstTwoArray);\n lastTwoHolder = String.copyValueOf(lastTwoArray);\n \n /*the following section of code is what makes the \"moves\"\n * \n */\n while(wordHolder.toLowerCase().contentEquals(finalWord.toLowerCase()) == false){ \n for(int k = 0; k < finalWordArray.length; k++){\n if(wordHolderArray[k] != finalWordArray[k]){\n wordHolderArray[k] = finalWordArray[k];\n wordHolder = String.copyValueOf(wordHolderArray);\n if (search.searchList(threeLetterList, wordHolder) == true){\n moves++;\n System.out.println(\"Move \" + moves + \":\\t\" + wordHolder);\n }\n else{\n wordHolderArray[k] = startWordArray[k];\n wordHolder = String.copyValueOf(wordHolderArray);\n }\n }\n }\n if(wordHolder.toLowerCase().contentEquals(startWord.toLowerCase())){\n \n }\n } \n }", "private int deshapeNormalize(char[] dest, int start, int length) {\n int lacount = 0;\n int yehHamzaComposeEnabled = 0;\n int seenComposeEnabled = 0;\n\n yehHamzaComposeEnabled = ((options&YEHHAMZA_MASK) == YEHHAMZA_TWOCELL_NEAR) ? 1 : 0;\n seenComposeEnabled = ((options&SEEN_MASK) == SEEN_TWOCELL_NEAR)? 1 : 0;\n\n for (int i = start, e = i + length; i < e; ++i) {\n char ch = dest[i];\n\n if( (yehHamzaComposeEnabled == 1) && ((ch == HAMZA06_CHAR) || (ch == HAMZAFE_CHAR))\n && (i < (length - 1)) && isAlefMaksouraChar(dest[i+1] )) {\n dest[i] = SPACE_CHAR;\n dest[i+1] = YEH_HAMZA_CHAR;\n } else if ( (seenComposeEnabled == 1) && (isTailChar(ch)) && (i< (length - 1))\n && (isSeenTailFamilyChar(dest[i+1])==1) ) {\n dest[i] = SPACE_CHAR;\n }\n else if (ch >= '\\uFE70' && ch <= '\\uFEFC') {\n if (isLamAlefChar(ch)) {\n ++lacount;\n }\n dest[i] = (char)convertFEto06[ch - '\\uFE70'];\n }\n }\n return lacount;\n }", "public static NormalizerBase.QuickCheckResult quickCheck(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, boolean paramBoolean, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 819 */ ComposePartArgs localComposePartArgs = new ComposePartArgs(null);\n/* */ \n/* 821 */ int m = paramInt1;\n/* */ \n/* 823 */ if (!isDataLoaded) {\n/* 824 */ return NormalizerBase.MAYBE;\n/* */ }\n/* */ \n/* 827 */ int i = 0xFF00 | paramInt4;\n/* 828 */ NormalizerBase.QuickCheckResult localQuickCheckResult = NormalizerBase.YES;\n/* 829 */ int k = 0;\n/* */ \n/* */ for (;;)\n/* */ {\n/* 833 */ if (paramInt1 == paramInt2)\n/* 834 */ return localQuickCheckResult;\n/* 835 */ char c1; long l1; if (((c1 = paramArrayOfChar[(paramInt1++)]) < paramInt3) || \n/* 836 */ (((l1 = getNorm32(c1)) & i) == 0L))\n/* */ {\n/* */ \n/* 839 */ k = 0;\n/* */ }\n/* */ else\n/* */ {\n/* */ char c2;\n/* 844 */ if (isNorm32LeadSurrogate(l1))\n/* */ {\n/* 846 */ if ((paramInt1 != paramInt2) && (UTF16.isTrailSurrogate(c2 = paramArrayOfChar[paramInt1]))) {\n/* 847 */ paramInt1++;\n/* 848 */ l1 = getNorm32FromSurrogatePair(l1, c2);\n/* */ } else {\n/* 850 */ l1 = 0L;\n/* 851 */ c2 = '\\000';\n/* */ }\n/* */ } else {\n/* 854 */ c2 = '\\000';\n/* */ }\n/* 856 */ if (nx_contains(paramUnicodeSet, c1, c2))\n/* */ {\n/* 858 */ l1 = 0L;\n/* */ }\n/* */ \n/* */ \n/* 862 */ int j = (char)(int)(l1 >> 8 & 0xFF);\n/* 863 */ if ((j != 0) && (j < k)) {\n/* 864 */ return NormalizerBase.NO;\n/* */ }\n/* 866 */ k = j;\n/* */ \n/* */ \n/* 869 */ long l2 = l1 & paramInt4;\n/* 870 */ if ((l2 & 0xF) >= 1L) {\n/* 871 */ localQuickCheckResult = NormalizerBase.NO;\n/* 872 */ break; }\n/* 873 */ if (l2 != 0L)\n/* */ {\n/* 875 */ if (paramBoolean) {\n/* 876 */ localQuickCheckResult = NormalizerBase.MAYBE;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 883 */ int i1 = paramInt4 << 2 & 0xF;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 888 */ int n = paramInt1 - 1;\n/* 889 */ if (UTF16.isTrailSurrogate(paramArrayOfChar[n]))\n/* */ {\n/* */ \n/* 892 */ n--;\n/* */ }\n/* 894 */ n = findPreviousStarter(paramArrayOfChar, m, n, i, i1, (char)paramInt3);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 900 */ paramInt1 = findNextStarter(paramArrayOfChar, paramInt1, paramInt2, paramInt4, i1, (char)paramInt3);\n/* */ \n/* */ \n/* */ \n/* 904 */ localComposePartArgs.prevCC = k;\n/* */ \n/* */ \n/* 907 */ char[] arrayOfChar = composePart(localComposePartArgs, n, paramArrayOfChar, paramInt1, paramInt2, paramInt5, paramUnicodeSet);\n/* */ \n/* */ \n/* 910 */ if (0 != strCompare(arrayOfChar, 0, localComposePartArgs.length, paramArrayOfChar, n, paramInt1, false)) {\n/* 911 */ localQuickCheckResult = NormalizerBase.NO;\n/* 912 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 919 */ return localQuickCheckResult;\n/* */ }", "private boolean expandCompositCharAtNear(char[] dest,int start, int length,\n int yehHamzaOption, int seenTailOption, int lamAlefOption){\n\n boolean spaceNotFound = false;\n\n\n\n if (isNormalizedLamAlefChar(dest[start])) {\n spaceNotFound = true;\n return spaceNotFound;\n }\n for (int i = start + length; --i >=start;) {\n char ch = dest[i];\n if (lamAlefOption == 1 && isNormalizedLamAlefChar(ch)) {\n if (i>start &&dest[i-1] == SPACE_CHAR) {\n dest[i] = LAM_CHAR;\n dest[--i] = convertNormalizedLamAlef[ch - '\\u065C'];\n } else {\n spaceNotFound = true;\n return spaceNotFound;\n }\n }else if(seenTailOption == 1 && isSeenTailFamilyChar(ch) == 1){\n if(i>start &&dest[i-1] == SPACE_CHAR){\n dest[i-1] = tailChar;\n } else{\n spaceNotFound = true;\n return spaceNotFound;\n }\n }else if(yehHamzaOption == 1 && isYehHamzaChar(ch)){\n\n if(i>start &&dest[i-1] == SPACE_CHAR){\n dest[i] = yehHamzaToYeh[ch - YEH_HAMZAFE_CHAR];\n dest[i-1] = HAMZAFE_CHAR;\n }else{\n spaceNotFound = true;\n return spaceNotFound;\n }\n\n\n }\n }\n return false;\n\n }", "public static void main(String[] args) throws FileNotFoundException {\n\n\n\n\n FileReader fileReader = null;\n try {\n // 파일 생성 부분 추가 필요 20151222\n // 파일 생성(R/W) 및 초기 데이터 추가한다.\n // 한글좀 그만 꺠져라..\n // 아좀..\n // 다시 테스트\n // 다시..\n fileReader = new FileReader(\"D:/wordList.txt\");\n } catch (FileNotFoundException e1) {\n // TODO Auto-generated catch block\n System.out.println(\"파일을 찾을 수 없습니다.\");\n System.exit(-1);\n }\n\n BufferedReader bufferedReader = null;\n bufferedReader = new BufferedReader(fileReader);\n\n StringBuffer stringBuffer = null;\n String line = null;\n\n ArrayList<String> wordList = new ArrayList<String>();\n\n try {\n while((line = bufferedReader.readLine()) != null) {\n stringBuffer = new StringBuffer();\n\n stringBuffer.append(line);\n\n wordList.add(stringBuffer.toString());\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n System.out.println(\"파일을 읽는 중 오류가 발생하였습니다.\");\n System.exit(-1);\n }\n\n\n Random random = new Random();\n int randomIndex = random.nextInt(wordList.size());\n String temp = wordList.get(randomIndex);\n\n\n char[] randomChar = temp.toCharArray();\n char[] encChar = new char[randomChar.length];\n\n\n System.out.println(String.valueOf(randomChar));\n\n for(int i = 0; i < randomChar.length; i++) {\n encChar[i] = '*';\n }\n\n System.out.println(String.valueOf(encChar));\n\n\n Career_2015 cc = new Career_2015();\n Scanner in = new Scanner(System.in);\n\n char inputChar = 0;\n boolean isContain = false;\n boolean isExists = false;\n int ascii = 0;\n int errorCount = 0;\n\n\n Map<Character, Boolean> inputCharMap = new HashMap<Character, Boolean>();\n Map<Character, ArrayList<Integer>> changeCharMap = new HashMap<Character, ArrayList<Integer>>();\n\n do {\n System.out.print(\"알파벳 소문자를 입력하세요. : \");\n\n try {\n inputChar = (char)cc.read();\n ascii = (int)inputChar;\n\n\n\n // 입력한 문자가 이미 입력한 문자인지 체크\n if(inputCharMap.containsKey(inputChar)) {\n System.out.println(\"입력했던 문자입니다. 다시 입력해주세요.\");\n isContain = true;\n } else inputCharMap.put(inputChar, true);\n\n // 입력한 글자가 선택한 단어에 포함되는지 체크\n changeCharMap = cc.isChangeChar(randomChar, inputChar);\n if(!changeCharMap.isEmpty()) {\n cc.changeChar(encChar, changeCharMap, inputChar);\n\n System.out.println(String.valueOf(encChar));\n\n if(String.valueOf(randomChar).equals(String.valueOf(encChar))) {\n System.out.println(\"모두 맞히셨습니다. 종료합니다.\");\n System.exit(-1);\n }\n } else {\n errorCount++;\n System.out.println(errorCount + \"번 틀리셨습니다.\");\n }\n\n\n\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } while((ascii < 97 || ascii > 122) || isContain || errorCount < 7);\n\n System.out.println(\"종료\");\n }", "@Test\n public void whenStartWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] pref = {'H', 'e'};\n boolean result = ArrayChar.startsWith(word, pref);\n assertThat(result, is(true));\n }", "public static String[] validateAllWords(char[][] boggleBoardChars, int lang) throws FileNotFoundException { \r\n\t\t// load dictionary\r\n\t\tFile wordList = null;\r\n\t\tif(lang == 0) {\r\n\t\t\twordList = new File(dictionaryEng);\r\n\t\t} else if(lang==1) {\r\n\t\t\twordList = new File(dictionarySpan);\r\n\t\t}\r\n\t\tScanner scan = new Scanner(wordList);\r\n\t\t// create trie to store dictionary words for later lookup and insert words\r\n\t\tTrie trie = new Trie(); \r\n\r\n\t\twhile(scan.hasNextLine()) {\r\n\t\t\ttrie.insert(scan.nextLine()); \r\n\t\t}\r\n\t\t//\r\n\t\tfindWords(boggleBoardChars, trie ,allValidWords);\r\n\t\t\r\n\t\t//close scanner and return\r\n\t\tscan.close();\r\n\t\treturn allValidWords;\r\n\t}", "public boolean checkInvariants() {\n\t\tRunningLengthWord rlw, prev;\n\n\t\ttry {\n\t\t\tEWAHIterator i =\n\t\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\t\t// test that actualsizeinwords complies with info in headers and\n\t\t\t// test that literal number is not > max\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tRunningLengthWord w = i.next();\n\t\t\t\tif (i.dirtyWords() > actualsizeinwords) {\n\t\t\t\t\tlog.error(i.dirtyWords() + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (i.pointer > actualsizeinwords) {\n\t\t\t\t\tlog.error(\"pointer \" + i.pointer + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getNumberOfLiteralWords() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max literals\"\n\t\t\t\t\t\t\t+ w.getNumberOfLiteralWords());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getRunningLength() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max running length \"\n\t\t\t\t\t\t\t+ w.getRunningLength());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check adjacent words for errors\n\t\t\trlw = new RunningLengthWord(buffer, 0);\n\t\t\tprev = rlw;\n\t\t\trlw = rlw.getNext();\n\n\t\t\twhile (rlw.position < actualsizeinwords\n\t\t\t\t\t&& rlw.position + rlw.getNumberOfLiteralWords() < actualsizeinwords) {\n\t\t\t\t// case 1) second word has no running length -> first one should\n\t\t\t\t// have max literal count\n\t\t\t\tif (rlw.getRunningLength() == 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tlog.error(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" dirty words followed by \"\n\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" number of dirty words \" + \"\\n\\n\"\n\t\t\t\t\t\t\t+ toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// case 2) both have running length for same bit and first one\n\t\t\t\t// has\n\t\t\t\t// no literals -> first one should have max running length\n\t\t\t\tif (prev.getRunningLength() > 0\n\t\t\t\t\t\t&& rlw.getRunningLength() > 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t&& prev.getRunningBit() == rlw.getRunningBit()\n\t\t\t\t\t\t&& prev.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"Two running length for same bit of length \"\n\t\t\t\t\t\t\t+ prev.getRunningLength() + \" and \"\n\t\t\t\t\t\t\t+ rlw.getRunningLength() + \"\\n\\n\" + toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tprev = rlw;\n\t\t\t\trlw = rlw.getNext();\n\t\t\t}\n\n\t\t\tif (!prev.equals(this.rlw)) {\n\t\t\t\tlog.error(\"Last word should have been \" + prev.toString()\n\t\t\t\t\t\t+ \" but was \" + this.rlw.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// the largest bit set == sizeinbits\n\t\t\tIntIterator it = intIterator();\n\t\t\tint greatest = -1;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tgreatest = it.next();\n\t\t\t}\n\t\t\tif (this.sizeinbits != greatest + 1) {\n\t\t\t\tlog.error(\"sizein bits \" + sizeinbits\n\t\t\t\t\t\t+ \" but largest value is \" + greatest + \"\\n\\n\"\n\t\t\t\t\t\t+ toDebugString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLoggerUtil.logException(e, log);\n\t\t\tlog.error(bufferToString());\n\t\t}\n\n\t\treturn true;\n\t}", "public void testAlgorithmSpecific() {\n TestData.chars(\"x y z\", \"xX Zz\")\n ._______Def_(\" - \", \" - - \")\n .____Ignore_(\" - \", \" -------- \")\n .all();\n }", "public WordDictionary() {\n letters = new WordDictionary[26];\n }", "private int normalize(char[] dest, int start, int length) {\n int lacount = 0;\n for (int i = start, e = i + length; i < e; ++i) {\n char ch = dest[i];\n if (ch >= '\\uFE70' && ch <= '\\uFEFC') {\n if (isLamAlefChar(ch)) {\n ++lacount;\n }\n dest[i] = (char)convertFEto06[ch - '\\uFE70'];\n }\n }\n return lacount;\n }", "public static void main(String[] args)\r\n {\n String word = \"whiteleaf\";\r\n\r\n //initialize the task and pool\r\n elfish task = new elfish(word.toCharArray(), 0, word.length() - 1);\r\n ForkJoinPool pool = new ForkJoinPool();\r\n\r\n //invoke the task\r\n pool.invoke(task);\r\n\r\n //check to see if all checks were passed\r\n if(elfish.checkE && elfish.checkL && elfish.checkF)\r\n {\r\n System.out.println(\"The word \" + word + \" is elfish.\");\r\n }\r\n else\r\n {\r\n System.out.println(\"The word \" + word + \" is not elfish.\");\r\n }\r\n }", "private static void findWords(char boggleBoardChars[][], Trie trie, String[] valids) { \r\n\t\tboolean[][] visitedTiles = new boolean[4][4]; \r\n\r\n\t\tString str = \"\"; \r\n\t\t//searches for valid word starting at each die on board\r\n\t\tfor (int row = 0 ; row < 4; row++) { \r\n\t\t\tfor (int col = 0 ; col < 4 ; col++) { \r\n\t\t\t\tif (trie.isInTrie( (boggleBoardChars[row][col] + \"\").toUpperCase())) { \r\n\t\t\t\t\tstr = str+boggleBoardChars[row][col]; \r\n\t\t\t\t\tboggleBoardSearch(trie, boggleBoardChars, row, col, visitedTiles, str, valids); \r\n\t\t\t\t\tstr = \"\"; \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t} \r\n\t}", "protected Trie(char[] paramArrayOfchar, int paramInt, DataManipulate paramDataManipulate) {\n/* 147 */ this.m_options_ = paramInt;\n/* 148 */ if (paramDataManipulate != null) {\n/* 149 */ this.m_dataManipulate_ = paramDataManipulate;\n/* */ } else {\n/* 151 */ this.m_dataManipulate_ = new DefaultGetFoldingOffset();\n/* */ } \n/* 153 */ this.m_isLatin1Linear_ = ((this.m_options_ & 0x200) != 0);\n/* */ \n/* 155 */ this.m_index_ = paramArrayOfchar;\n/* 156 */ this.m_dataOffset_ = this.m_index_.length;\n/* */ }", "boolean generateDFA(){\n\t\tdfa_start=new DFA_State();\t\t\n\t\tfor(ReservedWord res:table_res){\n\t\t\tint index=0,length;\n\t\t\tchar chr;\n\t\t\tString str;\n\t\t\tDFA_State dfa=new DFA_State();\n\t\t\t\n\t\t\tif(res.value.isEmpty())\n\t\t\t\tcontinue;\n\t\t\tstr=res.value;\n\t\t\tlength=str.length();\n\t\t\tchr=str.charAt(0);//first char\n\t\t\tif(!dfa_start.dfa_edges.containsKey(chr)){\n\t\t\t\tdfa_start.dfa_edges.put(chr, new DFA_State());\t\t\t\t\n\t\t\t}\n\t\t\tdfa=dfa_start.dfa_edges.get(chr);\t\t\t\n\t\t\twhile(++index < length){\n\t\t\t\tchr=str.charAt(index);\n\t\t\t\tif(!dfa.dfa_edges.containsKey(chr)){\n\t\t\t\t\tdfa.dfa_edges.put(chr, new DFA_State());\t\t\t\t\n\t\t\t\t}\n\t\t\t\tdfa=dfa.dfa_edges.get(chr);\t\t\t\t\n\t\t\t}\n\t\t\tdfa.isFinal=true;\t\t\t//last char\n\t\t\tdfa.value=str;\t\t\t\n\t\t\t\n\t\t\tif(table_op.contains(res)){\n\t\t\t\tdfa.type=TokenType.t_opt;\n\t\t\t}else\n\t\t\t\tdfa.type=TokenType.t_res;\n\t\t}\n\t\t\n\t\treturn true;\t\t\n\t}", "public String[] spellchecker(String[] wordlist, String[] queries) {\n String[] wlc = new String[wordlist.length];\n String[] qc = new String[queries.length];\n String[] answer = new String[queries.length];\n int[] priority = new int[answer.length];\n String vowels = \"aeiou\";\n for (int i = 0; i < answer.length; i++) {\n if (qc[i] == null) {\n qc[i] = queries[i].toLowerCase();\n }\n for (int j = 0; j < wlc.length; j++) {\n if (wlc[j] == null) {\n wlc[j] = wordlist[j].toLowerCase();\n }\n if (queries[i].equals(wordlist[j])) {\n //if theyre same word\n answer[i] = wordlist[j];\n priority[i] = 3;\n break;\n } else if (priority[i] < 2 && qc[i].equals(wlc[j])) {\n //if theyre same word, regardless of case use proper word fully\n answer[i] = wordlist[j];\n priority[i] = 2;\n } else if (priority[i] < 1 && qc[i].length() == wlc[j].length()) {\n //if same length, check vowels\n boolean same = true;\n for (int k = 0; k < qc[i].length(); k++) {\n if (vowels.indexOf(qc[i].charAt(k)) == -1) {\n \t// isnt vowel\n if (qc[i].charAt(k) != wlc[j].charAt(k)) {\n same = false;\n break;\n }\n } else {\n \t// is vowel\n if (vowels.indexOf(wlc[j].charAt(k)) == -1) {\n same = false;\n break;\n }\n }\n }\n if (same) {\n answer[i] = wordlist[j];\n priority[i] = 1;\n }\n }\n }\n if (answer[i] == null) {\n answer[i] = \"\";\n }\n }\n return answer;\n }", "static void test_containsVowel() {\n\n String park = new String( \"I went to the park\" );\n String capConsonants = new String( \"QWRTYPLKJHGFDSZXCVBNM\" );\n String lowerConsonants = new String( \"qwrtyplkjhgfdszxcvbnm\" );\n\n\n System.out.println( \"\\nTESTS FOR containsVowel() :\" );\n\n System.out.print( \"Test for string 'I went to the park' : \" );\n try { System.out.println( StringStuff.containsVowel( park ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'QWRTYPLKJHGFDSZXCVBNM' : \" );\n try { System.out.println( StringStuff.containsVowel( capConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'qwrtyplkjhgfdszxcvbnm' : \" );\n try { System.out.println( StringStuff.containsVowel( lowerConsonants ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n\n }", "static void analyze (String s) {\r\n // Assigns the given string to the global lexeme variable\r\n lexeme = s;\r\n\r\n //Ensures all lexemes are under 100 characters long\r\n if (lexeme.length() >= 100) {\r\n System.out.println(\"\\nERROR: Lexeme too long - \" + s);\r\n System.exit(0);\r\n }\r\n\r\n int length = lexeme.length(); // Length of the lexeme\r\n int i = 0;\r\n\r\n //Check the character class of the first character\r\n updateClass(lexeme.charAt(i));\r\n\r\n //First character is a digit\r\n if (charClass == 1){\r\n\r\n if (i == length - 1){\r\n token = \"UNSIGNED_INTEGER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n //Followed by any number of digits\r\n while (charClass == 1){\r\n\r\n if (i == length - 1){\r\n token = \"UNSIGNED_INTEGER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n }\r\n System.out.print(\"\\nERROR - Illegal character: \" + lexeme.charAt(i) + \" | Lexeme: \" + lexeme);\r\n System.exit(0);\r\n\r\n }\r\n\r\n // First character is a letter\r\n else if (charClass == 2){\r\n\r\n if (lexeme.equals(\"true\")) {\r\n token = \"TRUE\";\r\n return;\r\n }\r\n\r\n if (lexeme.equals(\"false\")) {\r\n token = \"FALSE\";\r\n return;\r\n }\r\n\r\n if (lexeme.equals(\"if\")) {\r\n token = \"IF\";\r\n return;\r\n }\r\n\r\n if (i == length - 1){\r\n token = \"IDENTIFIER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n //Next characters are any number of letters and numbers\r\n while (charClass == 1 || charClass == 2 || lexeme.charAt(i) == '_'){\r\n\r\n if (i == length - 1){\r\n token = \"IDENTIFIER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n }\r\n System.out.print(\"\\nERROR: Illegal character: \" + lexeme.charAt(i) + \" | Lexeme: \" + lexeme);\r\n System.exit(0);\r\n\r\n }\r\n\r\n // First character is a digit\r\n else if (charClass == 1){\r\n\r\n if (i == length - 1){\r\n token = \"UNSIGNED_INTEGER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n //Followed by any number of digits\r\n while (charClass == 1){\r\n\r\n if (i == length - 1){\r\n token = \"UNSIGNED_INTEGER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n }\r\n System.out.print(\"\\nERROR - Illegal character: \" + lexeme.charAt(i) + \" | Lexeme: \" + lexeme);\r\n System.exit(0);\r\n\r\n }\r\n\r\n //First character is a sign\r\n else if (lexeme.charAt(i) == '+' || lexeme.charAt(i) == '-'){\r\n\r\n if (i == length - 1){\r\n if (lexeme.charAt(i) == '+'){\r\n token = \"PLUS\";\r\n return;\r\n }\r\n if (lexeme.charAt(i) == '-'){\r\n token = \"MINUS\";\r\n return;\r\n }\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n //Followed by any number of digits\r\n while (charClass == 1){\r\n\r\n if (i == length - 1){\r\n token = \"SIGNED_INTEGER\";\r\n return;\r\n }\r\n i++;\r\n updateClass(lexeme.charAt(i));\r\n\r\n }\r\n System.out.print(\"\\nERROR - Illegal character: \" + lexeme.charAt(i) + \" | Lexeme: \" + lexeme);\r\n System.exit(0);\r\n\r\n }\r\n\r\n else {\r\n lookUp();\r\n if(token == \"ILLEGAL\") {\r\n System.out.print(\"\\nERROR: Illegal token - \" + lexeme);\r\n System.exit(0);\r\n }\r\n }\r\n }", "@Test\n public void whenNotStartWithPrefixThenFalse() {\n ArrayChar word = new ArrayChar(\"Hello\");\n boolean result = word.startWith(\"Hi\");\n assertThat(result, is(false));\n }", "private boolean containsNonCommonWord(String[] text, int startIndex, int endIndex) {\n boolean result = false;\n for (int i = startIndex; i <= endIndex; i++) {\n if (!commonWords.contains(BaselineModel.normalizeToken(text[i])))\n result = true;\n }\n\n return result;\n }", "public static void main(String[] args) {\n\t\tString str = \"Hello\";\n\t\t//str.endsWith(\"\"); // startwith와의 반대방향 /boolean ?\n\t\tchar[] charArray =str.toCharArray();\n\t\tSystem.out.println(charArray[4]);\n\t\tSystem.out.println(charArray[2]);\n\t}", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"n\";\n stringArray0[1] = \"fb~*\";\n stringArray0[2] = \"MONTH\";\n stringArray0[3] = \"\";\n stringArray0[4] = \"-h\";\n LovinsStemmer.main(stringArray0);\n assertEquals(5, stringArray0.length);\n }", "public static void magicWord(){\n\t\tmagic_str = words.getMagicWord().toLowerCase();\n\t\tmagic_len = magic_str.length();\n\t\tmagic = new char[magic_len];\n\n\t\t// Iterates through word and stores in char magic[]\n\t\tfor(int i = 0; i < magic_len; i++){\n\t\t\tmagic[i] = magic_str.charAt(i);\n\t\t}\n\n\t}", "public final void testAeLigature() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException, SolrServerException \n\t{\n\t\tcloseSolrProxy();\n\t\tcreateFreshIx(\"aeoeLigatureTests.mrc\");\n\t\tString fldName = \"title_245a_search\";\n\n\t\t// upper case\n\t\tSet<String> docIds = new HashSet<String>();\n\t\tdocIds.add(\"Ae1\");\n\t\tdocIds.add(\"Ae2\");\n\t\tassertSearchResults(fldName, \"Æon\", docIds);\n\t\tassertSearchResults(fldName, \"Aeon\", docIds);\n\n\t\t// lower case\n\t\tdocIds.clear();\n\t\tdocIds.add(\"ae1\");\n\t\tdocIds.add(\"ae2\");\n\t\tassertSearchResults(fldName, \"Encyclopædia\", docIds);\n\t\tassertSearchResults(fldName, \"Encyclopaedia\", docIds);\n\t}", "public boolean stringE(String str) {\n int count = 0;\n \n for (int i=0; i < str.length(); i++) {\n if (str.charAt(i) == 'e') count++;\n }\n \n return (count >= 1 && count <=3);\n}", "protected final boolean isCharTrie() {\n/* 358 */ return ((this.m_options_ & 0x100) == 0);\n/* */ }", "public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }", "private void findValidWordsOnBoard(){\n\n //mark each visited cell to ensure it gets used only once while forming a word\n boolean[][] visited = new boolean[boardLength][boardLength];\n String word = \"\";\n\n for(int i = 0; i < boardLength; i++) {\n for(int j = 0; j < boardLength; j++)\n findWordsOnBoard(word, visited, board, i, j);\n }\n }", "public static void main(String[] args) {\n\n\t\tString a=\"Hadi gidelim bu diyardan\";\n\t\tSystem.out.println(a.startsWith(\"H\"));//true\n\t\tSystem.out.println(a.startsWith(\"\"));//true==> hic biseyi de kabul etti\n\t\tSystem.out.println(a.startsWith(\"Hadi\"));//true\n\t\n\t\tSystem.out.println(a.startsWith(\"g\", 5));//true==> index 5 \"g\" ile mi basliyor demektir\n\t\tSystem.out.println(a.startsWith(\"i\", 7));//false==> index7 de \"i\" mi var diye bakar\n\t\tSystem.out.println(a.startsWith(\"\", 6));//true==>index6 da normalde \"i\" var ancak hicbirsey arandiginda hicbirseylere bakar\n\t\n\t\t\n\t\t//12.indexOf()==>of=in,in anlami var.indexin gibi\n\t\t//indexOf da hem String hem de char kullanilir\n\t\tSystem.out.println(a.indexOf(\"i\"));//3==>soldan saga giderken ilk gorunumun indexini verir\n\t\tSystem.out.println(a.indexOf('d'));//2\n\t\t//deli yi bulur ve ilk harfinin indexini verir.birden cok karakter varsa ilkinin indexini verir\n\t\tSystem.out.println(a.indexOf(\"deli\"));//7\n\t\t//olmayan bir character icin indexOf kullanirsaniz java -1 return eder\n\t\tSystem.out.println(a.indexOf(\"x\"));//-1\n\t\tSystem.out.println(a.indexOf(\"diyer\"));//-1 coklu characterde hepsi ayni olmasa yine d yi gormeyip -1 doner\n\t\t\n\t\tSystem.out.println(a.indexOf(\"d\", 4));//7==> 4.indexten sonraki d nin indexini buluyor\n\t\tSystem.out.println(a.indexOf(\"a\", 9));//19==> 9. indexten sonraki a nin indexini verir\n\t\tSystem.out.println(a.indexOf('e', 8));//8\n\t\t\n\t\t//13. lastIndexOf()==>son gorunumun indexini verir\n\t\t\n\t\tString b=\"Java Ah java!\";\n\t\tSystem.out.println(b.lastIndexOf(\"v\"));//10 ==>son v nin indexi demektir\n\t\tSystem.out.println(b.lastIndexOf(\"av\"));//9 ==> son av i bulup a nin indexini basar\n\t\t\n\t\t//14. subString()==> bir Stringin belli bir bolumunu kesip almaya yarar(ONEMLI COK KULLANILIR)\n\t\t\n\t\tString c=\"Karakartal\";\n\t\t//asdece kartal kelimesini ekrana yazdirmak icin soyle yapilir. begin= baslangic\n\t\tSystem.out.println(c.substring(4));//kartal==> kesmeye baslanilan yerden sonrasini ekrana basar\n\t\t//ekrana arakartal yazalim\n\t\tSystem.out.println(c.substring(1));//arakartal\n\t\t//ekrana kar yazdiralim\n\t\t//subString methodun da iki sayi kullanirsaniz ilk sayi dahil ikinci sayi haric olur asagida ki gibi\n\t\tSystem.out.println(c.substring(4, 7));//kar\n\t\t//subString le ilk harfi almak icin subString(0,1) yazariz bunu cok kullaniriz\n\t\tSystem.out.println(c.substring(0, 1));//K\n\t\t// baslangic ve bitis index lerini ayni yaparsak hicbirsey aliriz.\n\t\tSystem.out.println(c.substring(2, 2));//\"\" hicbirsey goruruz\n\t\t//subString te baslangic indexi bitis indexinden buyk olamaz.\n\t\t//buyuk yazarsak Run Time Error aliriz\n\t\t//System.out.println(c.substring(5, 3));\n\t\t\n\t\t\n\t\t//trim() methodu==>trim==tras anlamina gelir.bir Stringin bas ve son tarafindaki spaceleri siler\n\t\t//dikkat edin aradakileri degil bas ve sondakileri siler\n\t\tString d=\" Java iyidir \";\n\t\tSystem.out.println(d.length());//16\n\t\t\n\t\tSystem.out.println(d.trim().length());//11\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void compute() {\n try {\n sc = new InputReader(new FileInputStream(\"./resources/trainandpeter\"));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n text = sc.readNext().toCharArray();\n n = text.length;\n pattern1 = sc.readNext();\n pattern2 = sc.readNext();\n buildDfa(pattern1.toCharArray());\n int patpos1 = search(0, n, true);\n int patpos2 = search(n - 1, -1, false);\n if (patpos1 == -1 && patpos2 == -1) {\n System.out.println(\"fantasy\");\n System.exit(0);\n }\n buildDfa(pattern2.toCharArray());\n int patpos3 = -1;\n if (patpos1 > -1) {\n patpos3 = search(patpos1 + pattern1.length(), n, true);\n }\n int patpos4 = -1;\n if (patpos2 > -1) {\n patpos4 = search(patpos2 - pattern1.length(), -1, false);\n }\n if (patpos3 == -1 && patpos4 == -1) {\n System.out.println(\"fantasy\");\n System.exit(0);\n }\n if (patpos1 > -1 && patpos2 > -1 && patpos3 > -1 && patpos4 > -1) {\n System.out.println(\"both\");\n System.exit(0);\n }\n if (patpos1 > -1 && patpos3 > -1) {\n System.out.println(\"forward\");\n System.exit(0);\n }\n if (patpos2 > -1 && patpos4 > -1) {\n System.out.println(\"backward\");\n System.exit(0);\n }\n }", "protected char[] initialValue() {\n return new char[c.jk];\n }", "public boolean canUseCharArrays()\n/* */ {\n/* 405 */ return true;\n/* */ }", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "@BeforeEach\n\tvoid setUpValidRE(){\n\t\tvalidRE= new String[lengthValid];\n\t\t// ab\n\t\tvalidRE[0] = \"ab\";\n\t\t// (ab)\n\t\tvalidRE[1] = \"(ab)\";\n\t\t//(ab)*\n\t\tvalidRE[2] = \"(ab)*\";\n\t\t// a???\n\t\tvalidRE[3] = \"a???\";\n\t\t// a***\n\t\tvalidRE[4] = \"a***\";\n\t\t// a+++\n\t\tvalidRE[5] = \"a+++\";\n\t\t// (((a)))\n\t\tvalidRE[6] = \"(((a)))\";\n\t\t// (a | ab | c*)*\n\t\tvalidRE[7] = \"(a | ab | c*)*\";\n\t\t// (a | ab | c*)**??\n\t\tvalidRE[8] = \"(a | ab | c*)*??\";\n\t\t// ( a | (ab | cd)+ )+\n\t\tvalidRE[9] = \"(a | (ab | cd)+)+\";\n\t\t// 0 (01 | (02) * | (03)++) | (1?01?)\n\t\tvalidRE[10] = \"0 (01 | (02) * | (03)++) | (a?01?)\";\n\t\t// a | &\n\t\tvalidRE[11] = \"a | &\";\n\t\t// &*\n\t\tvalidRE[12] = \"&*\";\n\t\t// (())* (empty language)\n\t\tvalidRE[13] = \"(())*\";\n\t\t// (a*b)*\n\t\tvalidRE[14] = \"(a*b)*\";\n\t\t// (a | & | a*b?c+)*\n\t\tvalidRE[15] = \"(a | & | a*b?c+)*\";\n\t}", "public static void main(String[] args) {\n Character wildCard = '*';\n List<Character> chars = new ArrayList<>(Arrays.asList('d', 'o', 'r', wildCard));\n String testWord = \"door\";\n System.out.println(isWordCreatable(chars, testWord, wildCard));\n }", "@Test\n public void whenStartWithPrefixThenTrue() {\n ArrayChar word = new ArrayChar(\"Hello\");\n boolean result = word.startWith(\"He\");\n assertThat(result, is(true));\n }", "private void checkEasterEgg (String word) {\r\n if (word.startsWith (\"IMAC\") || word.equals (\"APPLE\") || word.equals (\"KATZ\") || word.startsWith (\"IPOD\") || word.startsWith (\"IPHONE\")\r\n || word.startsWith (\"MAC\") && !word.startsWith (\"MACR\") && !word.startsWith (\"MACE\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered cannot be recognized\\nSince we are nice, we will add it for you anyways.\",\r\n \"Woah There!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }", "private void validSyntaxis(char[] fun){\n\t\tString valores = \"(a+/*-^\";\n\t\tString valores1 =\"(+/*-^\";\n\t\tString operadores =\"+/*-^\";\n\t\tString valores2 =\"(+-yzxuvwlmnjkpstc123456789e0ai\";\n\t\t//String valores2 =\"(+-xyzstc123456789e0ai\";\n\t\t//String valores3 =\"x1234567890\";\n\t\tString valores3 =\"x1234567890\";\n\t\tString valores4 =\"1234567890\";\n\t\tint pos = fun.length-1;\n\n\t\tif(pos == 0){\n\t\t\tif(valores2.indexOf(fun[pos]) == -1)\n\t\t\t\tcont++;\n\t\t\telse\n\t\t\t\tif(valores2.indexOf(fun[pos]) == 0)\n\t\t\t\t\tcont2++;\n\n\t\t}\n\n\t\telse if(pos >= 1){\n\t\t\tchar aux = fun[pos];\n\t\t\tchar aux2 = fun[pos-1];\n\n\t\t\t//Caracter 'a','A'\n\t\t\tif(aux == 'a'){\n\t\t\t\tif(valores1.indexOf(aux2) == -1 && aux2 != 't')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'i' || aux == 'e'){\n\t\t\t\tif(aux2 != 's' && valores1.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 's'){\n\t\t\t\tif(aux2 != 'c' && valores.indexOf(aux2) == -1 && aux2 != 'b' && aux2 != 'o')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'c'){\n\t\t\t\tif(aux2 != 's' && valores.indexOf(aux2) == -1 && aux2 != 'e')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 't'){\n\t\t\t\tif(aux2 != 'r' && valores.indexOf(aux2) == -1 && aux2 != 'o')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'o'){\n\t\t\t\tif(aux2 != 'c')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'b'){\n\t\t\t\tif(aux2 != 'a')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'n'){\n\t\t\t\tif(aux2 != 'i' && aux2 != 'a')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'x'){\n\t\t\t\tif(valores4.indexOf(aux2) != -1)\n\t\t\t\t\tcont++;\n\n\t\t\t}\n\n\n\t\t\telse if(aux == 'h'){\n\t\t\t\tif(aux2 != 'n' && aux2 != 's' && aux2 != 'c' && aux2 != 't')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'r'){\n\t\t\t\tif(aux2 != 'q')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '.'){\n\t\t\t\t\n\t\t\t\tif(valores4.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\n\t\t\t\tboolean existe = false;\n\t\t\t\tint i = pos;\n\t\t\t\twhile(operadores.indexOf(fun[i]) == -1 && i > 0){\n\t\t\t\t\tif(existe && fun[i] == '.'){\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(fun[i] == '.')\n\t\t\t\t\t\texiste = true;\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if(aux == 'q'){\n\t\t\t\tif(aux2 != 's')\n\t\t\t\t\tcont++;\n\t\t\t\tif(pos > 1)\n\t\t\t\t\tif(fun[pos-2] == 'o' || fun[pos-2] == 'b' || fun[pos-2] == 'c' || fun[pos-2] == 'a')\n\t\t\t\t\t\tcont++;\n\t\t\t}\n\t\t\n\t\t\telse if(valores3.indexOf(aux) != -1){\n\t\t\t\tif(valores1.indexOf(aux2) == -1 && aux2 != '(' && valores4.indexOf(aux2) == -1 && aux2 != '.')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '('){\n\t\t\t\tcont2++;\n\t\t\t\tif(aux2 != 'n' && aux2 != 's' && aux2 != 'c' && aux2 != 't' && aux2 != 'h' && valores1.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == ')'){\n\t\t\t\tcont2--;\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '+' || aux == '-'){\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')' && aux2 != '(' && aux2 != '^')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '/' || aux == '*' || aux == '^'){\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\tif((aux2 == '/' || aux2 == '*' || aux2 == '^') && pos == 1)\n\t\t\t\tcont++;\n\t\t}\n\n\t\tif(cont > 0 || cont2 != 0)\n\t\t\tthis.setBackground(Color.RED);\n\t\telse\n\t\t\tthis.setBackground(Color.GREEN);\n\t}", "@Test\n public final void testLeftPart04() {\n Row row = new Row(0, 15);\n \n StaticFunctions.setCrossCheckLetters(row, 1, \"abdfhmnoprwy\");\n StaticFunctions.setLetter(row, 2, 'e');\n StaticFunctions.setCrossCheckLetters(row, 3, \"abfghklmprtvwz\");\n StaticFunctions.setLetter(row, 6, 'o');\n StaticFunctions.setLetter(row, 7, 's');\n StaticFunctions.setLetter(row, 10, 'e');\n StaticFunctions.setLetter(row, 12, 'a');\n StaticFunctions.setCrossCheckLetters(row, 14, \"bcdghlnpstz\");\n\n StaticFunctions.addAnchor(row, 1);\n StaticFunctions.addAnchor(row, 2);\n StaticFunctions.addAnchor(row, 3);\n StaticFunctions.addAnchor(row, 5);\n StaticFunctions.addAnchor(row, 6);\n StaticFunctions.addAnchor(row, 7);\n StaticFunctions.addAnchor(row, 9);\n StaticFunctions.addAnchor(row, 10);\n StaticFunctions.addAnchor(row, 12);\n \n String rack = StringStuff.alphagram(\"abehlop\");\n row.spew(bot, dawg, rack, true);\n \n System.out.println(\"here are the limits and anchors:\");\n for (Square square: row.getRowSquares()) {\n System.out.println(square);\n }\n \n // just assert it contains a subset of words above plus correct # found\n assertContainsAll();\n }", "static boolean m22727a(String str) {\n if (TextUtils.isEmpty(str)) {\n return false;\n }\n for (String contains : f20300a.f20309c) {\n if (str.contains(contains)) {\n return true;\n }\n }\n return false;\n }", "static int letterIslands(String s, int k) {\n /*\n * Write your code here.\n */\n\n }", "@Test \r\n public void shouldFindOneWordAtTheEnd() {\r\n \r\n String inputWord = \"bxxxxxxxe\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"be\", \"ale\", \"apple\", \"bale\", \"kangaroo\"};\r\n \r\n assertEquals(\"be\", wordSeeker.lookFor(inputWord, dictionary));\r\n }", "private int handleGeneratedSpaces(char[] dest,\n int start,\n int length) {\n\n int lenOptionsLamAlef = options & LAMALEF_MASK;\n int lenOptionsTashkeel = options & TASHKEEL_MASK;\n boolean lamAlefOn = false;\n boolean tashkeelOn = false;\n\n if (!isLogical & !spacesRelativeToTextBeginEnd) {\n switch (lenOptionsLamAlef) {\n case LAMALEF_BEGIN: lenOptionsLamAlef = LAMALEF_END; break;\n case LAMALEF_END: lenOptionsLamAlef = LAMALEF_BEGIN; break;\n default: break;\n }\n switch (lenOptionsTashkeel){\n case TASHKEEL_BEGIN: lenOptionsTashkeel = TASHKEEL_END; break;\n case TASHKEEL_END: lenOptionsTashkeel = TASHKEEL_BEGIN; break;\n default: break;\n }\n }\n\n\n if (lenOptionsLamAlef == LAMALEF_NEAR) {\n for (int i = start, e = i + length; i < e; ++i) {\n if (dest[i] == LAMALEF_SPACE_SUB) {\n dest[i] = SPACE_CHAR;\n }\n }\n\n } else {\n\n final int e = start + length;\n int wL = countSpaceSub(dest, length, LAMALEF_SPACE_SUB);\n int wT = countSpaceSub(dest, length, TASHKEEL_SPACE_SUB);\n\n if (lenOptionsLamAlef == LAMALEF_END){\n lamAlefOn = true;\n }\n if (lenOptionsTashkeel == TASHKEEL_END){\n tashkeelOn = true;\n }\n\n\n if (lamAlefOn && (lenOptionsLamAlef == LAMALEF_END)) {\n shiftArray(dest, start, e, LAMALEF_SPACE_SUB);\n while (wL > start) {\n dest[--wL] = SPACE_CHAR;\n }\n }\n\n if (tashkeelOn && (lenOptionsTashkeel == TASHKEEL_END)){\n shiftArray(dest, start, e, TASHKEEL_SPACE_SUB);\n while (wT > start) {\n dest[--wT] = SPACE_CHAR;\n }\n }\n\n lamAlefOn = false;\n tashkeelOn = false;\n\n if (lenOptionsLamAlef == LAMALEF_RESIZE){\n lamAlefOn = true;\n }\n if (lenOptionsTashkeel == TASHKEEL_RESIZE){\n tashkeelOn = true;\n }\n\n if (lamAlefOn && (lenOptionsLamAlef == LAMALEF_RESIZE)){\n shiftArray(dest, start, e, LAMALEF_SPACE_SUB);\n wL = flipArray(dest,start,e, wL);\n length = wL - start;\n }\n if (tashkeelOn && (lenOptionsTashkeel == TASHKEEL_RESIZE)) {\n shiftArray(dest, start, e, TASHKEEL_SPACE_SUB);\n wT = flipArray(dest,start,e, wT);\n length = wT - start;\n }\n\n lamAlefOn = false;\n tashkeelOn = false;\n\n if ((lenOptionsLamAlef == LAMALEF_BEGIN) ||\n (lenOptionsLamAlef == LAMALEF_AUTO)){\n lamAlefOn = true;\n }\n if (lenOptionsTashkeel == TASHKEEL_BEGIN){\n tashkeelOn = true;\n }\n\n if (lamAlefOn && ((lenOptionsLamAlef == LAMALEF_BEGIN)||\n (lenOptionsLamAlef == LAMALEF_AUTO))) { // spaces at beginning\n shiftArray(dest, start, e, LAMALEF_SPACE_SUB);\n wL = flipArray(dest,start,e, wL);\n while (wL < e) {\n dest[wL++] = SPACE_CHAR;\n }\n }\n if(tashkeelOn && (lenOptionsTashkeel == TASHKEEL_BEGIN)){\n shiftArray(dest, start, e, TASHKEEL_SPACE_SUB);\n wT = flipArray(dest,start,e, wT);\n while (wT < e) {\n dest[wT++] = SPACE_CHAR;\n }\n }\n }\n\n return length;\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String[] stringArray0 = new String[0];\n LovinsStemmer.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "String searchVowel();", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n //Ask\n System.out.print(\"Enter a word:\");\n //assign\n String word = scanner.next();\n\n int l = word.length();\n System.out.println(\"Length:\" + l);\n int i = 0;\n boolean shouldContinue = true;\n\n while (shouldContinue == true) {\n\n if (word.charAt(i) == 'a') {\n System.out.println(\"The First vowel was:\" + \"a\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'e') {\n System.out.println(\"The First vowel was:\" + \"e\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'i') {\n System.out.println(\"The First vowel was:\" + \"i\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'o') {\n System.out.println(\"The First vowel was:\" + \"o\");\n shouldContinue = false;\n }\n if (word.charAt(i) == 'u') {\n System.out.println(\"The First vowel was:\" + \"u\");\n shouldContinue = false;\n }\n i++;\n\n }\n\n System.out.println(\"Your word was:\" + word);\n }", "public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a word\");\n\t\tString a=scan.nextLine();\n\n\t\tint sayac=0;\n\t\tint sayac1=0;\n\t\tint sayac2=0;\n\t\tint sayac3=0;\n\t\tint sayac4=0;\n\t\tint sayac5=0;\n\t\tint sayac6=0;\n\t\tint sayac7=0;\n\t\tint sayac8=0;\n\t\tint sayac9=0;\n\t\n\t\n\tint b=a.toLowerCase().length();\n\t\nchar[] alphabet= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','u','p','r','s','t','u','z','w','x','v'};\n\t\n\t\n\t\t\n\tfor(int i=0; i<=b-1; i++) {\n\t\tfor(int j=0; j<alphabet.length; j++) {\n\t\tif(a.charAt(i)==alphabet[j] ) {\n\t\t\tSystem.out.println(\"a harfi \"+(i+1)+\". siradadir\");\n\t\t\tsayac++;\n\t\t\tSystem.out.println(sayac+\"tane a.charAt(i) harfi vardir\");\n\t\t}\n\t\t\n\t\t\n\t\n\t\t}}\n\n\n\t}", "private void recalculateWordsInUse(){\n int i;\n for(i=wordsInUse-1;i>=0;i--)\n if(words[i]!=0)\n break;\n wordsInUse=i+1; // The new logical size\n }", "@Test\n public void testWordGuessCompletition() {\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // The word shouldn't be marked as 'completed' until all the letters are guessed.\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('l'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('a'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('m'));\n // Now that it is entirely guessed it should be complete\n Assert.assertTrue(word.getIsComplete());\n\n // If you reset the guesses, it shouldn't be complete anymore\n word.resetGuesses();\n Assert.assertFalse(word.getIsComplete());\n }", "public static void main( String args[] ) {\n String blah = new String( \"Blah blah blah\" );\n String woof = new String( \"BCDBCDBCDBCDBCD\" );\n String pal1 = new String( \"a\" );\n String pal2 = new String( \"ab\" );\n String pal3 = new String( \"aba\" );\n String pal4 = new String( \"amanaplanacanalpanama\" );\n String pal5 = new String( \"abba\" );\n System.out.println( containsVowel( blah ) );\n System.out.println( containsVowel( woof ) );\n System.out.println( isPalindrome( pal1 ) );\n System.out.println( isPalindrome( pal2 ) );\n System.out.println( isPalindrome( pal3 ) );\n System.out.println( isPalindrome( pal4 ) );\n System.out.println( isPalindrome( pal5 ) );\n System.out.println( \"evensOnly() returns: \" + evensOnly( \"REHEARSALSZ\" ) );\n System.out.println( \"evensOnly() returns: \" + evensOnly( \"REhearSALsz\" ) );\n System.out.println( \"evensOnlyNoDupes() returns: \" + evensOnlyNoDupes( \"REhearSALsz\" ) );\n System.out.println( \"oddsOnly() returns: \" + oddsOnly( \"xylophones\" ) );\n System.out.println( \"oddsOnly() returns: \" + oddsOnly( \"XYloPHonES\" ) );\n System.out.println( \"oddsOnlyNoDupes() returns: \" + oddsOnlyNoDupes( \"XYloPHonES\" ) );\n System.out.println( \"reverse() returns: \" + reverse( \"REHEARSALSZ\" ) );\n }", "@Test(timeout = 4000)\n public void test43() throws Throwable {\n String[] stringArray0 = new String[8];\n LovinsStemmer.main(stringArray0);\n assertEquals(8, stringArray0.length);\n }", "private boolean checkWord() {\n \tboolean bl = false;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tif (letter == word.charAt(i) && list[i] != true) {\n \t\t\tlist[i] = true;\n \t\t\tnumberOfSymbols++;\n \t\t\tbl = true;\n \t\t}\n \t}\n \treturn bl;\n }", "public static void main(String[] args) {\n char [] letra = new char [27];\n letra [0] = 'A';\n letra [1] = 'B';\n letra [2] = 'C';\n letra [3] = 'D';\n letra [4] = 'E';\n letra [5] = 'F';\n letra [6] = 'G';\n letra [7] = 'H';\n letra [8] = 'I';\n letra [9] = 'J';\n letra [10] = 'K';\n letra [11] = 'L';\n letra [12] = 'M';\n letra [13] = 'N';\n letra [14] = 'Ñ';\n letra [15] = 'O';\n letra [16] = 'P';\n letra [17] = 'Q';\n letra [18] = 'R';\n letra [19] = 'S';\n letra [20] = 'T';\n letra [21] = 'U';\n letra [22] = 'V';\n letra [23] = 'W';\n letra [24] = 'X';\n letra [25] = 'Y';\n letra [26] = 'Z';\n int [] contadores = new int [27];\n pedirCadena();\n comprobarvocales(letra,contadores);\n }", "private int expandCompositChar(char[] dest,\n int start,\n int length,\n int lacount,\n int shapingMode) throws ArabicShapingException {\n\n int lenOptionsLamAlef = options & LAMALEF_MASK;\n int lenOptionsSeen = options & SEEN_MASK;\n int lenOptionsYehHamza = options & YEHHAMZA_MASK;\n boolean spaceNotFound = false;\n\n if (!isLogical && !spacesRelativeToTextBeginEnd) {\n switch (lenOptionsLamAlef) {\n case LAMALEF_BEGIN: lenOptionsLamAlef = LAMALEF_END; break;\n case LAMALEF_END: lenOptionsLamAlef = LAMALEF_BEGIN; break;\n default: break;\n }\n }\n\n if(shapingMode == 1){\n if(lenOptionsLamAlef == LAMALEF_AUTO){\n if(isLogical){\n spaceNotFound = expandCompositCharAtEnd(dest, start, length, lacount);\n if(spaceNotFound){\n spaceNotFound = expandCompositCharAtBegin(dest, start, length, lacount);\n }\n if(spaceNotFound){\n spaceNotFound = expandCompositCharAtNear(dest, start, length,0,0,1);\n }\n if(spaceNotFound){\n throw new ArabicShapingException(\"No spacefor lamalef\");\n }\n }else{\n spaceNotFound = expandCompositCharAtBegin(dest, start, length, lacount);\n if(spaceNotFound){\n spaceNotFound = expandCompositCharAtEnd(dest, start, length, lacount);\n }\n if(spaceNotFound){\n spaceNotFound = expandCompositCharAtNear(dest, start, length,0,0,1);\n }\n if(spaceNotFound){\n throw new ArabicShapingException(\"No spacefor lamalef\");\n }\n }\n }else if(lenOptionsLamAlef == LAMALEF_END){\n spaceNotFound = expandCompositCharAtEnd(dest, start, length, lacount);\n if(spaceNotFound){\n throw new ArabicShapingException(\"No spacefor lamalef\");\n }\n }else if(lenOptionsLamAlef == LAMALEF_BEGIN){\n spaceNotFound = expandCompositCharAtBegin(dest, start, length, lacount);\n if(spaceNotFound){\n throw new ArabicShapingException(\"No spacefor lamalef\");\n }\n }else if(lenOptionsLamAlef == LAMALEF_NEAR){\n spaceNotFound = expandCompositCharAtNear(dest, start, length,0,0,1);\n if(spaceNotFound){\n throw new ArabicShapingException(\"No spacefor lamalef\");\n }\n }else if(lenOptionsLamAlef == LAMALEF_RESIZE){\n for (int r = start + length, w = r + lacount; --r >= start;) {\n char ch = dest[r];\n if (isNormalizedLamAlefChar(ch)) {\n dest[--w] = '\\u0644';\n dest[--w] = convertNormalizedLamAlef[ch - '\\u065C'];\n } else {\n dest[--w] = ch;\n }\n }\n length += lacount;\n }\n }else{\n if(lenOptionsSeen == SEEN_TWOCELL_NEAR){\n spaceNotFound = expandCompositCharAtNear(dest, start, length,0,1,0);\n if(spaceNotFound){\n throw new ArabicShapingException(\"No space for Seen tail expansion\");\n }\n }\n if(lenOptionsYehHamza == YEHHAMZA_TWOCELL_NEAR){\n spaceNotFound = expandCompositCharAtNear(dest, start, length,1,0,0);\n if(spaceNotFound){\n throw new ArabicShapingException(\"No space for YehHamza expansion\");\n }\n }\n }\n return length;\n }", "@Test(timeout = 4000)\n public void test74() throws Throwable {\n String[] stringArray0 = new String[1];\n LovinsStemmer.main(stringArray0);\n assertEquals(1, stringArray0.length);\n }", "private boolean isAlfabetico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase 'A':\r\n\t\t\treturn true;\r\n\t\tcase 'B':\r\n\t\t\treturn true;\r\n\t\tcase 'C':\r\n\t\t\treturn true;\r\n\t\tcase 'D':\r\n\t\t\treturn true;\r\n\t\tcase 'E':\r\n\t\t\treturn true;\r\n\t\tcase 'F':\r\n\t\t\treturn true;\r\n\t\tcase 'G':\r\n\t\t\treturn true;\r\n\t\tcase 'H':\r\n\t\t\treturn true;\r\n\t\tcase 'I':\r\n\t\t\treturn true;\r\n\t\tcase 'J':\r\n\t\t\treturn true;\r\n\t\tcase 'K':\r\n\t\t\treturn true;\r\n\t\tcase 'L':\r\n\t\t\treturn true;\r\n\t\tcase 'M':\r\n\t\t\treturn true;\r\n\t\tcase 'N':\r\n\t\t\treturn true;\r\n\t\tcase 'Ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'O':\r\n\t\t\treturn true;\r\n\t\tcase 'P':\r\n\t\t\treturn true;\r\n\t\tcase 'Q':\r\n\t\t\treturn true;\r\n\t\tcase 'R':\r\n\t\t\treturn true;\r\n\t\tcase 'S':\r\n\t\t\treturn true;\r\n\t\tcase 'T':\r\n\t\t\treturn true;\r\n\t\tcase 'U':\r\n\t\t\treturn true;\r\n\t\tcase 'V':\r\n\t\t\treturn true;\r\n\t\tcase 'W':\r\n\t\t\treturn true;\r\n\t\tcase 'X':\r\n\t\t\treturn true;\r\n\t\tcase 'Y':\r\n\t\t\treturn true;\r\n\t\tcase 'Z':\r\n\t\t\treturn true;\r\n\t\tcase 'a':\r\n\t\t\treturn true;\r\n\t\tcase 'b':\r\n\t\t\treturn true;\r\n\t\tcase 'c':\r\n\t\t\treturn true;\r\n\t\tcase 'd':\r\n\t\t\treturn true;\r\n\t\tcase 'e':\r\n\t\t\treturn true;\r\n\t\tcase 'f':\r\n\t\t\treturn true;\r\n\t\tcase 'g':\r\n\t\t\treturn true;\r\n\t\tcase 'h':\r\n\t\t\treturn true;\r\n\t\tcase 'i':\r\n\t\t\treturn true;\r\n\t\tcase 'j':\r\n\t\t\treturn true;\r\n\t\tcase 'k':\r\n\t\t\treturn true;\r\n\t\tcase 'l':\r\n\t\t\treturn true;\r\n\t\tcase 'm':\r\n\t\t\treturn true;\r\n\t\tcase 'n':\r\n\t\t\treturn true;\r\n\t\tcase 'ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'o':\r\n\t\t\treturn true;\r\n\t\tcase 'p':\r\n\t\t\treturn true;\r\n\t\tcase 'q':\r\n\t\t\treturn true;\r\n\t\tcase 'r':\r\n\t\t\treturn true;\r\n\t\tcase 's':\r\n\t\t\treturn true;\r\n\t\tcase 't':\r\n\t\t\treturn true;\r\n\t\tcase 'u':\r\n\t\t\treturn true;\r\n\t\tcase 'v':\r\n\t\t\treturn true;\r\n\t\tcase 'w':\r\n\t\t\treturn true;\r\n\t\tcase 'x':\r\n\t\t\treturn true;\r\n\t\tcase 'y':\r\n\t\t\treturn true;\r\n\t\tcase 'z':\r\n\t\t\treturn true;\r\n\t\tcase ' ':\r\n\t\t\treturn true;\r\n\t\tcase '*':\r\n\t\t\treturn true;// debido a búsquedas\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "public boolean[] mo21a(String str) {\n int length = str.length();\n if (length > 80) {\n try {\n throw new IllegalArgumentException(f337z[2] + length);\n } catch (IllegalArgumentException e) {\n throw e;\n }\n }\n int i;\n int[] iArr = new int[9];\n boolean[] zArr = new boolean[((((str.length() + 2) + 2) * 9) + 1)];\n C0105f.m616a(C0114p.f385f[47], iArr);\n int b = C0105f.m617b(zArr, 0, iArr, true);\n for (i = 0; i < length; i++) {\n C0105f.m616a(C0114p.f385f[f337z[0].indexOf(str.charAt(i))], iArr);\n b += C0105f.m617b(zArr, b, iArr, true);\n }\n i = C0105f.m615a(str, 20);\n C0105f.m616a(C0114p.f385f[i], iArr);\n b += C0105f.m617b(zArr, b, iArr, true);\n C0105f.m616a(C0114p.f385f[C0105f.m615a(str + f337z[0].charAt(i), 15)], iArr);\n i = C0105f.m617b(zArr, b, iArr, true) + b;\n C0105f.m616a(C0114p.f385f[47], iArr);\n zArr[i + C0105f.m617b(zArr, i, iArr, true)] = true;\n return zArr;\n }", "static void searchWord(WordNode root, char boggle[][], int i,\n int j, boolean visited[][], String str, ArrayList<String> elements)\n {\n\n // if we found word in trie / dictionary\n if (root.isWord == true){\n// System.out.println(str.toString());\n elements.add(str.toString());\n }\n\n\n // If both I and j in range and we visited\n // that element of matrix first time\n if (isSafe(i, j, visited,boggle))\n {\n // make it visited\n visited[i][j] = true;\n\n // traverse all child of current root\n for (int K =0; K < 26; K++)\n {\n if (root.child[K] != null)\n {\n // current character\n char ch = (char) (K + 'a') ;\n\n // Recursively search reaming character of word\n // in trie for all 8 adjacent cells of\n // boggle[i][j]\n if (isSafe(i+1,j+1,visited,boggle) && Character.toLowerCase(boggle[i+1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i+1,j+1,\n visited,str+ch, elements);\n if (isSafe(i, j+1,visited,boggle) && Character.toLowerCase(boggle[i][j+1])\n == ch)\n searchWord(root.child[K],boggle,i, j+1,\n visited,str+ch, elements);\n if (isSafe(i-1,j+1,visited,boggle) && Character.toLowerCase(boggle[i-1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j+1,\n visited,str+ch, elements);\n if (isSafe(i+1,j, visited,boggle) && Character.toLowerCase(boggle[i+1][j])\n == ch)\n searchWord(root.child[K],boggle,i+1, j,\n visited,str+ch, elements);\n if (isSafe(i+1,j-1,visited,boggle) && Character.toLowerCase(boggle[i+1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i+1, j-1,\n visited,str+ch, elements);\n if (isSafe(i, j-1,visited,boggle)&& Character.toLowerCase(boggle[i][j-1])\n == ch)\n searchWord(root.child[K],boggle,i,j-1,\n visited,str+ch, elements);\n if (isSafe(i-1,j-1,visited,boggle) && Character.toLowerCase(boggle[i-1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j-1,\n visited,str+ch, elements);\n if (isSafe(i-1, j,visited,boggle) && Character.toLowerCase(boggle[i-1][j])\n == ch)\n searchWord(root.child[K],boggle,i-1, j,\n visited,str+ch, elements);\n }\n }\n\n // make current element unvisited\n visited[i][j] = false;\n }\n }", "private boolean m72696hm() {\n if (!this.aet || !this.aev || TextUtils.isEmpty(this.aeq)) {\n return false;\n }\n this.aet = false;\n this.aeu = true;\n m72698ho();\n return true;\n }", "private static boolean isLamAlefChar(char ch) {\n return ch >= '\\uFEF5' && ch <= '\\uFEFC';\n }", "@Test\n\tvoid testCheckIfWordIsValidAfterSubstitutions() {\n\t\t//\n\t\t// Test for CheckIfWordIsValidAfterSubstitutions\n\t\t//\n\t\tCheckIfWordIsValidAfterSubstitutions checker = new CheckIfWordIsValidAfterSubstitutions();\n\t\tassertTrue(checker.isValid(\"aabcbc\"));\n\t\tassertTrue(checker.isValid(\"abcabcababcc\"));\n\t\tassertFalse(checker.isValid(\"abccba\"));\n\t\tassertFalse(checker.isValid(\"cababc\"));\n\t\tassertFalse(checker.isValid(\"cba\"));\n\t\tassertFalse(checker.isValid(\"bca\"));\n\t\tassertFalse(checker.isValid(\"c\"));\n\t\tassertFalse(checker.isValid(\"z\"));\n\t\tassertFalse(checker.isValid(\"abz\"));\n\t\tassertTrue(checker.isValid(\"\"));\n\n\t\t//\n\t\t// Test for CheckIfWordIsValidAfterSubstitutions2\n\t\t//\n\t\tCheckIfWordIsValidAfterSubstitutions2 checker2 = new CheckIfWordIsValidAfterSubstitutions2();\n\t\tassertTrue(checker2.isValid(\"aabcbc\"));\n\t\tassertTrue(checker2.isValid(\"abcabcababcc\"));\n\t\tassertFalse(checker2.isValid(\"abccba\"));\n\t\tassertFalse(checker2.isValid(\"cababc\"));\n\t\tassertFalse(checker2.isValid(\"cba\"));\n\t\tassertFalse(checker2.isValid(\"bca\"));\n\t\tassertFalse(checker2.isValid(\"c\"));\n\t\tassertFalse(checker2.isValid(\"z\"));\n\t\tassertFalse(checker2.isValid(\"abz\"));\n\t\tassertTrue(checker2.isValid(\"\"));\n\t}", "private int alternateSolution(String[] words){\n String[] MORSE = new String[]{\".-\",\"-...\",\"-.-.\",\"-..\",\".\",\"..-.\",\"--.\",\n \"....\",\"..\",\".---\",\"-.-\",\".-..\",\"--\",\"-.\",\n \"---\",\".--.\",\"--.-\",\".-.\",\"...\",\"-\",\"..-\",\n \"...-\",\".--\",\"-..-\",\"-.--\",\"--..\"};\n\n HashSet<String> seen = new HashSet<>();\n for (String word: words) {\n StringBuilder code = new StringBuilder();\n for (char c: word.toCharArray())\n code.append(MORSE[c - 'a']);\n seen.add(code.toString());\n }\n\n return seen.size();\n }", "public static void main(String[] args) {\n\n\t\tint[] a = new int[100];\n\t\tSystem.out.println(a.length);\n\n\t\tString s = \"akhil\";\n\t\tSystem.out.println(s.length());\n\n\t\tSystem.out.println(s.charAt(2));\n\n\t\t// System.out.println(s.charAt(20)); //exception\n\n\t\tSystem.out.println(s.indexOf('a'));\n\t\tSystem.out.println(s.lastIndexOf('l'));\n\n\t\tString rno = \"13C51A0501\";\n\n\t\tSystem.out.println(rno.contains(\"51A\"));\n\t\tSystem.out.println(rno.startsWith(\"13C\"));\n\t\tSystem.out.println(rno.endsWith(\"501\"));\n\n\t\tSystem.out.println(s.toUpperCase());\n\t\tSystem.out.println(s.toLowerCase());\n\n\t\tString s1 = \" Akhil \";\n\t\tSystem.out.println(s1.length());\n\t\tSystem.out.println(s1.trim().length());\n\n\t}", "public String[] setWord(int position)\r\n{\r\n\t//String word[];\r\n\tif(position == 0)\r\n\t{\r\n\t\tString word[]={\"A\",\"P\",\"P\",\"L\",\"E\"};\r\n\treturn word;\r\n\t}\r\n\telse if(position == 1)\r\n\t{\r\n\t\tString word[]={\"B\",\"R\",\"E\",\"A\",\"D\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 2) \r\n\t{\r\n\t\tString word[]={\"C\",\"A\",\"M\",\"E\",\"L\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 3)\r\n\t{\r\n\t\tString word[]={\"D\",\"O\",\"N\",\"U\",\"T\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 4) \r\n\t{\r\n\t\tString word[]={\"E\",\"A\",\"G\",\"L\",\"E\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 5) \r\n\t{\r\n\t\tString word[]={\"F\",\"L\",\"U\",\"T\",\"E\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 6) \r\n\t{\r\n\t\tString word[]={\"G\",\"H\",\"O\",\"S\",\"T\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 7) \r\n\t{\r\n\t\tString word[]={\"H\",\"O\",\"R\",\"S\",\"E\"};\r\n\t\treturn word;\r\n\t}\r\n\telse if(position == 8) \r\n\t{\r\n\t\tString word[]={\"I\",\"N\",\"D\",\"I\",\"A\"};\r\n\t\treturn word;\r\n\t}\r\n\telse \r\n\t{\r\n\t\tString word[]={\"J\",\"O\",\"K\",\"E\",\"R\"};\r\n\t\treturn word;\r\n\t}\r\n}", "private void analyzeLiterals() {\n\t\t\n\t\tint lastLength = 0;\n\t\tfor(int i = 0; i < literalsList.size(); ++i) {\n\t\t\t// Update lengths of literals array with indexes\n\t\t\tif(lastLength != literalsList.get(i).length() - 5) {\n\t\t\t\tindexes.add(i);\n\t\t\t\tlengths.add(literalsList.get(i).length() - 5); // -5 for \"\"@en\n\t\t\t}\n\t\t\tlastLength = literalsList.get(i).length() - 5;\n\t\t\t\n\t\t}\n\t\t\n\t}", "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "protected void affixStem(\r\n String word, Collection analyses, AnalyserContext context)\r\n {\r\n ConsumerManager cm = context.getConsumerManager();\r\n\r\n AffixCache affixCache = cm.getAffixCache();\r\n String[] splits = affixCache.getSplit();\r\n\r\n int start, until, inc;\r\n boolean suffix = context.suffix();\r\n\r\n if (suffix)\r\n {\r\n start = (splits.length - 1) / 2;\r\n until = 0;\r\n inc = -1;\r\n if (start < until)\r\n {\r\n return;\r\n }\r\n }\r\n else\r\n {\r\n start = 1;\r\n until = (splits.length - 1) / 2;\r\n inc = 1;\r\n\r\n if (start > until)\r\n {\r\n return;\r\n }\r\n }\r\n\r\n String[] lowerCaseSplits = affixCache.getLowerCaseSplit();\r\n\r\n List[] cache = affixCache.getCache();\r\n List[] crossCache = affixCache.getCrossableCache();\r\n\r\n BooleanResults conditionResults = context.getConditionResults();\r\n\r\n AffixConsumer consumer = cm.getAffixConsumer();\r\n consumer.setStems(analyses);\r\n\r\n AffixEntries rulemap = context.getAffixEntries();\r\n AffixEntries previous = null;\r\n \r\n // list of applicable affix maps\r\n List rulesMap = new LinkedList();\r\n\r\n int ll = 0;\r\n int i;\r\n\r\n boolean shortestFirst = context.shortestAffixFirst();\r\n // index of dash; on dash affix do not check affix \r\n int dash = -1;\r\n \r\n for(i = start; i != until; i += inc)\r\n {\r\n char c = lowerCaseSplits[i + i].charAt(suffix ? 0 : ll++);\r\n if ((rulemap = rulemap.getMap(c)) == null)\r\n {\r\n if (previous != null &&\r\n Character.getType(c) == Character.DASH_PUNCTUATION)\r\n {\r\n dash = i;\r\n if (shortestFirst)\r\n {\r\n rulesMap.add(0, previous);\r\n }\r\n else\r\n {\r\n rulesMap.add(previous);\r\n }\r\n i += inc;\r\n }\r\n break;\r\n }\r\n previous = rulemap; \r\n if (shortestFirst)\r\n {\r\n rulesMap.add(0, rulemap);\r\n }\r\n else\r\n {\r\n rulesMap.add(rulemap);\r\n }\r\n }\r\n\r\n if (shortestFirst)\r\n {\r\n i = start;\r\n inc = -inc;\r\n }\r\n else\r\n {\r\n i -= inc;\r\n }\r\n \r\n ListIterator rit = rulesMap.listIterator(rulesMap.size());\r\n\r\n outer: for(; rit.hasPrevious(); i -= inc)\r\n {\r\n Map rules = ((AffixEntries)rit.previous()).getByStrip();\r\n if (rules == null)\r\n {\r\n continue;\r\n }\r\n \r\n // check if remainder satisfies any of rules;\r\n // remainder is the word after append/prepend has been cut off\r\n int j = i + i + 1;\r\n String remainder = splits[j];\r\n String lower = lowerCaseSplits[j];\r\n \r\n // tell conditionResults this is a new check round\r\n conditionResults.nextRound();\r\n Iterator it = rules.values().iterator();\r\n while (it.hasNext())\r\n {\r\n Object o = it.next();\r\n if (o instanceof Collection) // multiple rules with the same strip\r\n {\r\n boolean sub = false;\r\n consumer.clearCases();\r\n // eit runs on rules by strip\r\n Iterator eit = ((Collection)o).iterator();\r\n while (eit.hasNext())\r\n { \r\n AffixEntry affix = (AffixEntry)eit.next();\r\n // do not try an affix with flags'nd case occurring\r\n // in cases - the analysis wouldn't be new\r\n if (consumer.affixDone(affix))\r\n {\r\n continue;\r\n }\r\n\r\n if (dash == i || affix.admitStem(lower, conditionResults))\r\n {\r\n consumer.setAffix(affix, true);\r\n // as we're running on affixes with the same strip,\r\n // stem and entries don't change after strip added to\r\n // remainder first\r\n if (!sub)\r\n {\r\n sub = true;\r\n if (affix.same())\r\n {\r\n if (affixSame(word, affixCache.getLowerCaseWord(),\r\n context, consumer))\r\n {\r\n return;\r\n }\r\n }\r\n else if (dash != i && affix.getStripLength() != 0)\r\n {\r\n String stem = affix.addStrip(remainder);\r\n if (affixStem(\r\n stem, stem.toLowerCase(), context, consumer))\r\n {\r\n return;\r\n }\r\n }\r\n else if (affixStem(remainder, lower, context, consumer))\r\n {\r\n return;\r\n }\r\n }\r\n // affix has changed on consumer!\r\n else if (!consumer.continueStemming(word))\r\n {\r\n return;\r\n }\r\n\r\n cache[i].add(affix);\r\n if (context.top() && affix.crossable())\r\n {\r\n crossCache[i].add(affix);\r\n }\r\n } // end of if affix admits remainder\r\n } // end of iterator on rule collection\r\n } // end of if collection\r\n else // single affix rule\r\n {\r\n AffixEntry affix = (AffixEntry)o;\r\n if (dash == i || affix.admitStem(lower, conditionResults))\r\n {\r\n consumer.setAffix(affix, false);\r\n if (affix.same())\r\n {\r\n if (affixSame(word, affixCache.getLowerCaseWord(),\r\n context, consumer))\r\n {\r\n return;\r\n }\r\n }\r\n else if (dash != i && affix.getStripLength() != 0)\r\n {\r\n // add strip to remainder to get stem\r\n String stem = affix.addStrip(remainder);\r\n if (affixStem(stem, stem.toLowerCase(), context, consumer))\r\n {\r\n return;\r\n }\r\n }\r\n else if (affixStem(remainder, lower, context, consumer))\r\n {\r\n return;\r\n }\r\n\r\n cache[i].add(affix);\r\n // recall that crossStem is called only on top context\r\n if (context.top() && affix.crossable())\r\n {\r\n crossCache[i].add(affix);\r\n }\r\n } // end of if affix admits remainder\r\n } // end of single affix rule\r\n } // end of iterator on rules\r\n } // end of iterator on splits\r\n }", "public boolean check(String str)\n {\n\n int count=0;\n int arr[] = new int[26];\n int i;\n boolean flag=false;\n str = str.replaceAll(\"[^a-zA-Z]\", \"\");\n str.toLowerCase();\n if(str==null) {\n System.out.println(\"string can't be null\");\n }\n else\n {\n if(str.length()==26) {\n for (i = 0; i < str.length(); i++) {\n if (count == 26) {\n flag = true;\n break;\n }\n char k = str.charAt(i);\n int j = (int) k - 'a';\n if (arr[j] == 0) {\n count++;\n arr[j] = 1;\n }\n }\n }\n else\n break;\n\n }\n return flag;\n }", "@Test\n public void findEvenLengthWords() {\n List<String> output = null; // TODO\n\n assertEquals(Arrays.asList(\"in\", \"computer\", \"be\", \"solved\", \"by\", \"adding\", \"of\",\n \"except\", \"many\", \"levels\", \"of\"), output);\n }", "String init() {\n StringBuilder output = new StringBuilder();\n output.setLength(0);\n for (String word: wordList) {\n boolean hasMultipleMatches = false;\n boolean hasAmbiguousMatch = false;\n String bestMatch = null;\n List<String> matches = findExactMatches(word);\n if (matches.size()==1) {\n bestMatch = matches.get(0);\n } else if (matches.size()>1) { // One or more exact matches were found.\n // Multiple matches found. Check to see if there is one which is shorted than the others\n List<String> multipleSameLengthMatches = findLongestMatch(matches);\n bestMatch = multipleSameLengthMatches.get(0);\n if (multipleSameLengthMatches.size()>1) {\n hasMultipleMatches = true;\n }\n } else { // No exact match was found, find longest matching substring\n bestMatch = findBestMatch(word);\n hasAmbiguousMatch = true;\n }\n output.append(bestMatch);\n output.append(hasMultipleMatches?\"!\":\"\");\n output.append(hasAmbiguousMatch?\"?\":\"\");\n output.append(\"\\n\");\n }\n return output.toString();\n }", "@Test\n public void whenEndsWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] post = {'l', 'o'};\n boolean result = ArrayChar.endsWith(word, post);\n assertThat(result, is(true));\n }", "public boolean genStringAsCharArray();", "public String mo26396a(String str) {\n int length = str.length();\n for (int i = 0; i < length; i++) {\n char charAt = str.charAt(i);\n char[][] cArr = this.f18227c;\n if (charAt < cArr.length && cArr[charAt] != null) {\n return mo26403a(str, i);\n }\n }\n return str;\n }", "int getCEs(java.lang.CharSequence r1, long[] r2, int r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.getCEs(java.lang.CharSequence, long[], int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.getCEs(java.lang.CharSequence, long[], int):int\");\n }", "private static void init() {\n\t\tguess = 0;\n\t\ttries = 10;\n\t\tlen = Random.getRand(4, 8);\n\t\tcorrectGuesses = 0;\n\t\twordGen = new RandomWordGenerator(len);\n\t\twordGen.generate();\n\t\tword = wordGen.getWord();\n\t\tguessesResult = new boolean[word.length()];\n\n\t}", "private void updateInternalState()\n {\n m_isCodePointHiragana_ = false;\n m_buffer_.setLength(0);\n m_bufferOffset_ = -1;\n m_CEBufferOffset_ = 0;\n m_CEBufferSize_ = 0;\n m_FCDLimit_ = -1;\n m_FCDStart_ = m_source_.getLength();\n //m_isHiragana4_ = m_collator_.m_isHiragana4_;\n m_isForwards_ = true;\n }", "public search()\n\t { b = new char[INC];\n\t i = 0;\n\t i_end = 0;\n\t }", "Alphabet(String chars) {\n _charsString = chars;\n _chars = new char[chars.length()];\n for (int i = 0; i < _chars.length; i += 1) {\n if (alreadyAdded(chars.charAt(i))) {\n throw new EnigmaException(\"Alphabet cannot have duplicates.\");\n } else {\n _chars[i] = chars.charAt(i);\n }\n }\n }", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "private boolean expandCompositCharAtBegin(char[] dest,int start, int length,\n int lacount) {\n boolean spaceNotFound = false;\n\n if (lacount > countSpacesRight(dest, start, length)) {\n spaceNotFound = true;\n return spaceNotFound;\n }\n for (int r = start + length - lacount, w = start + length; --r >= start;) {\n char ch = dest[r];\n if (isNormalizedLamAlefChar(ch)) {\n dest[--w] = LAM_CHAR;\n dest[--w] = convertNormalizedLamAlef[ch - '\\u065C'];\n } else {\n dest[--w] = ch;\n }\n }\n return spaceNotFound;\n\n }", "private static boolean Ncontains(String word, char a) \n {\n \t// return true of false if the String match char a\n for(int x = 0; x < word.length(); x++)\n {\n if(word.charAt(x) == a)\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\t\tBoolean[] b= new Boolean[26];\n\t\tArrays.fill(b, false);\n\t\tint index=0;\n\t\tString test =\"aabbcc\";\n\t\tfor(int i=0;i<test.length();i++)\n\t\t{\n\t\t\tindex=(int)test.charAt(i)-'a';\n\t\t\tb[index]=true;\n\t\t}\n\t\tfor(int i=0;i<b.length;i++)\n\t\t{\n\t\t\tif(b[i]==false)\n\t\t\t{\n\t\t\t//\tSystem.out.println(\"Not pangram\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t String str = \"Happy%^&*Christmas*&*&*)NewYear\"; \n \n\t // similar to Matcher.replaceAll \n\t str = str.replaceAll(\"\\\\p{Punct}\",\" \"); \n\t \n\t System.out.println(str); \n\n\t}", "public static void computeLetters(Context c) {\n try {\n WordsDatabase base = new WordsDatabase(c);\n SQLiteDatabase db = base.getReadableDatabase();\n //Cursor cursor = db.rawQuery(\"select `set`, name from Words\", null);\n Cursor cursor = db.rawQuery(\"select distinct `set` from Words\", null);\n StringBuilder sb = new StringBuilder();\n if (cursor.moveToFirst()) {\n do {\n String letter = cursor.getString(0);\n if (letter != null)\n letter = letter.trim(); // remove extra spaces just-in-case\n// Log.e(\"Dictée\",\"word: \"+cursor.getString(1) + \" - \"+cursor.getString(0));\n sb.append('\\'');\n sb.append(letter);\n sb.append(\"',\");\n all_letters_array.add(letter);\n } while (cursor.moveToNext());\n }\n cursor.close();\n sb.deleteCharAt(sb.length()-1); // remove the last ','\n all_letters = sb.toString();\n if (last_letter == null || last_letter.isEmpty())\n last_letter = all_letters_array.getLast();\n db.close();\n Set<String> prefs = PreferenceManager.getDefaultSharedPreferences(c).getStringSet(c.getString(R.string.soundsTitle),null);\n if (prefs != null) {\n LinkedList<String> toRemove = new LinkedList<>();\n for (String entry : prefs)\n if (!all_letters_array.contains(entry)) {\n toRemove.add(entry);\n Log.d(\"Removed preference:\", entry);\n }\n prefs.removeAll(toRemove);\n PreferenceManager.getDefaultSharedPreferences(c).edit().\n putStringSet(c.getString(R.string.soundsTitle), prefs)\n .apply();\n }\n } catch (Exception e) {\n Log.e(\"Dictée\",\"Unable to compute letters from database\",e);\n }\n }", "private static void searchWords(boolean[][] check, int row, int col, char[][] boogle, TrieNode root, String str){\n \t\n \tif(root.isLeaf==true) {\n \t\tSystem.out.println(str);\n \t}\n\n \tif(isSafe(check, row, col)){\n \t\tcheck[row][col] = true;\n\n \t\tfor(int i=0; i<SIZE; i++){\n \t\t\tif(root.child[i] != null){\n \t\t\t\tchar c = (char)(i + 'A');\n \t\t\t\tif(isSafe(check, row-1, col) && boogle[row-1][col]==c) searchWords(check, row-1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col+1) && boogle[row-1][col+1]==c) searchWords(check, row-1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col+1) && boogle[row][col+1]==c) searchWords(check, row, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col+1) && boogle[row+1][col+1]==c) searchWords(check, row+1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col) && boogle[row+1][col]==c) searchWords(check, row+1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col-1) && boogle[row+1][col-1]==c) searchWords(check, row+1, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col-1) && boogle[row][col-1]==c) searchWords(check, row, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col-1) && boogle[row-1][col-1]==c) searchWords(check, row-1, col-1, boogle, root.child[i], str+c);\n \t\t\t}\n \t\t}\n \t\tcheck[row][col] = false;\n \t}\n }", "private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }", "public static void main(String[] args) {\n char[][] grid1 = {\n {'c', 'c', 'c', 't', 'i', 'b'},\n {'c', 'c', 'a', 't', 'n', 'i'},\n {'a', 'c', 'n', 'n', 't', 't'},\n {'t', 'c', 's', 'i', 'p', 't'},\n {'a', 'o', 'o', 'o', 'a', 'a'},\n {'o', 'a', 'a', 'a', 'o', 'o'},\n {'k', 'a', 'i', 'c', 'k', 'i'}\n };\n String word1 = \"catnip\";\n String word2 = \"cccc\";\n String word3 = \"s\";\n String word4 = \"bit\";\n String word5 = \"aoi\";\n String word6 = \"ki\";\n String word7 = \"aaa\";\n String word8 = \"ooo\";\n\n char[][] grid2 = {{'a'}};\n String word9 = \"a\";\n System.out.println(find_word_location(grid1, word1));\n System.out.println(find_word_location(grid1, word2));\n System.out.println(find_word_location(grid1, word3));\n System.out.println(find_word_location(grid1, word4));\n System.out.println(find_word_location(grid1, word5));\n System.out.println(find_word_location(grid1, word6));\n System.out.println(find_word_location(grid1, word7));\n System.out.println(find_word_location(grid1, word8));\n System.out.println(find_word_location(grid2, word9));\n }", "public abstract int partialIsValidUtf8(int i, byte[] bArr, int i2, int i3);", "private final boolean vowelinstem()\n\t { int i; for (i = 0; i <= j; i++) if (! cons(i)) return true;\n\t return false;\n\t }", "public static void main(String[] args) {\n\t\tString word = \"SEE\";\n\t\tchar[][] board = { { 'A', 'B', 'C', 'E' }, { 'S', 'F', 'C', 'S' }, { 'A', 'D', 'E', 'E' } };\n\t\tint flag = 0;\n\t\tboolean res = false;\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board[0].length; j++) {\n\t\t\t\tres = searchWord(board, word, 0, new boolean[board.length][board[0].length], i, j);\n\t\t\t\tif (res) {\n\t\t\t\t\tflag = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\n\t}", "private static void rellenarArray(\tfinal String frase,\r\n\t\t\t\t\t\t\t\t\t\tfinal char[][] array ) {\r\n\t\tint currentPos = 0;\r\n\r\n\t\tfor (int fila = 0; fila < array.length; fila++) {\r\n\t\t\tfor (int columna = 0; columna < array[fila].length; columna++) {\r\n\t\t\t\tarray[fila][columna] = currentPos < frase.length() ? frase.charAt( currentPos++ ) : Escitala\r\n\t\t\t\t\t\t.aleatorio();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean Solution(String str)\r\n\t{\r\n\t\t\r\n\t\t//Precondition if null, length <0 // Assuming the String Contains ASCII characters\r\n\t\tif(str==null||str.length()<0||str.length()>128)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t//example:\tString s1=\"abca@d\";\r\n\t\t\r\n\t\t\r\n\t\tboolean[] check=new boolean[256];\r\n\t\t\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(check[str.charAt(i)]);\r\n\t\t\t\r\n\t\t\tif(check[str.charAt(i)])\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\telse\r\n\t\t\t\tcheck[str.charAt(i)]=true;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "private boolean hasConsecutiveSameVowels(String word, int index, char c) {\n return (index + 1 < word.length() && isVowel(word.charAt(index + 1)) && c == word.charAt(index + 1)) ||\n (index - 1 >= 0 && isVowel(word.charAt(index - 1)) && c == word.charAt(index - 1));\n }", "public static void main(String args[]) \n {\n String dictionary[] = {\"GEEKS\", \"FOR\", \"QUIZ\", \"GEE\"}; \n \n // root Node of trie \n TrieNode root = new TrieNode(); \n \n // insert all words of dictionary into trie \n int n = dictionary.length; \n for (int i=0; i<n; i++) \n insert(root, dictionary[i]); \n \n char boggle[][] = {{'G','I','Z'}, \n {'U','E','K'}, \n {'Q','S','E'} \n }; \n \n findWords(boggle, root); \n }", "public static void main(String[] args) {\n\t\tString blah=\"hahho\";\n\t\tString a=new String();\n\t\ta=\"fkahljh;oajf\";\n\t\tString b=new String(\"rkjagklhhrgp\");\n\t\tString c=new String(b);\n\t\tSystem.out.println(blah.length());\n\t\tSystem.out.println(a.length());\n\t\tSystem.out.println(c.length());\n\t\tSystem.out.println(countVowels(blah));\n\t}", "public static boolean isAVowel( String letter ) \r\n { return VOWELS.indexOf(letter) != -1;\r\n }" ]
[ "0.59290063", "0.5294646", "0.52879125", "0.5207366", "0.5038011", "0.5032509", "0.4962922", "0.4893826", "0.48742813", "0.48659992", "0.4860565", "0.48492378", "0.48229176", "0.48140764", "0.48051125", "0.47772714", "0.4769069", "0.47659138", "0.47460246", "0.47359154", "0.47256958", "0.4713863", "0.47023708", "0.4695571", "0.46587092", "0.4648464", "0.46330723", "0.46284026", "0.4617186", "0.46154654", "0.46138418", "0.4609202", "0.46047175", "0.46045622", "0.45962834", "0.4595813", "0.45868373", "0.4582926", "0.45752564", "0.45751718", "0.45728013", "0.45659363", "0.4559193", "0.4556487", "0.4555614", "0.45552", "0.455091", "0.4547854", "0.4527144", "0.45207816", "0.4516535", "0.45039198", "0.44978788", "0.44919696", "0.44880515", "0.44806123", "0.44792655", "0.44733536", "0.4465808", "0.44556203", "0.44540834", "0.44521385", "0.44408947", "0.44375154", "0.44362825", "0.44318867", "0.4430806", "0.44280198", "0.442749", "0.4422808", "0.44172218", "0.44072273", "0.4405259", "0.44008365", "0.43947253", "0.43938202", "0.43868157", "0.4379895", "0.43768358", "0.43767035", "0.4374437", "0.43743184", "0.43704766", "0.43704766", "0.43678978", "0.4366598", "0.43643004", "0.43639946", "0.4361359", "0.43600276", "0.43578988", "0.4357189", "0.43571416", "0.43504724", "0.43486756", "0.43420127", "0.43357527", "0.43328997", "0.43326864", "0.43319872" ]
0.55479515
1
Returns true if a given string is a valid score.
public static boolean isValidScore(String score) { try { return isValidScore(parseCorrectAttempts(score), parseTotalAttempts(score)); } catch (NumberFormatException e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }", "public static boolean isValid(String str)\n\t{\n\t\tboolean len = false;\n\t\tboolean cap = false;\n\t\tboolean small = false;\n\t\tboolean num = false;\n\t\tboolean valid = false;\n\n\t\tchar[] pieces = str.toCharArray();\n\n\t\tif(!(pieces.length<6))\n\t\t{\n\t\t\tlen = true;\n\t\t\tfor(int i=0; i<pieces.length; i++)\n\t\t\t{\n\t\t\t\tif(Character.isLowerCase(pieces[i])) \n\t\t\t\t\tcap = true;\n\t\t\t\telse if(Character.isUpperCase(pieces[i])) \n\t\t\t\t\tsmall = true;\n\t\t\t\telse if(Character.isDigit(pieces[i])) \n\t\t\t\t\tnum = true;\n\t\n\t\t\t\tif(len && cap && small && num)\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "public boolean isCorrect(String str);", "public abstract boolean isValid(String s);", "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "public boolean validate(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tif(!Character.isDigit(c))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isValid(String string){\n\t\tint count = 0;\n\t\t//start count at 0, which resets to 0 every time the string is valid\n\t\tfor(int i = 0; i < string.length(); i++){\n\t\t\t//iterate through the whole string\n\t\t\tif(string.charAt(i) == '('){\n\t\t\t\t//if it is an opening parentheses sign, increment count\n\t\t\t\tcount++;\n\t\t\t} else{\n\t\t\t\t/*\n\t\t\t\t * otherwise, if count is zero, then it is valid until this character which\n\t\t\t\t * is a closing parentheses\n\t\t\t\t */\n\t\t\t\tif(count == 0){\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\t//last case: decrement count, so it is still valid\n\t\t\t\t\tcount--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//return true if the count is 0\n\t\t} return count == 0;\n\t}", "boolean isValid(String word);", "public static boolean check(String s)\n {\n if (s.length() < 0 || s.length() > 10)\n {\n return true;\n }\n for (int i = 0 ; i < s.length(); i++)\n {\n if ((s.charAt(i) < 'a' || s.charAt(i) > 'z') && \n (s.charAt(i) < 'A' || s.charAt(i) > 'Z') && \n (s.charAt(i) < '0' || s.charAt(i) > '9'))\n {\n return true;\n }\n }\n return false;\n }", "public static boolean isValid(String game) {\n return BASE_SCORES.containsKey(game);\n }", "public static boolean isValid(String colour) {\n Matcher matcher;\n matcher = pattern.matcher(colour);\n return matcher.matches();\n }", "public static boolean test (String s){\n\t\t// This pattern tests whether string s contains 3 numbers.\n\t Pattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t Matcher matcher = pattern.matcher(s);\n\t if (matcher.find()){\n\t return true; \n\t } \n\t return false; \n\t }", "public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}", "public static boolean checkValid(String text)\r\n {\n if (text.length() == 0)\r\n {\r\n return false;\r\n }\r\n // should only have characters 0, 1, +, -.\r\n int counter = 0; // will count occurrences of + and - characters\r\n for (int i = 0; i < text.length(); i++)\r\n {\r\n char c = text.charAt(i);\r\n if (\"01+-\".indexOf(c) < 0)\r\n {\r\n return false;\r\n } \r\n if (\"+-\".indexOf(c) >= 0)\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n // should only have one occurrence of a + or - character\r\n if (counter != 1)\r\n {\r\n return false;\r\n }\r\n \r\n // the operator (+ or - character) should not be at the beginning\r\n // or end of the string\r\n char start = text.charAt(0);\r\n char end = text.charAt(text.length() - 1);\r\n if (\"01\".indexOf(start) < 0)\r\n {\r\n return false;\r\n }\r\n if (\"01\".indexOf(end) < 0)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "boolean hasScStr();", "private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }", "public boolean checkValidString(String s) {\n int cmin = 0;\n int cmax = 0;\n for (char c: s.toCharArray()) {\n if (c == '(') {\n cmax++;\n cmin++;\n } else if (c == ')') {\n cmax--;\n cmin = Math.max(cmin - 1, 0);\n } else {\n cmax++;\n cmin = Math.max(cmin - 1, 0);\n }\n if (cmax < 0) return false;\n }\n return cmin == 0;\n }", "public static boolean isValid(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public static boolean isValid(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isValidInput(String input) {\r\n\t\tif (input == null || input.isEmpty())\r\n\t\t\treturn false;\r\n\t\tString inputTokens[] = input.split(\" \");\r\n\t\tif (inputTokens.length < 2)\r\n\t\t\treturn false;\r\n\t\tfor (int i = 0; i < inputTokens.length; i++) {\r\n\t\t\tfor (int j = 0; j < inputTokens[i].length(); j++) {\r\n\t\t\t\tswitch (inputTokens[i].charAt(j)) {\r\n\t\t\t\tcase '!':\r\n\t\t\t\tcase '?':\r\n\t\t\t\tcase '@':\r\n\t\t\t\tcase '#':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\tcase '<':\r\n\t\t\t\tcase '>':\r\n\t\t\t\tcase '&':\r\n\t\t\t\tcase '%':\r\n\t\t\t\tcase '~':\r\n\t\t\t\tcase ';':\r\n\t\t\t\tcase ':':\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '}':\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}", "public static boolean isValidMatricNumber(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public boolean checkInput(String str)\n {\n try\n {\n Integer.parseInt(str);\n } \n catch(NumberFormatException ex)\n {\n return false;\n } \n return true;\n }", "public boolean validate(final String input){\n\n matcher = pattern.matcher(input);\n return matcher.matches();\n\n }", "public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }", "public boolean isValid(String s) {\n if (s.contains(\".\")) {\n String[] part = s.split(\"\\\\.\");\n if (!part[0].equals(\"0\") && part[0].startsWith(\"0\")) {\n return false;\n } else {\n return !part[1].endsWith(\"0\");\n }\n } else {\n /*\n if the point has no decimal points, we can return true if the string is 0 or if it does not start with\n 0 since 01, 04, 06, etc. are not valid\n */\n if (s.equals(\"0\")) {\n return true;\n } else {\n return !s.startsWith(\"0\");\n }\n }\n }", "private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }", "private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }", "public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean isMismatch(double score);", "public boolean isValidForString(String str, char charCode, int position);", "public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }", "boolean isValidValue(String value);", "public static boolean isValid(String s) {\n Deque<Character> stack = new LinkedList<>();\n if (s == null || s.length() == 0) return true;\n for (char c : s.toCharArray()) {\n if (c == '(' || c == '{' || c == '[') {\n stack.push(c);\n continue;\n }\n if (stack.isEmpty()) {\n return false;\n }\n if (c == ')' && stack.pop() != '(') {\n return false;\n } else if (c == '}' && stack.pop() != '{') {\n return false;\n } else if (c == ']' && stack.pop() != '[') {\n return false;\n }\n }\n return stack.size() == 0;\n }", "public abstract boolean isValidValue(String input);", "public boolean isValid_(String s) {\n\n if (s.length() % 2 != 0){\n return false;\n }\n\n Stack st = new Stack();\n\n for (int i = 0; i < s.length(); i++){\n\n String cur = String.valueOf(s.charAt(i));\n\n if (cur.equals(\"(\")){\n st.push(\")\");\n continue;\n }\n else if (cur.equals(\"{\")){\n st.push(\"}\");\n continue;\n }\n else if (cur.equals(\"[\")){\n st.push(\"]\");\n continue;\n }\n else{\n if (st.empty()){\n return false;\n }else{\n String _cur = (String) st.pop();\n if (!_cur.equals(cur)){\n return false;\n }\n }\n }\n\n }\n return true ? st.empty() : false;\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isValid(String s) {\n \tif (s == null || s.length() == 0) {\n \t\treturn false;\n \t}\n \t\n \tStack<Character> st = new Stack<Character>();\n \tst.push(s.charAt(0));\n \tfor (int i = 1; i < s.length(); ++i) {\n \t\tif (st.empty()) {\n \t\t\tst.push(s.charAt(i));\n \t\t\tcontinue;\n \t\t}\n \t\tchar c = st.peek();\n \t\tif (c == '{') {\n\t\t\t\tif (s.charAt(i) == '}') {\n\t\t\t\t\tst.pop();\n\t\t\t\t} else {\n\t\t\t\t\tst.push(s.charAt(i));\n\t\t\t\t}\n \t\t} else if (c == '(') {\n \t\t\tif (s.charAt(i) == ')') {\n \t\t\t\tst.pop();\n \t\t\t} else {\n \t\t\t\tst.push(s.charAt(i));\n \t\t\t}\n \t\t} else if (c == '[') {\n \t\t\tif (s.charAt(i) == ']') {\n \t\t\t\tst.pop();\n \t\t\t} else {\n \t\t\t\tst.push(s.charAt(i));\n \t\t\t}\n \t\t} else {\n \t\t\tst.push(s.charAt(i));\n \t\t}\n \t}\n \t\n \treturn st.size() == 0;\n }", "static String isValid(String s) {\n\n\t\tMap<Character, Integer> charMap = new HashMap<>();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (charMap.get(s.charAt(i)) == null) {\n\t\t\t\tcharMap.put(s.charAt(i), 1);\n\t\t\t} else {\n\t\t\t\tint value = charMap.get(s.charAt(i));\n\t\t\t\tcharMap.put(s.charAt(i), value + 1);\n\t\t\t}\n\t\t}\n\n\t\tint highest = 0;\n\t\tint secondHighest = 0;\n\t\tint singleCharcount = 0;\n\t\tfor (Map.Entry<Character, Integer> entry : charMap.entrySet()) {\n\t\t\tint num = entry.getValue();\n\t\t\tif (num == 1) {\n\t\t\t\tsingleCharcount++;\n\t\t\t\tif (singleCharcount >= 2) {\n\t\t\t\t\treturn \"NO\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (num > highest) {\n\t\t\t\tsecondHighest = highest;\n\t\t\t\thighest = num;\n\t\t\t} else if (num > secondHighest) {\n\t\t\t\tsecondHighest = num;\n\t\t\t}\n\t\t}\n\n\t\tif (highest - secondHighest > 2) {\n\t\t\treturn \"NO\";\n\t\t} else {\n\t\t\treturn \"YES\";\n\t\t}\n\t}", "public static boolean isIntValid (String str) {\r\n try {Integer.parseInt(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public static boolean isRule(String keyString) {\n\t\treturn keyString.toLowerCase().equals(KEY_RULE_ABV);\n\t}", "public boolean matches(String arg) {\n switch (this.type) {\n case STRING:\n return true;\n case INTEGER:\n return arg.matches(\"\\\\d+\");\n default:\n /* The following default block can never be executed (because all Types are covered), but it must be\n * added, because otherwise I would get a VSCode error (saying that this method must return a boolean).\n */\n throw new IllegalArgumentException(\"The developer made a mistake. Please contact him to solve this\"\n + \" problem.\");\n }\n }", "public static boolean isValidSSN(String s) {\r\n\r\n\t\t// Provjeravamo duzinu SSN broja.\r\n\t\tif (s.length() != 11) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\t// Provjerava da li su brojevi na pozicijama.\r\n\t\t\tif (i >= 0 && i <= 2 || i == 4 || i == 5 || i >= 7 && i <= 10) {\r\n\t\t\t\t// Ako nije broj vrati false.\r\n\t\t\t\tif (!isNumber(s.charAt(i))) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Provjerava da li su unijete povlake (-) na poziciji 4 i 7.\r\n\t\t\tif (i == 3 || i == 6) {\r\n\t\t\t\t// Ako nisu povlake vrati false.\r\n\t\t\t\tif (s.charAt(i) != '-') {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Ako je sve proslo bez greske vraca true;\r\n\t\treturn true;\r\n\t}", "boolean inputValid(String s) {\n\n if (s.length() == 0) {\n return false;\n }\n\n //check whether there are wrong commas\n for (int ii = 1; ii < s.length() - 1; ii++) {\n if (s.charAt(ii) == ',') {\n if(!s.contains(\"log\")) {\n resS = \"There are wrong commas\";\n return false;\n }\n }\n }\n\n //check whether there are multiple points\n if(s.charAt(0)=='.' || s.charAt(s.length()-1)=='.') return false;\n for (int ii = 1; ii < s.length() - 1; ii++) {\n if (s.charAt(ii) == '.') {\n if (!Character.isDigit(s.charAt(ii - 1))) {\n resS=\"These are wrong points.\";\n return false;\n } else if (!Character.isDigit(s.charAt(ii + 1))) {\n resS=\"These are wrong points.\";\n return false;\n } else {\n for (int jj = ii + 2; jj < s.length(); jj++) {\n if (s.charAt(jj) == '.') {\n String ss = s.substring(ii + 2, jj);\n if (!(ss.contains(\"+\") || ss.contains(\"-\") || ss.contains(\"*\") || ss.contains(\"/\") || ss.contains(\"%\")\n || ss.contains(\"^\") || ss.contains(\")\"))) {\n resS=\"These are wrong points.\";\n return false;\n }\n }\n }\n }\n }\n }\n ArrayList<Token> operation = tokenize(s);\n return isNumberOrOpe(operation) && isOpePosRight(operation) && isValidparentheses(operation) && isValidTan(operation) && isLogWrong(operation);\n }", "public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}", "public boolean isLuhnValid(String string) {\n\t\tstring = string.replaceAll(\"\\\\ \",\"\");\t\n\n\t\t/*\n\t\t * return false immediately if the input isn't formatted correctly\n\t\t */\n\t\tif (string.length()<=1) {\n\t\t\treturn false;\n\t\t}else if(string.contains(\"a\")) {\n\t\t\treturn false;\n\t\t}else if(string.contains(\"-\")) {\n\t\t\treturn false;\n\t\t}\n\n\t\t//initiate reference for the sum of values which will be tested at the end for validity\n\t\tint sumOfValues = 0;\n\n\t\t/*\n\t\t * Iterate backwards through every other number and multiply by two\n\t\t * Check if value is above 9, otherwise just add it to the overall\n\t\t */\n\t\tfor (int i = string.length()-2; i>=0; i = i-2) {\n\t\t\tsumOfValues += Character.getNumericValue(string.charAt(i)) * 2;\n\t\t\tif ((Character.getNumericValue(string.charAt(i)) * 2) > 9) {\n\t\t\t\tsumOfValues -= 9;\n\t\t\t}\n\t\t}\n\t\t//add the other values that aren't being manipulated to the sum total\n\t\tfor (int i = string.length()-1; i>=0; i = i-2) {\n\t\t\tsumOfValues += Character.getNumericValue(string.charAt(i));\n\t\t}\n\t\t//Check if the sum passes the criteria. if so, return true.\n\t\tif (sumOfValues%10==0) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean hasAtleastOneNumberWithOptionalSpace(String stringToValidate) {\n\n\t\tboolean valid = true;\n\t\t\n\t\tif(StringUtils.isBlank(stringToValidate)) {\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\tif (!StringUtils.isNumericSpace(stringToValidate)) {\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "public boolean isValid(String s) {\n\n if (s.length() % 2 != 0){\n return false;\n }\n\n HashMap<String, String> map = new HashMap<>();\n Stack st = new Stack();\n\n map.put(\"(\", \")\");\n map.put(\"{\", \"}\");\n map.put(\"[\", \"]\");\n\n for (int i = 0; i < s.length(); i++){\n String cur = String.valueOf(s.charAt(i));\n if (st.empty() && !map.containsKey(cur)){\n return false;\n }\n if (map.containsKey(cur)){\n st.push(cur);\n }\n else{\n String popElement = (String) st.pop();\n String expect = map.get(popElement);\n if (!expect.equals(cur)){\n return false;\n }\n }\n }\n return true ? st.empty() : false;\n }", "@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}", "public boolean isMatch(String s, String p) {\n\t\treturn isMatch1(s, 0, p, 0);\n\t}", "private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isValid (String c)\n {\n\tif (c.equals (\"f\") || c.equals (\"F\") || c.equals (\"Fire\") || c.equals (\"FIRE\") || c.equals (\"fire\") || c.equals (\"Water\") || c.equals (\"water\") || c.equals (\"WATER\") || c.equals (\"W\") || c.equals (\"w\") || c.equals (\"GRASS\") || c.equals (\"grass\") || c.equals (\"Grass\") || c.equals (\"G\") || c.equals (\"g\"))\n\t return true;\n\telse\n\t return false;\n }", "public boolean isInputValid(ConversationContext context, String s)\r\n/* */ {\r\n/* 135 */ return (s.equalsIgnoreCase(\"one\")) || (s.equals(\"1\")) || (s.equalsIgnoreCase(\"two\")) || (s.equals(\"2\")) || (s.equalsIgnoreCase(\"zero\")) || (s.equals(\"0\"));\r\n/* */ }", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "public boolean isValid(String s) {\n if (s.charAt(0) == ')' || s.charAt(0) == ']' || s.charAt(0) == '}') {\n return false;\n }\n Stack<Character> stack = new Stack<>();\n for (char c : s.toCharArray()) {\n switch (c) {\n case '(':\n case '[':\n case '{':\n stack.push(c);\n break;\n case ')':\n if (stack.isEmpty() || stack.pop() != '(') {\n return false;\n }\n break;\n case '}':\n if (stack.isEmpty() || stack.pop() != '{') {\n return false;\n }\n break;\n case ']':\n if (stack.isEmpty() || stack.pop() != '[') {\n return false;\n }\n break;\n }\n }\n return stack.isEmpty();\n }", "public boolean isAddressValid(String address) {\n\t\tString pattern = \"(^\\\\d+(w|e|s|n)\\\\d+\\\\s\\\\w+\\\\s\\\\w+\\\\.)\";\n\t\tboolean isMatch = Pattern.matches(pattern, address);\n return isMatch;\n }", "public boolean check (String s){\n\n boolean value = false;\n\n if (s.length()>=3){\n\n for (int i= 0;i<s.length();i++){\n\n if (s.charAt(i)>= 'A' && s.charAt(i)<= 'Z' || s.charAt(i) >='a' &&s.charAt(i)<='z'){\n\n value = true;\n }\n else {\n value = false;\n return value;\n\n\n }\n }\n }\n\n\n return value;\n }", "public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "public static boolean isInt(String str)\r\n\t{\r\n\t\tif (str == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint length = str.length();\r\n\t\tif (length == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\tif (str.charAt(0) == '-') {\r\n\t\t\tif (length == 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti = 1;\r\n\t\t}\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tif (c < '0' || c > '9') {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}", "public static boolean isNumber(String string) {\n\n\t\ttry {\n\t\t\tLong.parseLong(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public boolean isValid(String s) {\n Stack<Character> st = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n char input = s.charAt(i);\n if (input == '(' || input == '[' || input == '{') {\n st.push(input);\n } else {\n if (!st.isEmpty()) {\n char bracket = st.pop();\n switch (bracket) {\n case '[':\n if (input != ']') {\n return false;\n }\n break;\n case '(':\n if (input != ')') {\n return false;\n }\n break;\n default:\n if (input != '}') {\n return false;\n }\n\n }\n } else {\n return false;\n }\n }\n }\n return st.isEmpty();\n }", "private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }", "public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }", "public Boolean isIdentifier(String string) {\n\t\tif (string == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn string.matches(\"[0-9].*\");\n\t}", "public static boolean isInt(String s){\n boolean flag = true;\n flag = ((s.charAt(0) >= '0' && s.charAt(0) <= '9') || s.charAt(0) == '-' || s.charAt(0) == '+' );\n int i = 1;\n while(flag && i < s.length()){\n flag = (s.charAt(i) >= '0' && s.charAt(i) <= '9' );\n i++;\n }\n return flag;\n }", "private static boolean isKata(String s) {\n\t\tchar c = s.charAt(0);\n\t\tif (c < '0' || c > '9') return true;\n\t\t\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn false;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean matches(String proposition, String answer) {\n\t\ttry {\r\n\t\t\tdouble p = Double.parseDouble(proposition.replace(\" \", \"\"));\r\n\t\t\tdouble a = Double.parseDouble(answer.replace(\" \", \"\"));\r\n\t\t\tif (p == a) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// not numbers, continue\r\n\t\t}\r\n\r\n\t\tproposition = normalize(proposition);\r\n\t\tanswer = normalize(answer);\r\n\r\n\t\t// check if we have an exact match after normalization\r\n\t\tif (StringUtils.equals(proposition, answer)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// be permissive regarding the answer (experimental). Seems to work\r\n\t\t// quite well\r\n\t\tif (answer.length() >= 4) {\r\n\t\t\tint diff = (answer.length() / 4);\r\n\t\t\tif (StringUtils.getLevenshteinDistance(proposition, answer) <= diff) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\r\n\t}", "public static boolean hasMatch(String s, int dict) {\n if (s.length()==0) {return false;}\n if (isInteger(s)) {return true;}\n //else if (s.length()==1) {return true;}\n else {\n int len = s.length();\n boolean has = false;\n\n try {\n String file = \"../dicts/total/try\"+dict+\"/total.txt\";\n BufferedReader br = new BufferedReader(new FileReader(file));\n String line = br.readLine();\n int count = 0;\n boolean done = false;\n while (line != null && !done) {\n //process lines\n String[] split = line.split(\"\\t\");\n if (s.length()>Integer.parseInt(split[0])) {\n done = true;\n has = false;\n } else if (s.toLowerCase().equals(split[1].toLowerCase())) {\n done = true;\n has = true;\n }\n line = br.readLine();\n count++;\n }\n } catch (FileNotFoundException ex) {\n has = false;\n } catch (IOException ex) {\n has = false;\n }\n\t\n return has;\n }\n }", "public static boolean isNumeric(String aString) {\r\n if (aString == null) {\r\n return false;\r\n } else if (aString.isEmpty()) {\r\n return false;\r\n } else if (aString.indexOf(\".\") != aString.lastIndexOf(\".\")) {\r\n return false;\r\n } else {\r\n int counter = 0;\r\n for ( char c : aString.toCharArray()) {\r\n if ( Character.isDigit(c)) {\r\n counter++;\r\n }\r\n }\r\n return counter == aString.length();\r\n// if (counter == aString.length()) {\r\n// return true;\r\n// }\r\n// return false;\r\n }\r\n }", "public static boolean isValidStudentId(String test) {\n return test.matches(STUDENT_ID_VALIDATION_REGEX);\n }", "boolean hasString();", "public static boolean isValidEducation(String test) {\n if (!test.matches(EDUCATION_VALIDATION_REGEX)) {\n return false;\n }\n\n String[] splitTest = test.split(\"\\\\s+\");\n int grade = Integer.valueOf(splitTest[1]);\n\n if (splitTest[0].equals(\"Primary\")) {\n return grade <= 6;\n } else if (splitTest[0].equals(\"Secondary\")) {\n return grade <= 5;\n } else if (splitTest[0].equals(\"JC\")) {\n return grade <= 2;\n } else {\n return false;\n }\n }", "private boolean okay( String s )\n {\n try{\n double x = Double.parseDouble( s );\n return true;\n }\n catch(Exception e)\n {\n return false;\n }\n }", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}", "public static boolean isNumber(String s, int radix) {\n try {\n new BigDecimal(new BigInteger(s, radix));\n\n return true;\n } catch (Exception e) {\n }\n\n return false;\n }", "public static boolean isValidMessage(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty() || str.equals(\"-\"))\n return false;\n\n int startIndex = str.startsWith(\"-\") ? 1 : 0;\n for (int i = startIndex; i < str.length(); i++)\n if (Character.digit(str.charAt(i), 10) < 0)\n return false;\n return true;\n }", "public abstract boolean accepts(String string);", "private static boolean nameIsValid(String name) {\n if (name.length() < 4 || name.length() > 11)\n return false;\n\n for (int i = 0; i < name.length(); i++) {\n int charIndex = name.charAt(i);\n\n // Each character can only be a letter or number\n if (charIndex < 48 || (charIndex > 57 && charIndex < 65) || (charIndex > 90 && charIndex < 97) || charIndex > 122)\n return false;\n }\n\n return true;\n }", "public static boolean checkForValidInput(String input) {\n try {\n int inputValue = Integer.parseInt(input);\n return inputValue >= 0 && inputValue <= 8;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private boolean checkInCashe(String s) {\n return true;\n }", "public static boolean check(String str) {\n return str.contains(\"oo\");\n }", "@Override\r\n\tpublic boolean checkQuizAnswer(String points) {\n\t\tint score = Integer.parseInt(points);\r\n\t\tif(score >80) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\t\treturn false;\r\n\t}", "private static boolean valid_input(String user_input) {\n \n boolean output = false;\n \n if(user_input.length() == 2){\n \n output = (user_input.substring(0,1).matches(\"[0-9]\") && user_input.substring(1,2).matches(\"[a-zA-Z]\"));\n } else if (user_input.length() == 3) {\n \n output = (user_input.substring(0,2).matches(\"[1-2][0-9]\") && user_input.substring(2,3).matches(\"[a-zA-Z]\"));\n \n if(Integer.parseInt(user_input.substring(0,2))>TicTacToe.game.gridSize){\n output = false;\n }\n }\n \n return output;\n }", "public static boolean isValidTime(String test) {\n try {\n LocalTime.parse(test, TIME_FORMATTER);\n LocalTime.parse(test, TIME_FORMATTER_STRICT);\n return true;\n } catch (DateTimeParseException ex) {\n return false;\n }\n }", "protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static boolean validateName(String name){\n return name.matches(NAME_PATTERN);\n }", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\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 isValidThreshold(String test) {\n try {\n return Integer.parseInt(test) >= MIN_THRESHOLD && test.matches(VALIDATION_REGEX);\n } catch (NumberFormatException e) {\n return false;\n }\n }" ]
[ "0.7105013", "0.67742366", "0.673937", "0.673516", "0.66408443", "0.6583499", "0.65618247", "0.6454565", "0.64138746", "0.63057154", "0.6241244", "0.61243176", "0.6123747", "0.61234343", "0.60685235", "0.60642433", "0.6060494", "0.602989", "0.6024905", "0.6024905", "0.6003471", "0.5994931", "0.5994401", "0.59840035", "0.5978715", "0.5974991", "0.59593546", "0.5954833", "0.5936889", "0.59287876", "0.5911798", "0.59022886", "0.58990574", "0.58907557", "0.58875585", "0.58671874", "0.585612", "0.5850305", "0.5848631", "0.583451", "0.5831894", "0.58172846", "0.5806076", "0.5799686", "0.57893956", "0.57804316", "0.57763475", "0.57742894", "0.57709444", "0.57578784", "0.57483727", "0.5739902", "0.573874", "0.5723417", "0.5712592", "0.57003653", "0.56899166", "0.5686625", "0.56851244", "0.56802136", "0.56765854", "0.56763124", "0.5665539", "0.5664769", "0.56641513", "0.5655191", "0.5648826", "0.56474894", "0.56407475", "0.56311274", "0.56252015", "0.5615361", "0.5608712", "0.55975515", "0.5593692", "0.5593661", "0.5592617", "0.55882466", "0.5583642", "0.5581603", "0.55781615", "0.5577022", "0.557702", "0.55742615", "0.5573487", "0.5565111", "0.5554637", "0.5554231", "0.55533713", "0.55495626", "0.554667", "0.5545131", "0.55448395", "0.55391735", "0.55388397", "0.55300593", "0.55268997", "0.5519958", "0.5519946", "0.5517449" ]
0.7693025
0
Returns true if given integers form valid score.
public static boolean isValidScore(int correctAttempts, int totalAttempts) { return 0 <= correctAttempts && correctAttempts <= totalAttempts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isValid(int number)", "boolean isMismatch(double score);", "public boolean isValid(int[] grades) throws ArithmeticException {\n if ((grades == null) || (grades.length == 0)) {\n throw new ArithmeticException(\"There is no grade available.\");\n }\n \n final int NUMBER_OF_STUDENTS = grades.length;\n \n for (int studentId = 0; studentId < NUMBER_OF_STUDENTS; studentId++) {\n \n if ((grades[studentId] < 0) || (grades[studentId] > 100)) {\n return false;\n }\n }\n \n return true;\n }", "public static boolean isValidScore(String score) {\n\n try {\n return isValidScore(parseCorrectAttempts(score), parseTotalAttempts(score));\n } catch (NumberFormatException e) {\n return false;\n }\n }", "@Override\r\n\tpublic boolean checkQuizAnswer(String points) {\n\t\tint score = Integer.parseInt(points);\r\n\t\tif(score >80) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\t\treturn false;\r\n\t}", "protected abstract boolean canGenerateScore();", "public boolean isValid(final int value) {\n\t\tif ((value <= this.maxInteger) && (value >= this.minInteger))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "boolean hasInt();", "private boolean isSquareQuantityValid() {\n int blueSquares = 0;\n int yellowSquares = 0;\n int greenSquares = 0;\n int whiteSquares = 0;\n int orangeSquares = 0;\n int redSquares = 0;\n\n for (RubiksFace face : rubiksFaceList) {\n for (RubiksColor color : face.getRubiksColors()) {\n switch(color) {\n case RED:\n redSquares++;\n break;\n case GREEN:\n greenSquares++;\n break;\n case BLUE:\n blueSquares++;\n break;\n case YELLOW:\n yellowSquares++;\n break;\n case ORANGE:\n orangeSquares++;\n break;\n case WHITE:\n whiteSquares++;\n break;\n }\n }\n }\n\n System.out.println(\"BLUE: \" + blueSquares);\n System.out.println(\"YELLOW: \" + yellowSquares);\n System.out.println(\"GREEN: \" + greenSquares);\n System.out.println(\"WHITE: \" + whiteSquares);\n System.out.println(\"ORANGE: \" + orangeSquares);\n System.out.println(\"RED: \" + redSquares);\n\n return (blueSquares == 9 && yellowSquares == 9 && greenSquares == 9 && whiteSquares == 9 && orangeSquares == 9 && redSquares == 9);\n }", "public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "private boolean isAppropriated(int[] arr) {\n boolean is_correct = false;\n for (int i : arr) {\n if (i > 9999) {\n is_correct = true;\n } else\n is_correct = false;\n }\n return is_correct;\n }", "public static boolean correctRange(int [] input) {\n\t\treturn (input[0] > 0) && (input[1] > 0) && (input[2] > 0);\n\t}", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "boolean hasIntValue();", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public static boolean isValidInt(String s)\n {\n for (int i = 0; i < s.length(); i++)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}", "public static boolean isIntValid (String str) {\r\n try {Integer.parseInt(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "public boolean validate(int value) {\n return (Integer.toString(value).length() == 4) ? true : false;\n }", "public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n \n Scanner scanin = new Scanner(args[0]);\n Scanner scanin2 = new Scanner(args[1]);\n\t \n if(!scanin.hasNextInt() || !scanin2.hasNextInt()){\n System.out.println(\"Invalid argument type detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n\t else\n return true;\n }", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testIsValidInteger() {\n System.out.println(\"isValidInteger\");\n String integer = \"6.8\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidInteger(integer);\n assertEquals(expResult, result);\n }", "private static boolean validateInteger(String intString) {\n try {\n Integer.parseInt(intString);\n } catch (NumberFormatException e) {\n // Not a valid integer\n return false;\n }\n return true;\n }", "public static boolean validate(int[] numbers) {\r\n\t\tfor (int i = 0; i < numbers.length - 1; i++) {\r\n\t\t\tif (numbers[i] > numbers[i + 1]) {\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 numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}", "public static boolean isGood(int num){\r\n\t\tif ((num<0)||(num>6)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private boolean checkInteger(byte buffer[], int sindex, int findex)\n {\n \t\t// 첫 글자를 체크한다. (+, -가 올수 있다.)\n \t\tbyte b = buffer[sindex];\n \t\tif ((b < 48) || (b > 57)) {\n \t\t\tif (b != 45)\n \t\t\t\tif (b != 43) return false;\n \t\t}\n \t\tfor (int i=sindex+1; i<findex; i++) {\n \tif ((buffer[i] < 48) || (buffer[i] > 57)) return false;\n \t\t}// end of for\n \t\treturn true;\n \t}", "private boolean determineValid(){\n for(Integer val : group){\n if(!racers.containsKey(val)){\n WrongNumber = val;\n return false;\n }\n }\n return true;\n }", "private void checkScores(int expectP1, int expectP2) {\n\n\t\tassertTrue(p1ScoreLabel.getText().matches(\"[^\\\\d]*\" + expectP1 + \"[^\\\\d]*\"));\n\n\t\tassertTrue(p2ScoreLabel.getText().matches(\"[^\\\\d]*\" + expectP2 + \"[^\\\\d]*\"));\n\n\t}", "private static boolean predictWinner1(int[] scores) {\n Map<String, Integer> map = new HashMap<>();\n return predictWinner1(scores, 0, scores.length - 1, 0, map) >= 0 ? true : false;\n }", "public boolean allValuesInRange(int[] is) {\n\r\n\t\tfor (int i : is) {\r\n\r\n\t\t\tif (i < 1 || i > MAX_BOARD_SIZE)\r\n\t\t\t\treturn false;\r\n\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\r\n\t}", "boolean isInt(TextField input);", "@Override\n\tpublic boolean check(int[] digits) {\n\t\tif (digits.length <= 1 || digits == null) {\n\t\t\treturn false;\n\t\t}\n\t\tint total = 0;\n\t\tint check = digits[digits.length - 1]; // check digit\n\t\tboolean alternate = true;\n\n\t\tfor (int i = digits.length - 2; i >= 0; i--) {\n\n\t\t\t// double the value of every second digit\n\t\t\tif (alternate) {\n\t\t\t\tdigits[i] *= 2;\n\t\t\t}\n\n\t\t\tif (digits[i] > 9) {\n\t\t\t\tdigits[i] -= 9;\n\t\t\t}\n\n\t\t\talternate = !alternate;\n\t\t\ttotal += digits[i];\n\t\t}\n\n\t\ttotal += check; // add check digit to total\n\n\t\treturn total % 10 == 0;\n\t}", "boolean isWinningState(int score)\n\t{\n\t\treturn winningScores.stream()\n\t\t\t.anyMatch(winningScore -> (winningScore & score) == winningScore);\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 }", "private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "boolean isPerfect(double score);", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "private void checkMyScore() {\n\n int[] scores = ar.checkMyScore();\n System.out.println(\" My score: \");\n int level = 1;\n for (int i : scores) {\n System.out.println(\" level \" + level + \" \" + i);\n if (i > 0)\n solved[level - 1] = 1;\n level++;\n }\n }", "public boolean in1020(int a, int b) {\n return ((a >= 10 && a <= 20) || (b >= 10 && b <= 20));\n}", "@Test\n public void allOnesExpected_20(){\n String input = \"11111111111111111111\";\n assertEquals(game.scoreOfGame(input),20);\n }", "private boolean isValidQuiz3(double quiz3)\n\t{\n\t\treturn quiz3 >= 0 && quiz3 <= 10;\n\t}", "public static boolean isInt(String val){\n\t try\n\t {\n\t Integer.parseInt(val);\n\t return true;\n\t } catch (NumberFormatException ex)\n\t {\n\t \tSystem.out.println(\"Please enter integer\");\n\t return false;\n\t }\n\t \n\t}", "public boolean check(int value);", "public boolean isInteger(int min, int max){\n if(!isInteger()){\n return false;\n } \n //Tomo el valor del campo y lo paso a un entero\n int valor=Integer.parseInt(txt.getText());\n \n if(valor >=min && valor <= max){\n return true;\n }\n return error(\"El valor debe estra comprendido entre \"+min+\" y \"+max+\" !!\");\n }", "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 }", "@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }", "boolean isNearMatch(double score);", "public abstract boolean higherScoresAreBetter();", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "static boolean sumChecker( int[] arrayOfNumbers) {\n\t\tint intArraySum = 0; \n\t\tfor (int i : arrayOfNumbers) { \n\t\t\tintArraySum += arrayOfNumbers[i];\n\t\t}\n\t\tif (intArraySum >= 100) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t\t \n\t\t}\n\t}", "public boolean isValid(int i, int j) {\r\n\t\tif (i < 0 || j < 0 || i >= 9 || j >= 11)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public static void main(String[]args){\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Write the score >> \");\n\n int score = scanner.nextInt();\n\n if (score >= 60){\n\n System.out.println(\"Pass\");\n }else\n\n /*if (score < 60)*/{\n\n System.out.println(\"Fail\");\n }\n\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static boolean checkNum(int[][] puzzle){\n for(int i = 0; i < 9; i++){\n for(int j = 0; j < 9; j++){\n if(puzzle[i][j] != 0){\n if(!checkNumH(i, j, puzzle)){\n return false;\n }\n }\n }\n }\n return true;\n }", "public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean isInt(String pram)\r\n {\r\n try{\r\n Integer.parseInt(pram);\r\n return true;\r\n }catch(NumberFormatException e){\r\n return false;\r\n }\r\n }", "private boolean processMatchScore( String score, TennisMatchSetScore scores) {\r\n // score length is 0, base case\r\n if (score.length() == 0) {\r\n return true;\r\n } else {\r\n // standard call for the recursive shrinking of the problem\r\n Scanner iteratingScore = new Scanner(score).useDelimiter(\",\");\r\n String score1 = iteratingScore.next();\r\n Scanner scanner1 = new Scanner(score1).useDelimiter(\"-\");\r\n int player1Games = scanner1.nextInt();\r\n int player2Games = scanner1.nextInt();\r\n\r\n // increment scores depending on who won\r\n if (player1Games > player2Games) {\r\n scores.setsPlayer1++;\r\n } else if (player1Games < player2Games) {\r\n scores.setsPlayer2++;\r\n } else {\r\n return false;\r\n }\r\n\r\n if (score1.length() == score.length()) {\r\n return true;\r\n } else {\r\n // recursively find the leftovers and call the method again\r\n String leftover = score.substring(score1.length() + 1);\r\n return processMatchScore(leftover, scores);\r\n }\r\n }\r\n }", "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}", "private boolean isIsbn10(String code) {\n return checkDigit(code, 10);\n }", "boolean isAllowed(int rgb, float[] hsl);", "public static boolean isValidValue(int value) {\n return (value >= MIN_VALUE && value <= MAX_VALUE);\n }", "public static boolean checkIfArmstrongsNumber(int number){\n\t\tboolean isAremstrongNumber = false;\n\t\tint sum =0;\n\t\tchar [] numberArray =Integer.toString(number).toCharArray();\n\t for(char numbers:numberArray){\n\t \t Integer num=Integer.parseInt(Character.toString(numbers));\n\t \t sum=sum+(num*num*num);\n\t \t \n\t }\n\t\tif(sum == number){\n\t\t\tisAremstrongNumber = true;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\treturn isAremstrongNumber;\n\t\t\n\t}", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}", "private boolean checkAttemptValid( String attempt ) {\r\n String tokenString = attempt.replaceAll( \"[^\\\\d]\", \" \");\r\n StringTokenizer st = new StringTokenizer(tokenString);\r\n int[] userNums = new int[st.countTokens()];\r\n int i=0;\r\n while(st.hasMoreTokens()) {\r\n int num = Integer.parseInt( st.nextToken());\r\n userNums[i] = num;\r\n i++;\r\n }\r\n if( !numbersCorrect( userNums )) {\r\n target.reply(\"You used a number not in the selection!\");\r\n return false;\r\n }\r\n //all numbers are correct, so now check remaining operators.\r\n //we gradually strip away everything allowed. If anything is left after that,\r\n //the attempt is invalid.\r\n attempt = attempt.replaceAll(\"\\\\d\", \"\"); //strip all numbers\r\n attempt = attempt.replaceAll(\"/\", \"\"); //strip \\ sign\r\n attempt = attempt.replaceAll(\"\\\\*\", \"\"); //strip *\r\n attempt = attempt.replaceAll(\"\\\\+\", \"\"); //strip +\r\n attempt = attempt.replaceAll(\"\\\\-\", \"\"); //strip -\r\n attempt = attempt.replaceAll(\"\\\\)\", \"\"); //strip )\r\n attempt = attempt.replaceAll(\"\\\\(\", \"\"); //strip (\r\n attempt = attempt.replaceAll(\" \", \"\"); //zap spaces\r\n\r\n return attempt.length() <= 0;\r\n }", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty() || str.equals(\"-\"))\n return false;\n\n int startIndex = str.startsWith(\"-\") ? 1 : 0;\n for (int i = startIndex; i < str.length(); i++)\n if (Character.digit(str.charAt(i), 10) < 0)\n return false;\n return true;\n }", "private boolean isInteger(String userInput){\n if (userInput.matches(\"[0-9]+\")) {\n return true;\n }\n return false;\n }", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "private boolean isAllNums(String fieldVal){\r\n // Get rid of all whitespace\r\n String val = fieldVal.replaceAll(\"\\\\s\",\"\").trim();\r\n // check for presence of letters in the string, ignoring '()' and '-'\r\n for (int i=0; i < val.length(); i++){\r\n if (val.charAt(i) != '(' || val.charAt(i) != ')' || val.charAt(i) != '-'){\r\n if (Character.isLetter(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true; \r\n }", "public static boolean isValidCube(Cube cube){\n\t\tint[] bins = new int[6];\n\t\tfor(int f = 0; f<6; f++){\n\t\t\tfor(int i = 0; i<3; i++){\n\t\t\t\tfor(int j = 0 ; j<3; j++){\n\t\t\t\t\tbins[cube.getSquare(f, i, j)]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < bins.length; i++){\n\t\t\tif(bins[i] != 9) return false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static boolean checkAvrScore(List<Course> courseList){\n return courseList.stream().allMatch(t->t.getAverageScore()>91);\n }", "public static boolean checkInt(Scanner scan) {\n\n if (scan.hasNextInt()) {//if the input is an integer\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int; try again: \");\n return (false);\n \n }\n\n }", "private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }", "private boolean isValidQuiz1(double quiz1)\n\t{\n\t\treturn quiz1 >= 0 && quiz1 <= 10;\n\t}", "public boolean isValid() {\n\t\tif (isPlayer1() && currentPit < 7 && currentPit != 6) {\n\t\t\tif (board[currentPit] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true; // check appropriate side of board, excluding scoring\n\t\t}\n\t\t// pit\n\t\telse if (!isPlayer1() && currentPit >= 7 && currentPit != 13) {\n\t\t\tif (board[currentPit] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean score(String lineItemId, Score score);", "boolean hasNumber();", "protected abstract int isValidInput();", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }", "public boolean validate() {\n int res = 0;\n for (PostDTO p : postList) {\n if (p.getTmpRating() != null) {\n res += p.getTmpRating().intValue();\n }\n }\n if (res <= 10 && res >= 0) {\n return true;\n }\n return false;\n }", "@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}", "public static boolean checkAveGreaterThanScore(List<MyStudent> l, int score){\n\n\t boolean isGreater = l.stream().allMatch(e->e.getScore()>score);\n\t System.out.println(isGreater);\n\t return isGreater;\n\t }", "public static boolean checkValidMcs(int mc) {\n return mc >= 0 && mc <= 40;\n }", "private static boolean isValid(int x, int y)\n\t {\n\t if (x < M && y < N && x >= 0 && y >= 0) {\n\t return true;\n\t }\n\t \n\t return false;\n\t }", "public boolean isArmstrongNumber(int input) {\n\t\tint sumOfDigits = 0, power = Integer.toString(input).length();\n\t\tfor (int i = 0; i < power; i++)\n\t\t\tsumOfDigits += Math.pow(Integer.parseInt(Integer.toString(input).substring(i, i + 1)), power);\n\t\treturn sumOfDigits == input;\n\t}", "public static int checkInt(int low, int high)\r\n {\r\n Scanner in = new Scanner(System.in);\r\n int validNum = 0;\r\n boolean valid = false;\r\n while(!valid)\r\n {\r\n if(in.hasNextInt())\r\n {\r\n validNum = in.nextInt();\r\n if(validNum >= low && validNum <= high)\r\n valid = true;\r\n else\r\n System.err.println(\"Invalid\");\r\n } else\r\n {\r\n in.next();\r\n System.err.println(\"Invalid\");\r\n }\r\n }\r\n return validNum;\r\n }", "public boolean check(ArrayList<Card> cards){\n int val = cards.get(0).getVal();\n if(val == 2 || val == 10)\n return true;\n //sevens are special\n if(topCardVal() == 7)\n return (topCardVal() >= val);\n return (topCardVal() <= val);\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "private boolean isTheColorInputCorrect(int red, int green, int blue, int alpha){\n if(red > 255 || green > 255 || blue > 255 || alpha > 255){\n System.out.println(\"Values should be equal or smaller then 255.\");\n return false;\n }else if(red < 0 || green < 0 || blue < 0 || alpha < 0){\n System.out.println(\"Values should be equal or bigger then 0.\");\n return false;\n }else{\n return true;\n }\n }", "public boolean includes(int s) {\n return code.is_digit(s);\n }", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "public boolean isInteger();" ]
[ "0.68024254", "0.62259996", "0.62241775", "0.62107384", "0.6089584", "0.60413843", "0.5992171", "0.59821963", "0.5960146", "0.5856338", "0.583551", "0.5796697", "0.5783333", "0.57797587", "0.57696587", "0.57591015", "0.5756756", "0.5740788", "0.573347", "0.5706276", "0.5692217", "0.5685917", "0.5637018", "0.5624234", "0.5574191", "0.55735666", "0.5563836", "0.5562019", "0.5556951", "0.55446285", "0.5543152", "0.5541857", "0.5537562", "0.55241126", "0.55213827", "0.55132866", "0.5496596", "0.5488676", "0.5483853", "0.54793864", "0.54793864", "0.54793864", "0.5475503", "0.5469881", "0.5466407", "0.5463075", "0.5457626", "0.5454947", "0.545478", "0.5449826", "0.5446609", "0.5443335", "0.5415067", "0.539881", "0.53968424", "0.538764", "0.5379899", "0.5375857", "0.53743005", "0.536089", "0.53474027", "0.53471637", "0.5343874", "0.53340054", "0.5330006", "0.53239393", "0.5323372", "0.53211355", "0.53191406", "0.53153527", "0.5313666", "0.53103817", "0.53095716", "0.5304719", "0.53043664", "0.5298165", "0.5294511", "0.5291342", "0.52854335", "0.5280444", "0.5273137", "0.52695286", "0.52621865", "0.5257724", "0.52508956", "0.5248867", "0.5247031", "0.524305", "0.52404577", "0.5240001", "0.52331513", "0.5228346", "0.52247536", "0.52235985", "0.52211046", "0.52196693", "0.5212643", "0.5210847", "0.52028286", "0.51914096" ]
0.5878479
9
Returns score as correctAttempts divided by totalAttempts
public double getAsDouble() { if (totalAttempts == 0) { return 0; } return (double) correctAttempts / totalAttempts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "public int getAverageScore() {\n\t\treturn totalScore / quizCount;\n\t}", "protected void checkScore () {\n if (mCurrentIndex == questions.length-1) {\n NumberFormat pct = NumberFormat.getPercentInstance();\n double result = (double) correct/questions.length;\n Toast res = new Toast(getApplicationContext());\n res.makeText(QuizActivity.this, \"Your score: \" + pct.format(result), Toast.LENGTH_LONG).show();\n correct = 0; // resets the score when you go back to first question.\n }\n }", "public int totalScore() {\n return 0;\n }", "public void updateScores(double attempt) {\r\n \tif(previousScore == 0){\r\n \t\tpreviousScore = currentScore;\r\n \t}else{\r\n \t\tbeforePreviousScore = previousScore;\r\n \t\tpreviousScore = currentScore;\r\n \t}\r\n this.currentScore = 100*(attempt \r\n\t\t\t\t- (benchmark - (maximumMark - benchmark)/NUMBEROFLEVEL))\r\n\t\t\t\t/(((maximumMark - benchmark)/NUMBEROFLEVEL)*2);\r\n }", "private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }", "@Override\n\tpublic int CalculateScore(int CorrectCount, int incorrectCount) throws HangmanException {\n\t\tpuntaje = 100;\n\t\tif(CorrectCount < 0 || incorrectCount < 0) {\n\t\t\tthrow new HangmanException(HangmanException.PARAMETROS_INVALIDOS);\n\t\t}\n\t\t\n\t\tpuntaje = puntaje - (incorrectCount * 10);\n\t\t\n\t\tif (puntaje < 0) {\n\t\t\tpuntaje = 0;\n\t\t}\n\t\treturn puntaje;\n\t}", "public float calculateGrade() {\r\n\t\t// Creating variables for correct answers, total questions and the grade itself.\r\n\t\tint correct = 0;\r\n\t\tint total = correctAnswers.size();\r\n\t\tfloat grade = 0;\r\n\t\t// Loop that goes around the list with user's answers and correct answers.\r\n\t\tfor (int i = 0; i < correctAnswers.size(); i++) {\r\n\t\t\t// Creating variable result which compare the elements from the two list index\r\n\t\t\t// by index.\r\n\t\t\tint result = (userAnswers.get(i).compareTo(correctAnswers.get(i)));\r\n\t\t\t// Condition that increments the variable correct with one every time when there\r\n\t\t\t// is match between the lists' elements by index.\r\n\t\t\tif (result == 0) {\r\n\t\t\t\tcorrect++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Calculating the grade of the student.\r\n\t\tgrade = (float) ((double) correct / total * 100);\r\n\t\treturn grade;\r\n\t}", "public float getTotalCorrectMatches() {\n\t\treturn totalCorrectMatches;\n\t}", "public int getTotalScore() {\r\n return totalScore;\r\n }", "public static boolean isValidScore(int correctAttempts, int totalAttempts) {\n return 0 <= correctAttempts && correctAttempts <= totalAttempts;\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public int score() {\n int sum = 0;\n for (Candidate c : chosen) {\n sum += c.score(compatibilityScoreSet);\n }\n return sum;\n }", "public double getAccuracy(){\n return (numOfHits/numOfGuesses);\n }", "@Override\n\tprotected int calculateScore() {\n\t\treturn Math.abs(playerScore[0] - playerScore[1]);\n\t}", "public int scoreSpec(){\n List<Player> players = state.getPlayers();\n int currentBonusScore = 0;\n int otherBonus = 0;\n for(int i = 0; i < players.size(); i++){\n if( i == state.getCurrentPlayerId()){\n currentBonusScore += bonusScore(players.get(i));\n }\n else{\n otherBonus += bonusScore(players.get(i));\n }\n }\n return currentBonusScore-otherBonus;\n }", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public double getOverallScore()\n\t{\n\t\t return ((((((this.quiz1/QUIZ_MAX) + (this.quiz2/QUIZ_MAX) + (this.quiz3/QUIZ_MAX)) / 3) * QUIZ_WEIGHT) + ((this.midtermExam / MIDTERM_MAX) * MIDTERM_WEIGHT) + ((this.finalExam / FINAL_MAX) * FINAL_WEIGHT)) * 100);\n\t}", "public int getTotalScore(){\r\n return totalScore;\r\n }", "public int calcPassedCourseNum(){\n int score = 0;\n \n score += course1.isPassed() ? 1 : 0;\n score += course2.isPassed() ? 1 : 0;\n score += course3.isPassed() ? 1 : 0;\n \n return score;\n }", "public int getTotalScore(){\n return totalScore;\n }", "public float pointsPerGame() {\n if (totalGames() == 0) return 0;\n float res = (float) totalPoints / (float) totalGames();\n return Math.round(res * 10) / 10f;\n }", "public int getScore() {\n int score = 0;\n for (QuizFragment quizFragment : quizFragmentList) {\n score += quizFragment.isCorrect() ? 1 : 0;\n }\n return score;\n }", "float getScore();", "float getScore();", "public int getTotalScore() {\n\t\tLoadingDatabaseTotalScore();\n\t\treturn totalScore;\n\t}", "public double getAverageScore() {\n\t return this.totalScore / this.count; \n\t }", "private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }", "@Override\n public int getScore() {\n return totalScore;\n }", "public void calculateScores()\r\n {\r\n for(int i = 0; i < gameBoard.getBoardRows(); i++)\r\n for(int j = 0; j < gameBoard.getBoardCols(); j++)\r\n {\r\n if(gameBoard.tilePlayer(i,j) == 0)\r\n currentRedScore = currentRedScore + gameBoard.tileScore(i,j);\r\n if(gameBoard.tilePlayer(i,j) == 1)\r\n currentBlueScore = currentBlueScore + gameBoard.tileScore(i,j);\r\n }\r\n }", "public int score()\n {\n if (this.score != Integer.MIN_VALUE)\n return this.score;\n\n this.score = 0;\n if (!this.safe)\n return 0;\n\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.score = (this.d.size() * 100) + ((this.NE - this.e.size()) * 10) + (this.e.size() == 0 ? bonus : 0);\n\n // value:\n return this.score;\n }", "Float getAutoScore();", "public Double getTotalScore() {\n return totalScore;\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "@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 }", "public float trumpsPerGame() {\n if (totalGames() == 0) return 0;\n float res = (float) trumps / (float) (totalGames());\n return Math.round(res * 10) / 10f;\n }", "Float getScore();", "public int getBonusPoints()\n\t{\n\t\tbonusPoints = 0;\n\t\t\n\t\t//Gets the bonus numbers\n\t\tint bonusNum1 = Integer.parseInt(bonus1Label.getText());\n\t\tint bonusNum2 = Integer.parseInt(bonus2Label.getText());\n\t\tint bonusNum3 = Integer.parseInt(bonus3Label.getText());\n\t\t\n\t\t//Gets the user's numbers\n\t\tint num1 = Integer.parseInt(num1Label.getText());\n\t\tint num2 = Integer.parseInt(num2Label.getText());\n\t\tint num3 = Integer.parseInt(num3Label.getText());\n\t\t\n\t\t//Compares to see if bonus and user numbers match\n\t\t//give bonus points if they do\n\t\tif(bonusNum1 == num1 || bonusNum1 == num2 || bonusNum1 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}//end if\n\t\t\n\t\tif(bonusNum2 == num1 || bonusNum2 == num2 || bonusNum2 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}// end if\n\t\t\n\t\tif(bonusNum3 == num1 || bonusNum3 == num2 || bonusNum3 == num3)\n\t\t{\n\t\t\tbonusPoints += 1;\n\t\t}// end if\n\t\t\n\t\treturn bonusPoints;\n\t}", "public void calculateFinalPoints() {\n int finalPoints = 0;\n for (final Entry<Question, ExamResultAnswers> entry : submittedAnswers.entrySet()) {\n final Question question = entry.getKey();\n double partialPoint = 0;\n final double pointStep = (double) question.getPoints() / question.getAnswers().size();\n final Iterator<Answer> correctAnswers = question.getAnswers().iterator();\n final Iterator<Answer> studentAnswers = entry.getValue().getAnswers().iterator();\n while (correctAnswers.hasNext() && studentAnswers.hasNext()) {\n final Answer studentAnswer = studentAnswers.next();\n final Answer correctAnswer = correctAnswers.next();\n if (question.getType() == QuestionType.FILL_IN_THE_BLANK) {\n if (studentAnswer.getText().trim().equalsIgnoreCase(correctAnswer.getText().trim())) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n } else if (question.getType() == QuestionType.SINGLE_CHOICE) {\n // A single choice brings only points if the ONE correct one is chosen, otherwise always zero points\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()\n && correctAnswer.isRightAnswer()) {\n partialPoint += question.getPoints();\n break;\n } else if (studentAnswer.isRightAnswer() && !correctAnswer.isRightAnswer()) {\n partialPoint = 0;\n break;\n }\n } else if (question.getType() == QuestionType.MULTIPLE_CHOICE) {\n if (studentAnswer.isRightAnswer() == correctAnswer.isRightAnswer()) {\n partialPoint += pointStep;\n } else {\n if (exam.getEvaluationMethod() == WrongAnswerEvaluationMethod.SUBTRACTION) {\n partialPoint -= pointStep;\n }\n }\n }\n }\n if (partialPoint < 0) {\n partialPoint = 0;\n }\n finalPoints += (int) Math.round(partialPoint);\n }\n points = finalPoints;\n final int maxPoints = exam.getMaxPoints();\n passed = (finalPoints / (double) maxPoints) * 100 >= exam.getMinPoints();\n }", "public int calculScore(Deck deck)\n {\n return 0;\n }", "public float getUserRatingScore() {\n float scorePercent = Float.valueOf(userRating) * 10;\n\n return ((5 * scorePercent) / 100);\n }", "public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }", "Integer totalRetryAttempts();", "public int getRoundScore() {\n return score;\n }", "public int getAttempts(int attempts)\t\n\t{\t//start of getAttempts mehtod\n\t\treturn attempts;\n\t}", "public Double getTotalScore() {\n return getExperienceTime() * 1.5 + meanGPA();\n }", "private static int parseTotalAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[1]);\n }", "@Override\n\tpublic double getTotalScore() {\n\t\treturn score;\n\t}", "public void scoring(){\n for (int i=0; i< players.size(); i++){\n Player p = players.get(i);\n p.setScore(10*p.getTricksWon());\n if(p.getTricksWon() < p.getBid() || p.getTricksWon() > p.getBid()){\n int diff = Math.abs(p.getTricksWon() - p.getBid());\n p.setScore(p.getScore() - (10*diff));\n }\n if(p.getTricksWon() == p.getBid()){\n p.setScore(p.getScore() + 20);\n }\n }\n }", "public static void displayScore(final Quiz quiz) {\n\t\tint qNumber = 0;\n\t\tint totScore = 0;\n\t\tfor (question q : quiz.getQList()) {\n\t\t\tSystem.out.println(q.qText);\n\t\t\tif (q.corrChoice.equals(quiz.getAnswers(qNumber))) {\n\t\t\t\tSystem.out.println(\" Correct Answer! - Marks Awarded: \" + q.maxMarks);\n\t\t\t\ttotScore += Integer.parseInt(q.maxMarks);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\" Wrong Answer! - Penalty: \" + q.penalty);\n\t\t\t\ttotScore += Integer.parseInt(q.penalty);\n\t\t\t}\n\t\t\tqNumber += 1;\n\t\t}\n\t\tSystem.out.println(\"Total Score: \" + totScore);\n\t}", "public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}", "public void countScore(TechnicalTest technicalTest)\n {\n long maxScore=0;\n long score=0;\n\n String scoreEachAnswer = \"\";\n List<Problem> problems = technicalTest.getProblems();\n\n String applicantAnswer = technicalTest.getApplicantAnswer();\n\n List<String> answerList = helper.parseAnswer(applicantAnswer);\n\n for(int i=0; i<problems.size();i++){\n long tmpScore;\n maxScore = maxScore + problems.get(i).getMaxScore();\n if(problems.get(i) instanceof MultipleChoices){\n tmpScore = getScoreMultipleChoices((MultipleChoices) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n else if(problems.get(i) instanceof ProblemGenerator){\n tmpScore = getScoreMultipleChoices((MultipleChoices) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n else{\n tmpScore = getScoreEssay((Essay) problems.get(i), answerList.get(i));\n score = score + tmpScore;\n if(i!=problems.size()-1)\n scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore) + \"|\";\n else scoreEachAnswer = scoreEachAnswer + String.valueOf(tmpScore);\n }\n\n }\n\n long persen = score*100/maxScore;\n\n technicalTest.setScore(persen);\n technicalTest.setScoreEachAnswer(scoreEachAnswer);\n\n technicalTestRepository.save(technicalTest);\n\n }", "public double getTotalScore() {\n\t return this.totalScore;\n\t }", "public int getScore() {\r\n\t\tint sum = 0;\r\n\t\tint value;\r\n\t\tint aces = 0;\r\n\t\t\r\n\t\t// Gets card values from hand\r\n\t\tfor (int i = 0; i < cards; i++) {\r\n\t\t\tvalue = this.Hand.get(i).cardValue();\r\n\t\t\tsum = sum + value;\r\n\t\t\tif (value == 11) {\r\n\t\t\t\taces++;\r\n\t\t\t}\r\n\t\t\tvalue = 0;\r\n\t\t}\r\n\t\t\r\n\t\twhile (aces > 0 && sum > 21) {\r\n\t\t\tsum = sum - 10;\r\n\t\t\taces--;\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "public Double calculateTotalMarks(Test onlineTest) throws UserException {\n\t\tDouble score = new Double(0.0);\n\t\tfor (Questions question : onlineTest.getTestQuestions()) {\n\t\t\tscore = score + question.getMarksScored();\n\t\t}\n\t\tonlineTest.setTestMarksScored(score);\n\ttDao.updateTest(onlineTest);\n\t\treturn score;\n\t}", "private static int parseCorrectAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[0]);\n }", "private int calStepScore(SlidingBoardManager slidingBoardManager) {\n int step = slidingBoardManager.getSlidingHistory().getSize() - 1;\n\n return Math.round(100 - step / 5);\n }", "public float getAverageScore(GameModel startingState) {\n\n float totalScore = 0;\n for (int i = 0; i < NUM_SIMULATIONS; i++) {\n GameModel copy = GameModel.copyOf(startingState);\n copy.addNumber();\n totalScore += simulateAndGetScore(copy);\n }\n\n return totalScore / NUM_SIMULATIONS;\n }", "int getScore();", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "private void updateScoreRatios(IGame game, boolean addToTotal) {\n int player1Score = getScore(game, game.getPlayer1());\n int player2Score = getScore(game, game.getPlayer2());\n int difference = Math.abs(player1Score - player2Score);\n\n IPlayer player1 = game.getPlayer1();\n IPlayer player2 = game.getPlayer2();\n\n logger.info(player1 + \" has scored \" + player1Score + \" in total\");\n logger.info(player2 + \" has scored \" + player2Score + \" in total\");\n\n if (player1Score > player2Score) {\n\n if (addToTotal) {\n player1.setScoreRatio(player1.getScoreRatio() + difference);\n player2.setScoreRatio(player2.getScoreRatio() - difference);\n logger.info(player1 + \" +\" + difference + \" = \"\n + player1.getScoreRatio());\n logger.info(player2 + \" -\" + difference + \" = \"\n + player2.getScoreRatio());\n } else {\n logger.info(\"Resetting scores\");\n player2.setScoreRatio(player2.getScoreRatio() + difference);\n player1.setScoreRatio(player1.getScoreRatio() - difference);\n\n logger.info(player2 + \" +\" + difference + \" = \"\n + player2.getScoreRatio());\n logger.info(player1 + \" -\" + difference + \" = \"\n + player1.getScoreRatio());\n }\n\n } else if (player2Score > player1Score) {\n if (addToTotal) {\n player2.setScoreRatio(player2.getScoreRatio() + difference);\n player1.setScoreRatio(player1.getScoreRatio() - difference);\n\n logger.info(player2 + \" +\" + difference + \" = \"\n + player2.getScoreRatio());\n logger.info(player1 + \" -\" + difference + \" = \"\n + player1.getScoreRatio());\n } else {\n logger.info(\"Resetting scores\");\n player1.setScoreRatio(player1.getScoreRatio() + difference);\n player2.setScoreRatio(player2.getScoreRatio() - difference);\n\n logger.info(player1 + \" +\" + difference + \" = \"\n + player1.getScoreRatio());\n logger.info(player2 + \" -\" + difference + \" = \"\n + player2.getScoreRatio());\n }\n }\n }", "private int calTimeScore(SlidingBoardManager slidingBoardManager) {\n double time = slidingBoardManager.getTime();\n\n return (int) Math.round((100 - time / 15));\n\n }", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "public int getPlayerScore();", "public int getCorrectans()\n\t{\n\t\treturn correctAns;\n\t}", "public float calcAverage(){\n if(totalReviews > 0)\n return (float) (totalScore*1.0/totalReviews);\n else return 0;\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public double calc_score(boolean flags[], Set<Integer> correct_flags) {\n\t\tdouble score = 0.0;\n\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\tif (correct_flags.contains(i)) {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tscore += 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tscore -= 0.5;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn score / correct_flags.size();\n\t}", "public double testQuiz(Quiz quiz) {\n\t\t// System.out.println(\"Testing quiz: \" + quiz + \"\\n\" +\n\t\t// quiz.display() + \"\\nwith QuizTester: \" + id\n\t\t// + \" SearchString: \" + searchString);\n\t\tdouble score = 0;\n\t\tfor (Question question : quiz.getQuestionList()) {\n\t\t\tboolean guess = question.getPrompt().contains(searchString);\n\t\t\tif (question.isAnswer() == guess) {\n\t\t\t\t++score;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"Completed testing quiz: \" + quiz + \"\\nFinal Score: \" +\n\t\t// score + \" / \" + quiz.getQuestionList().size() + \" AKA: \" + (score /\n\t\t// quiz.getQuestionList().size()) );\n\t\treturn score / quiz.getQuestionList().size();\n\t}", "public int getScore() {\r\n\t\treturn deck.getScore() + extraVictory;\r\n\t}", "public int calculateRounds(int numberOfPlayers) {\n //logarithm to find how many 2s to multiply to get numberOfPlayers 32 players (2 x 2 x 2 x 2 x 2 = 32) = 5 Rounds\n return (int) (Math.log(numberOfPlayers) / Math.log(2));\n }", "public char calculate() {\n int average = java.util.stream.IntStream.of(testScores).sum() / testScores.length;\n return Grades.getGrade(average);\n }", "public int getScore()\n {\n int score;\n if (this.isFinal())\n score = 1;\n else\n score = 0;\n return score;\n }", "public int getAverage() { return (int)Math.ceil(getSumOfMarks()/ numberOfCourses); }", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }", "public int getTotalCorrectAnswers() {\r\n\t\treturn totalCorrectAnswers;\r\n\t}", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int quizTotal()\n {\n if (quizScores[0] < z)\n z = quizScores[0];\n if (quizScores[1] < z)\n z = quizScores[1];\n if (quizScores[2] < z)\n z = quizScores[2];\n if (quizScores[3] < z)\n z = quizScores[3];\n if (quizScores[4] < z)\n z = quizScores[4];\n if (quizScores[5] < z)\n z = quizScores[5];\n int quizTot = quizScores[0] + quizScores[1] + quizScores[2] + quizScores[3] + quizScores[4] + quizScores[5] - z;\n if (quizTot > quizHigh)\n {\n quizName = name;\n quizHigh = quizTot;\n }\n return quizTot; \n \n }", "public int getScore()\n {\n return points + extras;\n }", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "public static int getScore()\n {\n return score;\n }", "public int getPointsAgainst() {\n int pointsAgainst = 0;\n for (Game g : gameList) {\n pointsAgainst += g.getOtherTeamScore(this);\n }\n return pointsAgainst;\n }", "public double get_numCorrectAns(){return this._numCorrectAns;}", "public double testAllQuizzes(HashMap<Integer, Quiz> quizMap) {\n\t\tdouble overallScore = 0;\n\t\tfor (Quiz quiz : quizMap.values()) {\n\t\t\toverallScore += this.testQuiz(quiz);\n\t\t}\n\t\treturn overallScore / quizMap.size();\n\t}", "@Test\r\n public void calculateScore() {\r\n board3.swapTiles(0,0,1,1);\r\n board3.getSlidingScoreBoard().setTime(2);\r\n board3.getSlidingScoreBoard().calculateScore();\r\n assertEquals(496, board3.getSlidingScoreBoard().getScore());\r\n }", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "public int getScore() {\n return getStat(score);\n }", "public int updateRating(int ra, int rb, double score) {\n double expected = expectedScore(ra, rb);\n double k = 32;\n return (int) (ra + k*(score-expected));\n }", "public int finalScore() {\n\t\tint total = 0;\n\t\tfor (Frame frame : frames) {\n\t\t\ttotal += frame.getScore(); // running total of each frames score added \n\t\t}\n\t\treturn total;\n\t}", "public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }", "public void testScoreboardCaseThree () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (first Yes counts only Min.Pts)\n \"3,1,A,5,No\", // 20\n \"4,1,A,7,Yes\", // 20 (all runs count!)\n \"5,1,A,9,No\", // 20\n\n \"6,1,B,11,No\", // zero (not solved)\n \"7,1,B,13,No\", // zero (not solved)\n\n \"8,2,A,30,Yes\", // 30\n\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 3 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// String [] rankData = {\n// \"1,team2,1,30\"\n// \"2,team1,1,83\",\n// };\n \n scoreboardTest (2, runsData, rankData);\n }", "public static int[] calculateScores(String[] resultsToCheck)\n\t{\n\t\tint[] scores = new int[entrants.length];\n\t\t//results = checkResults(preResults);\n\t\tfor(int i = 0; i < resultsToCheck.length; i++)\n\t\t{\n\t\t\tif(!resultsToCheck[i].equals(\"\"))\n\t\t\t{\n\t\t\t\t//for each player\n\t\t\t\tfor(int j = 0; j < entrants.length; j++)\n\t\t\t\t{\n\t\t\t\t\t//if the player's pick for the match is equal to the result\n\t\t\t\t\tif(allPicks.get(j)[i].equals(resultsToCheck[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//increase their points by the value of the match\n\t\t\t\t\t\tscores[j] += values[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn scores;\n\t}", "public double getScore() {\n return score - penalty;\n }", "private void calculate(int[][] turns) throws Exception {\n int score = 0;\n for (int i = 0; i < round; i++) {\n int[] t = turns[i];\n if (t[0] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 2));\n situation[i] = Status.STRIKE;\n } else if (t[0] + t[1] == maxSroce) {\n score += (maxSroce + getNext(turns, i, 1));\n situation[i] = Status.SPARE;\n } else {\n score += (t[0] + t[1]);\n situation[i] = Status.MISS;\n }\n this.score[i] = score;\n }\n }" ]
[ "0.68342155", "0.6586664", "0.6541558", "0.6495156", "0.64393336", "0.64309204", "0.6419096", "0.6415149", "0.6412013", "0.63962245", "0.6375788", "0.63541895", "0.63404197", "0.6266145", "0.6196876", "0.61786497", "0.61702025", "0.61410147", "0.6134096", "0.61337894", "0.6126292", "0.6089165", "0.6077704", "0.6077139", "0.6077064", "0.60725194", "0.60725194", "0.6059663", "0.6056141", "0.6052835", "0.6039803", "0.60254264", "0.6020899", "0.6011165", "0.6010419", "0.5973878", "0.59624666", "0.5959814", "0.5955947", "0.5954665", "0.59545004", "0.59458876", "0.59382004", "0.5936034", "0.5935011", "0.59278816", "0.5925247", "0.5912364", "0.58976084", "0.58859384", "0.5865801", "0.58641183", "0.58479893", "0.5847056", "0.58431864", "0.583115", "0.5824649", "0.579357", "0.5788621", "0.578437", "0.57841915", "0.5777041", "0.5777041", "0.5777041", "0.5777041", "0.5769481", "0.5758863", "0.5739303", "0.5738325", "0.5725219", "0.5722149", "0.57190186", "0.57180935", "0.5703275", "0.57028985", "0.56975967", "0.5692758", "0.5682408", "0.56770116", "0.566478", "0.5663015", "0.56567067", "0.5648096", "0.5641096", "0.5637328", "0.5627423", "0.56155485", "0.5611336", "0.5607608", "0.559082", "0.55861884", "0.55817956", "0.5579828", "0.5569295", "0.55670655", "0.5566492", "0.5564644", "0.5559831", "0.5559668", "0.5552021" ]
0.6274601
13
Returns number of correct attempts as integer from score string.
private static int parseCorrectAttempts(String score) throws NumberFormatException { String[] splitString = score.split("/"); if (splitString.length != 2) { throw new NumberFormatException("Score is not formatted correctly."); } return Integer.parseInt(splitString[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int parseTotalAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[1]);\n }", "public int getScrabbleScore(String string) {\n\n\t\tif (!string.matches(\"([a-zA-Z])+\"))\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tint score = 0;\n\t\tfor (char c : (string.toUpperCase()).toCharArray()) {\n\t\t\tswitch (c) {\n\t\t\tcase 'D':\n\t\t\tcase 'G':\n\t\t\t\tscore += 2;\n\t\t\t\tbreak;\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'M':\n\t\t\tcase 'P':\n\t\t\t\tscore += 3;\n\t\t\t\tbreak;\n\t\t\tcase 'F':\n\t\t\tcase 'H':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'Y':\n\t\t\t\tscore += 4;\n\t\t\t\tbreak;\n\t\t\tcase 'K':\n\t\t\t\tscore += 5;\n\t\t\t\tbreak;\n\t\t\tcase 'J':\n\t\t\tcase 'X':\n\t\t\t\tscore += 8;\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\tcase 'Z':\n\t\t\t\tscore += 10;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tscore += 1;\n\t\t\t}\n\t\t}\n\t\treturn score;\n\t}", "public static int getScoreInSeconds(String score) {\r\n\t\tint secondsScore = 0;\r\n\t\t\r\n\t\tString[] vals = score.split(\"m\");\r\n\t\t//minutes\r\n\t\tint mins = Integer.parseInt(vals[0].replace(\" \", \"\"));\r\n\t\tint secs = Integer.parseInt(vals[1].replace(\"s\", \"\").replace(\" \", \"\"));\r\n\t\tsecondsScore = mins * 60 + secs;\r\n\t\t\r\n\t\treturn secondsScore;\r\n\t}", "public int getScrabbleScore(String string) {\n\t\t\n\t\t//Create a hashmap of each letter and its corresponding score value\n\t\t\n\t\tHashMap<Character, Integer> lettersAndScores = new HashMap<Character, Integer>(26);\n\t\tlettersAndScores.put('A', 1);\n\t\tlettersAndScores.put('E', 1);\n\t\tlettersAndScores.put('I', 1);\n\t\tlettersAndScores.put('O', 1);\n\t\tlettersAndScores.put('U', 1);\n\t\tlettersAndScores.put('L', 1);\n\t\tlettersAndScores.put('N', 1);\n\t\tlettersAndScores.put('R', 1);\n\t\tlettersAndScores.put('S', 1);\n\t\tlettersAndScores.put('T', 1);\n\t\tlettersAndScores.put('D', 2);\n\t\tlettersAndScores.put('G', 2);\n\t\tlettersAndScores.put('B', 3);\n\t\tlettersAndScores.put('C', 3);\n\t\tlettersAndScores.put('M', 3);\n\t\tlettersAndScores.put('P', 3);\n\t\tlettersAndScores.put('F', 4);\n\t\tlettersAndScores.put('H', 4);\n\t\tlettersAndScores.put('V', 4);\n\t\tlettersAndScores.put('W', 4);\n\t\tlettersAndScores.put('Y', 4);\n\t\tlettersAndScores.put('K', 5);\n\t\tlettersAndScores.put('J', 8);\n\t\tlettersAndScores.put('X', 8);\n\t\tlettersAndScores.put('Q', 10);\n\t\tlettersAndScores.put('Z', 10);\n\t\t\n\t\t//Insert the characters of the string into the hashmap to get the corresponding values\n\t\t//Add the values to a score variable to then return\n\t\t\n\t\tint score = 0;\n\t\tfor(int i=0; i<string.length(); i++) {\n\t\t\tscore += lettersAndScores.get(Character.toUpperCase(string.charAt(i)));\n\t\t}\n\t\treturn score;\n\t}", "public int getScrabbleScore(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tHashtable<Character, Integer> letterBank = new Hashtable<Character, Integer>();\n\t\tletterBank.put('A', 1);\n\t\tletterBank.put('B', 3);\n\t\tletterBank.put('C', 3);\n\t\tletterBank.put('D', 2);\n\t\tletterBank.put('E', 1);\n\t\tletterBank.put('F', 4);\n\t\tletterBank.put('G', 2);\n\t\tletterBank.put('H', 4);\n\t\tletterBank.put('I', 1);\n\t\tletterBank.put('J', 8);\n\t\tletterBank.put('K', 5);\n\t\tletterBank.put('L', 1);\n\t\tletterBank.put('M', 3);\n\t\tletterBank.put('N', 1);\n\t\tletterBank.put('O', 1);\n\t\tletterBank.put('P', 3);\n\t\tletterBank.put('Q', 10);\n\t\tletterBank.put('R', 1);\n\t\tletterBank.put('S', 1);\n\t\tletterBank.put('T', 1);\n\t\tletterBank.put('U', 1);\n\t\tletterBank.put('V', 4);\n\t\tletterBank.put('W', 4);\n\t\tletterBank.put('X', 8);\n\t\tletterBank.put('Y', 4);\n\t\tletterBank.put('Z', 10);\n\t\tint score = 0;\n\t\tchar upperCase;\n\t\tfor(int i =0; i < string.length(); i++) {\n\t\t\tif(Character.isLowerCase(string.charAt(i))){\n\t\t\t\tupperCase = Character.toUpperCase(string.charAt(i));\n\t\t\t\tscore += letterBank.get(upperCase);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tscore += letterBank.get(string.charAt(i));\n\t\t\t}\n\t\t}\n\t\t//System.out.println(score);\n\t\treturn score;\n\t}", "private int heuristicValue(String boardString) {\n String[] tokens = boardString.split(\"\\n\");\n int blackScore = Integer.parseInt(tokens[0].split(\",\")[9]);\n int whiteScore = Integer.parseInt(tokens[1].split(\",\")[9]);\n\n return blackScore - whiteScore;\n }", "public static int scoreNumbersOnly( String password ) {\n\t\tString pattern = \"[^0-9]\" ;\r\n\t\tint score = 0 ;\r\n\r\n\t\tint count = regexCount( password, pattern ) ;\r\n\r\n\t\tif ( count == 0 ) {\r\n\t\t\tscore = password.length() ;\r\n\t\t}\r\n\r\n\t\treturn score ;\r\n\t}", "public long getScoreEssay(Essay essay, String answer)\n {\n return 0;\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 int guessCount(String tester, char guess) {\n StringBuilder r = new StringBuilder(tester);\n\n int guessCount = 0;\n for (int i = 0; i < tester.length(); i++) {\n if (r.charAt(i) == guess) {\n guessCount++;\n }\n }\n\n return guessCount;\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "private Integer calculateScoreNumber(double score)\r\n\t{\r\n\t\t//Formula for scoreNumber => {intValue / 0.25} + {number associated \r\n\t\t//with fractionalValue based on which range it belongs to}\r\n\t\tint scoreNumber = (int)(score / 0.25);\r\n\t\tdouble fractionValue = score % 0.25;\r\n\r\n\t\tif(fractionValue > 0.12)\r\n\t\t\tscoreNumber++;\r\n\r\n\t\treturn scoreNumber;\r\n\t}", "private static int calculateScore( String word )\n\t{\n\t\tif (word.equals(\"rc\")) {\n\t\t\treturn -1;\n\t\t} else if (word.equals(\"b\")) {\n\t\t\treturn -2;\n\t\t} else if (word.equals(\"beta\")) {\n\t\t\treturn -3;\n\t\t} else if (word.equals(\"a\")) {\n\t\t\treturn -4;\n\t\t} else if (word.equals(\"alpha\")) {\n\t\t\treturn -5;\n\t\t} else if (word.equals(\"snapshot\")) {\n\t\t\treturn -10;\n\t\t} else if (word.equals(\"push0ver\")) {\n\t\t\treturn -11;\n\t\t} else if (word.equals(\"cvs\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"svn\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"bzr\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"hg\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"git\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"rev\")) {\n\t\t\treturn -100;\n\t\t} else if (word.equals(\"r\")) {\n\t\t\treturn -101;\n\t\t} else if (word.equals(\"release\")) {\n\t\t\treturn 12;\n\t\t} else if (word.equals(\"update\")) {\n\t\t\treturn 11;\n\t\t} else if (word.equals(\"u\")) {\n\t\t\treturn 10;\n\t\t} else if (word.equals(\"patch\")) {\n\t\t\treturn 9;\n\t\t} else if (word.equals(\"p\")) {\n\t\t\treturn 8;\n\t\t} else if (word.equals(\"hotfix\")) {\n\t\t\treturn 7;\n\t\t} else if (word.equals(\"fix\")) {\n\t\t\treturn 6;\n\t\t}\n\t\tLong l = toLong( word );\n\t\treturn l != null ? 100 : 0; // a pure number (with no alpha) wins against all of those.\n\t}", "private int getOSRSPlayerCount() {\n try {\n Document document = Jsoup.connect(\"https://oldschool.runescape.com\").get();\n String playerCountText = document.getElementsByClass(\"player-count\").get(0).text();\n Matcher matcher = Pattern.compile(\"[\\\\d,?]+\").matcher(playerCountText);\n if(!matcher.find()) {\n throw new Exception();\n }\n playerCountText = playerCountText.substring(matcher.start(), matcher.end());\n return Integer.parseInt(playerCountText.replace(\",\", \"\"));\n }\n catch(Exception e) {\n return 0;\n }\n }", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "public int scoreOf(String word) {\n int len = word.length();\n if (!contains(word) || len <= 2) return 0;\n else if (len == 3 || len == 4) return 1;\n else if (len == 5) return 2;\n else if (len == 6) return 3;\n else if (len == 7) return 5;\n return 11;\n }", "public int getScore(String nickname) {\n\t\treturn scoreboard.get(nickname);\n\t}", "private int getNumberOfRulesPerSolution() throws NumberFormatException {\n\t\tfinal String USER_INPUT = numberOfRulesPerSolution.getText();\n\t\tint temp = 0;\n\t\ttry {\n\t\t\ttemp = Integer.parseInt(USER_INPUT);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString errorMessage = \"Number of Rules per Solution is expected to be an Integer value, but you input '\";\n\t\t\terrorMessage += USER_INPUT;\n\t\t\terrorMessage += \"'. Please fix this before moving on.\";\n\t\t\tJOptionPane.showMessageDialog(this, errorMessage,\n\t\t\t\t\"Number of Rules per Solution must be a positive Interger!\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\tthrow new NumberFormatException(errorMessage);\n\t\t}\n\t\treturn temp; \n\t}", "public String getStringScore() {\n\t\treturn Integer.toString(score);\n\t}", "public static int find_a_num(String question)\n\t{\n\t\t\n\t\tint first_par = 0;\n\t\tint second_par = 0;\n\t\t\n\t\tint a;\n\t\t\n\t\tfirst_par = question.indexOf(\"(\");\n\t\tsecond_par = question.indexOf(\"x\");\n\t\t\n\t\t\n\t\ta = Integer.parseInt(question.substring(first_par+1,second_par));\n\t\t\n\t\t\n\t\treturn a;\n\t}", "private double parseScore(String s) {\n String[] arg = s.split(\" \");\n double score = Double.parseDouble(arg[0]);\n // double total = Double.parseDouble(arg[3]);\n return score;\n }", "private int priorityStringToInt(String string) {\n // Convert the priority of the editText from letters to a single digit\n switch (string) {\n case \"High Priority\":\n return 0;\n case \"Medium Priority\":\n return 1;\n case \"Low Priority\":\n return 2;\n default:\n return -1;\n }\n }", "public int getScoreInt() {\n return scoreInt;\n }", "public static int getExamScore(boolean SAT_Score, String prompt) \n {\n if(SAT_Score)\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 200 and 800: \");\n int response = console.nextInt();\n if(response>=200 && response <=800)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n else\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 1 and 36: \");\n int response = console.nextInt();\n if(response>=1 && response <=36)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n }", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getHealthScore(String hstr) {\n try {\n int score = HEALTH_SYMPTOM_NUM;\n for (int i = 0; i < HEALTH_SYMPTOM_NUM; i++)\n if (0 == ONE.compareTo(String.valueOf(hstr.charAt(i))))\n score--;\n return score;\n } catch (Exception e) {\n return 0;\n }\n }", "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 int getScore() {\r\n\t\tint sum = 0;\r\n\t\tint value;\r\n\t\tint aces = 0;\r\n\t\t\r\n\t\t// Gets card values from hand\r\n\t\tfor (int i = 0; i < cards; i++) {\r\n\t\t\tvalue = this.Hand.get(i).cardValue();\r\n\t\t\tsum = sum + value;\r\n\t\t\tif (value == 11) {\r\n\t\t\t\taces++;\r\n\t\t\t}\r\n\t\t\tvalue = 0;\r\n\t\t}\r\n\t\t\r\n\t\twhile (aces > 0 && sum > 21) {\r\n\t\t\tsum = sum - 10;\r\n\t\t\taces--;\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "private int getSimlarityScore(String s1, String s2) {\r\n\t\tint match = 1;\r\n\t\tint mismatch = -1;\r\n\t\tint gap = -2;\r\n\t\tNeedlemanWunsch algorithm = new NeedlemanWunsch();\r\n\t\tBasicScoringScheme scoring = new BasicScoringScheme(match, mismatch, gap);\r\n\t\talgorithm.setScoringScheme(scoring);\r\n\t\talgorithm.loadSequences(s1, s2);\r\n\t\t\r\n\t\tint score = INT_MAX;\r\n\t\ttry {\r\n\t\t\tscore = algorithm.getScore();\r\n\t\t\t//System.out.println(algorithm.getPairwiseAlignment().getGappedSequence1());\r\n\t\t\t//System.out.println(algorithm.getPairwiseAlignment().getGappedSequence2());\r\n\t\t\t//System.out.println(algorithm.getPairwiseAlignment());\r\n\t\t} catch (IncompatibleScoringSchemeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\tif (score < 0) {\r\n\t\t\tscore = 0;\r\n\t\t}\r\n\t\treturn score;\r\n\t}", "protected int checkIfCorrect(String answer, String correctAns)\r\n {\r\n if (correctAns.equals(answer))\r\n {\r\n System.out.println(\"Awsome job!\");\r\n return score++;\r\n }\r\n else \r\n { \r\n System.out.println(\"opps\"); \r\n return score;\r\n }\r\n \r\n }", "public static int getRankValue(String rank)\r\n\t{\n\t\tint rankValue = 0;\r\n\t\t\t\t\r\n\t\tif (rank.equals(\"J\") || rank.equals(\"Q\") || rank.equals(\"K\"))\r\n\t\t{\r\n\t\t\t// face cards have rank of 10\r\n\t\t\trankValue = 10;\r\n\t\t}\r\n\t\telse if (rank.equals(\"A\"))\r\n\t\t{\r\n\t\t\t// ace has rank of 1\r\n\t\t\trankValue = 1;\r\n\t\t}\r\n\t\telse if (rank.equals(\"2\") || rank.equals(\"3\") || rank.equals(\"4\") || \r\n\t\t\t\t rank.equals(\"5\") || rank.equals(\"6\") || rank.equals(\"7\") || \r\n\t\t\t\t rank.equals(\"8\") || rank.equals(\"9\") || rank.equals(\"10\"))\r\n\t\t{\r\n\t\t\t// all others have rank of face value\r\n\t\t\trankValue = Integer.valueOf(rank);\r\n\t\t}\r\n\r\n\t\treturn rankValue;\r\n\t}", "static int choiceToInt(String choice) throws Exception {\n\t\tswitch(choice) {\n\t\t\tcase \"R\":\n\t\t\t\treturn 0;\n\t\t\tcase \"P\":\n\t\t\t\treturn 1;\n\t\t\tcase \"S\":\n\t\t\t\treturn 2;\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"I don't know how you did this\");\n\t\t}\n\t}", "public int getScore() {\n\t\tint darkDisks = 0;\r\n\t\tint lightDisks = 0;\r\n\r\n\t\tfor(Character c : board){\r\n\t\t\tif(c == '1'){\r\n\t\t\t\tdarkDisks++;\r\n\t\t\t}\r\n\t\t\telse if(c == '2'){\r\n\t\t\t\tlightDisks++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t//If dark wins\r\n\t\tif(darkDisks > lightDisks){\r\n\t\t\treturn 1;\r\n\t\t}\r\n\r\n\t\t//If light wins\r\n\t\telse if(darkDisks < lightDisks){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\t//For a tie\r\n\t\telse if(darkDisks == lightDisks){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t//Return 0 on a tie\r\n\t\treturn 0;\r\n\t}", "@Test\n public void NineAndMissExpected_90(){\n String input = \"9-9-9-9-9-9-9-9-9-9-\";\n assertEquals(game.scoreOfGame(input),90);\n }", "public static int yatzy(int scoreVal, int... result) {\n int score = 0;\n long uniqueValues = IntStream.of(result).distinct().count();\n if (uniqueValues == 1 && result.length > 1) {\n score = scoreVal;\n }\n return score;\n }", "public int getScore() {\n int score = 0;\n for (QuizFragment quizFragment : quizFragmentList) {\n score += quizFragment.isCorrect() ? 1 : 0;\n }\n return score;\n }", "public static int getScore()\n {\n return score;\n }", "public static int m2197ao(String str) {\n try {\n return Integer.valueOf(str).intValue();\n } catch (Exception e) {\n return -1;\n }\n }", "private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }", "public static int getInt(String str){\n int num=0;\n int count = 0;\n if (str.length() == 7)\n return 0;\n for (int i = str.length()-8; i >= 0; i --){\n if (str.charAt(i) == '1') {\n num += Math.pow(2, count);\n }\n count ++;\n }\n return num;\n }", "public int returnCorrectPos(String guess) {\n\t\tint correctPos = 0;\n\t\t\n\t\tfor (int i = 0; i < guess.length(); i++) {\n\t\t\tif (i > secretCode.length() - 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar guessNum = guess.charAt(i);\n\t\t\tchar secretCodeNum = secretCode.charAt(i);\n\t\t\tif (guessNum == secretCodeNum) {\n\t\t\t\tcorrectPos += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn correctPos;\n\t}", "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "public static int getInt (String ask)\r\n {\r\n boolean badInput = false;\r\n String input = new String(\"\");\r\n int value = 0;\r\n do {\r\n badInput = false;\r\n input = getString(ask);\r\n try {\r\n value = Integer.parseInt(input);\r\n }\r\n catch(NumberFormatException e){\r\n badInput = true;\r\n }\r\n }while(badInput);\r\n return value;\r\n }", "private int choice (String playerchoice){\n if(playerchoice.equals(\"rock\")){\n return 1;\n }\n else if(playerchoice.equals(\"paper\")){\n return 2;\n }\n else if(playerchoice.equals(\"scissors\")){\n return 3;\n }\n return 0;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "public int toIntSingleAnswer(String answer) {\n if (answer.equals(\"A\")) {\n return 1;\n }\n if (answer.equals(\"B\")) {\n return 2;\n }\n if (answer.equals(\"C\")) {\n return 3;\n } else {\n return 4;\n }\n }", "public static void main(String[] args) {\n\n\n String a=\"95.244522094727\";\n int score = (int)Double.parseDouble(a);\n System.out.println(score);\n }", "public static int checkValidity (String stringChoice) {\n int choice;\n Scanner parser = new Scanner(stringChoice);\n String modStringChoice = stringChoice.replaceAll(\"[\\\\d]\", \"\");\n if (modStringChoice.length() == 0 && parser.hasNextInt()) {\n choice = parser.nextInt();\n }\n else {\n choice = -1;\n }\n parser.close();\n return choice;\n }", "private int matchesInString(String result) {\n User[] userArray = gson.fromJson(result, User[].class); \n return userArray.length;\n }", "public void turnScore() {\n\n\n String scoreString = newScore.getText().toString();\n turnScore = Integer.parseInt(scoreString);\n\n }", "public int getScore(String playerName) {\n\t\treturn this.getMancala(playerName).getStones() + this.getStonesInPits(playerName);\n\t}", "int getScoreValue();", "public static int getScore (String word, int [] scoretable)\r\n {\r\n int wordScore = 0;\r\n char [] letters = word.toCharArray();\r\n String[] wordValues = word.split(\" \");\r\n for(int i = 0; i < letters.length; i++ )\r\n {\r\n int score = letters[i];\r\n wordScore = wordScore + scoretable[score - 97]; \r\n }\r\n //Gives word double score if consecutive double letters \r\n for (int j = 0; j < wordValues.length; j++)\r\n {\r\n for (int n = 0; n < (wordValues[j].length()-1); n++)\r\n {\r\n if(wordValues[j].charAt(n) == wordValues[j].charAt(n+1))\r\n {\r\n wordScore = wordScore * 2;\r\n }\r\n }\r\n }\r\n return wordScore;\r\n }", "public int parseNumPlayers() {\n\t\tboolean validParse = false;\n\t\tSystem.out.println(\"How many players are playing Legends of Heroes? (1-4)\");\n\t\t\n\t\twhile(!validParse) {\n\t\t\tint num = parseInt();\n\t\t\tif(num < 1 || num > 4) {\n\t\t\t\tprintErrorParse();\n\t\t\t} else {\n\t\t\t\tvalidParse = true;\n\t\t\t\treturn num;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "@Test\n public void allOnesExpected_20(){\n String input = \"11111111111111111111\";\n assertEquals(game.scoreOfGame(input),20);\n }", "public int getScore(String config) {\r\n\t\t// Calculate the position that the string configuration would be located using the hash function \r\n\t\tint position = createPosition(config);\r\n\t\tboolean check = true;\r\n\t\tNode node = table[position];\r\n\t\t// If there are no nodes in the position then return -1\r\n\t\tif (node == null) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t// If there is only one node return the score in that node\r\n\t\telse if (node.getNext() == null) {\r\n\t\t\treturn (node.getData().getScore());\r\n\t\t}\r\n\t\t// If there are multiple nodes find the node with the string configuration and return the score\r\n\t\telse {\r\n\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\twhile (check) {\r\n\t\t\t\tnode = node.getNext();\r\n\t\t\t\tif (node == null) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t}\r\n\t\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\t\tcheck = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn (node.getData().getScore());\r\n\t\t}\r\n\t}", "int getScore();", "public static int parseInt(String s) {\r\n // s consists of digit characters.\r\n // For example, if s is \"125\", the return value\r\n // should be 125.\r\n return Integer.parseInt(s);\r\n\r\n }", "static int row(String sq) {\n String s = sq.substring(1,2);\n return 9 - Integer.parseInt(s);\n }", "public int evaluateCardScore(int score, int rank) {\n //If the card is an ace\n if (rank == 0) {\n //If the score is 11 or greater, 11 value is bad\n if (score > 10)\n return 1;\n //if the score is 10 or less, 11 will raise score close to 21\n else\n return 11;\n }\n //Card is a court it is worth 10\n else if (rank > 9)\n return 10;\n //Any other card is worth its rank+1\n else\n return rank + 1;\n }", "abstract int nextTry(String guess);", "public int Converter(String string)\r\n {\r\n if(string.equals(\"0\"))\r\n return 0;\r\n else\r\n if(string.equals(\"1\"))\r\n return 1;\r\n else if(string.equals(\"2\"))\r\n {\r\n return 2;\r\n }else if(string.equals(\"3\"))\r\n {\r\n return 3;\r\n }else if(string.equals(\"4\"))\r\n {\r\n return 4;\r\n }\r\n \r\n return 1;\r\n }", "int score();", "int score();", "static Integer stringToInt(String s){\n int result = 0;\n for(int i = 0; i < s.length(); i++){\n //If the character is not a digit\n if(!Character.isDigit(s.charAt(i))){\n return null;\n }\n //Otherwise convert the digit to a number and add it to result\n result += (s.charAt(i) - '0') * Math.pow(10, s.length()-1-i);\n }\n return result;\n }", "public static int numDecodings(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint[] ways = new int[len + 1];\r\n\t\tways[0] = 1;\r\n\t\tways[1] = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.valueOf(s.substring(i - 1, i)); // 1 digit\r\n\t\t\t//System.out.println(\"c1: \" + code1);\r\n\t\t\tint code2 = Integer.valueOf(s.substring(i - 2, i)); // 2 digit\r\n\t\t\t//System.out.println(\"c2: \" + code2);\r\n\t\t\t\r\n\t\t\t//ways[i] = (code1 != 0 ? ways[i - 1] : 0) + (code2 <= 26 && code2 > 9 ? ways[i - 2] : 0);\r\n\t\t\tif(code1 >= 1 && code1 <= 9)\r\n\t\t\t\tways[i] = ways[i - 1];\r\n\t\t\tif(code2 >= 10 && code2 <= 26)\r\n\t\t\t\tways[i] += ways[i - 2];\r\n\t\t\t//System.out.println(\"ways[\" + i + \"]: \" + ways[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn ways[len];\r\n\t}", "@Test\n public void allStrikesExpected_300(){\n String input = \"XXXXXXXXXXXX\";\n assertEquals(game.scoreOfGame(input),300);\n }", "private int findScore(String dateToFind)\n {\n int k = -1;\n int NOTFOUND = -1;\n for(int i = 0; i < scores.length; i++)\n {\n if(scores[i].getDate().equals(dateToFind))\n {\n k = i;\n break;\n }\n }\n if(k != -1)\n {\n return k;\n }\n else\n {\n return NOTFOUND;\n }\n }", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "@Override\n\tpublic int getScore(ArrayList<String> ansList) {\n\t\tString ans = ansList.get(0);\n\t\tif (ans.matches(answer)) {\n\t\t\treturn score;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "private int numOfTotalExerciseAttempts(int eid){\n\t\ttry{\n\t\t\tConnection conn = DBConnection.getConnection();\n\t\t\tPreparedStatement stmt1 = conn.prepareStatement(\"SELECT COUNT(*) FROM Attempt A \" +\n\t\t\t\t\t\"WHERE(A.eid = ? ) \");\n\t\t\tstmt1.setInt(1, eid);\n\t ResultSet rs = stmt1.executeQuery();\n\t if(rs.next()) return rs.getInt(\"COUNT(*)\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Problem in getting number of attempts for ProfShowHomeworkScores: \"+ e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}", "private static int getIntValue(String s) {\n try {\n return Integer.parseInt(s, 16);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return -1;\n }\n }", "@SmallTest\n\tpublic void testScore_displayed() {\n\t\tassertEquals((Integer) START_SCORE, Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "public int score(String name) {\n return name.indexOf(this.name + \"_\");\n }", "public static int approach2(String str) {\n\t\tMap<Character, Integer> charToCountMap = new HashMap<Character, Integer>();\n\t\tint strLength = str.length();\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.containsKey(str.charAt(i))) {\n\t\t\t\tcharToCountMap.put(str.charAt(i), charToCountMap.get(str.charAt(i)) + 1);\n\t\t\t} else {\n\t\t\t\tcharToCountMap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.get(str.charAt(i)) > 1) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public int calculScore(Deck deck)\n {\n return 0;\n }", "private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\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 }", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "public int calcPassedCourseNum(){\n int score = 0;\n \n score += course1.isPassed() ? 1 : 0;\n score += course2.isPassed() ? 1 : 0;\n score += course3.isPassed() ? 1 : 0;\n \n return score;\n }", "public static int findNumber(String s) {\r\n if (s==null) {\r\n return -1;\r\n }\r\n char[] str=s.toCharArray();\r\n int first=0;\r\n int last;\r\n while (first<str.length && !Character.isDigit(str[first])) {\r\n first++;\r\n }\r\n last=first;\r\n while (last<str.length && Character.isDigit(str[last])) {\r\n last++;\r\n }\r\n if (first<str.length) {\r\n String resStr=s.substring(first,last);\r\n return Integer.parseInt(resStr);\r\n }\r\n return -1;\r\n }", "public int getNumber(String s) {\n String snum = s.substring(1,s.length()-1);\n return Integer.parseInt(snum);\n }", "public static int parseInt(String s){\r\n int v=-1;\r\n try{\r\n v = Integer.parseInt(s);\r\n }catch(NumberFormatException e){\r\n \r\n }\r\n return v;\r\n }", "@Override\n\tpublic int func1(String s) {\n\t\tfor(int i=0; i<=s.length()-1; i++) {\n\t\t\tif(s.charAt(i)>=48 && s.charAt(i)<=57) {\n\t\t\t\treturn Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public Integer score() {\r\n List<Card> aceCards = new ArrayList<>();\r\n int score = 0;\r\n for (Card card : cards) {\r\n if (card.getValue().equals(CardValueType.JACK) ||\r\n card.getValue().equals(CardValueType.QUEEN) ||\r\n card.getValue().equals(CardValueType.KING)) {\r\n score += 10;\r\n } else if (card.getValue().equals(CardValueType.ACE)) {\r\n aceCards.add(card);\r\n } else {\r\n score += Integer.parseInt(card.getValue().getShortName());\r\n }\r\n }\r\n if (!aceCards.isEmpty()) {\r\n if (score + aceCards.size() > 11) {\r\n score += aceCards.size();\r\n } else {\r\n score += 11;\r\n score += (aceCards.size() - 1);\r\n }\r\n }\r\n return score;\r\n }", "public static String calculateScore(String textToScore) {\r\n\r\n\t\tdouble nbSentences = 0.0;\r\n\t\tdouble nbWords = 0.0;\r\n\t\tdouble nbSyllables = 0.0;\r\n\t\tString result = \"\";\r\n\r\n\t\tif (textToScore != null) {\r\n\t\t\tString[] sentences = textToScore.split(\"\\\\.\");\r\n\t\t\tString[] words;\r\n\r\n\t\t\tfor (int i = 0; i < sentences.length; i++) {\r\n\t\t\t\twords = sentences[i].split(\"\\\\s+\");\r\n\t\t\t\tnbSentences++;\r\n\t\t\t\tfor (int j = 0; j < words.length; j++) {\r\n\t\t\t\t\tnbWords++;\r\n\t\t\t\t\tnbSyllables += countSyllables(words[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (nbSentences > 0 && nbWords > 0 && nbSyllables > 0) {\r\n\t\t\t\tdouble fkra = (0.39 * (nbWords / nbSentences)) + (11.8 * (nbSyllables / nbWords)) - 15.59;\r\n\t\t\t\tlong round = Math.round(fkra);\r\n\t\t\t\tif(round<1) {\r\n\t\t\t\t\tround = 1;\r\n\t\t\t\t}\r\n\t\t\t\telse if (round>10) {\r\n\t\t\t\t\tround = 10;\r\n\t\t\t\t} \r\n\t\t\t\tresult = String.valueOf(round);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public int answerCheck() {\n int score = -36; // 36 squares already filled in game.\n char[][] userAnswer = new char[9][9];\n \n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n userAnswer[i][j] = index[i][j].getText().charAt(0);\n }\n }\n \n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if(answer[i][j] == userAnswer[i][j]){\n score++;\n }\n }\n }\n return score;\n }", "private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "int getScoresCount();", "public void displayTriesForPlayerA(int score) {\n triesViewPlayerA.setText(String.valueOf(score));\n }", "public int scoreOf(String word) {\n if (dictionary.contains(word)) {\n switch (word.length()) {\n case 0:\n case 1:\n case 2:\n return 0;\n case 3:\n case 4:\n return 1;\n case 5:\n return 2;\n case 6:\n return 3;\n case 7:\n return 5;\n default:\n return 11;\n }\n } else {\n return 0;\n }\n }", "public static boolean isValidScore(String score) {\n\n try {\n return isValidScore(parseCorrectAttempts(score), parseTotalAttempts(score));\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }" ]
[ "0.7941609", "0.64881545", "0.64859235", "0.64271665", "0.63684094", "0.6252269", "0.61121154", "0.6100351", "0.6080222", "0.60441786", "0.60441655", "0.60108346", "0.5936748", "0.58907855", "0.5876073", "0.5823387", "0.58189666", "0.5817059", "0.5812302", "0.58095694", "0.58008504", "0.5791931", "0.5784936", "0.5762145", "0.57193255", "0.5699452", "0.5693862", "0.5688679", "0.5649132", "0.5618683", "0.5605714", "0.5602621", "0.5588114", "0.5585712", "0.5573825", "0.5573096", "0.5565909", "0.55618507", "0.5551025", "0.55359507", "0.5535403", "0.55294997", "0.55224967", "0.5518608", "0.55117273", "0.5507904", "0.5500859", "0.54978275", "0.54858214", "0.54852945", "0.5473973", "0.5473587", "0.5470591", "0.5469372", "0.54689234", "0.54685557", "0.54670674", "0.54638606", "0.54624367", "0.5453116", "0.5451717", "0.545054", "0.54413307", "0.54375947", "0.54375947", "0.54369295", "0.5433265", "0.54314643", "0.54257447", "0.54121155", "0.5402359", "0.5400316", "0.5399241", "0.5394844", "0.5394834", "0.5387568", "0.5387273", "0.5380016", "0.5371231", "0.5366611", "0.5366492", "0.5366278", "0.53615016", "0.5361276", "0.5352388", "0.5332971", "0.5330421", "0.5326303", "0.5323946", "0.5322876", "0.5322876", "0.5322876", "0.5322876", "0.53146565", "0.5311648", "0.53035724", "0.5302285", "0.5299243", "0.5298615", "0.52938056" ]
0.80691564
0
Returns number of total attempts as integer from score string.
private static int parseTotalAttempts(String score) throws NumberFormatException { String[] splitString = score.split("/"); if (splitString.length != 2) { throw new NumberFormatException("Score is not formatted correctly."); } return Integer.parseInt(splitString[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int parseCorrectAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[0]);\n }", "public static int getScoreInSeconds(String score) {\r\n\t\tint secondsScore = 0;\r\n\t\t\r\n\t\tString[] vals = score.split(\"m\");\r\n\t\t//minutes\r\n\t\tint mins = Integer.parseInt(vals[0].replace(\" \", \"\"));\r\n\t\tint secs = Integer.parseInt(vals[1].replace(\"s\", \"\").replace(\" \", \"\"));\r\n\t\tsecondsScore = mins * 60 + secs;\r\n\t\t\r\n\t\treturn secondsScore;\r\n\t}", "public int getScrabbleScore(String string) {\n\t\t\n\t\t//Create a hashmap of each letter and its corresponding score value\n\t\t\n\t\tHashMap<Character, Integer> lettersAndScores = new HashMap<Character, Integer>(26);\n\t\tlettersAndScores.put('A', 1);\n\t\tlettersAndScores.put('E', 1);\n\t\tlettersAndScores.put('I', 1);\n\t\tlettersAndScores.put('O', 1);\n\t\tlettersAndScores.put('U', 1);\n\t\tlettersAndScores.put('L', 1);\n\t\tlettersAndScores.put('N', 1);\n\t\tlettersAndScores.put('R', 1);\n\t\tlettersAndScores.put('S', 1);\n\t\tlettersAndScores.put('T', 1);\n\t\tlettersAndScores.put('D', 2);\n\t\tlettersAndScores.put('G', 2);\n\t\tlettersAndScores.put('B', 3);\n\t\tlettersAndScores.put('C', 3);\n\t\tlettersAndScores.put('M', 3);\n\t\tlettersAndScores.put('P', 3);\n\t\tlettersAndScores.put('F', 4);\n\t\tlettersAndScores.put('H', 4);\n\t\tlettersAndScores.put('V', 4);\n\t\tlettersAndScores.put('W', 4);\n\t\tlettersAndScores.put('Y', 4);\n\t\tlettersAndScores.put('K', 5);\n\t\tlettersAndScores.put('J', 8);\n\t\tlettersAndScores.put('X', 8);\n\t\tlettersAndScores.put('Q', 10);\n\t\tlettersAndScores.put('Z', 10);\n\t\t\n\t\t//Insert the characters of the string into the hashmap to get the corresponding values\n\t\t//Add the values to a score variable to then return\n\t\t\n\t\tint score = 0;\n\t\tfor(int i=0; i<string.length(); i++) {\n\t\t\tscore += lettersAndScores.get(Character.toUpperCase(string.charAt(i)));\n\t\t}\n\t\treturn score;\n\t}", "public int getScrabbleScore(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tHashtable<Character, Integer> letterBank = new Hashtable<Character, Integer>();\n\t\tletterBank.put('A', 1);\n\t\tletterBank.put('B', 3);\n\t\tletterBank.put('C', 3);\n\t\tletterBank.put('D', 2);\n\t\tletterBank.put('E', 1);\n\t\tletterBank.put('F', 4);\n\t\tletterBank.put('G', 2);\n\t\tletterBank.put('H', 4);\n\t\tletterBank.put('I', 1);\n\t\tletterBank.put('J', 8);\n\t\tletterBank.put('K', 5);\n\t\tletterBank.put('L', 1);\n\t\tletterBank.put('M', 3);\n\t\tletterBank.put('N', 1);\n\t\tletterBank.put('O', 1);\n\t\tletterBank.put('P', 3);\n\t\tletterBank.put('Q', 10);\n\t\tletterBank.put('R', 1);\n\t\tletterBank.put('S', 1);\n\t\tletterBank.put('T', 1);\n\t\tletterBank.put('U', 1);\n\t\tletterBank.put('V', 4);\n\t\tletterBank.put('W', 4);\n\t\tletterBank.put('X', 8);\n\t\tletterBank.put('Y', 4);\n\t\tletterBank.put('Z', 10);\n\t\tint score = 0;\n\t\tchar upperCase;\n\t\tfor(int i =0; i < string.length(); i++) {\n\t\t\tif(Character.isLowerCase(string.charAt(i))){\n\t\t\t\tupperCase = Character.toUpperCase(string.charAt(i));\n\t\t\t\tscore += letterBank.get(upperCase);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tscore += letterBank.get(string.charAt(i));\n\t\t\t}\n\t\t}\n\t\t//System.out.println(score);\n\t\treturn score;\n\t}", "public static int scoreNumbersOnly( String password ) {\n\t\tString pattern = \"[^0-9]\" ;\r\n\t\tint score = 0 ;\r\n\r\n\t\tint count = regexCount( password, pattern ) ;\r\n\r\n\t\tif ( count == 0 ) {\r\n\t\t\tscore = password.length() ;\r\n\t\t}\r\n\r\n\t\treturn score ;\r\n\t}", "private Integer calculateScoreNumber(double score)\r\n\t{\r\n\t\t//Formula for scoreNumber => {intValue / 0.25} + {number associated \r\n\t\t//with fractionalValue based on which range it belongs to}\r\n\t\tint scoreNumber = (int)(score / 0.25);\r\n\t\tdouble fractionValue = score % 0.25;\r\n\r\n\t\tif(fractionValue > 0.12)\r\n\t\t\tscoreNumber++;\r\n\r\n\t\treturn scoreNumber;\r\n\t}", "public int getScrabbleScore(String string) {\n\n\t\tif (!string.matches(\"([a-zA-Z])+\"))\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tint score = 0;\n\t\tfor (char c : (string.toUpperCase()).toCharArray()) {\n\t\t\tswitch (c) {\n\t\t\tcase 'D':\n\t\t\tcase 'G':\n\t\t\t\tscore += 2;\n\t\t\t\tbreak;\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'M':\n\t\t\tcase 'P':\n\t\t\t\tscore += 3;\n\t\t\t\tbreak;\n\t\t\tcase 'F':\n\t\t\tcase 'H':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'Y':\n\t\t\t\tscore += 4;\n\t\t\t\tbreak;\n\t\t\tcase 'K':\n\t\t\t\tscore += 5;\n\t\t\t\tbreak;\n\t\t\tcase 'J':\n\t\t\tcase 'X':\n\t\t\t\tscore += 8;\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\tcase 'Z':\n\t\t\t\tscore += 10;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tscore += 1;\n\t\t\t}\n\t\t}\n\t\treturn score;\n\t}", "private int getOSRSPlayerCount() {\n try {\n Document document = Jsoup.connect(\"https://oldschool.runescape.com\").get();\n String playerCountText = document.getElementsByClass(\"player-count\").get(0).text();\n Matcher matcher = Pattern.compile(\"[\\\\d,?]+\").matcher(playerCountText);\n if(!matcher.find()) {\n throw new Exception();\n }\n playerCountText = playerCountText.substring(matcher.start(), matcher.end());\n return Integer.parseInt(playerCountText.replace(\",\", \"\"));\n }\n catch(Exception e) {\n return 0;\n }\n }", "private double parseScore(String s) {\n String[] arg = s.split(\" \");\n double score = Double.parseDouble(arg[0]);\n // double total = Double.parseDouble(arg[3]);\n return score;\n }", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "private int heuristicValue(String boardString) {\n String[] tokens = boardString.split(\"\\n\");\n int blackScore = Integer.parseInt(tokens[0].split(\",\")[9]);\n int whiteScore = Integer.parseInt(tokens[1].split(\",\")[9]);\n\n return blackScore - whiteScore;\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }", "public long getScoreEssay(Essay essay, String answer)\n {\n return 0;\n }", "public int getScore() {\r\n\t\tint sum = 0;\r\n\t\tint value;\r\n\t\tint aces = 0;\r\n\t\t\r\n\t\t// Gets card values from hand\r\n\t\tfor (int i = 0; i < cards; i++) {\r\n\t\t\tvalue = this.Hand.get(i).cardValue();\r\n\t\t\tsum = sum + value;\r\n\t\t\tif (value == 11) {\r\n\t\t\t\taces++;\r\n\t\t\t}\r\n\t\t\tvalue = 0;\r\n\t\t}\r\n\t\t\r\n\t\twhile (aces > 0 && sum > 21) {\r\n\t\t\tsum = sum - 10;\r\n\t\t\taces--;\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "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 int getScore(String nickname) {\n\t\treturn scoreboard.get(nickname);\n\t}", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore(String playerName) {\n\t\treturn this.getMancala(playerName).getStones() + this.getStonesInPits(playerName);\n\t}", "public int getTotalScore() {\r\n return totalScore;\r\n }", "public int scoreOf(String word) {\n int len = word.length();\n if (!contains(word) || len <= 2) return 0;\n else if (len == 3 || len == 4) return 1;\n else if (len == 5) return 2;\n else if (len == 6) return 3;\n else if (len == 7) return 5;\n return 11;\n }", "public int guessCount(String tester, char guess) {\n StringBuilder r = new StringBuilder(tester);\n\n int guessCount = 0;\n for (int i = 0; i < tester.length(); i++) {\n if (r.charAt(i) == guess) {\n guessCount++;\n }\n }\n\n return guessCount;\n }", "public String getStringScore() {\n\t\treturn Integer.toString(score);\n\t}", "public static int numberCount(String str){\n return containDigit(str) ? count(str, numberPattern) : 0;\n }", "public int getScoreInt() {\n return scoreInt;\n }", "private int computeScore() {\n int score = 0;\n for (int i = 0; i < MainActivity.DEFAULT_SIZE; i++) {\n TextView answerView = (TextView) findViewById(MainActivity.NAME_VIEWS[i]);\n String answer = answerView.getText().toString();\n String solution = getQuizCountries().get(i).getName();\n if (answer.equals(solution)) {\n score++;\n }\n }\n return score;\n }", "public int getTotalScore() {\n\t\tLoadingDatabaseTotalScore();\n\t\treturn totalScore;\n\t}", "int getScoresCount();", "private int getNumberOfRulesPerSolution() throws NumberFormatException {\n\t\tfinal String USER_INPUT = numberOfRulesPerSolution.getText();\n\t\tint temp = 0;\n\t\ttry {\n\t\t\ttemp = Integer.parseInt(USER_INPUT);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString errorMessage = \"Number of Rules per Solution is expected to be an Integer value, but you input '\";\n\t\t\terrorMessage += USER_INPUT;\n\t\t\terrorMessage += \"'. Please fix this before moving on.\";\n\t\t\tJOptionPane.showMessageDialog(this, errorMessage,\n\t\t\t\t\"Number of Rules per Solution must be a positive Interger!\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\tthrow new NumberFormatException(errorMessage);\n\t\t}\n\t\treturn temp; \n\t}", "public int totalScore() {\n return 0;\n }", "private int numOfTotalExerciseAttempts(int eid){\n\t\ttry{\n\t\t\tConnection conn = DBConnection.getConnection();\n\t\t\tPreparedStatement stmt1 = conn.prepareStatement(\"SELECT COUNT(*) FROM Attempt A \" +\n\t\t\t\t\t\"WHERE(A.eid = ? ) \");\n\t\t\tstmt1.setInt(1, eid);\n\t ResultSet rs = stmt1.executeQuery();\n\t if(rs.next()) return rs.getInt(\"COUNT(*)\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Problem in getting number of attempts for ProfShowHomeworkScores: \"+ e.getMessage());\n\t\t}\n\t\treturn 0;\n\t}", "public static int getScore()\n {\n return score;\n }", "public static int getHealthScore(String hstr) {\n try {\n int score = HEALTH_SYMPTOM_NUM;\n for (int i = 0; i < HEALTH_SYMPTOM_NUM; i++)\n if (0 == ONE.compareTo(String.valueOf(hstr.charAt(i))))\n score--;\n return score;\n } catch (Exception e) {\n return 0;\n }\n }", "private double getScore() {\n double score = 0;\n score += getRBAnswers(R.id.radiogroup1, R.id.radiobutton_answer12);\n score += getRBAnswers(R.id.radiogroup2, R.id.radiobutton_answer21);\n score += getRBAnswers(R.id.radiogroup3, R.id.radiobutton_answer33);\n score += getRBAnswers(R.id.radiogroup4, R.id.radiobutton_answer41);\n score += getCBAnswers();\n score += getTextAns();\n score = Math.round(score / .0006);\n score = score / 100;\n return score;\n }", "public static int getRankValue(String rank)\r\n\t{\n\t\tint rankValue = 0;\r\n\t\t\t\t\r\n\t\tif (rank.equals(\"J\") || rank.equals(\"Q\") || rank.equals(\"K\"))\r\n\t\t{\r\n\t\t\t// face cards have rank of 10\r\n\t\t\trankValue = 10;\r\n\t\t}\r\n\t\telse if (rank.equals(\"A\"))\r\n\t\t{\r\n\t\t\t// ace has rank of 1\r\n\t\t\trankValue = 1;\r\n\t\t}\r\n\t\telse if (rank.equals(\"2\") || rank.equals(\"3\") || rank.equals(\"4\") || \r\n\t\t\t\t rank.equals(\"5\") || rank.equals(\"6\") || rank.equals(\"7\") || \r\n\t\t\t\t rank.equals(\"8\") || rank.equals(\"9\") || rank.equals(\"10\"))\r\n\t\t{\r\n\t\t\t// all others have rank of face value\r\n\t\t\trankValue = Integer.valueOf(rank);\r\n\t\t}\r\n\r\n\t\treturn rankValue;\r\n\t}", "private static int calculateScore( String word )\n\t{\n\t\tif (word.equals(\"rc\")) {\n\t\t\treturn -1;\n\t\t} else if (word.equals(\"b\")) {\n\t\t\treturn -2;\n\t\t} else if (word.equals(\"beta\")) {\n\t\t\treturn -3;\n\t\t} else if (word.equals(\"a\")) {\n\t\t\treturn -4;\n\t\t} else if (word.equals(\"alpha\")) {\n\t\t\treturn -5;\n\t\t} else if (word.equals(\"snapshot\")) {\n\t\t\treturn -10;\n\t\t} else if (word.equals(\"push0ver\")) {\n\t\t\treturn -11;\n\t\t} else if (word.equals(\"cvs\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"svn\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"bzr\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"hg\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"git\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"rev\")) {\n\t\t\treturn -100;\n\t\t} else if (word.equals(\"r\")) {\n\t\t\treturn -101;\n\t\t} else if (word.equals(\"release\")) {\n\t\t\treturn 12;\n\t\t} else if (word.equals(\"update\")) {\n\t\t\treturn 11;\n\t\t} else if (word.equals(\"u\")) {\n\t\t\treturn 10;\n\t\t} else if (word.equals(\"patch\")) {\n\t\t\treturn 9;\n\t\t} else if (word.equals(\"p\")) {\n\t\t\treturn 8;\n\t\t} else if (word.equals(\"hotfix\")) {\n\t\t\treturn 7;\n\t\t} else if (word.equals(\"fix\")) {\n\t\t\treturn 6;\n\t\t}\n\t\tLong l = toLong( word );\n\t\treturn l != null ? 100 : 0; // a pure number (with no alpha) wins against all of those.\n\t}", "public static int parseInt(String s) {\r\n // s consists of digit characters.\r\n // For example, if s is \"125\", the return value\r\n // should be 125.\r\n return Integer.parseInt(s);\r\n\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "static Integer stringToInt(String s){\n int result = 0;\n for(int i = 0; i < s.length(); i++){\n //If the character is not a digit\n if(!Character.isDigit(s.charAt(i))){\n return null;\n }\n //Otherwise convert the digit to a number and add it to result\n result += (s.charAt(i) - '0') * Math.pow(10, s.length()-1-i);\n }\n return result;\n }", "public Integer score() {\r\n List<Card> aceCards = new ArrayList<>();\r\n int score = 0;\r\n for (Card card : cards) {\r\n if (card.getValue().equals(CardValueType.JACK) ||\r\n card.getValue().equals(CardValueType.QUEEN) ||\r\n card.getValue().equals(CardValueType.KING)) {\r\n score += 10;\r\n } else if (card.getValue().equals(CardValueType.ACE)) {\r\n aceCards.add(card);\r\n } else {\r\n score += Integer.parseInt(card.getValue().getShortName());\r\n }\r\n }\r\n if (!aceCards.isEmpty()) {\r\n if (score + aceCards.size() > 11) {\r\n score += aceCards.size();\r\n } else {\r\n score += 11;\r\n score += (aceCards.size() - 1);\r\n }\r\n }\r\n return score;\r\n }", "public static int find_a_num(String question)\n\t{\n\t\t\n\t\tint first_par = 0;\n\t\tint second_par = 0;\n\t\t\n\t\tint a;\n\t\t\n\t\tfirst_par = question.indexOf(\"(\");\n\t\tsecond_par = question.indexOf(\"x\");\n\t\t\n\t\t\n\t\ta = Integer.parseInt(question.substring(first_par+1,second_par));\n\t\t\n\t\t\n\t\treturn a;\n\t}", "public int score()\n {\n if (this.score != Integer.MIN_VALUE)\n return this.score;\n\n this.score = 0;\n if (!this.safe)\n return 0;\n\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.score = (this.d.size() * 100) + ((this.NE - this.e.size()) * 10) + (this.e.size() == 0 ? bonus : 0);\n\n // value:\n return this.score;\n }", "private int priorityStringToInt(String string) {\n // Convert the priority of the editText from letters to a single digit\n switch (string) {\n case \"High Priority\":\n return 0;\n case \"Medium Priority\":\n return 1;\n case \"Low Priority\":\n return 2;\n default:\n return -1;\n }\n }", "public int getNumber(String s) {\n String snum = s.substring(1,s.length()-1);\n return Integer.parseInt(snum);\n }", "private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }", "public static int numeralSum(String s) {\n\t\tint yeehaw=0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif(Character.isDigit(s.charAt(i))==true) {\n\t\t\tyeehaw+=Character.getNumericValue(s.charAt(i));\n\t\t\t}\n\t\t\t}\n\t\treturn yeehaw;\n\t}", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "public int calcPassedCourseNum(){\n int score = 0;\n \n score += course1.isPassed() ? 1 : 0;\n score += course2.isPassed() ? 1 : 0;\n score += course3.isPassed() ? 1 : 0;\n \n return score;\n }", "public int getScore() {\n int score = 0;\n for (QuizFragment quizFragment : quizFragmentList) {\n score += quizFragment.isCorrect() ? 1 : 0;\n }\n return score;\n }", "public void countScore(int score)\n {\n scoreCounter.add(score);\n }", "public static int getCount(String s, int end){\n String count = \"\";\n for(int i=end; i>=0; i--){\n char c = s.charAt(i);\n if(c -'0'< 10 && c - '0' >= 0)\n count = c + count;\n else\n break;\n }\n return Integer.valueOf(count);\n }", "private int calculateScore(ArrayList<HexCell> stack){\n int score = 0;\n for(HexCell current: stack){\n score += current.score;\n }\n return score;\n }", "public int parseNumPlayers() {\n\t\tboolean validParse = false;\n\t\tSystem.out.println(\"How many players are playing Legends of Heroes? (1-4)\");\n\t\t\n\t\twhile(!validParse) {\n\t\t\tint num = parseInt();\n\t\t\tif(num < 1 || num > 4) {\n\t\t\t\tprintErrorParse();\n\t\t\t} else {\n\t\t\t\tvalidParse = true;\n\t\t\t\treturn num;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public static int getExamScore(boolean SAT_Score, String prompt) \n {\n if(SAT_Score)\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 200 and 800: \");\n int response = console.nextInt();\n if(response>=200 && response <=800)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n else\n {\n System.out.println(\"\\t Enter \" + prompt + \" score between 1 and 36: \");\n int response = console.nextInt();\n if(response>=1 && response <=36)\n {\n return response;\n }\n else\n {\n throw new IllegalArgumentException(\"Value must be between 200 and 800.\");\n }\n }\n }", "static public int estimateSize( String roll ) throws ParseException {\r\n\t\t//TODO this is almost same as parseRoll method, if only java had closures.. Could make it use anonymous class tho. Investigate.\r\n\t\tString terms[];\r\n if( roll.contains(\"+\"))\r\n terms = roll.split(\"\\\\+\");\r\n else\r\n terms = new String[]{roll};\r\n int throwSizeTotal=0;\r\n for( int i=0; i<terms.length; i++ ) {\r\n if( terms[i].matches(\"\\\\s*?\\\\d*?d\\\\d+\\\\s*?\")) { //match whitespace digit-'d'-digit\r\n terms[i] = terms[i].trim();\r\n if( terms[i].split(\"d\")[0].equals(\"\") )\r\n \tthrowSizeTotal+=1;\t\t//if no size is specified, use 1. eg a term like \"d6\"\r\n else\r\n \ttry {\r\n \t\tthrowSizeTotal += Integer.parseInt( terms[i].split(\"d\")[0] );\r\n \t} catch( NumberFormatException nfe ) {\r\n \tthrow new ParseException( \"Throw size too big\", -1 );\r\n }\r\n } else {\r\n throw new ParseException(\"Error parsing roll\", -1); \r\n } \r\n }\r\n return throwSizeTotal;\r\n\t}", "int getScore();", "public int titleToNumber(String s) {\n if(s == null || s.length() == 0){\n return 0;\n }\n \n int result = 0;\n for(int i = 0; i < s.length(); i++){\n result = result * 26 + s.charAt(i) - 'A' + 1;\n }\n return result;\n }", "public int getScore(String config) {\r\n\t\t// Calculate the position that the string configuration would be located using the hash function \r\n\t\tint position = createPosition(config);\r\n\t\tboolean check = true;\r\n\t\tNode node = table[position];\r\n\t\t// If there are no nodes in the position then return -1\r\n\t\tif (node == null) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t// If there is only one node return the score in that node\r\n\t\telse if (node.getNext() == null) {\r\n\t\t\treturn (node.getData().getScore());\r\n\t\t}\r\n\t\t// If there are multiple nodes find the node with the string configuration and return the score\r\n\t\telse {\r\n\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\twhile (check) {\r\n\t\t\t\tnode = node.getNext();\r\n\t\t\t\tif (node == null) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t}\r\n\t\t\t\tif (node.getData().getStringConfiguration().equals(config)) {\r\n\t\t\t\t\tcheck = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn (node.getData().getScore());\r\n\t\t}\r\n\t}", "public int titleToNumber(String s) {\n int val = 0;\n //go thru string\n for (int i = 0; i < s.length(); i++){\n \t//26 letts of alph add the int val of that character \n val = val * 26 + (int) s.charAt(i) - (int) 'A' + 1;\n }\n return val;\n }", "public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}", "public int titleToNumber(String s) {\n\t int sum = 0;\n\t // for (int i= s.length()-1; i >= 0; i--) {\n\t // sum = sum + (int) Math.pow(26, s.length()-1-i)*(s.charAt(i) - 'A' + 1);\n\t // }\n\t for (int i=0; i<s.length(); i++) {\n\t sum = sum*26 + (s.charAt(i) - 'A' + 1);\n\t }\n\t return sum;\n\t }", "public int score(String name) {\n return name.indexOf(this.name + \"_\");\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic int getScore(String name){\n\t\t\tIterator<JSONObject> iterator = allFriends.iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tJSONObject u=iterator.next();\n\t\t\t\tString nameOfUser = (String) u.get(\"nick\");\n\t\t\t\t//quando trovo l'utente stampo\n\t\t\t\tif(nameOfUser.equals(name)){\n\t\t\t\t\tLong score = (Long) u.get(\"score\");\n\t\t\t\t\t\n\t\t\t\t\treturn score.intValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public static int numeralSum(String s) {\n\t\tString[] numbs = s.split(\"\");\n\t\t//ArrayList<Integer> ints = new ArrayList<Integer>();\n\t\tint ints = 0;\n\t\tfor (int i = 0; i < numbs.length; i++) {\n\t\t\ttry {\n\t\t\t\tints = ints + Integer.parseInt(numbs[i]);\n\t\t\t\t\n\t\t\t}catch(Exception e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}", "public static int findNumber(String s) {\r\n if (s==null) {\r\n return -1;\r\n }\r\n char[] str=s.toCharArray();\r\n int first=0;\r\n int last;\r\n while (first<str.length && !Character.isDigit(str[first])) {\r\n first++;\r\n }\r\n last=first;\r\n while (last<str.length && Character.isDigit(str[last])) {\r\n last++;\r\n }\r\n if (first<str.length) {\r\n String resStr=s.substring(first,last);\r\n return Integer.parseInt(resStr);\r\n }\r\n return -1;\r\n }", "public int extractInt(String s) {\n String pattern = \"(\\\\d+)\";\n //Create a Pattern object\n Pattern r = Pattern.compile(pattern);\n //Look for a match\n Matcher m = r.matcher(s);\n if (m.find( )) {\n Log.i(\"REGEX\", \"Found value: \" + m.group(0));\n return Integer.parseInt(m.group(0));\n } else {\n Log.i(\"REGEX\", \"No match found.\");\n return 0;\n }\n }", "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 static int getPlayerScore()\r\n\t{\r\n\t\treturn playerScore;\r\n\t}", "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "private int extractDigits(String courseCode) {\n CharMatcher matcher = CharMatcher.javaLetter();\n String digitOnly = matcher.removeFrom(courseCode);\n int digits = Integer.parseInt(digitOnly);\n return digits;\n }", "int getScoreValue();", "public static int convierte(String s) throws InvalidParameter {\n int num = 0;\n int prevnum = 2000;\n int total = 0;\n for(int i = 0; i < s.length(); i++){\n num = letraADec(s.charAt(i));\n if(num > prevnum){\n if(checkRestaValida(prevnum, num)){\n total = total + num - 2*prevnum;\n }else{\n throw new InvalidParameter(\"Numero no romano\");\n }\n }else{\n total = total + num;\n }\n prevnum = num;\n }\n return total;\n }", "public int calculScore(Deck deck)\n {\n return 0;\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 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 }", "public int getScore() {\n return getStat(score);\n }", "public final int getScore() {\n\t\treturn score;\n\t}", "public int score() {\n return score;\n }", "public static String calculateScore(String textToScore) {\r\n\r\n\t\tdouble nbSentences = 0.0;\r\n\t\tdouble nbWords = 0.0;\r\n\t\tdouble nbSyllables = 0.0;\r\n\t\tString result = \"\";\r\n\r\n\t\tif (textToScore != null) {\r\n\t\t\tString[] sentences = textToScore.split(\"\\\\.\");\r\n\t\t\tString[] words;\r\n\r\n\t\t\tfor (int i = 0; i < sentences.length; i++) {\r\n\t\t\t\twords = sentences[i].split(\"\\\\s+\");\r\n\t\t\t\tnbSentences++;\r\n\t\t\t\tfor (int j = 0; j < words.length; j++) {\r\n\t\t\t\t\tnbWords++;\r\n\t\t\t\t\tnbSyllables += countSyllables(words[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (nbSentences > 0 && nbWords > 0 && nbSyllables > 0) {\r\n\t\t\t\tdouble fkra = (0.39 * (nbWords / nbSentences)) + (11.8 * (nbSyllables / nbWords)) - 15.59;\r\n\t\t\t\tlong round = Math.round(fkra);\r\n\t\t\t\tif(round<1) {\r\n\t\t\t\t\tround = 1;\r\n\t\t\t\t}\r\n\t\t\t\telse if (round>10) {\r\n\t\t\t\t\tround = 10;\r\n\t\t\t\t} \r\n\t\t\t\tresult = String.valueOf(round);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "Integer totalRetryAttempts();", "@Override\n protected Integer count() {\n Matcher matcher = UPPER.matcher(this.password);\n Integer score = 0;\n\n while (matcher.find()) {\n score++;\n }\n\n return score;\n }", "public int getPlayerScore();", "public int getTotalScore(){\r\n return totalScore;\r\n }", "@Override\n public int getScore(String username) throws RemoteException {\n Player p = getPlayer(username);\n return p != null ? p.getScore() : -1;\n }", "public static int getScore (String word, int [] scoretable)\r\n {\r\n int wordScore = 0;\r\n char [] letters = word.toCharArray();\r\n String[] wordValues = word.split(\" \");\r\n for(int i = 0; i < letters.length; i++ )\r\n {\r\n int score = letters[i];\r\n wordScore = wordScore + scoretable[score - 97]; \r\n }\r\n //Gives word double score if consecutive double letters \r\n for (int j = 0; j < wordValues.length; j++)\r\n {\r\n for (int n = 0; n < (wordValues[j].length()-1); n++)\r\n {\r\n if(wordValues[j].charAt(n) == wordValues[j].charAt(n+1))\r\n {\r\n wordScore = wordScore * 2;\r\n }\r\n }\r\n }\r\n return wordScore;\r\n }", "public int getScore(String nickname) throws NoSuchElementException {\n if (nickname == null) throw new NoSuchElementException(\"The nickname is not valid!\");\n User user = this.onlineUsers.get(nickname);\n if (user != null) {\n return user.getScore();\n }\n throw new NoSuchElementException(\"The user is not currently online\");\n }", "private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\n }", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getRank(int score) {\n int i = 0;\n for (i = 0; i < scoreInfoList.size(); i++) {\n if (score > scoreInfoList.get(i).getScore()) {\n break;\n }\n }\n System.out.println(\"rank \" + (i + 1));\n return i + 1;\n }", "public static void main(String[] args) {\n\n\n String a=\"95.244522094727\";\n int score = (int)Double.parseDouble(a);\n System.out.println(score);\n }", "public static int getInt(String str){\n int num=0;\n int count = 0;\n if (str.length() == 7)\n return 0;\n for (int i = str.length()-8; i >= 0; i --){\n if (str.charAt(i) == '1') {\n num += Math.pow(2, count);\n }\n count ++;\n }\n return num;\n }", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "int score();", "int score();", "long getScore();", "long getScore();" ]
[ "0.7568305", "0.6924279", "0.62846994", "0.6254033", "0.6249355", "0.6243152", "0.6202648", "0.6189575", "0.60358566", "0.5981521", "0.5979701", "0.59577125", "0.59405273", "0.58933413", "0.5892267", "0.58326495", "0.5825809", "0.58084965", "0.57908636", "0.57908326", "0.5754658", "0.57537323", "0.57499224", "0.57430696", "0.57376456", "0.5728809", "0.57009363", "0.5685056", "0.56722796", "0.5667151", "0.56544614", "0.5647087", "0.56019837", "0.5582152", "0.5572761", "0.55542886", "0.55519277", "0.55496913", "0.55340374", "0.5530684", "0.5507788", "0.5506609", "0.54954714", "0.54909974", "0.5475314", "0.5473382", "0.5457958", "0.5455599", "0.545544", "0.5447011", "0.5446258", "0.5444224", "0.5436582", "0.54187727", "0.5415904", "0.5414495", "0.5402516", "0.5399197", "0.5396528", "0.5392783", "0.5390376", "0.5389438", "0.5384252", "0.5384132", "0.5381832", "0.5377993", "0.53779507", "0.53764254", "0.53722066", "0.53706264", "0.5368141", "0.53612363", "0.53583145", "0.53564906", "0.53525335", "0.5351473", "0.534476", "0.5344161", "0.53348374", "0.53325504", "0.5329039", "0.5328983", "0.53266144", "0.53254676", "0.5317703", "0.5308854", "0.5308524", "0.5302448", "0.5302448", "0.529678", "0.5293721", "0.5293363", "0.5292846", "0.5292846", "0.52900225", "0.52900225", "0.5287572", "0.5287572", "0.52871484", "0.52871484" ]
0.83263546
0
Get percentage difference and multiply by 100 to compare as int
@Override public int compareTo(Score other) { return (int) (100 * (this.getAsDouble() - other.getAsDouble())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPercentageHeated();", "java.lang.String getPercentage();", "int getRemainderPercent();", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "double greenPercentage();", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "double redPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "boolean hasPercentage();", "public int getPercentage() {\r\n return Percentage;\r\n }", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public Double getProgressPercent();", "public static int percent(int nom, int den) {\r\n\t\treturn (int) Math.round(100 * ((double) nom / den));\r\n\t}", "int calcPlagiarismPercent() throws ParserException;", "double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }", "public static final SourceModel.Expr percentDif(SourceModel.Expr x, SourceModel.Expr y) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.percentDif), x, y});\n\t\t}", "public static int calcPercentage(int remainingPercentage) {\n return randomizer.nextInt(remainingPercentage) + 1;\n }", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "public double getMainPercentage(){return mainPercentage;}", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "public double getPercent() { return this.percentage; }", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "private int getPercentageValue(String elem){\n String query = \"declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' $this//a:\" + elem;\n\n XmlObject[] obj;\n\n // first ask the context color and if not found, ask the actual color bean\n if(_phClr != null){\n obj = _phClr.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n }\n\n obj = _xmlObject.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n\n\n return -1;\n }", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "Float getFedAnimalsPercentage();", "@Test\n public void testGetPercentage() throws IOException, ParseException {\n System.out.println(\"getPercentage\");\n OrganizationsRegister ro = info(\"e\", \"f\");\n String id = \"12\";\n double expResult = 100.0;\n double result = ro.getPercentage(id);\n assertEquals(expResult, result);\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "public double calculateHpPercent();", "@Override\n public int compareTo(Percentage other) {\n return amount.compareTo(other.amount);\n }", "float getPercentHealth();", "public BigDecimal getPercentageProfitPStd();", "private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }", "public static String calcularPercentual(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\tBigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\treturn (resultado + \"\");\r\n\t}", "public BigDecimal getPercentageProfitPLimit();", "private String changeToPercent(String value, int AVG){\n String result;\n double d = Double.parseDouble(value)*100;\n double r = (d/AVG)*100;\n result = String.valueOf(round(r));\n return result;\n }", "private double calculateDiscountPercent(Amount discountAmount) {\n Amount runningTotalBeforeDiscount = saleState.getRunningTotal();\n double totalBeforeDiscount = \n runningTotalBeforeDiscount.getAmount().doubleValue();\n double totalDiscount = \n discountAmount.getAmount().doubleValue();\n double totalsQuotient = totalDiscount / totalBeforeDiscount;\n double discountPercent = totalsQuotient * 100;\n return discountPercent;\n }", "public double showDifference(Student student) {\r\n\t\treturn Math.abs(student.getPercentage()-this.getPercentage());\r\n\t}", "int getBatteryPercentage();", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public static int toPercent(int current, int max) {\n return (int)Math.ceil((double)current * 100D / (double)max);\n }", "public abstract double getPercentDead();", "float getBonusPercentHP();", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "com.google.protobuf.ByteString\n getPercentageBytes();", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public static double getPercentage(int score, int max){\n\t\treturn (double)score /(double)max*100;\n\t}", "public static double difference(double num) {\n return Math.round(num * 100.0) / 100.0;\n }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public int division(){\r\n return Math.round(x/y);\r\n }", "public float getPercent() {\n return percent;\n }", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public double getPercentChange() {\n return percentChange;\n }", "public Double getTotalAnomalyPercentage();", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n percentage_ = s;\n }\n return s;\n }\n }", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "public static int validatePercent(int percent) {\n\t\tif(percent > 100) {\n\t\t\treturn 100;\n\t\t}\n\t\telse if(percent < 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn percent;\n\t\t}\n\t}", "double getpercentage() {\n return this.percentage;\n }", "@Override\n\tpublic double percentualeUtentiDisabilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 0 GROUP BY(UTENTE.ABILITATO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t\t\n\t\t\t\tSystem.out.println(numeroUtenti);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public static int getProgressPercentage(long currentDuration, long totalDuration){\r\n Double percentage = (double) 0;\r\n \r\n long currentSeconds = (int) (currentDuration / 1000);\r\n long totalSeconds = (int) (totalDuration / 1000);\r\n \r\n // calculating percentage\r\n percentage =(((double)currentSeconds)/totalSeconds)*100;\r\n \r\n // return percentage\r\n return percentage.intValue();\r\n }", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n percentage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getRed(){\n return getPercentageValue(\"red\");\n }", "public void increasePrice(int percentage);", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "public double getValueAsPercentInPage(double fltValueAsPercentInTimeline) {\n double fltTimeLineRangeInRmsFrames = intPageAmount * intPageSizeInRmsFrames;\n double fltPageHorStartPositionInTimeline = ((pageValue.fltPageNum - 1) * intPageSizeInRmsFrames);\n double fltPageHorEndPositionInTimeline = (pageValue.fltPageNum * intPageSizeInRmsFrames);\n double fltItemPositionInTimeline = (fltValueAsPercentInTimeline/100.0f) * fltTimeLineRangeInRmsFrames;\n\n double fltValue = 0;\n if ((fltItemPositionInTimeline >= fltPageHorStartPositionInTimeline) && (fltItemPositionInTimeline <= fltPageHorEndPositionInTimeline)) {\n // Selected position is inside display page\n fltValue = ((fltItemPositionInTimeline - fltPageHorStartPositionInTimeline) * 100.0f)/intPageSizeInRmsFrames;\n } else if (fltItemPositionInTimeline < fltPageHorStartPositionInTimeline){\n // Selected position is outside on left of page\n fltValue = 0;\n } else if (fltItemPositionInTimeline > fltPageHorEndPositionInTimeline){\n // Selected position is outside on right of page\n fltValue = 100;\n }\n return fltValue;\n }", "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 int CalculateGeneModifications(int percent) {\n\t\treturn Math.floorDiv(percent * moveOrder.length, 100);\n\t}", "public float getRemainingPercentage() {\n float percentage = (float) getRemainingTime() / this.duration;\n if (Float.isNaN(percentage)) {\n percentage = 1;\n }\n return Math.min(Math.max(0, percentage), 1);\n }", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "int getSatMod(){\n return getPercentageValue(\"satMod\");\n }", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }", "public double getCourseworkPercentage(){return courseworkPercentage;}", "double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}", "float getWinLossRatio();", "void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }", "public int computeStatus() {\n\t\tif(isOutcomeExceeded()) return 0;\r\n\t\t\r\n\t\t//the new loan is too expensive\r\n\t\tif(isOutcomeExceeded(mMonthlyLoan)) return 0;\r\n\t\t\r\n\t\tint domainCoeff = DBOperations.getDomainCoeffById(mDomainId); // (0, 10] \r\n\t\tint expCoeff = DBOperations.getExperienceCoeffById(mExperienceId); // (0, 5]\r\n\t\t\r\n\t\tint backgroundCoeff = domainCoeff * expCoeff; // (0, 50]\r\n\t\tif(isIncomeRaising) backgroundCoeff *= 2; // (0, 100]\r\n\t\t\r\n\t\tint incomeCoeff = getIncomeWeight(mMonthlyIncome); // (0, 100]\r\n\t\t\r\n\t\tint coeff = (int) ((backgroundCoeff * 0.20) + (incomeCoeff * 0.55)); // (0, 75]\r\n\t\tif(mHadOtherLoans) coeff += 5; // (0, 80]\r\n\t\tif(mHasDelayedPays) coeff -= 10; // (0, 80]\r\n\t\t\r\n\t\tif((mMonthlyIncome - mMonthlyOutcome) * MAXIMUM_SURE_OUTCOME_PERCENTAGE / 100 >= mMonthlyLoan) {\r\n\t\t\tcoeff += 20; // (0, 100]\r\n\t\t}\r\n\t\t\r\n\t\tif(coeff <= 25) return 0;\r\n\t\treturn coeff < 55 ? 1 : 2;\r\n\t}", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "public double getPercentageOfAvailabilityMeetingSla() {\n final double totalOfAvailabilitySatisfied = getBrokerList()\n .stream()\n .filter(b -> faultInjection.availability(b) * 100 >= getCustomerMinAvailability(b))\n .count();\n return totalOfAvailabilitySatisfied / getBrokerList().size();\n }", "public int getPercentageColor() {\n return percentageColor;\n }", "public String getLoserVotePercent(String state) {\r\n result = table.get(state);\r\n String loserVotePercentage = result.get(3);//getting loser percentage from array list\r\n \r\n \r\n return loserVotePercentage;\r\n }", "public String getWinnerVotePercent(String state) {\r\n result = table.get(state);\r\n String winnerVotePercentage = result.get(2);// getting winner percentage from array list\r\n \r\n return winnerVotePercentage ;\r\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public int getProgressPercentage(long currentDuration, long totalDuration){\n\t\tDouble percentage = (double) 0;\n\t\t\n\t\tlong currentSeconds = (int) (currentDuration / 1000);\n\t\tlong totalSeconds = (int) (totalDuration / 1000);\n\t\t\n\t\t// calculating percentage\n\t\tpercentage =(((double)currentSeconds)/totalSeconds)*100;\n\t\t\n\t\t// return percentage\n\t\treturn percentage.intValue();\n\t}", "private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}" ]
[ "0.7201492", "0.7150386", "0.70873284", "0.6739778", "0.6689484", "0.6656199", "0.6629269", "0.6586726", "0.6516444", "0.650101", "0.6471995", "0.63706636", "0.63623154", "0.6351934", "0.6348343", "0.63214767", "0.6267003", "0.62488246", "0.6240474", "0.62260336", "0.6225803", "0.62175363", "0.6192607", "0.6160988", "0.6120045", "0.61153585", "0.61025953", "0.60879356", "0.6086636", "0.6079722", "0.60632354", "0.60530585", "0.60325515", "0.60268784", "0.60246813", "0.6011381", "0.6010412", "0.5995894", "0.5994626", "0.5971798", "0.5952797", "0.59451354", "0.59406656", "0.5937427", "0.5929493", "0.59225035", "0.5910761", "0.5904904", "0.58978254", "0.5896278", "0.58570963", "0.5855886", "0.5849892", "0.5840943", "0.58306926", "0.5824512", "0.5822072", "0.5816707", "0.5801429", "0.5799654", "0.57808906", "0.5751842", "0.57514226", "0.57507306", "0.57431376", "0.57391614", "0.57156044", "0.57112646", "0.5707014", "0.5704574", "0.5704537", "0.5701579", "0.5690359", "0.5685674", "0.5685496", "0.56781906", "0.56781393", "0.5671509", "0.5669384", "0.566244", "0.5656068", "0.56431544", "0.5642941", "0.5621908", "0.56218255", "0.562078", "0.5619329", "0.560829", "0.56028974", "0.5602551", "0.5593073", "0.5584419", "0.55785257", "0.5578472", "0.55722785", "0.5564848", "0.5563495", "0.55631566", "0.55599916", "0.5557009" ]
0.5785297
60
Generated by ComTest BEGIN testFlairImage33
@Test public void testFlairImage33() { // FlairImage: 33 FlairImage testi = new FlairImage(); assertEquals("From: FlairImage line: 35", "0|", testi.toString()); assertEquals("From: FlairImage line: 36", 0, testi.getNumber()); assertEquals("From: FlairImage line: 37", "", testi.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void picture3FixedTest() {\n // TODO: test picture3Fixed\n }", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "@Test\n public void pictureSingleTest() {\n // TODO: test pictureSingle\n }", "public void testSetImage() {\n byte[] image = new byte[] {1, 2, 3};\n byte[] expResult = new byte[] {1, 2, 3};\n CLImage instance = new CLImage();\n instance.setImage(image);\n assertEquals(expResult.length, instance.image.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], instance.image[i]);\n }\n }", "@Test\n public void singlePicTest() {\n // TODO: test singlePic\n }", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "@Test\n public void largePicTest() {\n // TODO: test largePic\n }", "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "@Test\n public void package3PicTest() {\n // TODO: test package3Pic\n }", "public static void main(String[] args) {\n try {\n File image = new File(\"petite_image.png\");\n ImageSerializer serializer = new ImageSerializerBase64Impl();\n\n // Sérialization\n String encodedImage = (String) serializer.serialize(image);\n System.out.println(splitDisplay(encodedImage,76));\n\n // Désérialisation\n byte[] deserializedImage = (byte[]) serializer.deserialize(encodedImage);\n\n // Vérifications\n // 1/ Automatique\n assert (Arrays.equals(deserializedImage, Files.readAllBytes(image.toPath())));\n System.out.println(\"Cette sérialisation est bien réversible :)\");\n // 2/ Manuelle\n File extractedImage = new File(\"petite_image_extraite.png\");\n new FileOutputStream(extractedImage).write(deserializedImage);\n System.out.println(\"Je peux vérifier moi-même en ouvrant mon navigateur de fichiers et en ouvrant l'image extraite dans le répertoire de ce Test\");\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n homeEnvironment0.setPhotoQuality(1260);\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals(1260, int0);\n }", "@Test\n\tpublic void testImageFromWindowsPhotoEditor2() throws IOException, ImageProcessingException, MetadataException {\n\t\tURL url = new URL(\"https://dbis-thure.uibk.ac.at/f/Get?id=BTCMSAGPZYLKPPLZWWQLSMKY\");\n\t\tRotatedBufferedImage bi = (RotatedBufferedImage) TrpImageIO.read(url);\n\t\tlogger.info(\"TrpImageIO result = \" + bi.getImageTransformation().toString());\n\t\t\n\t\tImageTransformation t = TrpImgMdParser.readImageDimension(url);\n\t\tlogger.info(\"TrpImgMdParser result = \" + t.toString());\n\t}", "@Test\n\tpublic void test4_verifyImage_VRI() throws GeneralLeanFtException {\n\t\t\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"Test 4 - Verify Insight & VRI Started\");\n\t\t\t\n\t\t\t//App should exist \n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\n\t\t\tWindow mainWindow = Desktop.describe(Window.class, new WindowDescription.Builder()\n\t\t\t.title(\"SwingSet2\").index(0).build());\n\n\t\t\t// Create a description for the top-level menu item: File\n\t\t\tMenu fileMenu = mainWindow.describe(Menu.class, new MenuDescription.Builder().label(\"File\").build());\n\n\t\t\t//Select About Menu option\n\t\t\tfileMenu.selectSubMenu(\"About\");\n\t\t\t\n\t\t\tDialog about = mainWindow.describe(Dialog.class, new DialogDescription.Builder()\n\t\t\t.title(\"About Swing!\").build());\n\t\t\t\n\t\t\t//Access the Swing Image in the Resources folder\n\t\t\t//ClassLoader classLoader = getClass().getClassLoader();\n\t\t\t//File imgFile = new File(classLoader.getResource(\"SwingImage.PNG\").getFile());\n\t\t\tFile imgFile = new File(\"resources\\\\SwingImage.PNG\");\n\t RenderedImage image = ImageIO.read(imgFile);\n\t \n\t //Create Insight Object with 100% similarity\n\t InsightObject swingImage = about.describe(InsightObject.class, new InsightDescription(image,90));\n\t \n\t //Highlight the Object if present\n\t assertTrue(swingImage.exists(5));\n\t swingImage.highlight();\n\t \n\t //Close the Dialog\n\t about.close();\n\t \n\t ToolBar toolbar = mainWindow.describe(ToolBar.class, new ToolBarDescription.Builder()\n\t\t\t.nativeClass(\"SwingSet2$ToggleButtonToolBar\").build());\n\t \n\t toolbar.getButton(\"JDesktop\").press();\n\t \n\t\t\t\n\t //Maximizable checkbox in the Internal Frame\n\t CheckBox maximizable = mainWindow.describe(InternalFrame.class, new InternalFrameDescription.Builder()\n\t\t\t.title(\"Internal Frame Generator\").index(0).build()).describe(CheckBox.class, new CheckBoxDescription.Builder()\n\t\t\t.attachedText(\"Maximizable\").build());\n\t \n\t //Create Visual Relation Object and Set the Relation with the Test Object\n\t VisualRelation vr = new VisualRelation();\n\t vr.setTestObject(maximizable);\n\t vr.setVerticalRelation(VerticalVisualRelation.BELOW_AND_INLINE);\n\t \n\t //Create Description for Checkbox which is above the Maximizable checkbox\n\t CheckBox above = mainWindow.describe(InternalFrame.class, new InternalFrameDescription.Builder()\n\t\t\t.label(\"Internal Frame Generator\").build()).describe(CheckBox.class, new CheckBoxDescription.Builder()\n\t\t\t.nativeClass(\"javax.swing.JCheckBox\").vri(vr).build());\n\t \n\t //Check for Existence\n\t assertTrue(\"Checkbox above Maximizable should exist\",above.exists(5));\t \n\t above.highlight();\n\t \n\t //Get name of the Checkbox\n\t System.out.println(\"Name of the Checkbox above Maximizable CheckBox = \" + above.getAttachedText());\n\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage());\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 4 - Verify Insight & VRI finished\");\n\t\t}\n\t\t\n\t}", "public void baseTest() {\n\t\tfinal String metaJson = \"{\\\"encoding\\\":\\\"raw\\\",\\\"offset\\\":0,\\\"lookForCompanion\\\":true,\\\"initializeHelper\\\":false,\\\"filtered\\\":false,\\\"datasetName\\\":\\\"dt-helix.nhdr\\\",\\\"table\\\":{\\\"axis maxs\\\":\\\"NaN 2 2 2\\\",\\\"sizes\\\":\\\"7 38 39 40\\\",\\\"data file\\\":\\\"./dt-helix.raw\\\",\\\"type\\\":\\\"float\\\",\\\"axis mins\\\":\\\"NaN -2 -2 -2\\\",\\\"encoding\\\":\\\"raw\\\",\\\"dimension\\\":\\\"4\\\",\\\"endian\\\":\\\"big\\\"},\\\"priority\\\":0.0}\";\n\t\ttestImg(baseFolder().child(\"dt-helix.nhdr\"),\n\t\t\t\"7e36a3c1ba03af681db51fdb78c95e6da31b8a4b\", metaJson, new int[] { 38,\n\t\t\t\t39, 7 }, Axes.X, Axes.Y, Axes.CHANNEL);\n\t}", "@Test\n\tpublic void testGetImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tassertNull(ip.getImage());\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\t//assertNull(ip.img);\n\t\tassertNotNull(ip.getImage());\n\t}", "@Test(retryAnalyzer = RerunOnFailure.class, groups = {\"full\", \"mpx\"})\r\n public void RepresentativeImage_TC3217() throws Exception{\r\n \r\n \tReporter.log(\"STEP 1\");\r\n \tUserLogin userLogin = applib.openApplication();\r\n \tuserLogin.Login(config.getConfigValueString(\"Admin1Username\"), config.getConfigValueString(\"Admin1Password\"));\r\n \r\n \tReporter.log(\"STEP 2\");\r\n \tCreateDefaultContent createDefaultContent = new CreateDefaultContent(webDriver);\r\n \tString postTitle = createDefaultContent.Post(\"Published\");\r\n \t\r\n \tReporter.log(\"STEP 3\");\r\n \tnavigation.Content();\r\n \tSearchFor searchFor = new SearchFor(webDriver);\r\n \tsearchFor.EnterTitle(postTitle);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle, \"HanSolo\");\r\n \t\r\n \tReporter.log(\"STEP 4\");\r\n \tnavigation.Content(\"Files\");\r\n \tThumbnails thumbnails = new Thumbnails(webDriver);\r\n \tthumbnails.VerifyThumbnailImagePresent(\"HanSolo\", \"1\");\r\n \r\n Reporter.log(\"STEP 5\");\r\n navigation.AddContent(\"Post\");\r\n \tBasicInformation basicInformation = new BasicInformation(webDriver);\r\n String postTitle2 = random.GetCharacterString(15);\r\n basicInformation.EnterTitle(postTitle2);\r\n basicInformation.EnterSynopsis();\r\n basicInformation.ClickCoverSelectBtn();\r\n SelectFile selectFile = new SelectFile(webDriver);\r\n selectFile.SwitchToSelectFileFrm();\r\n selectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.EnterTitle(\"AutomationWThumb\");\r\n \t\tselectFile.ClickApplyBtn();\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tselectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.ClickMPXMediaThumbnailImage(\"nbclogosmall\", \"1\");\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n \t\tselectFile.ClickSubmitBtn();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n webDriver.switchTo().defaultContent();\r\n contentParent.ClickSaveBtn();\r\n contentParent.VerifyMessageStatus(\"Post \" + postTitle2 + \" has been created.\");\r\n \r\n Reporter.log(\"STEP 6\");\r\n navigation.Content();\r\n searchFor.EnterTitle(postTitle2);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle2, \"nbclogosmall\");\r\n \t\r\n \t//TODO - step 7 to repeat 1 through 6 for all content items as time allows\r\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setPhotoQuality((-2107));\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals((-2107), int0);\n }", "public native double testyolo(String imgfile);", "@Test\n\tpublic void testUpdateImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNull(ip.img);\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"head8bit.tif\");\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNotNull(ip.img);\n\t}", "@Test\n\tpublic void testDownLoadImage(){\n\t\tFile file = new File(\"D:\\\\mxk-test\\\\images\\\\20140214\\\\103171-10404.jpg\");\n\t\tSystem.out.println(\"ok\");\n//\t\tContent content = new Content();\n//\t\tbyte[] byteFile = HttpUtil.getImageByte(content.getSimpleImage());\n//\t\tif(byteFile != null){\n//\t\t\tString fileName = StringUtil.cutOutUrlFileName(content.getSimpleImage());\n//\t\t\tString foldler = StringUtil.dateToString(new Date(), \"yyyyMMdd\");\n//\t\t\tString simpleImage = baseFileUploadService.saveFile(byteFile, fileName , foldler);\n//\t\t\tresource.setSimpleImage(simpleImage);//图片保存成功后\n//\t\t\tif(simpleImage != null){\n//\t\t\t\tresource.setSimpleImageName( foldler + \"/\" + fileName);\n//\t\t\t\tStringBuilder sb = new StringBuilder();\n//\t\t\t\tfor(String img : content.getImages()){\n//\t\t\t\t\tsb.append(img+\",\");\n//\t\t\t\t}\n//\t\t\t\tresource.setImages(sb.toString());\n//\t\t\t}\n\t}", "@Test\n public void pictureLargeTest() {\n // TODO: test pictureLarge\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n URL uRL0 = MockURL.getFileExample();\n URLContent uRLContent0 = new URLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", uRLContent0, 0.0F, 2.0F);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-12), homeTexture0, 235, homeTexture0, 3682, 3682);\n homeEnvironment0.getGroundTexture();\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(3682.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(235, homeEnvironment0.getSkyColor());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals((-12), homeEnvironment0.getGroundColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(3682, homeEnvironment0.getLightColor());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n }", "@Test\n public void thumbnailTest() {\n // TODO: test thumbnail\n }", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "@Test\n\tpublic void testImageFromWindowsPhotoEditor() throws IOException, ImageProcessingException, MetadataException {\n\t\tURL url = new URL(\"https://files-test.transkribus.eu/Get?id=JMWVACVZDPHVPOVGFWQVBHXP\");\n\t\tRotatedBufferedImage bi = (RotatedBufferedImage) TrpImageIO.read(url);\n\t\tlogger.info(\"TrpImageIO result = \" + bi.getImageTransformation().toString());\n\t\t\n\t\tImageTransformation t = TrpImgMdParser.readImageDimension(url);\n\t\tlogger.info(\"TrpImgMdParser result = \" + t.toString());\n\t}", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "@MediumTest\n public void test_1314_4() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/if_without_true.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@MediumTest\n public void test_1314_5() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/if_without_next.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@MediumTest\n public void test_1314_2() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/statement_without_prev.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@MediumTest\n public void test_1314_7() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/while_without_next.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@Before\n public void setUp() {\n int[][][] testImage = new int[4][4][3];\n image = new ImageImpl(testImage);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n URL uRL0 = MockURL.getFtpExample();\n ResourceURLContent resourceURLContent0 = new ResourceURLContent(uRL0, true);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"6=];vR`]y%YV(7Ma`Lv\", \"DRAWING_MODE\", resourceURLContent0, 1.3333334F, 0.0F, \">HYd+446`M2q`z*\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-2291), homeTexture0, (-1240), homeTexture0, (-2291), 5);\n homeEnvironment0.getSkyTexture();\n assertEquals((-1240), homeEnvironment0.getSkyColor());\n assertEquals((-2291), homeEnvironment0.getGroundColor());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(5.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals((-2291), homeEnvironment0.getLightColor());\n }", "@MediumTest\n public void test_1314_3() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/if_without_false.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "public static void main(String[] args){\n\tImage test = new Image(700,700);\n\t//addRectangle(test, 0, 0, 600, 600, -1, -1, -1);\n\t//test.display();\n\taddCircle(test, 300, 300, 100, 255, 255, 255);\n\taddCircle(test, 500, 300, 100, 255, 255, 255);\n\taddCircle(test, 400, 400, 150, 255, 255, 255);\n\taddCircle(test, 350, 350, 25, 0, 0, 0);\n\taddCircle(test, 450, 350, 25, 0, 0, 0);\n\taddCircle(test, 350, 350, 24, 255, 255, 255);\n\taddCircle(test, 450, 350, 24, 255, 255, 255);\n\taddCircle(test, 350, 350, 10, 0, 0, 0);\n\taddCircle(test, 450, 350, 10, 0, 0, 0);\n\taddRectangle(test, 325, 475, 150, 20, 0, 0, 0);\n\ttest.setPixel(0,0,255,255,255);\n\ttest.display();\n\tencrypt(test, \"PerfektDokumentation\");\n\ttest.display();\n\tdecrypt(test, \"PerfektDokumentation\");\n\t\n\ttest.display();\n\t}", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setPhotoQuality((-2107));\n homeEnvironment0.clone();\n assertEquals((-2107), homeEnvironment0.getPhotoQuality());\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n URL uRL0 = MockURL.getFileExample();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"Pr%?N;9,nuN0VVr Il\", temporaryURLContent0, (-27.78F), (-1174.5889F), \"Pr%?N;9,nuN0VVr Il\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(3, homeTexture0, 952, (-1120), (-3575.0F));\n float float0 = homeEnvironment0.getWallsAlpha();\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(952, homeEnvironment0.getSkyColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals((-3575.0F), float0, 0.01F);\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(3, homeEnvironment0.getGroundColor());\n assertEquals((-1120), homeEnvironment0.getLightColor());\n }", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "@Test\n public void testGetColorID() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(0, imageData.getColorTableId());\n }", "@Test\n public void fieldIncludePicture() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Below are two similar field types that we can use to display images linked from the local file system.\n // 1 - The INCLUDEPICTURE field:\n FieldIncludePicture fieldIncludePicture = (FieldIncludePicture) builder.insertField(FieldType.FIELD_INCLUDE_PICTURE, true);\n fieldIncludePicture.setSourceFullName(getImageDir() + \"Transparent background logo.png\");\n\n Assert.assertTrue(fieldIncludePicture.getFieldCode().matches(\" INCLUDEPICTURE .*\"));\n\n // Apply the PNG32.FLT filter.\n fieldIncludePicture.setGraphicFilter(\"PNG32\");\n fieldIncludePicture.isLinked(true);\n fieldIncludePicture.setResizeHorizontally(true);\n fieldIncludePicture.setResizeVertically(true);\n\n // 2 - The IMPORT field:\n FieldImport fieldImport = (FieldImport) builder.insertField(FieldType.FIELD_IMPORT, true);\n fieldImport.setSourceFullName(getImageDir() + \"Transparent background logo.png\");\n fieldImport.setGraphicFilter(\"PNG32\");\n fieldImport.isLinked(true);\n\n Assert.assertTrue(fieldImport.getFieldCode().matches(\" IMPORT .* \\\\\\\\c PNG32 \\\\\\\\d\"));\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.IMPORT.INCLUDEPICTURE.docx\");\n //ExEnd\n\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", fieldIncludePicture.getSourceFullName());\n Assert.assertEquals(\"PNG32\", fieldIncludePicture.getGraphicFilter());\n Assert.assertTrue(fieldIncludePicture.isLinked());\n Assert.assertTrue(fieldIncludePicture.getResizeHorizontally());\n Assert.assertTrue(fieldIncludePicture.getResizeVertically());\n\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", fieldImport.getSourceFullName());\n Assert.assertEquals(\"PNG32\", fieldImport.getGraphicFilter());\n Assert.assertTrue(fieldImport.isLinked());\n\n doc = new Document(getArtifactsDir() + \"Field.IMPORT.INCLUDEPICTURE.docx\");\n\n // The INCLUDEPICTURE fields have been converted into shapes with linked images during loading.\n Assert.assertEquals(0, doc.getRange().getFields().getCount());\n Assert.assertEquals(2, doc.getChildNodes(NodeType.SHAPE, true).getCount());\n\n Shape image = (Shape) doc.getChild(NodeType.SHAPE, 0, true);\n\n Assert.assertTrue(image.isImage());\n Assert.assertNull(image.getImageData().getImageBytes());\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", image.getImageData().getSourceFullName());\n\n image = (Shape) doc.getChild(NodeType.SHAPE, 1, true);\n\n Assert.assertTrue(image.isImage());\n Assert.assertNull(image.getImageData().getImageBytes());\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", image.getImageData().getSourceFullName());\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoQuality(1012);\n AspectRatio aspectRatio0 = AspectRatio.VIEW_3D_RATIO;\n homeEnvironment0.setPhotoAspectRatio(aspectRatio0);\n LinkedList<Camera> linkedList0 = new LinkedList<Camera>();\n Camera.Lens camera_Lens0 = Camera.Lens.NORMAL;\n Camera camera0 = new Camera((-1855.3F), 0.0F, (-1855.3F), (-657.0F), 1012, 0.0F, 1012, camera_Lens0);\n linkedList0.offer(camera0);\n homeEnvironment0.setVideoCameraPath(linkedList0);\n homeEnvironment0.getWallsAlpha();\n homeEnvironment0.getDrawingMode();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent((URL) null);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"\", temporaryURLContent0, 400.0F, (-657.0F), \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n homeEnvironment0.setGroundTexture(homeTexture0);\n homeEnvironment0.getGroundTexture();\n homeEnvironment0.setGroundColor(5909);\n homeEnvironment0.setCeillingLightColor(5909);\n homeEnvironment0.getVideoQuality();\n homeEnvironment0.setPhotoHeight(13427964);\n homeEnvironment0.setLightColor(1012);\n assertEquals(1012, homeEnvironment0.getLightColor());\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n URL uRL0 = MockURL.getFileExample();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"_a-&kBdS\", \"_a-&kBdS\", temporaryURLContent0, 0.0F, 0.0F, \"PHOTO_WIDTH\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1249), homeTexture0, (-1249), homeTexture0, 2050, (-1249));\n int int0 = homeEnvironment0.getSkyColor();\n assertEquals((-1249), int0);\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals((-1249), homeEnvironment0.getGroundColor());\n assertEquals((-1249.0F), homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(2050, homeEnvironment0.getLightColor());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n }", "@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n homeEnvironment0.setPhotoQuality(1260);\n homeEnvironment0.clone();\n assertEquals(1260, homeEnvironment0.getPhotoQuality());\n }", "@MediumTest\n public void test_1314_6() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/while_without_loop.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n URL uRL0 = MockURL.getHttpExample();\n ResourceURLContent resourceURLContent0 = new ResourceURLContent(uRL0, false);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"1Zucc:+\", \"1Zucc:+\", resourceURLContent0, 0, (-1114.1877F), \"1Zucc:+\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(0, homeTexture0, 0, 0, 0);\n homeEnvironment0.getVideoWidth();\n homeEnvironment0.getCeillingLightColor();\n HomeEnvironment homeEnvironment1 = homeEnvironment0.clone();\n AspectRatio aspectRatio0 = AspectRatio.FREE_RATIO;\n homeEnvironment1.setPhotoAspectRatio(aspectRatio0);\n homeEnvironment0.getVideoWidth();\n homeEnvironment0.setPhotoAspectRatio(aspectRatio0);\n homeEnvironment0.getGroundColor();\n homeEnvironment1.setVideoFrameRate(0);\n int int0 = homeEnvironment0.getPhotoHeight();\n assertEquals(AspectRatio.FREE_RATIO, homeEnvironment0.getPhotoAspectRatio());\n assertEquals(300, int0);\n }", "public static void testPixellateOneArg(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(40);\n\t caterpillar.explore();\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n URL uRL0 = MockURL.getHttpExample();\n URLContent uRLContent0 = new URLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"+Z)]_\", \"+Z)]_\", uRLContent0, 3273, 828.053F, \"com.eteks.sweethome3d.model.TexturesCategory\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(3273, homeTexture0, (-3467), homeTexture0, (-3467), 1.0F);\n homeEnvironment0.setPhotoQuality(0);\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(1.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals((-3467), homeEnvironment0.getSkyColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(3273, homeEnvironment0.getGroundColor());\n assertEquals((-3467), homeEnvironment0.getLightColor());\n assertEquals(0, homeEnvironment0.getPhotoQuality());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n }", "@MediumTest\n public void test_1314_1() throws Exception {\n String imagePath = Environment.getExternalStorageDirectory()+\"/LeCoder_Image/no_start.png\";\n //Load the file and process it\n activity.loadImageFile(imagePath);\n activity.processImage();\n //Generate the nodes and construct the graph\n activity.generateNodes();\n activity.generateGraph();\n //Print all nodes\n activity.printAllNodes();\n //Check whether the flowchart has no start point\n assertFalse(activity.checkAllNodes());\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n homeEnvironment0.setVideoQuality(76);\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals(76, int0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"PHOTO_QUALITY\", (Content) null, (-2146244858), (-2146244858));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1169), homeTexture0, 0, homeTexture0, (-1169), 0);\n int int0 = homeEnvironment0.getSkyColor();\n assertEquals(0, int0);\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals((-1169), homeEnvironment0.getLightColor());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals((-1169), homeEnvironment0.getGroundColor());\n assertEquals(0.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n }", "@Test\n public void test_image_constructor_args() {\n int deviceWidth = 1080;\n String id = \"116\";\n String title = \"The Composer\";\n String rawImageUrl = \"http://composer.com/theComposed.jpg\";\n String imageShareUrl = \"http://imageShareUrl.com\";\n Integer x = 35;\n Integer y = 55;\n long createdAtTime = 253543;\n String userId = \"231sfDic\";\n String userRealName = \"The Diadact\";\n String userProfileUrl = \"http://composeAllTheThings.com\";\n String userPortfolioUrl = \"http://composerLibrary.com\";\n\n String locationNameString = \"The Hilltop\";\n double latitude = 24.12;\n double longitude = 23.42;\n Location location = createLocation(locationNameString, latitude, longitude);\n\n String camera = \"Nikon D500\";\n String exposureTime = \"400 ms\";\n String aperture = \"f/4.0\";\n String focalLength = \"24 mm\";\n String iso = \"1000\";\n Exif exif = createExif(camera, exposureTime, aperture, focalLength, iso);\n\n UnsplashImage unsplashImage = createUnsplashImage(\n id,\n x,\n y,\n createdAtTime,\n userId,\n userRealName,\n userProfileUrl,\n userPortfolioUrl,\n rawImageUrl,\n imageShareUrl\n );\n unsplashImage.setLocation(location);\n unsplashImage.setExif(exif);\n\n assertEquals(unsplashImage.getId().value(), id);\n assertEquals(\n unsplashImage.getUrl(deviceWidth).value(),\n rawImageUrl.concat(String.format(UnsplashImage.IMAGE_URL_CONFIG, deviceWidth))\n );\n assertEquals(unsplashImage.getShareUrl().value(), imageShareUrl);\n assertEquals(unsplashImage.getTitle(), null);\n\n unsplashImage.setTitle(new Name(title));\n assertEquals(unsplashImage.getTitle().value(), title);\n\n assertEquals(unsplashImage.getResolution().getWidth().value(), x);\n assertEquals(unsplashImage.getResolution().getHeight().value(), y);\n\n assertEquals(unsplashImage.getUploadDate().getTime(), createdAtTime);\n\n User unsplashUser = unsplashImage.getUser();\n assertEquals(unsplashUser.getId().value(), userId);\n assertEquals(unsplashUser.getName().value(), userRealName);\n assertEquals(unsplashUser.getProfileUrl().value(), userProfileUrl);\n assertEquals(unsplashUser.getPortfolioUrl().value(), userPortfolioUrl);\n\n Service unsplashService = unsplashImage.getService();\n assertEquals(unsplashService.getName().value(), \"Unsplash\");\n assertEquals(unsplashService.getUrl().value(), \"https://unsplash.com\");\n\n location = unsplashImage.getLocation();\n assertEquals(location.getName().value(), locationNameString);\n assertEquals(location.getCoordinates().getLongitude(), longitude, 0);\n assertEquals(location.getCoordinates().getLatitude(), latitude, 0);\n\n exif = unsplashImage.getExif();\n assertEquals(exif.camera.value(), camera);\n assertEquals(exif.exposureTime.value(), exposureTime);\n assertEquals(exif.aperture.value(), aperture);\n assertEquals(exif.focalLength.value(), focalLength);\n assertEquals(exif.iso.value(), iso);\n }", "private void getImageSaveAsPropertiesTester(CadResponse originalProperties, CadResponse resultProperties)\n\t{\n\t}", "@Test(enabled = false)\n public void testCreateImage() {\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"PHOTO_QUALITY\", (Content) null, (-2146244858), (-2146244858));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1169), homeTexture0, 0, homeTexture0, (-1169), 0);\n homeEnvironment0.getSkyTexture();\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(0.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(0, homeEnvironment0.getSkyColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals((-1169), homeEnvironment0.getGroundColor());\n assertEquals((-1169), homeEnvironment0.getLightColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n }", "public static void testZeroBlue()\n {\n Picture beach = new Picture(\"beach.jpg\");\n beach.explore();\n beach.zeroBlue();\n beach.explore();\n }", "@Test(enabled = false)\n public void testAddProductCodesToImage() {\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n URL uRL0 = MockURL.getHttpExample();\n URLContent uRLContent0 = new URLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"+Z)]_\", \"+Z)]_\", uRLContent0, 3273, 828.053F, \"com.eteks.sweethome3d.model.TexturesCategory\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(3273, homeTexture0, (-3467), homeTexture0, (-3467), 1.0F);\n int int0 = homeEnvironment0.getPhotoWidth();\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(400, int0);\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(3273, homeEnvironment0.getGroundColor());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(1.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals((-3467), homeEnvironment0.getSkyColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals((-3467), homeEnvironment0.getLightColor());\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"c5!DqhIQ,!L'eP\", \"L\", (Content) null, (-1054.905F), 0, \"c5!DqhIQ,!L'eP\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-98), homeTexture0, (-98), 1624, 905.89F);\n float float0 = homeEnvironment0.getWallsAlpha();\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(905.89F, float0, 0.01F);\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(1624, homeEnvironment0.getLightColor());\n assertEquals((-98), homeEnvironment0.getSkyColor());\n assertEquals((-98), homeEnvironment0.getGroundColor());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n boolean boolean0 = false;\n JDayChooser jDayChooser0 = new JDayChooser(false);\n jDayChooser0.setYear(777);\n float[] floatArray0 = new float[3];\n floatArray0[0] = 467.08F;\n floatArray0[1] = (-738.4315F);\n floatArray0[2] = (float) 777;\n SVGGeneratorContext.GraphicContextDefaults sVGGeneratorContext_GraphicContextDefaults0 = new SVGGeneratorContext.GraphicContextDefaults();\n sVGGeneratorContext_GraphicContextDefaults0.getRenderingHints();\n ImageHandlerJPEGEncoder imageHandlerJPEGEncoder0 = null;\n try {\n imageHandlerJPEGEncoder0 = new ImageHandlerJPEGEncoder(\"6\", \"lightgrey\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // imageDir does not exist\n //\n verifyException(\"org.apache.batik.svggen.AbstractImageHandlerEncoder\", e);\n }\n }", "public void testGetSetImageString() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE (\"PACMAN/littlepill.png\" because it exists)\n\t\ttestNormal.setImage(\"PACMAN/bigpill.png\");\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/bigpill.png\").getImage());\n\t}", "Picture identifyComponentImage() throws Exception;", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "@Test\n void checkChangeImage() {\n ImageViewModel imageModel = new ImageViewModel();\n int countUp = 10;\n int totalTime = 70;\n\n int i = imageModel.checkChangeImage(countUp, totalTime);\n\n assertEquals(1, i);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n int int0 = homeEnvironment0.getPhotoQuality();\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals((-1567), homeEnvironment0.getLightColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(0, int0);\n assertEquals(329, homeEnvironment0.getSkyColor());\n assertEquals(2870.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals((-1567), homeEnvironment0.getGroundColor());\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "@Test\n\tpublic void test03_PreviewAPageWithImageByAnotherUser() {\n\t\tinfo(\"Test 3: Preview a page with image by another user\");\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Add Wiki page with external image with Admin User\n\t\t*Step Description: \n\t\t\t- Go to [Intranet] --> [Wiki]\n\t\t\t- Click [Add Page] --> [Blank Page]/[From Template...]\n\t\t\t- Ensure the page is in the [Rich Text] mode\n\t\t\t- Input data valid for Title page and Page's content\n\t\t\t- Click Image in menu\n\t\t\t- Select [External Image...]\n\t\t\t- Type or paste the address of the image to insert, e.g. 'www.example.com/image.png'\n\t\t\t- Click [Image Settings]\n\t\t\t- Type the width/height of the image\n\t\t\t- Choose the way the image is positioned in the text\n\t\t\t- Choose the way the image is vertically aligned in the line of text\n\t\t\t- Click [Insert Image] button\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode \n\t\t\t- The attached file is added successfully in content of page\n\t\t\t- Page is add/edited successfully*/\n\t\tinfo(\"Go to Add a Wiki page\");\n\t\tString title = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString content = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\t\n\t\tString linkImage = imgLinkData.getDataContentByArrayTypeRandom(1);\n\t\tString altText=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tString width=\"200\";\n\t\tString height=\"200\";\n\t\thp.goToWiki();\n\t\twHome.goToAddBlankPage();\n\t\trichEditor.addSimplePage(title,content);\n\t\trichEditor.insertExternalImageLink(linkImage, width, height, altText);\n\t\trichEditor.selectAlign(alignType.Left);\n\t\trichEditor.goToInsertImage();\n\t\tinfo(\"Move focus at the end of the line\");\n\t\tpressEndKey(this.driver);\n\t\twikiMg.saveAddPage();\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title);\n\t\tarrayPage.add(title);\n\t\t\n\t\tinfo(\"Add attach file is added successfully in content of page\");\n\t\twHome.goToAPage(title);\n\t wValidate.verifyAltTextImageInContentPage(altText);\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Another user can see the image inserted in page\n\t\t*Step Description: \n\t\t\t- Login by user/group has permission to edit/view page\n\t\t\t- Go to [Intranet] --> [Wiki] \n\t\t\t- Click Wiki Page created in step 1\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tUser can see the image inserted in this wiki page.*/\n\t magAc.signIn(DATA_USER2, DATA_PASS);\n\t hp.goToWiki();\n\t wHome.goToAPage(title);\n\t wValidate.verifyAltTextImageInContentPage(altText);\n\t \n\t info(\"Clear Data\");\n\t magAc.signIn(DATA_USER1, DATA_PASS);\n \t}", "public Image getSix();", "public int getImage();", "@Test(timeout = 4000)\n public void test337() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"Tfoot component can be added only to a Table.\");\n // Undeclared exception!\n try { \n xmlEntityRef0.img((String) null, \"wheel.components.Submit\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n URL uRL0 = MockURL.getHttpExample();\n URLContent uRLContent0 = new URLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"+Z)]_\", \"+Z)]_\", uRLContent0, 3273, 828.053F, \"com.eteks.sweethome3d.model.TexturesCategory\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(3273, homeTexture0, (-3467), homeTexture0, (-3467), 1.0F);\n AspectRatio aspectRatio0 = AspectRatio.RATIO_16_9;\n homeEnvironment0.setVideoAspectRatio(aspectRatio0);\n assertEquals(AspectRatio.RATIO_16_9, homeEnvironment0.getVideoAspectRatio());\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n int int0 = homeEnvironment0.getVideoHeight();\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals((-1970.0F), homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(11, homeEnvironment0.getLightColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals((-1970), homeEnvironment0.getGroundColor());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(240, int0);\n assertEquals(3, homeEnvironment0.getSkyColor());\n }", "@Test\n\tpublic void testImagePlusString() {\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"hongKongFooey.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNull(ip.getImage());\n\n\t\t// try a file that should exist\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"gray8-3x2-sub1.tif\");\n\t\tassertNotNull(ip);\n\t\tassertNotNull(ip.getImage());\n\t\tassertEquals(2,ip.getNDimensions());\n\t\tassertEquals(2,ip.getHeight());\n\t\tassertEquals(3,ip.getWidth());\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.getNFrames());\n\t\tassertEquals(1,ip.getNChannels());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\t\tassertEquals(\"gray8-3x2-sub1.tif\",ip.getTitle());\n\t}", "public static void main(final String... args) throws Exception {\n\n // create the ImageJ application context with all available services\n final ImageJ ij = new ImageJ();\n Prefs.blackBackground = true;\n ij.command().run(MapOrganelle.class, true);\n\n boolean runTest1 = false;\n boolean runTest2 = false;\n\n if ( runTest1 || runTest2 ) {\n\n //String testInDir = \"/data1/FMP_Docs/Projects/orgaPosJ_ME/Plugin_InputTest/\";\n String testInDir = \"/home/schmiedc/Desktop/Test/test_tif/input/\";\n //String testInDir = \"/data1/FMP_Docs/Projects/orgaPosJ_ME/TestDataSet_2ndChannel/\";\n String testOutDir = \"/home/schmiedc/Desktop/Test/test_tif/output/\";\n //int channelNumber = 4;\n String fileEnding = \".tif\";\n //String fileEnding = \".nd2\";\n String settings = \"/home/schmiedc/Desktop/Test/test_tif/input/2020-10-09T121957-settings.xml\";\n\n if ( runTest1 ) {\n\n FileList getFileList = new FileList(fileEnding);\n ArrayList<String> fileList = getFileList.getFileMultiSeriesList(testInDir);\n\n for (String file : fileList) {\n System.out.println(file);\n }\n\n ArrayList<String> fileListTest = new ArrayList<>(fileList.subList(0, 1));\n\n IJ.log(\"Run test 1\");\n //PreviewGui guiTest = new PreviewGui(testInDir, testOutDir, fileListTest, fileEnding, 3, 0.157);\n //guiTest.setUpGui();\n\n IJ.log(\"Test 1 done\");\n\n } else {\n IJ.log(\"Run test 2\");\n InputGuiFiji guiTest = new InputGuiFiji(testInDir, testOutDir, fileEnding, settings);\n guiTest.createWindow();\n\n //BatchProcessor processBatch = new BatchProcessor(testInDir, testOutDir, fileListTest, fileEnding, channelNumber);\n //processBatch.processImage();\n\n }\n\n }\n }", "public static com.jme.image.Image loadImage(InputStream fis, boolean flip, boolean exp32) throws\n IOException {\n byte red = 0;\n byte green = 0;\n byte blue = 0;\n byte alpha = 0;\n //open a stream to the file\n BufferedInputStream bis = new BufferedInputStream(fis, 8192);\n DataInputStream dis = new DataInputStream(bis);\n //Read the TGA header\n idLength = (short) dis.read();\n colorMapType = (short) dis.read();\n imageType = (short) dis.read();\n cMapStart = flipEndian(dis.readShort());\n cMapLength = flipEndian(dis.readShort());\n cMapDepth = (short) dis.read();\n xOffset = flipEndian(dis.readShort());\n yOffset = flipEndian(dis.readShort());\n width = flipEndian(dis.readShort());\n height = flipEndian(dis.readShort());\n pixelDepth = (short) dis.read();\n imageDescriptor = (short) dis.read();\n //Skip image ID\n if (idLength > 0)\n bis.skip(idLength);\n // Allocate image data array\n byte[] rawData = null;\n int dl;\n if ((pixelDepth == 32)||(exp32)) {\n rawData = new byte[width * height * 4];\n dl=4;\n } else {\n rawData = new byte[width * height * 3];\n dl=3;\n }\n int rawDataIndex = 0;\n \n // Faster than doing a 24-or-32 check on each individual pixel,\n // just make a seperate loop for each.\n if (pixelDepth == 24)\n for (int i = 0; i <= (height - 1); i++) {\n if(flip) rawDataIndex=(height-1-i)*width*dl;\n for (int j = 0; j < width; j++) {\n blue = dis.readByte();\n green = dis.readByte();\n red = dis.readByte();\n rawData[rawDataIndex++] = red;\n rawData[rawDataIndex++] = green;\n rawData[rawDataIndex++] = blue;\n if(dl==4) {\n // create an alpha channel\n rawData[rawDataIndex++] = (byte)255;\n }\n \n }\n }\n else if (pixelDepth == 32)\n for (int i = 0; i <= (height - 1); i++) {\n if(flip) rawDataIndex=(height-1-i)*width*dl;\n for (int j = 0; j < width; j++) {\n blue = dis.readByte();\n green = dis.readByte();\n red = dis.readByte();\n alpha = dis.readByte();\n rawData[rawDataIndex++] = red;\n rawData[rawDataIndex++] = green;\n rawData[rawDataIndex++] = blue;\n rawData[rawDataIndex++] = alpha;\n }\n }\n fis.close();\n //Get a pointer to the image memory\n ByteBuffer scratch = ByteBuffer.allocateDirect(rawData.length);\n scratch.clear();\n scratch.put(rawData);\n scratch.rewind();\n // Create the jme.image.Image object\n com.jme.image.Image textureImage = new com.jme.image.Image();\n if (dl == 4)\n textureImage.setType(com.jme.image.Image.RGBA8888);\n else\n textureImage.setType(com.jme.image.Image.RGB888);\n textureImage.setWidth(width);\n textureImage.setHeight(height);\n textureImage.setData(scratch);\n return textureImage;\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "@Test\n public void endToEndTest() throws FitsException, IOException, ClassNotFoundException {\n\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n //Test the ImageData without mask\n BufferedImage calculatedImage = imageData.getImage(frArray);\n\n compareImage(expectedImage,calculatedImage);\n\n\n //Test the ImageData withmask\n ImageData imageDataWithMask = new ImageData(frArray, IMAGE_TYPE,imageMasks, rangeValues, 0,0, 100, 100, true );\n BufferedImage calculatedImageWithMask = imageDataWithMask.getImage(frArray);\n compareImage(expectedImageWithMask,calculatedImageWithMask);\n\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"\", (Content) null, (-826), 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(2140976121, homeTexture0, 949, homeTexture0, (-3047), 949);\n homeEnvironment0.getGroundTexture();\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(949.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(949, homeEnvironment0.getSkyColor());\n assertEquals((-3047), homeEnvironment0.getLightColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(2140976121, homeEnvironment0.getGroundColor());\n }", "@Test\r\n public void testComplex(){\r\n List<Tone> palette = StandardPalettes.PWG_STANDARD;\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/complex/rooves.jpg\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n BufferedImage target = ImageFileUtils.loadImageResource(\"/resultImages/paletteReplacer/pwgRooves.png\");\r\n\r\n assertPixelsMatch(target, result);\r\n }", "@Test\n public void testSetColorModel() throws FitsException, IOException{\n IndexColorModel colorModel = ColorTable.getColorModel(2);\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n imageData.setColorModel(colorModel);\n Assert.assertEquals(-1, imageData.getColorTableId());\n\n }", "@Test\n\tpublic void testImageFromPaintNet() throws IOException, URISyntaxException {\n\t\tfinal String filePath = \"img_orientation/view_20170929_124415.jpg\";\n\t\tURL url = this.getClass().getClassLoader().getResource(filePath);\n\t\tFile imgFile = new File(url.toURI());\n\t\tlogger.debug(\"File '{}' exists = {}\", filePath, imgFile.isFile());\n\t\tBufferedImage bi = TrpImageIO.read(imgFile);\n\t\t\n\t\tif(bi instanceof RotatedBufferedImage) {\n\t\t\t//if we are here this is broken\n\t\t\tAssert.fail(\"Image was erroneously rotated!\");\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"=,`t\", \"\", (Content) null, 1392, 1714.44F, \"\", false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1567), homeTexture0, 329, homeTexture0, (-1567), 2870.0F);\n homeEnvironment0.setVideoWidth(1411);\n assertEquals(1411, homeEnvironment0.getVideoWidth());\n }", "public static void VerifyCommonComponent_ImageShape(int ImageShape){\n\t\t\tString actualCommonComponentDataImage=\"\";\n\t\t\ttry{\n\t\t\t\tactualCommonComponentDataImage=sitecoreObj.commonComponentImageShape.getAttribute(\"class\");\n\t\t\t\tAssert.assertEquals(actualCommonComponentDataImage, \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape));\n\t\t\t\tlog.info(\"The Actual AboutUs CommonComponent Data Image- \"+actualCommonComponentDataImage);\n\t\t\t\tlog.info(\"The Expected AboutUs CommonComponent Data Image- \"+ \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape));\n\t\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs CommonComponent Inset Images are Same\");\n\t\t\t}catch(AssertionError e){\n\t\t\t\tlog.error(\"The Actual AboutUs CommonComponent Data Image- \"+actualCommonComponentDataImage);\n\t\t\t\tlog.error(\"The Expected AboutUs CommonComponent Data Image- \"+ \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape)); \n\t\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs CommonComponent Inset Images are NOT same\");\n\t\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\t\tlog.error(\"TEST FAILED: There is No Inset Images and On CommonComponent Container\");\n\t\t\t}\n\t\t}", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n homeEnvironment0.setVideoQuality(76);\n homeEnvironment0.clone();\n assertEquals(76, homeEnvironment0.getVideoQuality());\n }", "public ImageCornerTest() {\r\n\t\tsuper(\"Image Corner Test\");\r\n\t}", "public native MagickImage flopImage() throws MagickException;", "@Before\n\n /**\n * An one dimensional array is created and it is used to run the unit test for Histogram's public methods\n */\n public void setUp() throws FitsException, ClassNotFoundException, IOException {\n\n inFits = FileLoader.loadFits(ImageDataTest.class , fileName);\n frArray = FitsRead.createFitsReadArray(inFits);\n rangeValues = FitsRead.getDefaultRangeValues();\n expectedImage = ImageIO.read(new File(FileLoader.getDataPath(ImageDataTest.class)+imageFileName));\n expectedImageWithMask = ImageIO.read(new File(FileLoader.getDataPath(ImageDataTest.class)+imageWithMaskFileName));\n\n imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n }", "Picture binaryComponentImage() throws Exception;", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals(329, homeEnvironment0.getGroundColor());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(329, homeEnvironment0.getSkyColor());\n assertEquals(0, int0);\n assertEquals(76, homeEnvironment0.getLightColor());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(329.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", (Content) null, (-5305), (-283.024F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(329, homeTexture0, 329, homeTexture0, 76, 329);\n homeEnvironment0.getVideoCameraPath();\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(329.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(76, homeEnvironment0.getLightColor());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(329, homeEnvironment0.getSkyColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(329, homeEnvironment0.getGroundColor());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n }", "public static void testPixellateThreeArgs(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(18, 60, 40);\n\t caterpillar.explore();\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "@Test\n public void testJFIFRawRGBThumbnail() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/jfif-jfif-and-exif-thumbnail-sharpshot-iphone.jpg\")));\n\n assertTrue(reader.hasThumbnails(0));\n assertEquals(2, reader.getNumThumbnails(0));\n\n // RAW JFIF\n assertEquals(131, reader.getThumbnailWidth(0, 0));\n assertEquals(122, reader.getThumbnailHeight(0, 0));\n\n BufferedImage rawJFIFThumb = reader.readThumbnail(0, 0);\n assertNotNull(rawJFIFThumb);\n assertEquals(131, rawJFIFThumb.getWidth());\n assertEquals(122, rawJFIFThumb.getHeight());\n\n // Exif (old thumbnail, from original image, should probably been removed by the software...)\n assertEquals(160, reader.getThumbnailWidth(0, 1));\n assertEquals(120, reader.getThumbnailHeight(0, 1));\n\n BufferedImage exifThumb = reader.readThumbnail(0, 1);\n assertNotNull(exifThumb);\n assertEquals(160, exifThumb.getWidth());\n assertEquals(120, exifThumb.getHeight());\n }", "@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// COLOR_256\n\t\tIndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3});\n\t\tproc = new ByteProcessor(1,1,new byte[] {0},cm);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm));\n\t\tassertEquals(ImagePlus.COLOR_256,ip.getType());\n\t\tassertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0));\n\n\t\t// GRAY8\n\t\tproc = new ByteProcessor(1,1,new byte[] {53}, null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY16\n\t\tproc = new ShortProcessor(1,1,new short[] {30000},null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// COLOR_RGB\n\t\tproc = new ColorProcessor(1,1,new int[] {0xffeedd});\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.COLOR_RGB,ip.getType());\n\t\tassertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY32\n\t\tint[] ints = new int[3];\n\t\tproc = new FloatProcessor(1,3,ints);\n\t\tproc.set(0, 0, Float.floatToIntBits(25.0f));\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY32,ip.getType());\n\t\tassertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\t}", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"FILL\", (Content) null, 12, 12, false);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(12, homeTexture0, 12, homeTexture0, 12, 12);\n homeEnvironment0.getSkyTexture();\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals(12, homeEnvironment0.getLightColor());\n assertEquals(12, homeEnvironment0.getGroundColor());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(12, homeEnvironment0.getSkyColor());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(12.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n int int0 = homeEnvironment0.getCeillingLightColor();\n assertEquals((-1970), homeEnvironment0.getGroundColor());\n assertEquals(11, homeEnvironment0.getLightColor());\n assertEquals(3, homeEnvironment0.getSkyColor());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(320, homeEnvironment0.getVideoWidth());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals((-1970.0F), homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(13684944, int0);\n }", "public void stegoTest() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t\tStoreToList store = new StoreToList(\"logfile.txt\");\n\t\tCharacter nodeForward = '3';\n\t\tCharacter cCMsg = null;\n\t\t\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\t\t//the image to embed data in\n\t\t\t\tFile f = new File(\"Truecolor.png\");\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\t//get the list of encrypted data to embed\n\t\t\t\t\tstore.generateList();\n\t\t\t\t\tList<String> data = store.getEncryptedList();\n\t\t\t\t\t\n\t\t\t\t\tString stegText = nodeForward + \":\" + cCMsg + \":\";\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < data.size(); i++) {\n\t\t\t\t\t\tstegText = stegText + data.get(i) + \" \";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"stegText: \" + stegText);\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t \n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\thidingText.setText(stegText);\n\t\t\t\t\t\n\t\t\t\t\t//embed data in the image chosen\n\t\t\t\t\tcarrierImage.hide(hidingText);\n\t\t\t\t\t//create a new image file to write the stego image to\n\t\t\t\t\tFile fS = new File(\"downloaded/image0.png\");\n\t\t\t\t\tImageManager.writeImage(carrierImage.getCarrierImage(), fS, true);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Finished Steganography\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"File does not exist :/\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (InvalidTypeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t}" ]
[ "0.68137", "0.67356384", "0.64639944", "0.64226586", "0.6398675", "0.63706726", "0.6350611", "0.6293873", "0.62927365", "0.6274862", "0.62512016", "0.62432206", "0.62427765", "0.62255925", "0.62087905", "0.6205308", "0.61931527", "0.6177945", "0.6162112", "0.6139122", "0.61282116", "0.6065654", "0.60621244", "0.60614014", "0.6057627", "0.6049527", "0.60336643", "0.6028049", "0.6022264", "0.6014847", "0.59919256", "0.5979575", "0.59792006", "0.5973975", "0.59702003", "0.5963429", "0.5960949", "0.5955044", "0.5952043", "0.59388745", "0.5922249", "0.59063125", "0.5897701", "0.5884469", "0.58755964", "0.5870249", "0.58534265", "0.5829856", "0.58234566", "0.5822708", "0.58181685", "0.58174384", "0.5811205", "0.5792467", "0.5789902", "0.5785472", "0.5762169", "0.57618964", "0.5748851", "0.57417935", "0.57409304", "0.5740876", "0.57407", "0.5724115", "0.5720973", "0.5717481", "0.57167906", "0.5715204", "0.5714718", "0.57088864", "0.5707383", "0.5702423", "0.5701961", "0.5700614", "0.56955576", "0.5695047", "0.5693032", "0.5692436", "0.5691038", "0.56885195", "0.56748724", "0.5673627", "0.5669493", "0.5669255", "0.56682754", "0.5655068", "0.5648807", "0.5647995", "0.5646065", "0.564277", "0.5636448", "0.56334245", "0.562716", "0.5621518", "0.5616267", "0.56113464", "0.5607031", "0.56028205", "0.5595051", "0.5590323" ]
0.68980116
0
Generated by ComTest END Generated by ComTest BEGIN testSeparateNumber131
@Test public void testSeparateNumber131() { // FlairImage: 131 java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false); StringBuilder testi = new StringBuilder(); assertEquals("From: FlairImage line: 135", 0, separateNumber(testi,'-',totuus)); totuus.set(false); testi = new StringBuilder("123-asdasd"); assertEquals("From: FlairImage line: 139", 123, separateNumber(testi,'-',totuus)); assertEquals("From: FlairImage line: 140", "asdasd", testi.toString()); assertEquals("From: FlairImage line: 141", true, totuus.get()); totuus.set(false); testi = new StringBuilder("123-asdasd-muumi"); assertEquals("From: FlairImage line: 145", 123, separateNumber(testi,'-',totuus)); assertEquals("From: FlairImage line: 146", "asdasd-muumi", testi.toString()); assertEquals("From: FlairImage line: 147", true, totuus.get()); totuus.set(false); testi = new StringBuilder("asd-asdasd-muumi"); assertEquals("From: FlairImage line: 151", 0, separateNumber(testi,'-',totuus)); assertEquals("From: FlairImage line: 152", "asd-asdasd-muumi", testi.toString()); assertEquals("From: FlairImage line: 153", false, totuus.get()); totuus.set(false); testi = new StringBuilder("asd-asdasd-123"); assertEquals("From: FlairImage line: 157", 123, separateNumber(testi,'-',totuus)); assertEquals("From: FlairImage line: 158", "asd-asdasd-123", testi.toString()); assertEquals("From: FlairImage line: 159", false, totuus.get()); totuus.set(false); testi = new StringBuilder("asd-123-muumi"); assertEquals("From: FlairImage line: 163", 0, separateNumber(testi,'-',totuus)); assertEquals("From: FlairImage line: 164", "asd-123-muumi", testi.toString()); assertEquals("From: FlairImage line: 165", false, totuus.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}", "@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }", "static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }", "public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}", "protected abstract String process(T firstNumber, D secondNumber);", "public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "String billingPartNumber();", "public static List<String> convertPhoneNumberToPhoneNumberWords(String number){\n String typicalNumber = \"\";\n String zeroToOhNumber;\n String zerosToHundredsAndThousandsNumber = \"\";\n String zerosToHundredsAndThousandsWithOhNumber;\n\n int zeroCt = 0;\n char[] numberArray = number.toCharArray();\n int numberMaxIndex = numberArray.length-1;\n for (int i=numberMaxIndex; i>=0; i--){\n char digitChar = numberArray[i];\n if (!Character.isDigit(digitChar)){\n //we can interpret any non-digit as a break in the number??\n for (int j=0; j<zeroCt; j++){\n typicalNumber = \"zero \" + typicalNumber;\n zerosToHundredsAndThousandsNumber = \"zero \" + zerosToHundredsAndThousandsNumber;\n //reset\n zeroCt = 0;\n }\n continue;\n }\n int digit = Character.getNumericValue(digitChar);\n if (digit == 0){\n zeroCt++;\n } else {\n String digitString = ones[digit-1];\n String typicalNumberToAdd = digitString + \" \";\n String zerosToHundredsAndThousandsNumberToAdd = digitString + \" \";\n if (zeroCt > 0){\n for (int j=0; j<zeroCt; j++){\n typicalNumberToAdd += \"zero \";\n }\n\n if (zeroCt == 1){\n zerosToHundredsAndThousandsNumberToAdd += \"zero \";\n } else if (zeroCt == 2) {\n zerosToHundredsAndThousandsNumberToAdd += \"hundred \";\n } else if (zeroCt == 3) {\n zerosToHundredsAndThousandsNumberToAdd += \"thousand \";\n } else {\n for (int j=0; j<zeroCt; j++){\n zerosToHundredsAndThousandsNumberToAdd += \"zero \";\n }\n }\n\n //reset\n zeroCt = 0;\n }\n\n typicalNumber = typicalNumberToAdd + typicalNumber;\n zerosToHundredsAndThousandsNumber = zerosToHundredsAndThousandsNumberToAdd +\n zerosToHundredsAndThousandsNumber;\n }\n\n }\n\n //handle hanging zeroes\n if (zeroCt > 0) {\n for (int i = 0; i < zeroCt; i++) {\n typicalNumber = \"zero \" + typicalNumber;\n zerosToHundredsAndThousandsNumber = \"zero \" + zerosToHundredsAndThousandsNumber;\n }\n }\n\n typicalNumber = typicalNumber.trim();\n zerosToHundredsAndThousandsNumber = zerosToHundredsAndThousandsNumber.trim();\n\n List<String> returnList = new ArrayList<>(4);\n //order is important to know which is which. make sure this is first\n returnList.add(typicalNumber);\n if (typicalNumber.contains(\"zero\")){\n zeroToOhNumber = typicalNumber.replaceAll(\"zero\",\"oh\");\n returnList.add(zeroToOhNumber);\n }\n\n if (!typicalNumber.equals(zerosToHundredsAndThousandsNumber)){\n returnList.add(zerosToHundredsAndThousandsNumber);\n }\n\n if (typicalNumber.contains(\"zero\") && !typicalNumber.equals(zerosToHundredsAndThousandsNumber)) {\n zerosToHundredsAndThousandsWithOhNumber = zerosToHundredsAndThousandsNumber.replaceAll(\"zero\", \"oh\");\n returnList.add(zerosToHundredsAndThousandsWithOhNumber);\n }\n\n //can be 1 ~ 4 elements\n return returnList;\n }", "java.lang.String getNum2();", "public void testSequentialNumbers() throws MPXJException {\n TaskManager taskManager = getTaskManager();\n CustomPropertyDefinition col5 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col5\", null);\n CustomPropertyDefinition col4 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col4\", null);\n CustomPropertyDefinition col3 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col3\", null);\n CustomPropertyDefinition col2 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col2\", null);\n CustomPropertyDefinition col1 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col1\", null);\n\n Map<CustomPropertyDefinition, FieldType> mapping = CustomPropertyMapping.buildMapping(taskManager);\n assertEquals(TaskField.TEXT1, mapping.get(col5));\n assertEquals(TaskField.TEXT2, mapping.get(col4));\n assertEquals(TaskField.TEXT3, mapping.get(col3));\n assertEquals(TaskField.TEXT4, mapping.get(col2));\n assertEquals(TaskField.TEXT5, mapping.get(col1));\n }", "java.lang.String getNum1();", "public int getE04(final int digitNumber);", "@Test\n public void testProcessPhoneNumbers() {\n StdInputPhoneNumberProcessor processor = new StdInputPhoneNumberProcessor(scanner, matcher);\n processor.processPhoneNumbers();\n }", "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public static void main(String[] args) {\n String iSBNumber = \"978013213080\";\n int parni = 0;\n int neparni = 0;\n int suma;\n\n\n for (int i = 0; i < iSBNumber.length(); i++) {\n\n if (i % 2 == 0) {\n neparni += (Integer.parseInt(String.valueOf(iSBNumber.charAt(i))));\n\n } else {\n parni += 3 * (Integer.parseInt(String.valueOf(iSBNumber.charAt(i))));\n\n }\n }\n suma = 10 - (parni + neparni) % 10;\n if (suma == 10) {\n iSBNumber += \"0\";\n System.out.println(iSBNumber);\n } else {\n iSBNumber += suma;\n System.out.println(iSBNumber);\n }\n\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "List<C45111a> mo107675a(Integer num, Integer num2);", "private void addTwoNumbers() {\n\t\t\n\t}", "public String getdisplaycode1(){\r\n\t\t\r\n\t\tString displayCode = null;\r\n\t\tBigInteger found = transferDao.getTransferCode();\r\n\t\tString transferCodeNo = \"TR100000\";\r\n\t\tString transferNoList = \"TR\"+found;\r\n\t\t\r\n\t\tif(found != null){\r\n\t\t\t transferCodeNo = transferNoList; \t\r\n\t\t}\r\n\r\n\t String splitNo = transferCodeNo.substring(2);\r\n\t int num = Integer.parseInt(splitNo); \r\n\t num++; \r\n\t String number = Integer.toString(num); \r\n\t displayCode = transferCodeNo.substring(0, 2) + number;\r\n\t\treturn displayCode;\t\t\t\r\n\t}", "@Test\n public void fieldIndexPageNumberSeparator() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // The INDEX entry will group XE fields with matching values in the \"Text\" property\n // into one entry as opposed to making an entry for each XE field.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // If our INDEX field has an entry for a group of XE fields,\n // this entry will display the number of each page that contains an XE field that belongs to this group.\n // We can set custom separators to customize the appearance of these page numbers.\n index.setPageNumberSeparator(\", on page(s) \");\n index.setPageNumberListSeparator(\" & \");\n\n Assert.assertEquals(\" INDEX \\\\e \\\", on page(s) \\\" \\\\l \\\" & \\\"\", index.getFieldCode());\n Assert.assertTrue(index.hasPageNumberSeparator());\n\n // After we insert these XE fields, the INDEX field will display \"First entry, on page(s) 2 & 3 & 4\".\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"First entry\");\n\n Assert.assertEquals(\" XE \\\"First entry\\\"\", indexEntry.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"First entry\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"First entry\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.PageNumberList.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.PageNumberList.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX, \" INDEX \\\\e \\\", on page(s) \\\" \\\\l \\\" & \\\"\", \"First entry, on page(s) 2 & 3 & 4\\r\", index);\n Assert.assertEquals(\", on page(s) \", index.getPageNumberSeparator());\n Assert.assertEquals(\" & \", index.getPageNumberListSeparator());\n Assert.assertTrue(index.hasPageNumberSeparator());\n }", "@Test\n public void shouldAbleToInputNumericCharactersInTradeInValueField() {\n\n//1. Enter 1 in the Trade-In Value field\n//2. Enter 12 in the Trade-In Value field\n//3. Enter 123 in the Trade-In Value field\n//4. Enter 1234 in the Trade-In Value field\n//5. Enter 12345 in the Trade-In Value field\n//6. Enter 123456 in the Trade-In Value field\n//7. Enter 1234567 in the Trade-In Value field\n//6. Enter 12345678 in the Trade-In Value field\n//6. Enter 12345678 in the Trade-In Value field\n\n }", "public void testGetOnesDigit() {\n\t\tNumberConverter test5 = new NumberConverter(295);\n\t\tNumberConverter test9 = new NumberConverter(109);\n\t\tNumberConverter test11 = new NumberConverter(311);\n\t\tNumberConverter test0 = new NumberConverter(310);\n\t\tNumberConverter test00 = new NumberConverter(2);\n\t\tassertEquals(\"Should have returned last digit\", test5.getNthDigit(1), 5);\n\t\tassertEquals(\"Should have returned last digit\", test9.getNthDigit(1), 9);\n\t\tassertEquals(\"Should have returned last digit\", test11.getNthDigit(1),\n\t\t\t\t1);\n\t\tassertEquals(\"Should have returned last digit\", test0.getNthDigit(1), 0);\n\t\tassertEquals(\"Should have returned last digit\", test00.getNthDigit(1),\n\t\t\t\t2);\n\t}", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n\" +\n \"0-0:1.0.0(101209113020W)\\r\\n\" +\n \"0-0:96.1.1(4B384547303034303436333935353037)\\r\\n\" +\n \"1-0:1.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:1.8.2(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.2(123456.789*kWh)\\r\\n\" +\n \"0-0:96.14.0(0002)\\r\\n\" +\n \"1-0:1.7.0(01.193*kW)\\r\\n\" +\n \"1-0:2.7.0(00.000*kW)\\r\\n\" +\n \"0-0:96.7.21(00004)\\r\\n\" +\n \"0-0:96.7.9(00002)\\r\\n\" +\n \"1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)\\r\\n\" +\n \"1-0:32.32.0(00002)\\r\\n\" +\n \"1-0:52.32.0(00001)\\r\\n\" +\n \"1-0:72.32.0(00000)\\r\\n\" +\n \"1-0:32.36.0(00000)\\r\\n\" +\n \"1-0:52.36.0(00003)\\r\\n\" +\n \"1-0:72.36.0(00000)\\r\\n\" +\n \"0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F30313233343536373839\" +\n \"3A3B3C3D3E3F303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F)\\r\\n\" +\n \"1-0:32.7.0(220.1*V)\\r\\n\" +\n \"1-0:52.7.0(220.2*V)\\r\\n\" +\n \"1-0:72.7.0(220.3*V)\\r\\n\" +\n \"1-0:31.7.0(001*A)\\r\\n\" +\n \"1-0:51.7.0(002*A)\\r\\n\" +\n \"1-0:71.7.0(003*A)\\r\\n\" +\n \"1-0:21.7.0(01.111*kW)\\r\\n\" +\n \"1-0:41.7.0(02.222*kW)\\r\\n\" +\n \"1-0:61.7.0(03.333*kW)\\r\\n\" +\n \"1-0:22.7.0(04.444*kW)\\r\\n\" +\n \"1-0:42.7.0(05.555*kW)\\r\\n\" +\n \"1-0:62.7.0(06.666*kW)\\r\\n\" +\n \"0-1:24.1.0(003)\\r\\n\" +\n \"0-1:96.1.0(3232323241424344313233343536373839)\\r\\n\" +\n \"0-1:24.2.1(101209112500W)(12785.123*m3)\\r\\n\" +\n \"!EF2F\\r\\n\" +\n \"\\r\\n\";\n DSMRTelegram dsmrTelegram = ParseDsmrTelegram.parse(testcase);\n\n // CHECKSTYLE.OFF: ParenPad\n assertEquals(\"/ISk5\\\\2MT382-1000\", dsmrTelegram.getRawIdent());\n assertEquals(\"ISK\", dsmrTelegram.getEquipmentBrandTag());\n assertEquals(\"MT382-1000\", dsmrTelegram.getIdent());\n\n assertEquals(\"5.0\", dsmrTelegram.getP1Version());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:30:20+01:00\"), dsmrTelegram.getTimestamp());\n\n assertEquals(\"K8EG004046395507\", dsmrTelegram.getEquipmentId());\n assertEquals(\"0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?\", dsmrTelegram.getMessage());\n\n assertEquals( 2, dsmrTelegram.getElectricityTariffIndicator());\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedNormalTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedNormalTariff(), 0.001);\n assertEquals( 1.193, dsmrTelegram.getElectricityPowerReceived(), 0.001);\n assertEquals( 0.0, dsmrTelegram.getElectricityPowerReturned(), 0.001);\n assertEquals( 4, dsmrTelegram.getPowerFailures());\n assertEquals( 2, dsmrTelegram.getLongPowerFailures());\n\n assertEquals(2, dsmrTelegram.getPowerFailureEventLogSize());\n\n List<PowerFailureEvent> powerFailureEventLog = dsmrTelegram.getPowerFailureEventLog();\n assertEquals(2, powerFailureEventLog.size());\n assertPowerFailureEvent(powerFailureEventLog.get(0), \"2010-12-08T15:20:15+01:00\", \"2010-12-08T15:24:15+01:00\", \"PT4M\");\n assertPowerFailureEvent(powerFailureEventLog.get(1), \"2010-12-08T15:05:03+01:00\", \"2010-12-08T15:10:04+01:00\", \"PT5M1S\");\n\n assertEquals( 2, dsmrTelegram.getVoltageSagsPhaseL1());\n assertEquals( 1, dsmrTelegram.getVoltageSagsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSagsPhaseL3());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL1());\n assertEquals( 3, dsmrTelegram.getVoltageSwellsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL3());\n assertEquals( 220.1, dsmrTelegram.getVoltageL1(), 0.001);\n assertEquals( 220.2, dsmrTelegram.getVoltageL2(), 0.001);\n assertEquals( 220.3, dsmrTelegram.getVoltageL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getCurrentL1(), 0.001);\n assertEquals( 2, dsmrTelegram.getCurrentL2(), 0.001);\n assertEquals( 3, dsmrTelegram.getCurrentL3(), 0.001);\n assertEquals( 1.111, dsmrTelegram.getPowerReceivedL1(), 0.001);\n assertEquals( 2.222, dsmrTelegram.getPowerReceivedL2(), 0.001);\n assertEquals( 3.333, dsmrTelegram.getPowerReceivedL3(), 0.001);\n assertEquals( 4.444, dsmrTelegram.getPowerReturnedL1(), 0.001);\n assertEquals( 5.555, dsmrTelegram.getPowerReturnedL2(), 0.001);\n assertEquals( 6.666, dsmrTelegram.getPowerReturnedL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getMBusEvents().size());\n\n assertEquals( 3, dsmrTelegram.getMBusEvents().get(1).getDeviceType());\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getMBusEvents().get(1).getEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getMBusEvents().get(1).getTimestamp());\n assertEquals( 12785.123, dsmrTelegram.getMBusEvents().get(1).getValue(), 0.001);\n assertEquals( \"m3\", dsmrTelegram.getMBusEvents().get(1).getUnit());\n\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getGasEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getGasTimestamp());\n assertEquals(12785.123, dsmrTelegram.getGasM3(), 0.001);\n\n assertEquals(\"EF2F\", dsmrTelegram.getCrc());\n\n // The CRC of this testcase is invalid.\n // Or better: I have not been able to copy it from the documentation and\n // recreate the \"original\" record for which the provided CRC was calculated.\n // assertTrue(dsmrTelegram.isValidCRC());\n }", "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "private static void test4() {\n int[] numbers = {4, 5, 1, 6, 2, 7, 2, 8};\n int[] expected = {1, 2};\n\n test(\"Test4\", numbers, expected);\n }", "@Test\n\tpublic void testSkippedCallnums() \n\t{\n\t\tString id = \"skippedCallnum\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t\t// skipped call number should not be present\n\t solrFldMapTest.assertSolrFldHasNoValue(testFilePath, id, fldName, \"NO CALL NUMBER\");\n\t}", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "private String extractNumber() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length && Character.isDigit(expression[currentIndex])) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "public void addPartNumber(String partNumber){partNumbers.add(partNumber);}", "@Test\n public void fieldAutoNum() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Each AUTONUM field displays the current value of a running count of AUTONUM fields,\n // allowing us to automatically number items like a numbered list.\n // This field will display a number \"1.\".\n FieldAutoNum field = (FieldAutoNum) builder.insertField(FieldType.FIELD_AUTO_NUM, true);\n builder.writeln(\"\\tParagraph 1.\");\n\n Assert.assertEquals(\" AUTONUM \", field.getFieldCode());\n\n field = (FieldAutoNum) builder.insertField(FieldType.FIELD_AUTO_NUM, true);\n builder.writeln(\"\\tParagraph 2.\");\n\n // The separator character, which appears in the field result immediately after the number,is a full stop by default.\n // If we leave this property null, our second AUTONUM field will display \"2.\" in the document.\n Assert.assertNull(field.getSeparatorCharacter());\n\n // We can set this property to apply the first character of its string as the new separator character.\n // In this case, our AUTONUM field will now display \"2:\".\n field.setSeparatorCharacter(\":\");\n\n Assert.assertEquals(\" AUTONUM \\\\s :\", field.getFieldCode());\n\n doc.save(getArtifactsDir() + \"Field.AUTONUM.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.AUTONUM.docx\");\n\n TestUtil.verifyField(FieldType.FIELD_AUTO_NUM, \" AUTONUM \", \"\", doc.getRange().getFields().get(0));\n TestUtil.verifyField(FieldType.FIELD_AUTO_NUM, \" AUTONUM \\\\s :\", \"\", doc.getRange().getFields().get(1));\n }", "public static void displayDigits(int numberToSplit)\n\t\t\t{\n\t\t\t\tint number = numberToSplit;\n\t\t\t\tString numberAsString = \"\";\n\t\t\t\tint integerPart;\n\t\t\t\tint remainderPart;\n\t\t\t\t\n\t\t\t\tSystem.out.printf(\"Number to split: %d%n\", numberToSplit);\n\t\t\t\t\t\t\t\t\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tintegerPart = calculateIntegerPart(number);\n\t\t\t\t\tremainderPart = calculateRemainderPart(number);\n\t\t\t\t\tnumberAsString = remainderPart + \" \" + numberAsString;\n\t\t\t\t\tnumber = integerPart;\t\n\t\t\t\t\t\n\t\t\t\t} while (number >= 10);\n\t\t\t\t\n\t\t\t\tif (integerPart != 0)\n\t\t\t\t\tnumberAsString = integerPart + \" \" + numberAsString;\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.printf(\"The number after splitting represented as a String: %s\", numberAsString);\t\t\t\t\n\t\t\t\tSystem.out.println();\t\t\n\t\t\t\t\n\t\t\t}", "@Test\n public void fieldListNum() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // LISTNUM fields display a number that increments at each LISTNUM field.\n // These fields also have a variety of options that allow us to use them to emulate numbered lists.\n FieldListNum field = (FieldListNum) builder.insertField(FieldType.FIELD_LIST_NUM, true);\n\n // Lists start counting at 1 by default, but we can set this number to a different value, such as 0.\n // This field will display \"0)\".\n field.setStartingNumber(\"0\");\n builder.writeln(\"Paragraph 1\");\n\n Assert.assertEquals(\" LISTNUM \\\\s 0\", field.getFieldCode());\n\n // LISTNUM fields maintain separate counts for each list level. \n // Inserting a LISTNUM field in the same paragraph as another LISTNUM field\n // increases the list level instead of the count.\n // The next field will continue the count we started above and display a value of \"1\" at list level 1.\n builder.insertField(FieldType.FIELD_LIST_NUM, true);\n\n // This field will start a count at list level 2. It will display a value of \"1\".\n builder.insertField(FieldType.FIELD_LIST_NUM, true);\n\n // This field will start a count at list level 3. It will display a value of \"1\".\n // Different list levels have different formatting,\n // so these fields combined will display a value of \"1)a)i)\".\n builder.insertField(FieldType.FIELD_LIST_NUM, true);\n builder.writeln(\"Paragraph 2\");\n\n // The next LISTNUM field that we insert will continue the count at the list level\n // that the previous LISTNUM field was on.\n // We can use the \"ListLevel\" property to jump to a different list level.\n // If this LISTNUM field stayed on list level 3, it would display \"ii)\",\n // but, since we have moved it to list level 2, it carries on the count at that level and displays \"b)\".\n field = (FieldListNum) builder.insertField(FieldType.FIELD_LIST_NUM, true);\n field.setListLevel(\"2\");\n builder.writeln(\"Paragraph 3\");\n\n Assert.assertEquals(\" LISTNUM \\\\l 2\", field.getFieldCode());\n\n // We can set the ListName property to get the field to emulate a different AUTONUM field type.\n // \"NumberDefault\" emulates AUTONUM, \"OutlineDefault\" emulates AUTONUMOUT,\n // and \"LegalDefault\" emulates AUTONUMLGL fields.\n // The \"OutlineDefault\" list name with 1 as the starting number will result in displaying \"I.\".\n field = (FieldListNum) builder.insertField(FieldType.FIELD_LIST_NUM, true);\n field.setStartingNumber(\"1\");\n field.setListName(\"OutlineDefault\");\n builder.writeln(\"Paragraph 4\");\n\n Assert.assertTrue(field.hasListName());\n Assert.assertEquals(\" LISTNUM OutlineDefault \\\\s 1\", field.getFieldCode());\n\n // The ListName does not carry over from the previous field, so we will need to set it for each new field.\n // This field continues the count with the different list name, and displays \"II.\".\n field = (FieldListNum) builder.insertField(FieldType.FIELD_LIST_NUM, true);\n field.setListName(\"OutlineDefault\");\n builder.writeln(\"Paragraph 5\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.LISTNUM.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.LISTNUM.docx\");\n\n Assert.assertEquals(7, doc.getRange().getFields().getCount());\n\n field = (FieldListNum) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_LIST_NUM, \" LISTNUM \\\\s 0\", \"\", field);\n Assert.assertEquals(\"0\", field.getStartingNumber());\n Assert.assertNull(field.getListLevel());\n Assert.assertFalse(field.hasListName());\n Assert.assertNull(field.getListName());\n\n for (int i = 1; i < 4; i++) {\n field = (FieldListNum) doc.getRange().getFields().get(i);\n\n TestUtil.verifyField(FieldType.FIELD_LIST_NUM, \" LISTNUM \", \"\", field);\n Assert.assertNull(field.getStartingNumber());\n Assert.assertNull(field.getListLevel());\n Assert.assertFalse(field.hasListName());\n Assert.assertNull(field.getListName());\n }\n\n field = (FieldListNum) doc.getRange().getFields().get(4);\n\n TestUtil.verifyField(FieldType.FIELD_LIST_NUM, \" LISTNUM \\\\l 2\", \"\", field);\n Assert.assertNull(field.getStartingNumber());\n Assert.assertEquals(\"2\", field.getListLevel());\n Assert.assertFalse(field.hasListName());\n Assert.assertNull(field.getListName());\n\n field = (FieldListNum) doc.getRange().getFields().get(5);\n\n TestUtil.verifyField(FieldType.FIELD_LIST_NUM, \" LISTNUM OutlineDefault \\\\s 1\", \"\", field);\n Assert.assertEquals(\"1\", field.getStartingNumber());\n Assert.assertNull(field.getListLevel());\n Assert.assertTrue(field.hasListName());\n Assert.assertEquals(\"OutlineDefault\", field.getListName());\n }", "static List<String> splitBadgeNumber(String badgeNumber) {\n List<String> parts = new ArrayList<>();\n Matcher m = badgeNumberPattern.matcher(badgeNumber);\n if (m.find()) {\n parts.add(m.group(1));\n parts.add(m.group(2));\n } else {\n parts.add(badgeNumber);\n }\n return parts;\n }", "@DISPID(-2147417087)\n @PropGet\n java.lang.Object recordNumber();", "public static void main(String[] args)\r\n\t{\n\t\tSingleNumberII2 sn22 = new SingleNumberII2();\r\n\t\t\r\n\t\tint[] n = new int[]{123, 234, 456 , 123, 123 ,234 ,234};\r\n\t\t\r\n\t\tSystem.out.println(sn22.singleNumber(n));\r\n\t\t\r\n\t}", "java.lang.String getNumb();", "protected TextGuiTestObject house_Number() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"house_Number\"));\n\t}", "public static void main(String args[] ) throws Exception {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint i,l,j,t = in.nextInt();\n\t\t\n\t\tint caseNo = 0;\n\t\twhile(t!=0) {\n\t\t\tcaseNo++;\n\t\t\tString num = in.next();\n\t\t\tchar []firstNum = new char[num.length()];\n\t\t\tchar []secondNum = new char[num.length()];\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tfirstNum[i] = num.charAt(i);\n\t\t\t\tsecondNum[i] = '0';\n\t\t\t}\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tif(firstNum[i] == '4'){\n\t\t\t\t\tfirstNum[i] = '3';\n\t\t\t\t\tsecondNum[i] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"Case #\" + caseNo + \": \" );\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tSystem.out.print(firstNum[i]);\n\t\t\t}\n\t\t\tSystem.out.print(\" \");\n\t\t\tint found = 0;\n\t\t\tfor(i=0;i<num.length();i++){\n\t\t\t\tif(secondNum[i] == '0' && found == 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tfound =1;\n\t\t\t\tSystem.out.print(secondNum[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tt--;\n\t\t}\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(currentIndex);\n }\n return sb.toString();\n }", "void inTest() {\n\t\t\tSystem.out.println(inNum);\r\n\t\t\tSystem.out.println(sinNum);\r\n\t\t\tSystem.out.println(sNum);\r\n\t\t}", "@Test\r\n public void test4(){\n\t E1.setSocialSecurityNumber(\"SSN1\");\r\n\t\tE2.setSocialSecurityNumber(\"SSN2\");\r\n String actual = E1.getSocialSecurityNumber();\r\n String expected = \"SSN1\";\r\n assertEquals(actual,expected);\r\n }", "@Test\n public void fieldAutoNumOut() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // AUTONUMOUT fields display a number that increments at each AUTONUMOUT field.\n // Unlike AUTONUM fields, AUTONUMOUT fields use the outline numbering scheme,\n // which we can define in Microsoft Word via Format -> Bullets & Numbering -> \"Outline Numbered\".\n // This allows us to automatically number items like a numbered list.\n // LISTNUM fields are a newer alternative to AUTONUMOUT fields.\n // This field will display \"1.\".\n builder.insertField(FieldType.FIELD_AUTO_NUM_OUTLINE, true);\n builder.writeln(\"\\tParagraph 1.\");\n\n // This field will display \"2.\".\n builder.insertField(FieldType.FIELD_AUTO_NUM_OUTLINE, true);\n builder.writeln(\"\\tParagraph 2.\");\n\n for (Field field : doc.getRange().getFields()) {\n if (field.getType() == FieldType.FIELD_AUTO_NUM_OUTLINE) {\n Assert.assertEquals(field.getFieldCode(), \" AUTONUMOUT \");\n }\n }\n\n doc.save(getArtifactsDir() + \"Field.AUTONUMOUT.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.AUTONUMOUT.docx\");\n\n for (Field field : doc.getRange().getFields())\n TestUtil.verifyField(FieldType.FIELD_AUTO_NUM_OUTLINE, \" AUTONUMOUT \", \"\", field);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }", "public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}", "@Test\n public final void whenSemicolonDelimiterIsSpecifiedThenItIsUsedToSeparateNumbers() {\n assertEquals(3+6+15, StringCalculator.add(\"//;\\n3;6;15\"));\n }", "public String get_integer_part();", "@org.junit.Test\r\n public void testPositiveScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"+27712612199\");// function should return true\r\n assertEquals(true, result);\r\n\r\n }", "@Test\n\tvoid RepeatedNumberTest() \n\t{ int[] oneNum = new int[] {1};\n\t\tint[] twoDiffNums = new int[] {1, 2};\n\t\tint[] twoSameNums = new int[] {2, 2};\n\t\tint[] insideOut = new int[] {5, 4, 3, 2, 1, 1, 2, 3, 4, 5};\n\t\t\n\t\tassertFalse(utilities.RepeatedNumber(oneNum));\n\t\tassertFalse(utilities.RepeatedNumber(twoDiffNums));\n\t\tassertTrue(utilities.RepeatedNumber(twoSameNums));\n\t\tassertTrue(utilities.RepeatedNumber(insideOut));\n\t}", "public String getCvvNumber();", "@Test\n public void testInsuredPayerInsuredGroupNbr() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setInsuredGroupNbr,\n RdaFissPayer::getInsuredGroupNbr,\n RdaFissPayer.Fields.insuredGroupNbr,\n 20);\n }", "private String trimNumber(String num){\n\t\tString incomingNumber = num;\n\t\tincomingNumber = incomingNumber.replaceAll(\"-\", \"\" );\n\t\tif(incomingNumber.startsWith(\"1\"))\n\t\t\tincomingNumber = incomingNumber.replaceFirst(\"1\", \"\");\n\t\tLog.d(TAG,\"trimnum: \" + num );\n\t\tLog.d(TAG,\"trimNumber: \" + incomingNumber);\n\t\treturn incomingNumber;\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSHARE1B() {\n CuteNetlibCase.doTest(\"SHARE1B.SIF\", \"-76589.31857918584\", \"74562.53714565346\", NumberContext.of(4, 4));\n }", "private String createNumberLine(){\n StringBuilder numberLine = new StringBuilder();\n for(int i = 0; i < this.columns; i++){\n numberLine.append(i + 1).append(\" \");\n }\n return numberLine.toString();\n }", "public void VerifySkuPageItemNumber(String ItemNumber){\r\n\t\tString itemNumber = getValue(ItemNumber);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- SKU Page Item Number is verified\");\r\n\t\ttry{\r\n\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtSkuItemnumber\"),itemNumber)) { \r\n\t\t\t\twaitForPageToLoad(20);\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- SKU Page Displayed\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SKU Page is not displayed \"+elementProperties.getProperty(\"txtSkuItemnumber\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \" + elementProperties.getProperty(\"txtSkuItemnumber\").toString().replace(\"By.\", \" \") + \" not found\");\r\n\t\t}\r\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSHARE2B() {\n CuteNetlibCase.doTest(\"SHARE2B.SIF\", \"-4.1573224074E+02\", \"-265.0981144446295\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testSortNumbersWithNumFlag() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortNumbersWithNumFlagOn(inputArr7);\n\t\tassertEquals(\"1\", arrayList.get(0));\n\t\tassertEquals(\"5\", arrayList.get(1));\n\t\tassertEquals(\"10\", arrayList.get(2));\n\t\tassertEquals(\"33\", arrayList.get(3));\n\t\tassertEquals(\"100\", arrayList.get(4));\n\t}", "static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }", "public void testNmCode() throws Exception {\n String nmCode = \"E1-541-392740-1-img.E1-543-392740-1-a.E1-4-DengLu-1-a.E1-38-red&ChaDian-1-a.UT-601-392740-2*2-a\";\r\n //Pattern p = Pattern.compile(\"\\\\w+-(?:543|601)-(\\\\w+)-(\\\\d+(\\\\*\\\\d+)?)-\\\\w+\\\\.?\");\r\n Pattern p = Pattern.compile(\"(\\\\w+)-(\\\\w+)-(\\\\w+)-(\\\\d+(\\\\*\\\\d+)?)-\\\\w+\\\\.?\");\r\n //Pattern p = Pattern.compile(\".+-(?:639|640)-(\\\\w+)-(\\\\d+(\\\\*\\\\d+)?)-.*\");\r\n Matcher m = p.matcher(nmCode);\r\n while (m.find()) {\r\n p(m.group(1) + \",\" + m.group(2) + \",\" + m.group(3));\r\n }\r\n }", "public static String convertCardNumber(String part1, String part4) {\n\n return part1 + \"*\" + part4;\n }", "@Override\n\tprotected int calcBetCode(int number) {\n\t\tint street = (number - 1) / 3;\n\t\treturn street;\n\t}", "@Override\n\tpublic void printLotteryNo() {\n\t\tint[] prefixNums = generateNumber(35, 5);\n\t\tint[] suffixNums = generateNumber(12, 2);\n\t\tSystem.out.println(\"本期大乐透前区号码是:\" + printNums(prefixNums));\n\t\tSystem.out.println(\"本期大乐透后区号码是:\" + printNums(suffixNums));\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }", "private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }", "@Test\n\tpublic void testSortSimpleCapitalNumberWithNumFlagOn() throws SortException {\n\t\tString[] input = new String[] { \"ap1EE\", \"100aPp1e\", \"66p3aR\", \"1Pear\", \"p3Arr\" };\n\t\tList<String> arrayList = sortApplication.sortSimpleCapitalNumberWithNumFlagOn(input);\n\t\tassertEquals(\"1Pear\", arrayList.get(0));\n\t\tassertEquals(\"66p3aR\", arrayList.get(1));\n\t\tassertEquals(\"100aPp1e\", arrayList.get(2));\n\t\tassertEquals(\"ap1EE\", arrayList.get(3));\n\t\tassertEquals(\"p3Arr\", arrayList.get(4));\n\t}", "@Test\n\tpublic void castWordNumbersFollowedByComma() {\n\t\tString input = \"Alice has one, not two or three apples..\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"Alice has 1, not 2 or 3 apples..\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "@Test\n public void testDAM31102001() {\n testDAM31001001();\n }", "@Test\n public void testGetNumberCheckedOut() {\n }", "@Test\n\tpublic void testSortSimpleNumbersWithNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortSimpleNumbersWithNumFlagOn(inputArr6);\n\t\tassertEquals(\"1oranges\", arrayList.get(0));\n\t\tassertEquals(\"22pears\", arrayList.get(1));\n\t\tassertEquals(\"100apples\", arrayList.get(2));\n\t\tassertEquals(\"feb16\", arrayList.get(3));\n\t\tassertEquals(\"january2016\", arrayList.get(4));\n\t}", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public void getnumber() {\n\r\n\t\tnumberofticket[numberposition] = number;\r\n\t\tticketnumber[numberposition] = numberresult;\r\n\t\ttickettype[numberposition] = ticketname[btn_menu1_int];\r\n\t\tnumberposition++;\r\n\r\n\t}", "@Override\n\tpublic void createccuntNum() {\n\t\t\n\t}", "@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }", "private static String findNumber() {\n\t\treturn null;\r\n\t}", "public String getNumber(){return number;}", "public static void printNumbers() {\n\t\tSystem.out.println(56);\n\t\tSystem.out.println(0b11); // 3 binary\n\t\tSystem.out.println(017); // 15 octal\n\t\tSystem.out.println(0x1F); //31 hexadecimal\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void consTest1() throws Exception {\n parsecs.digits.parse(Lists.charactersOf(\"123456789b\"))\n .forEach(this::dumpResult);\n }", "@Test\n\tpublic void castWordNumbersFollowedByMultipleDots() {\n\t\tString input = \"Alice has one... not two or three apples..\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"Alice has 1... not 2 or 3 apples..\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "private static String replaceNumber(String s, Pattern numberPattern, int base, int skipFirst, int skipLast) {\n\t\tMatcher m = numberPattern.matcher(s);\n\t\tint matchstart = 0;\n\t\twhile (m.find(matchstart)) {\n\t\t\tString n = m.group(2);\n\t\t\ts = s.replaceFirst(n, Long.toString(Long.parseLong(n.substring(skipFirst,\n\t\t\t\tn.length() - skipLast), base)));\n\t\t\tmatchstart = m.end(2);\n\t\t}\n\t\treturn s;\n\t}", "public static void main(String[] args) {\n\n\t\tint number = 32841;\n\t\tint temp = 32841;\n\t\t/*\n\t\t * int number = 32814; int temp = 32814;\n\t\t */\n\t\t// 14823\n\t\t// 12843\n\t\tArrayList<Integer> listOfNumbers = new ArrayList<Integer>();\n\t\tArrayList<Integer> newList = new ArrayList<Integer>();\n\n\t\twhile (temp > 0) {\n\t\t\tint digit = temp % 10;\n\t\t\ttemp = temp / 10;\n\t\t\tlistOfNumbers.add(digit);\n\t\t}\n\n\t\tint i = 0;\n\t\tint j = i + 1;\n\t\t// Checking the asecending order\n\t\tfor (i = 0; i < listOfNumbers.size() - 1; i++) {\n\n\t\t\tif (listOfNumbers.get(j) < listOfNumbers.get(i)) {\n\t\t\t\tSystem.out.println(listOfNumbers.get(i + 1));\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(j);\n\t\t\tj++;\n\t\t}\n\n\t\t// j = 0;\n\n\t\t// replacing the 2 and 4\n\t\tfor (int m = 0; m < listOfNumbers.size() - 1; m++) {\n\n\t\t\tif ((Integer) listOfNumbers.get(m) > (Integer) listOfNumbers.get(i + 1)) {\n\t\t\t\tSystem.out.println(\" i = \" + i);\n\t\t\t\tSystem.out.println(\"value at m is \" + listOfNumbers.get(m));\n\t\t\t\tSystem.out.println(\"value at i is \" + listOfNumbers.get(i + 1));\n\t\t\t\tint swap = listOfNumbers.get(m);\n\t\t\t\tlistOfNumbers.set(m, listOfNumbers.get(i + 1));\n\t\t\t\tlistOfNumbers.set(i + 1, swap);\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\t// getting the sub list and sorting them\n\t\tList<Integer> subList = listOfNumbers.subList(0, i + 1);\n\t\tCollections.sort(subList);\n\t\tCollections.reverse(subList);\n\n\t\t// creating a new list wit the next higher number\n\t\tfor (int k = listOfNumbers.size(); k > i + 1; k--) {\n\t\t\tnewList.add(listOfNumbers.get(k - 1));\n\t\t}\n\n\t\tfor (int k = 0; k < subList.size(); k++) {\n\t\t\tnewList.add(subList.get(k));\n\t\t}\n\n\t\tfor (int k = 0; k < newList.size(); k++) {\n\t\t\tSystem.out.print(newList.get(k));\n\t\t}\n\t}", "public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "private int extractNumberFromText(String value) {\n\t\tif(!value.isEmpty()) {\n\t\t\tString[] token = value.split(\";\");\n\t\t\tString number = token[0].trim();\n\t\t\treturn Integer.valueOf(number);\n\t\t}\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\t\tString record =\"px123,kingstone,340,1|3|4|1\";\n\t\tString record1 =\"px125,electronics,storege,pendrive,kingstone,340,1|3|4|1\";\n\t\tString record2 =\"px125,electronics,storege,pendrive,kingstone,340\";\n\t\tString what = \"\\\\d+,(\\\\d\\\\|*)+$\";\n\t\tPattern p=Pattern.compile(what);\n\t\tMatcher m=p.matcher(record);\n\t\tif(m.find())\n\t\t{\n\t\t\tSystem.out.println(\"correct\");\n\t\t\tString str[]=m.group().split(\",\");\n\t\t\tSystem.out.println(str[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\t\t}\n\t\t\n\t}", "public static String printBeutifulNumber(String num){\n String[] s_num = num.split(\"\\\\s+\");// converting given string to string array\n int[] input_num = new int[s_num.length];\n for(int i = 0; i<s_num.length; i++){\n input_num[i] = Integer.parseInt(s_num[i]);\n }//Convert given string to int array\n String result = beutifulMaker(input_num);\n return result;\n }", "public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testADLITTLE() {\n CuteNetlibCase.doTest(\"ADLITTLE.SIF\", \"225494.96316238036\", null, NumberContext.of(7, 4));\n }", "@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }", "public void testNumberConversion() throws Exception {\n NumberMetadataDefinition def = new NumberMetadataDefinition(\"number\", NUMBER);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(def);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n NumberMetadataValue number = (NumberMetadataValue)TreeStructureUtil.getLeaf(property, \"number\");\n assertNotNull(number);\n assertEquals(new Long(NUMBER), number.getValue());\n }", "@Test\n public void testGetNum() throws Exception {\n CountNumbersWithUniqueDigits countNumbersWithUniqueDigits = new CountNumbersWithUniqueDigits();\n assertEquals(81, countNumbersWithUniqueDigits.getNum(10, 2));\n assertEquals(9, countNumbersWithUniqueDigits.getNum(10, 1));\n }", "java.lang.String getAccountNumber();", "public void testToString() {\n\t\tNumberConverter test = new NumberConverter(436);\n\t\tNumberConverter testH = new NumberConverter(95);\n\t\tNumberConverter testT = new NumberConverter(203);\n\t\tNumberConverter testO = new NumberConverter(870);\n\t\tNumberConverter testHT = new NumberConverter(2);\n\t\tNumberConverter testHO = new NumberConverter(40);\n\t\tNumberConverter testTO = new NumberConverter(900);\n\t\tNumberConverter testH2 = new NumberConverter(13);\n\t\tNumberConverter testHTO = new NumberConverter(0);\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttest.toString(), \"four hundred and thirty six\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH.toString(), \"ninety five\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestT.toString(), \"two hundred and three\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestO.toString(), \"eight hundred and seventy\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHT.toString(), \"two\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHO.toString(), \"forty\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestTO.toString(), \"nine hundred\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH2.toString(), \"thirteen\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHTO.toString(), \"\");\n\n\t}", "String getIdNumber();" ]
[ "0.6012143", "0.58133775", "0.5771952", "0.55759865", "0.54227734", "0.53951323", "0.533874", "0.5266737", "0.52574915", "0.5242599", "0.5240443", "0.52065307", "0.5203011", "0.52009946", "0.5194939", "0.5167309", "0.5167309", "0.5167309", "0.51178306", "0.5102887", "0.50915855", "0.50911415", "0.5089916", "0.5088243", "0.5080101", "0.50656223", "0.5060617", "0.5054304", "0.5025879", "0.5025394", "0.5009627", "0.5007643", "0.49915546", "0.4988237", "0.4983226", "0.49772668", "0.4969912", "0.49606663", "0.49591434", "0.4936808", "0.4936683", "0.4929162", "0.49219972", "0.49178642", "0.4912919", "0.49114832", "0.4907476", "0.49016452", "0.48999128", "0.48941362", "0.48856795", "0.48816544", "0.48811892", "0.48769376", "0.48578602", "0.48578158", "0.4854572", "0.48527178", "0.48480156", "0.48449716", "0.48412135", "0.48391724", "0.4828795", "0.4825482", "0.48195764", "0.48146552", "0.48001057", "0.47984698", "0.4794665", "0.4794132", "0.47920188", "0.4781526", "0.47790575", "0.47745278", "0.4773698", "0.4771661", "0.4769948", "0.47675556", "0.4766794", "0.47656024", "0.47646117", "0.4764234", "0.47633794", "0.47631073", "0.47618675", "0.4758363", "0.47560984", "0.4754687", "0.4754654", "0.47471678", "0.47403076", "0.47389343", "0.47352526", "0.473441", "0.47342005", "0.47330603", "0.4732594", "0.47316206", "0.47314027", "0.47294274" ]
0.5954339
1
Generated by ComTest END Generated by ComTest BEGIN testTakeNumberFromString224
@Test public void testTakeNumberFromString224() { // FlairImage: 224 assertEquals("From: FlairImage line: 225", 123, takeNumberFromString("123")); assertEquals("From: FlairImage line: 226", 0, takeNumberFromString("123a")); assertEquals("From: FlairImage line: 227", -123, takeNumberFromString("-123")); assertEquals("From: FlairImage line: 228", 0, takeNumberFromString("--123")); assertEquals("From: FlairImage line: 229", 0, takeNumberFromString("pz4")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public void testNumberConversion() throws Exception {\n NumberMetadataDefinition def = new NumberMetadataDefinition(\"number\", NUMBER);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(def);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n NumberMetadataValue number = (NumberMetadataValue)TreeStructureUtil.getLeaf(property, \"number\");\n assertNotNull(number);\n assertEquals(new Long(NUMBER), number.getValue());\n }", "java.lang.String getNum2();", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "public java.lang.String getFromNumber()\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(FROMNUMBER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(currentIndex);\n }\n return sb.toString();\n }", "private String parseNumber () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n fBuffer.delete(0, fBuffer.length());//empty string buffer\r\n \r\n char chr=next();//get next character\r\n assert \"-0123456789\".indexOf(chr)>=0;//assert valid start character\r\n while (\"0123456789.Ee+-\".indexOf(chr)>=0) {//until non number character\r\n fBuffer.append(chr);//append to string buffer\r\n chr=next();//get next character\r\n if (chr==NONE) throw new RuntimeException(\"Invalid syntax : \"+context());//gee, thanks...\r\n }//until non number character\r\n \r\n if (\"]},\".indexOf(chr)<0) throw new RuntimeException(\"Invalid syntax : \"+context());//no way jose\r\n\r\n back(); //rewind to the terminator character\r\n \r\n return fBuffer.toString();//return string in buffer\r\n \r\n }", "public String getNumber() throws Exception;", "@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }", "java.lang.String getNum1();", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "java.lang.String getNumb();", "private Number parseNumber(String part) {\n try {\n return this.numberFormat.parse(part);\n } catch (ParseException e) {\n throw new NumberFormatException(String.format(\"Could not parse: %s to number\", part));\n }\n }", "public TamilWord readNumber(String number) throws NotANumberException;", "private double tranferStringToNum(String num){\r\n double number = 0;\r\n try{\r\n\tnumber = Double.parseDouble(num);\r\n }catch(Exception ex){\r\n\tnumber = 0;\r\n }\r\n return number;\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }", "private int extractNumberFromText(String value) {\n\t\tif(!value.isEmpty()) {\n\t\t\tString[] token = value.split(\";\");\n\t\t\tString number = token[0].trim();\n\t\t\treturn Integer.valueOf(number);\n\t\t}\n\t\treturn 0;\n\t}", "abstract String convertEnglishNumber(String number);", "@Test\n public void parseNumber_returnsSortCommand() {\n assertParseSuccess(PARAM_NUMBER);\n }", "public void testToString() {\n\t\tNumberConverter test = new NumberConverter(436);\n\t\tNumberConverter testH = new NumberConverter(95);\n\t\tNumberConverter testT = new NumberConverter(203);\n\t\tNumberConverter testO = new NumberConverter(870);\n\t\tNumberConverter testHT = new NumberConverter(2);\n\t\tNumberConverter testHO = new NumberConverter(40);\n\t\tNumberConverter testTO = new NumberConverter(900);\n\t\tNumberConverter testH2 = new NumberConverter(13);\n\t\tNumberConverter testHTO = new NumberConverter(0);\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttest.toString(), \"four hundred and thirty six\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH.toString(), \"ninety five\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestT.toString(), \"two hundred and three\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestO.toString(), \"eight hundred and seventy\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHT.toString(), \"two\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHO.toString(), \"forty\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestTO.toString(), \"nine hundred\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH2.toString(), \"thirteen\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHTO.toString(), \"\");\n\n\t}", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n number_ = s;\n }\n return s;\n }\n }", "public void testGetOnesDigit() {\n\t\tNumberConverter test5 = new NumberConverter(295);\n\t\tNumberConverter test9 = new NumberConverter(109);\n\t\tNumberConverter test11 = new NumberConverter(311);\n\t\tNumberConverter test0 = new NumberConverter(310);\n\t\tNumberConverter test00 = new NumberConverter(2);\n\t\tassertEquals(\"Should have returned last digit\", test5.getNthDigit(1), 5);\n\t\tassertEquals(\"Should have returned last digit\", test9.getNthDigit(1), 9);\n\t\tassertEquals(\"Should have returned last digit\", test11.getNthDigit(1),\n\t\t\t\t1);\n\t\tassertEquals(\"Should have returned last digit\", test0.getNthDigit(1), 0);\n\t\tassertEquals(\"Should have returned last digit\", test00.getNthDigit(1),\n\t\t\t\t2);\n\t}", "@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}", "public int getE04(final int digitNumber);", "private static String findNumber() {\n\t\treturn null;\r\n\t}", "public String getNumberString() {\n return numberString;\n }", "public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }", "private static long convertNumber(String text, int base)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\ttext = text.toLowerCase();\r\n\t\tfor (int i = 2; i < text.length(); i++)\r\n\t\t{\r\n\t\t\tint d;\r\n\t\t\tchar c = text.charAt(i);\r\n\t\t\tif (c > '9')\r\n\t\t\t\td = (int) (c - 'a') + 10;\r\n\t\t\telse\r\n\t\t\t\td = (int) (c - '0');\r\n\t\t\tresult = (result * base) + d;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n number_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private Token readNum(char firstchar) {\n StringBuilder numConstructCache = new StringBuilder();\n char c = firstchar;\n\n while (true) {\n if (isLegalNumChar(c)) {\n numConstructCache.append(c);\n } else {\n revokeCharRead();\n break;\n }\n c = getNextChar();\n }\n return new Token(TokenType.NUMBER, numConstructCache.toString()); //the value of 0 is null\n }", "public java.lang.String getNumber() {\n\t\t\t\t\tjava.lang.Object ref = number_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tnumber_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}", "protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }", "@Test\n public void testDigramaToNum() throws Exception {\n System.out.println(\"digramaToNum\");\n String digrama = \"\";\n int expResult = 0;\n int result = utilsHill.digramaToNum(digrama);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void castWordNumbersFollowedByMultipleDots() {\n\t\tString input = \"Alice has one... not two or three apples..\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"Alice has 1... not 2 or 3 apples..\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\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 number_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "protected java.lang.String readNum() throws java.io.IOException {\n char c = readCharWord();\n java.lang.StringBuilder result = new java.lang.StringBuilder();\n if (c!='-' && !java.lang.Character.isDigit(c))\n throw error();\n do {\n result.append(c);\n c = next();\n } while (java.lang.Character.isDigit(c));\n return result.toString();\n }", "static int getNumberFromString(String s) {\n if (s == null) {\n throw new NumberFormatException(\"null\");\n }\n int result = 0;\n int startIndex = 0;\n int length = s.length();\n boolean negative = false;\n char firstChar = s.charAt(0);\n if (firstChar == '-') {\n negative = true;\n startIndex = 1;\n }\n\n for (int i = startIndex; i < length; i++) {\n char num = s.charAt(i);\n result = result * 10 + num - '0';\n }\n\n return negative ? -result : result;\n }", "private static Symbol number(String text, int base)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\ttoken.number = convertNumber(text, base);\r\n\t\treturn new Symbol(sym.NUMBER, linepos, colpos, token);\r\n\t}", "public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(1000, vs.getInteger());\n assertEquals(BigDecimal.valueOf(1000), vs.getBigNumber());\n }", "@Test\r\n\tpublic void testPlus() {\r\n\t\tString ans;\r\n\t\tString expected = \"115590435626074\";\r\n\t\tNumberStrings tester = new NumberStrings();\r\n\t\tString number1 = \"115555222112553\";\r\n\t\tString number2 = \"35213513521\";\r\n\t\tans = tester.plus(number1, number2);\r\n\t\tAssert.assertEquals(expected, ans);\r\n\t}", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }", "public String digit(String digit);", "public java.lang.String getNumber() {\n\t\t\t\tjava.lang.Object ref = number_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tnumber_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}", "@Test\n\tpublic void checkNumbersFollowedByExclamationMark() {\n\t\tString input = \"Five six SEVEN eiGHt!!\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"5 6 7 8!!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "public TamilWord readNumber(long number);", "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "public String getNumber() \n\t{\n\t\treturn this.number;\n\t}", "public String getNumber(){return number;}", "private int getNumberFromString(String text){\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tfor(int i=text.length() - 1, j=0; i >= 0 ; i--, j++){\n\t\t\t\n\t\t\tresult += (Character.getNumericValue(text.charAt(i))) * Math.pow(10, j);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Test\n\tpublic void testNumberLiteral() throws ParseException {\n\n\t\t// test long literal\n\t\tNumberLiteral numberLiteral = langParser(\"123\").numberLiteral();\n\t\tassertEquals(numberLiteral.getClass(), LongLiteral.class);\n\t\tassertEquals(numberLiteral.longValue(), 123L);\n\n\t\t// test negative long literal\n\t\tnumberLiteral = langParser(\"-987\").numberLiteral();\n\t\tassertEquals(numberLiteral.getClass(), LongLiteral.class);\n\t\tassertEquals(numberLiteral.longValue(), -987L);\n\n\t\t// test double literal\n\t\tnumberLiteral = langParser(\"123.45\").numberLiteral();\n\t\tassertEquals(numberLiteral.getClass(), DoubleLiteral.class);\n\t\tassertEquals(numberLiteral.doubleValue(), 123.45, 1e-6);\n\n\t\t// test negative double literal\n\t\tnumberLiteral = langParser(\"-987.65\").numberLiteral();\n\t\tassertEquals(numberLiteral.getClass(), DoubleLiteral.class);\n\t\tassertEquals(numberLiteral.doubleValue(), -987.65, 1e-6);\n\n\t\t// test double literal in scientific notation\n\t\tnumberLiteral = langParser(\"123.45e6\").numberLiteral();\n\t\tassertEquals(numberLiteral.getClass(), DoubleLiteral.class);\n\t\tassertEquals(numberLiteral.doubleValue(), 1.2345e8, 1e-6);\n\t}", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "public void testSetNumber() {\n ValueString vs = new ValueString();\n\n vs.setNumber(0);\n assertEquals(\"0.0\", vs.getString());\n vs.setNumber(1);\n assertEquals(\"1.0\", vs.getString());\n vs.setNumber(-1);\n assertEquals(\"-1.0\", vs.getString());\n vs.setNumber(2.5);\n assertEquals(\"2.5\", vs.getString());\n vs.setNumber(2.8);\n assertEquals(\"2.8\", vs.getString());\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }", "public int translateNum(int num) {\n String s = String.valueOf(num);\n int a=1,b=1;\n for(int i=s.length()-2; i>-1; i--){\n String tmp = s.substring(i, i+2);\n int c= tmp.compareTo(\"10\") >= 0 && tmp.compareTo(\"25\") <= 0 ? a+b:a;\n b=a;\n a=c;\n }\n return a;\n }", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\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 number_ = s;\n return s;\n }\n }", "public void testDIGITS3() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 240, \"1234567890\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}", "public void testParsePortNumber() {\n int portNumber = PortParser.parsePortNumber(PARAMETERS);\n assertEquals(\"portNumber\", PORT, portNumber);\n }", "@Test\n public void testShouldString123WhenInputIsInteger123() {\n int given = 123;\n\n // When: Call numberToString method\n String actual = Kata.numberToString(given);\n\n // Then:\n assertEquals(\"123\", actual);\n }", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public static Number readNumber(String message, String type){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n switch (type.toLowerCase().trim()){\n case \"byte\":\n return in.nextByte();\n case \"short\":\n return in.nextShort();\n case \"int\":\n return in.nextInt();\n case \"long\":\n return in.nextLong();\n case \"float\":\n return in.nextFloat();\n case \"double\":\n return in.nextDouble();\n default:\n return -1; \n }\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "public String getNumber(){\r\n return number;\r\n }", "com.google.protobuf.ByteString getNumberBytes();", "private int digitOf(Stack<String> number)\n {\n\tif(number.isEmpty()) return 0;\n\treturn Integer.parseInt(number.pop());\n }", "public TamilWord readNumber(String number, ReaderFeature... features) throws NotANumberException;", "public static String extractNumberStr(String str){\n return extract(str, numberExtractPattern);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n\tpublic void castNumbersFollowedByMultipleDifferentNonAlphapeticalCharacters() {\n\t\tString input = \"I have one~!@##$%^^&*( new test\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 1~!@##$%^^&*( new test\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "@Test\n public void testShouldStringMinus123WhenInputIsIntegerMinus123() {\n int given = -123;\n\n // When: Call numberToString method\n String actual = Kata.numberToString(given);\n\n // Then:\n assertEquals(\"-123\", actual);\n }", "public static String printBeutifulNumber(String num){\n String[] s_num = num.split(\"\\\\s+\");// converting given string to string array\n int[] input_num = new int[s_num.length];\n for(int i = 0; i<s_num.length; i++){\n input_num[i] = Integer.parseInt(s_num[i]);\n }//Convert given string to int array\n String result = beutifulMaker(input_num);\n return result;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "@Test\n public void shouldAbleToInputNumericCharactersInTradeInValueField() {\n\n//1. Enter 1 in the Trade-In Value field\n//2. Enter 12 in the Trade-In Value field\n//3. Enter 123 in the Trade-In Value field\n//4. Enter 1234 in the Trade-In Value field\n//5. Enter 12345 in the Trade-In Value field\n//6. Enter 123456 in the Trade-In Value field\n//7. Enter 1234567 in the Trade-In Value field\n//6. Enter 12345678 in the Trade-In Value field\n//6. Enter 12345678 in the Trade-In Value field\n\n }", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }", "@Test\n @Tag(\"bm1000\")\n public void testFFFFF800() {\n CuteNetlibCase.doTest(\"FFFFF800.SIF\", \"555679.5648174941\", \"1858776.4328128027\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}", "@Test(timeout = 4000)\n public void test204() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"x0\");\n NumberInput numberInput0 = new NumberInput(xmlEntityRef0, \"q\", \"q\");\n Component component0 = numberInput0.getParent();\n assertEquals(\"x0\", component0.getComponentId());\n }", "public TamilWord readNumber(double number);", "public static void main(String[] args){\n String test = \" +3 21\";\n int value = atoi(test);\n System.out.println(\"Conversion result is: \" + value);\n }", "private static String toNumber(String in) {\n in = in.toLowerCase();\n for (int i = 0; i < MONTHS.length; i++)\n if (MONTHS[i].equals(in))\n return Integer.toString(i + 1);\n for (int i = 0; i < DAYS.length; i++)\n if (DAYS[i].equals(in))\n return Integer.toString(i);\n try {\n Integer.parseInt(in);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"'\" + in + \"' is not a number!\");\n }\n return in;\n }", "private int getNumberBase(String n1){\n return Integer.parseUnsignedInt(n1, base);\n }", "public void testInferNumber1a() throws Exception {\n assertType(\"10 \", 0, 2, \"java.lang.Integer\");\n }", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "@Test\n\tpublic void checkUpcaseNumbersCast() {\n\t\tString input = \"I want FIVE or at least tHREE dollars.\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I want 5 or at least 3 dollars.\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "private void readNumber() {\n // One entry, definitely a number.\n // Beware of '.' as a (non) decimal.\n /*\n maybeSign()\n digits()\n if dot ==> decimal, digits\n if e ==> double, maybeSign, digits\n else\n check not \".\" for decimal.\n */\n boolean isDouble = false;\n boolean isDecimal = false;\n stringBuilder.setLength(0);\n\n /*\n readPossibleSign(stringBuilder) ;\n readDigits may be hex\n readDot\n readDigits\n readExponent.\n */\n\n int x = 0; // Digits before a dot.\n int ch = reader.peekChar();\n if (ch == '0') {\n x++;\n reader.readChar();\n stringBuilder.append((char) ch);\n ch = reader.peekChar();\n if (ch == 'x' || ch == 'X') {\n reader.readChar();\n stringBuilder.append((char) ch);\n readHex(reader, stringBuilder);\n token.setImage(stringBuilder.toString());\n token.setType(TokenType.HEX);\n return;\n }\n } else if (ch == '-' || ch == '+') {\n readPossibleSign(stringBuilder);\n }\n\n x += readDigits(stringBuilder);\n // if ( x == 0 )\n // {\n //\n // }\n ch = reader.peekChar();\n if (ch == Chars.CH_DOT) {\n reader.readChar();\n stringBuilder.append(Chars.CH_DOT);\n isDecimal = true; // Includes things that will be doubles.\n readDigits(stringBuilder);\n }\n\n if (x == 0 && !isDecimal)\n // Possible a tokenizer error - should not have entered readNumber in the first place.\n exception(\"Unrecognized as number\");\n\n if (exponent(stringBuilder)) {\n isDouble = true;\n isDecimal = false;\n }\n\n token.setImage(stringBuilder.toString());\n if (isDouble) token.setType(TokenType.DOUBLE);\n else if (isDecimal) token.setType(TokenType.DECIMAL);\n else token.setType(TokenType.INTEGER);\n }", "@Test\n\tpublic void test_StringCalculator_WhenNumberMoreThanThousantUsed_Then_ReturnTheOtherNumber() {\n\t\tAssert.assertEquals(2 ,calc.Add(\"1002,2\"));\n\t}", "public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}", "public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}" ]
[ "0.6805788", "0.6805788", "0.6805788", "0.63654006", "0.63239694", "0.63039666", "0.62190706", "0.6183933", "0.6133445", "0.6129325", "0.6079598", "0.6027033", "0.5961836", "0.59607106", "0.5934458", "0.5932999", "0.5918301", "0.58977044", "0.58570176", "0.58430547", "0.5830355", "0.58267844", "0.5770609", "0.5764157", "0.57640773", "0.5754518", "0.57105076", "0.5684392", "0.56722546", "0.56581014", "0.56556", "0.56387234", "0.5636779", "0.5633834", "0.5633629", "0.56336224", "0.56313694", "0.56228584", "0.56215376", "0.5615519", "0.5607293", "0.5606272", "0.5604456", "0.5603213", "0.56028026", "0.5600036", "0.55956215", "0.5586478", "0.5579773", "0.5577696", "0.5572691", "0.55715984", "0.556834", "0.55678254", "0.5564847", "0.55645704", "0.5564003", "0.55634886", "0.5560147", "0.5555845", "0.5552974", "0.5548333", "0.55308867", "0.5525806", "0.5499557", "0.5490744", "0.5488183", "0.54857725", "0.54826945", "0.54825974", "0.5479262", "0.5478829", "0.54769385", "0.5471498", "0.547097", "0.5461103", "0.5459292", "0.5458551", "0.5454523", "0.5454523", "0.5454523", "0.5454523", "0.54511666", "0.5450031", "0.54446125", "0.54196286", "0.5412358", "0.5408811", "0.5407582", "0.540716", "0.54064703", "0.540582", "0.5404429", "0.54005075", "0.5397212", "0.53964275", "0.53947103", "0.5391297", "0.53897756", "0.53882545" ]
0.70134854
0
Generated by ComTest END Generated by ComTest BEGIN testShorten247
@Test public void testShorten247() { // FlairImage: 247 assertEquals("From: FlairImage line: 248", "", shorten("asd.asd",7)); assertEquals("From: FlairImage line: 249", "C:/Users/", shorten("C:/Users/asd.asd",7)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "@Test\n public void testDAM31102001() {\n testDAM31001001();\n }", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n\tpublic void testHw1_1000000LOC26method13_2()\n\t\tthrows Exception {\n\t\tlong var0 = 1L;\n\t\tlong var1 = 1L;\n\t\tlong var2 = 1L;\n\t\tchar var3 = '\u0001';\n\t\thw1_1000000LOC0 var4 = new hw1_1000000LOC0();\n\t\tshort var5 = (short) 1;\n\t\tint var6 = 1;\n\t\tshort var7 = (short) 1;\n\t\tchar var8 = '\u0001';\n\n\t\tbyte result = hw1_1000000LOC26.hw1_1000000LOC26method13(var0, var1, var2, var3, var4, var5, var6, var7, var8);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method13_3()\n\t\tthrows Exception {\n\t\tlong var0 = 1L;\n\t\tlong var1 = 1L;\n\t\tlong var2 = 1L;\n\t\tchar var3 = '\u0001';\n\t\thw1_1000000LOC0 var4 = new hw1_1000000LOC0();\n\t\tshort var5 = (short) 1;\n\t\tint var6 = 1;\n\t\tshort var7 = (short) 1;\n\t\tchar var8 = '\u0001';\n\n\t\tbyte result = hw1_1000000LOC26.hw1_1000000LOC26method13(var0, var1, var2, var3, var4, var5, var6, var7, var8);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method13_1()\n\t\tthrows Exception {\n\t\tlong var0 = 1L;\n\t\tlong var1 = 1L;\n\t\tlong var2 = 1L;\n\t\tchar var3 = '\u0001';\n\t\thw1_1000000LOC0 var4 = new hw1_1000000LOC0();\n\t\tshort var5 = (short) 1;\n\t\tint var6 = 1;\n\t\tshort var7 = (short) 1;\n\t\tchar var8 = '\u0001';\n\n\t\tbyte result = hw1_1000000LOC26.hw1_1000000LOC26method13(var0, var1, var2, var3, var4, var5, var6, var7, var8);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_7()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n String[] stringArray0 = new String[0];\n classWriter0.visit(1, 1, \"InnerClasses\", \"\", \"EQIUR?\", stringArray0);\n classWriter0.newField(\"\", \"\", \"\\\"\");\n String[] stringArray1 = new String[4];\n stringArray1[0] = \"\\\"\";\n stringArray1[1] = \"char\";\n stringArray1[2] = \"boolean\";\n stringArray1[3] = \" ,G\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \" ,G\", \"<T'RwU+)i.UKJX>\", \"\", stringArray1, true, true);\n methodWriter0.visitCode();\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "public static void hvitetest1w(){\r\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_4()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n Label label0 = new Label();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e5AO^\");\n ClassWriter classWriter0 = new ClassWriter((-2463));\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e5AO^\");\n classWriter0.newConst(\"Cpd7(e\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"Fj)3/|(;sZXz$\";\n stringArray0[1] = \"e5AO^\";\n stringArray0[2] = \"e5AO^\";\n stringArray0[3] = \"~)yCTRxQ#s$y[Ly%\";\n stringArray0[4] = \"Fj)3/|(;sZXz$\";\n stringArray0[5] = \"e5AO^\";\n stringArray0[6] = \"Cpd7(e\";\n stringArray0[7] = \"Cpd7(e\";\n stringArray0[8] = \"Cpd7(e\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"e5AO^\", \"~)yCTRxQ#s$y[Ly%\", \"e5AO^\", stringArray0, false, false);\n methodWriter0.visitJumpInsn(1, label0);\n classWriter0.newNameTypeItem(\"Cpd7(e\", \"Cpd7(e\");\n label0.successor = label0;\n Label label1 = new Label();\n methodWriter0.visitJumpInsn(1, label0);\n methodWriter0.visitJumpInsn(2, label0.successor);\n methodWriter0.visitInsn(1);\n classWriter0.index = 2330;\n methodWriter0.visitLdcInsn(\"e5AO^\");\n methodWriter0.visitFrame(3, 268435455, stringArray0, 3239, stringArray0);\n methodWriter0.visitTypeInsn(2330, \"~hm$aI6.7xL0\");\n int int0 = methodWriter0.getSize();\n assertEquals(85, int0);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.VOID_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type type1 = Type.getType(class1);\n Type.getType(class0);\n Type type2 = Type.getObjectType(\"The prefix must not be null\");\n Type type3 = Type.INT_TYPE;\n Type[] typeArray0 = new Type[6];\n typeArray0[0] = type2;\n typeArray0[1] = type2;\n typeArray0[2] = type1;\n ClassWriter classWriter2 = new ClassWriter(5);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"The prefix must not be null\", \"\", \"12x_\");\n frame0.execute(177, 8, classWriter2, item0);\n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n assertFalse(boolean0);\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "@Test\n\tpublic void testHw1_1000000LOC26method22_5()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method11_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tshort var2 = (short) 1;\n\t\thw1_1000000LOC15 var3 = new hw1_1000000LOC15();\n\t\tbyte var4 = (byte) 1;\n\t\tshort var5 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method11(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOCInterface9Method2_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tshort var0 = (short) 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC15 var2 = new hw1_1000000LOC15();\n\t\tdouble var3 = 1.0;\n\t\tbyte var4 = (byte) 1;\n\t\tbyte var5 = (byte) 1;\n\t\tint var6 = 1;\n\n\t\tshort result = fixture.hw1_1000000LOCInterface9Method2(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method11_3()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tshort var2 = (short) 1;\n\t\thw1_1000000LOC15 var3 = new hw1_1000000LOC15();\n\t\tbyte var4 = (byte) 1;\n\t\tshort var5 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method11(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method11_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tshort var2 = (short) 1;\n\t\thw1_1000000LOC15 var3 = new hw1_1000000LOC15();\n\t\tbyte var4 = (byte) 1;\n\t\tshort var5 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method11(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOCInterface9Method2_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tshort var0 = (short) 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC15 var2 = new hw1_1000000LOC15();\n\t\tdouble var3 = 1.0;\n\t\tbyte var4 = (byte) 1;\n\t\tbyte var5 = (byte) 1;\n\t\tint var6 = 1;\n\n\t\tshort result = fixture.hw1_1000000LOCInterface9Method2(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_3()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method22_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tlong var0 = 1L;\n\t\tbyte var1 = (byte) 1;\n\t\tdouble var2 = 1.0;\n\t\tshort var3 = (short) 1;\n\t\thw1_1000000LOC19 var4 = new hw1_1000000LOC19();\n\t\tbyte var5 = (byte) 1;\n\n\t\tshort result = fixture.hw1_1000000LOC26method22(var0, var1, var2, var3, var4, var5);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method24_7()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method24_4()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "public void testGetInsDyn() {\n }", "@Test(timeout = 4000)\n public void test66() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String string0 = SQLUtil.normalize(\"/*n9mv+\", false);\n assertEquals(\"/* n9mv +\", string0);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public void test5() {\n\t\t\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method24_6()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_8()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_7()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method24_5()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_7()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method24_2()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_7()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n Label label0 = new Label();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.newInteger((-2450));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.newConst(\"Code\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"Fj)3/|(;sZXz$\";\n stringArray0[1] = \"Code\";\n stringArray0[2] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[3] = \"~)yCTRxQ#s$y[Ly%\";\n stringArray0[4] = \"Fj)3/|(;sZXz$\";\n stringArray0[5] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[6] = \"Code\";\n stringArray0[7] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[8] = \"Code\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 3, \"\\\".3t\\\"0\", \"~)yCTRxQ#s$y[Ly%\", \"\\\".3t\\\"0\", stringArray0, true, false);\n Label label1 = new Label();\n byte[] byteArray0 = new byte[0];\n label1.resolve(methodWriter0, 168, byteArray0);\n classWriter0.newNameTypeItem(\"Code\", \"Fj)3/|(;sZXz$\");\n Label label2 = new Label();\n methodWriter0.visitFieldInsn(3, \"oc[MfnZM[~MHOK iO\", \"oc[MfnZM[~MHOK iO\", \"*/TEiGBLds&\");\n methodWriter0.visitLdcInsn(\"java/lang/dyn/Dynamic\");\n }", "@Test\n\tpublic void testHw1_1000000LOC31method24_3()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n Vector<String> vector0 = new Vector<String>();\n Contract contract0 = new Contract(1971, \"FlDfh\", \" It does not support what-if orders.\", \" It does not support what-if orders.\", 1946.208502764, \")kr!M&G*us\", \"FlDfh\", \"5%IaSQ<4 4{Y0&)gK\", \" projection=\", \"WcK/Llg[\", vector0, \"FlDfh\", false, \"com.ib.client.UnderComp\", \"com.ib.client.UnderComp\");\n Execution execution0 = new Execution(29, 3, \")kr!M&G*us\", (String) null, (String) null, \"(BWx q\", \"5%IaSQ<4 4{Y0&)gK\", 36, 1946.208502764, 29, (-1439), 1971, 36);\n String string0 = EWrapperMsgGenerator.execDetails(1971, contract0, execution0);\n assertEquals(\" ---- Execution Details begin ----\\nreqId = 1971\\norderId = 29\\nclientId = 3\\nsymbol = FlDfh\\nsecType = It does not support what-if orders.\\nexpiry = It does not support what-if orders.\\nstrike = 1946.208502764\\nright = )kr!M&G*us\\ncontractExchange = 5%IaSQ<4 4{Y0&)gK\\ncurrency = projection=\\nlocalSymbol = WcK/Llg[\\nexecId = )kr!M&G*us\\ntime = null\\nacctNumber = null\\nexecutionExchange = (BWx q\\nside = 5%IaSQ<4 4{Y0&)gK\\nshares = 36\\nprice = 1946.208502764\\npermId = 29\\nliquidation = -1439\\ncumQty = 1971\\navgPrice = 36.0\\n ---- Execution Details end ----\\n\", string0);\n }", "@Test\n\tpublic void testHw1_1000000LOC31method24_1()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC2 var1 = new hw1_1000000LOC2();\n\t\tint var2 = 1;\n\t\tString var3 = \"\";\n\t\tshort var4 = (short) 1;\n\t\tlong var5 = 1L;\n\t\tfloat var6 = 1.0f;\n\t\tchar var7 = '\u0001';\n\n\t\tshort result = hw1_1000000LOC31.hw1_1000000LOC31method24(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((short) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method17_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tshort var0 = (short) 1;\n\t\tshort var1 = (short) 1;\n\t\tlong var2 = 1L;\n\t\tlong var3 = 1L;\n\t\tlong var4 = 1L;\n\n\t\tdouble result = fixture.hw1_1000000LOC26method17(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0.0, result, 0.1);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method2_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tlong var1 = 1L;\n\t\tshort var2 = (short) 1;\n\t\tlong var3 = 1L;\n\t\tString var4 = \"\";\n\t\tString var5 = \"\";\n\t\tchar var6 = '\u0001';\n\t\tdouble var7 = 1.0;\n\n\t\tint result = fixture.hw1_1000000LOC26method2(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_8()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_10()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method9_2()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tchar var2 = '\u0001';\n\t\thw1_1000000LOC14 var3 = new hw1_1000000LOC14();\n\t\tfloat var4 = 1.0f;\n\t\tshort var5 = (short) 1;\n\t\tshort var6 = (short) 1;\n\n\t\tint result = hw1_1000000LOC26.hw1_1000000LOC26method9(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method2_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tlong var1 = 1L;\n\t\tshort var2 = (short) 1;\n\t\tlong var3 = 1L;\n\t\tString var4 = \"\";\n\t\tString var5 = \"\";\n\t\tchar var6 = '\u0001';\n\t\tdouble var7 = 1.0;\n\n\t\tint result = fixture.hw1_1000000LOC26method2(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_4()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "private void test() {\n\n\t}", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testHw1_1000000LOC26method17_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tshort var0 = (short) 1;\n\t\tshort var1 = (short) 1;\n\t\tlong var2 = 1L;\n\t\tlong var3 = 1L;\n\t\tlong var4 = 1L;\n\n\t\tdouble result = fixture.hw1_1000000LOC26method17(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0.0, result, 0.1);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method14_4()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_10()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method14_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method13_7()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tString var0 = \"\";\n\t\tdouble var1 = 1.0;\n\t\tString var2 = \"\";\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\thw1_1000000LOC25 var5 = new hw1_1000000LOC25();\n\t\tint var6 = 1;\n\t\tfloat var7 = 1.0f;\n\n\t\tint result = fixture.hw1_1000000LOC31method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testD2Q06C() {\n CuteNetlibCase.doTest(\"D2Q06C.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testHw1_1000000LOC31method21_5()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n void completeItemsAsString() {\n\n }", "@Test\n\tpublic void testHw1_1000000LOC26method9_1()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tbyte var1 = (byte) 1;\n\t\tchar var2 = '\u0001';\n\t\thw1_1000000LOC14 var3 = new hw1_1000000LOC14();\n\t\tfloat var4 = 1.0f;\n\t\tshort var5 = (short) 1;\n\t\tshort var6 = (short) 1;\n\n\t\tint result = hw1_1000000LOC26.hw1_1000000LOC26method9(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Ignore(\"test in testPGNT0102002, testPGNT0101001, testPGNT0101002\")\n public void testDAM30507001() {\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testHw1_1000000LOC31method21_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "public void mo56167c() {\n }", "@Test\n\tpublic void testHw1_1000000LOC31method21_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "public void mo21792Q() {\n }", "@Test\n\tpublic void testHw1_1000000LOC26method14_5()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method13_4()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tString var0 = \"\";\n\t\tdouble var1 = 1.0;\n\t\tString var2 = \"\";\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\thw1_1000000LOC25 var5 = new hw1_1000000LOC25();\n\t\tint var6 = 1;\n\t\tfloat var7 = 1.0f;\n\n\t\tint result = fixture.hw1_1000000LOC31method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_9()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_4()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method13_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tString var0 = \"\";\n\t\tdouble var1 = 1.0;\n\t\tString var2 = \"\";\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\thw1_1000000LOC25 var5 = new hw1_1000000LOC25();\n\t\tint var6 = 1;\n\t\tfloat var7 = 1.0f;\n\n\t\tint result = fixture.hw1_1000000LOC31method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n void completeItemsAsString() {\n }", "@Test\n\tpublic void testHw1_1000000LOC31method17_1()\n\t\tthrows Exception {\n\t\tlong var0 = 1L;\n\t\tshort var1 = (short) 1;\n\t\thw1_1000000LOC19 var2 = new hw1_1000000LOC19();\n\n\t\tObject result = hw1_1000000LOC31.hw1_1000000LOC31method17(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_6()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method6_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tchar var0 = '\u0001';\n\t\thw1_1000000LOC18 var1 = new hw1_1000000LOC18();\n\t\tint var2 = 1;\n\t\tfloat var3 = 1.0f;\n\n\t\tObject result = fixture.hw1_1000000LOC26method6(var0, var1, var2, var3);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method13_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tString var0 = \"\";\n\t\tdouble var1 = 1.0;\n\t\tString var2 = \"\";\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\thw1_1000000LOC25 var5 = new hw1_1000000LOC25();\n\t\tint var6 = 1;\n\t\tfloat var7 = 1.0f;\n\n\t\tint result = fixture.hw1_1000000LOC31method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method14_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_3()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method14_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method14_3()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tdouble var0 = 1.0;\n\t\tdouble var1 = 1.0;\n\t\tshort var2 = (short) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method14(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_2()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_3()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n label0.successor = label1;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2463));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.newConst(\"Cpd7(e\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"Fj)3/|(;sZXz$\";\n stringArray0[1] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[2] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[3] = \"~)yCTRxQ#s$y[Ly%\";\n stringArray0[4] = \"Fj)3/|(;sZXz$\";\n stringArray0[5] = \"oc[MfnZM[~MHOK iO\";\n FileSystemHandling.shouldAllThrowIOExceptions();\n classWriter0.newUTF8(\"Cpd7(e\");\n Frame frame0 = label0.successor.frame;\n label0.frame = null;\n classWriter0.index = (-2463);\n stringArray0[6] = \"Cpd7(e\";\n stringArray0[7] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[8] = \"Cpd7(e\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"oc[MfnZM[~MHOK iO\", \"~)yCTRxQ#s$y[Ly%\", \"oc[MfnZM[~MHOK iO\", stringArray0, true, false);\n methodWriter0.visitJumpInsn(1, label0);\n classWriter0.newFieldItem(\"oc[MfnZM[~MHOK iO\", \"~hm$aI6.7xL0\", \"~hm$aI6.7xL0\");\n methodWriter0.visitJumpInsn(168, label0);\n methodWriter0.visitMaxs(1, (-969));\n // Undeclared exception!\n try { \n methodWriter0.visitVarInsn((-333), 32767);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -333\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test\n\tpublic void testHw1_1000000LOC26method12_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\thw1_1000000LOC4 var0 = new hw1_1000000LOC4();\n\t\tbyte var1 = (byte) 1;\n\t\tint var2 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method12(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testBuild() {\n\n\t\tSystem.out.println(\"End\");\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method6_2()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tchar var0 = '\u0001';\n\t\thw1_1000000LOC18 var1 = new hw1_1000000LOC18();\n\t\tint var2 = 1;\n\t\tfloat var3 = 1.0f;\n\n\t\tObject result = fixture.hw1_1000000LOC26method6(var0, var1, var2, var3);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method4_9()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method17_2()\n\t\tthrows Exception {\n\t\tlong var0 = 1L;\n\t\tshort var1 = (short) 1;\n\t\thw1_1000000LOC19 var2 = new hw1_1000000LOC19();\n\n\t\tObject result = hw1_1000000LOC31.hw1_1000000LOC31method17(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_1()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}" ]
[ "0.65253615", "0.6500686", "0.647435", "0.63859636", "0.60878646", "0.6043739", "0.60416734", "0.599612", "0.5978688", "0.59715116", "0.5970581", "0.59658986", "0.5952764", "0.59517", "0.59433866", "0.5942524", "0.59385705", "0.5921471", "0.5921104", "0.5915171", "0.5912463", "0.59053445", "0.5903547", "0.5900277", "0.5899035", "0.5897354", "0.58930653", "0.58871406", "0.587979", "0.58779496", "0.5870801", "0.5866513", "0.5862036", "0.58618957", "0.58561033", "0.58560985", "0.58520555", "0.5832014", "0.58292603", "0.58280504", "0.58234364", "0.58135766", "0.5812646", "0.5812528", "0.5811407", "0.580682", "0.58046925", "0.58039534", "0.58030623", "0.5791373", "0.5789948", "0.57829076", "0.57816", "0.5781064", "0.5779898", "0.5774517", "0.57741976", "0.5774173", "0.57713705", "0.577023", "0.57639813", "0.576343", "0.5762546", "0.5761215", "0.5760729", "0.5760208", "0.57596225", "0.5758494", "0.57582223", "0.5758057", "0.5756782", "0.5753234", "0.57523245", "0.5751658", "0.574632", "0.5746238", "0.57450426", "0.57447463", "0.5744205", "0.5740363", "0.5739229", "0.5736519", "0.57347536", "0.5734369", "0.57341003", "0.57335734", "0.57334894", "0.57333124", "0.5733085", "0.57317793", "0.5731464", "0.573016", "0.572961", "0.5728899", "0.5724925", "0.5724654", "0.5723261", "0.5718523", "0.5718492", "0.57179564" ]
0.62732327
4
Generated by ComTest END Generated by ComTest BEGIN testTakeExtensionAway264
@Test public void testTakeExtensionAway264() { // FlairImage: 264 assertEquals("From: FlairImage line: 265", "asd", takeExtensionAway("asd.asd")); assertEquals("From: FlairImage line: 266", "asd", takeExtensionAway("asd.a")); assertEquals("From: FlairImage line: 267", "asd", takeExtensionAway("asd.")); assertEquals("From: FlairImage line: 268", "asd", takeExtensionAway("asd")); assertEquals("From: FlairImage line: 269", "", takeExtensionAway(".asd")); assertEquals("From: FlairImage line: 270", "", takeExtensionAway(".")); assertEquals("From: FlairImage line: 271", "asd.asd", takeExtensionAway("asd.asd.asd")); assertEquals("From: FlairImage line: 272", "merkki.jono", takeExtensionAway("merkki.jono.png")); assertEquals("From: FlairImage line: 273", "mer.kki.jono", takeExtensionAway("mer.kki.jono.png")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testExtensionNegotiation() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tMap<String,Integer> extensions = new HashMap<String,Integer>();\n\t\textensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBDictionary extra = new BDictionary();\n\t\textra.put (\"metadata_size\", BEncoder.encode (pieceDatabase.getInfo().getDictionary()).length);\n\t\textensions.put (\"bl_ah\", 1);\n\t\tMap<String,Integer> expectedExtensions = new HashMap<String,Integer>();\n\t\texpectedExtensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), mock (ExtensionManager.class));\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), false, true);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.extensionHandshakeMessage (extensions, null));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.extensionHandshakeMessage (expectedExtensions, extra));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tverify(peerSetContext.extensionManager).offerExtensionsToPeer (handler);\n\t\tverify(peerSetContext.extensionManager).enableDisablePeerExtensions (\n\t\t\t\teq (handler),\n\t\t\t\teq (new HashSet<String> (Arrays.asList (PeerProtocolConstants.EXTENSION_PEER_METADATA, \"bl_ah\"))),\n\t\t\t\teq (new HashSet<String>()),\n\t\t\t\targThat (new ArgumentMatcher<BDictionary>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean matches (Object argument) {\n\t\t\t\t\t\treturn ((BDictionary)argument).size() == 0;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t);\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "@Test\n\tpublic void testExtensionHandshake() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tMap<String,Integer> extensions = new HashMap<String,Integer>();\n\t\textensions.put (PeerProtocolConstants.EXTENSION_PEER_METADATA, (int)PeerProtocolConstants.EXTENDED_MESSAGE_TYPE_PEER_METADATA);\n\t\tBDictionary extra = new BDictionary();\n\t\textra.put (\"metadata_size\", BEncoder.encode (pieceDatabase.getInfo().getDictionary()).length);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), mock (ExtensionManager.class));\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), false, true);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.extensionHandshakeMessage (extensions, extra));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tverify(peerSetContext.extensionManager).offerExtensionsToPeer (handler);\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "public String getExtension(char key) {\n/* 995 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testParseExtensionMessageContent() {\n KeyShareExtensionParser parser = new KeyShareExtensionParser(start, extension, Config.createConfig());\n KeyShareExtensionMessage msg = parser.parse();\n assertArrayEquals(msg.getExtensionBytes().getValue(), completeExtension);\n assertArrayEquals(type.getValue(), msg.getExtensionType().getValue());\n assertTrue(extensionLength == msg.getExtensionLength().getValue());\n assertArrayEquals(msg.getKeyShareListBytes().getValue(), ksListBytes);\n assertTrue(ksListLength == msg.getKeyShareListLength().getValue());\n }", "private void testExtensions(AbstractTestKeyPairGenerator a_keyPairGenerator)\n\t\tthrows Exception\n\t{\n\t\tPKCS12 privateCertificate;\n\t\tString ski_one, ski_two;\n\t\tX509Extensions extensions;\n\t\tVector vecExtensions;\n\t\tCalendar calendar;\n\t\tX509SubjectAlternativeName san;\n\t\tX509IssuerAlternativeName ian;\n\t\tString mail = \"my@mail.de\";\n\t\tString ip = \"132.199.134.2\";\n\n\n\t\t// create a private certificate\n\t\tprivateCertificate = new PKCS12(\n\t\t\t\t new X509DistinguishedName(\"CN=DummyOwner\"),\n\t\t\t\t a_keyPairGenerator.createKeyPair(), new Validity(new GregorianCalendar(), 1));\n\n\t\t// self-sign certificate with new extensions\n\t\tvecExtensions = new Vector();\n\t\tvecExtensions.addElement(new X509SubjectKeyIdentifier(privateCertificate.getPublicKey()));\n\t\tvecExtensions.addElement(new X509SubjectAlternativeName(\n\t\t\t\t mail, X509SubjectAlternativeName.TAG_EMAIL));\n\t\tvecExtensions.addElement(new X509IssuerAlternativeName(\n\t\t\t\t ip, X509IssuerAlternativeName.TAG_IP));\n\t\textensions = new X509Extensions(vecExtensions);\n\t\tcalendar = new GregorianCalendar(2002, 2, 2);\n\t\tprivateCertificate.sign(privateCertificate,\n\t\t\tnew Validity(calendar, -1), extensions, new BigInteger(\"35321\"));\n\n\t\t// test if the extensions are set correctly\n\t\textensions = privateCertificate.getExtensions();\n\t\tassertEquals(3, extensions.getSize());\n\t\tski_one = new X509SubjectKeyIdentifier(privateCertificate.getPublicKey()).getValue();\n\t\tski_two = ((X509SubjectKeyIdentifier)extensions.getExtension(\n\t\t\t\t X509SubjectKeyIdentifier.IDENTIFIER)).getValue();\n\t\tassertEquals(ski_one, ski_two);\n\n\t\tsan = (X509SubjectAlternativeName)extensions.getExtension(\n\t\t\t\t X509SubjectAlternativeName.IDENTIFIER);\n\t\tassertEquals(mail,san.getValues().elementAt(0));\n\t\tassertEquals(X509SubjectAlternativeName.TAG_EMAIL, san.getTags().elementAt(0));\n\n\t\tian =(X509IssuerAlternativeName)extensions.getExtension(\n\t\t\t\t X509IssuerAlternativeName.IDENTIFIER);\n\t\tassertEquals(ip, ian.getValues().elementAt(0));\n\n\n\t\t// test if the other data is set correctly\n\t\tassertEquals(calendar.getTime(),\n\t\t\t\t\t privateCertificate.getX509Certificate().getValidity().getValidFrom());\n\t\tassertEquals(new BigInteger(\"35321\"),\n\t\t\t\t privateCertificate.getX509Certificate().getSerialNumber());\n\t}", "@Test\n\tpublic void testTypeExtension() {\n\t}", "public void testExtensionsDummy() throws Exception\n\t{\n\t\t//TODO: test does not validate: either fix test or fix the function\n\t\tm_random.setSeed(692981264);\n\t\ttestExtensions(new DummyTestKeyPairGenerator(m_random));\n\t}", "String getSkipExtension();", "Extension createExtension();", "public void testGetExtension() throws Exception {\n Object[] test_values = {\n new String[]{\"/foo.bar\", \".bar\"},\n new String[]{\"foo.bar#a\", \".bar\"},\n new String[]{\"foo.bar?b=c\", \".bar\"},\n new String[]{\"foo.bar#a?b=c\", \".bar\"},\n new String[]{\"foo.bar\", \".bar\"},\n new String[]{\"foo/bar\", null},\n new String[]{\"/x.html\", \".html\"},\n new String[]{\"/foo.bar.org/x.y.z.html\", \".html\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String test = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.getExtension(test);\n String message = \"Test \" + \"'\" + test + \"'\";\n assertEquals(message, expected, result);\n }\n }", "public void receiveResultextensionAmbito(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionAmbitoResponseE result\r\n ) {\r\n }", "@Test\r\n\tpublic void testGetExtensionDescription() {\r\n\t\tSystem.out.println(\"getExtensionDescription\");\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString expResult = \"HTML Documents (*.html)\";\r\n\t\tString result = instance.getExtensionDescription();\r\n\t\tassertEquals(expResult, result);\r\n\t}", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-4015));\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n ByteVector byteVector0 = new ByteVector(2);\n methodWriter0.visitFrame((-4015), 191, (Object[]) null, (-4058), (Object[]) null);\n }", "@objid (\"e20e1709-9e0b-4c6a-bf6c-3f3e7b57cdfe\")\n @Override\n boolean isExtension();", "protected String getExtension() {\n\t\treturn \"\";\n\t}", "private Instruction decodeExtension() {\n ObjectNode node = (ObjectNode) json.get(InstructionCodec.EXTENSION);\n if (node != null) {\n DeviceId deviceId = getDeviceId();\n\n ServiceDirectory serviceDirectory = new DefaultServiceDirectory();\n DeviceService deviceService = serviceDirectory.get(DeviceService.class);\n Device device = deviceService.getDevice(deviceId);\n\n if (device == null) {\n throw new IllegalArgumentException(\"Device not found\");\n }\n\n if (device.is(ExtensionTreatmentCodec.class)) {\n ExtensionTreatmentCodec treatmentCodec = device.as(ExtensionTreatmentCodec.class);\n ExtensionTreatment treatment = treatmentCodec.decode(node, context);\n return Instructions.extension(treatment, deviceId);\n } else {\n throw new IllegalArgumentException(\n \"There is no codec to decode extension for device \" + deviceId.toString());\n }\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/NULL__Z?WOZ.XML\");\n byte[] byteArray0 = new byte[9];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile((String) null, \"\", \"z?woZ\");\n assertEquals(9, fileInputStream0.available());\n }", "private Fts5ExtensionApi(){}", "EnsureExtensionResponse ensureExtensions(EnsureExtensionRequest request);", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void receiveResultextensionPlan(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionPlanResponseE result\r\n ) {\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\r\n\tpublic void testGetExtension() {\r\n\t\tSystem.out.println(\"getExtension\");\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString expResult = \"html\";\r\n\t\tString result = instance.getExtension();\r\n\t\tassertEquals(expResult, result);\r\n\t}", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n String string0 = EWrapperMsgGenerator.receiveFA((-510), \"askExch\");\n assertEquals(\"FA: null askExch\", string0);\n }", "List<Extension> getResponseExtensionsFor(Class wsrpResponseClass);", "com.google.protobuf.ByteString\n getExtensionTextBytes();", "public void mo5251b() {\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.VOID_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type type1 = Type.getType(class1);\n Type.getType(class0);\n Type type2 = Type.getObjectType(\"The prefix must not be null\");\n Type type3 = Type.INT_TYPE;\n Type[] typeArray0 = new Type[6];\n typeArray0[0] = type2;\n typeArray0[1] = type2;\n typeArray0[2] = type1;\n ClassWriter classWriter2 = new ClassWriter(5);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"The prefix must not be null\", \"\", \"12x_\");\n frame0.execute(177, 8, classWriter2, item0);\n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n assertFalse(boolean0);\n }", "@Test\n\tpublic void testGive20Back() {\n\t\n\t}", "private String prepareExtension(final String ext) {\n if (ext.contains(\":\")) {\n return ext;\n }\n return \"org.apache.geronimo.arthur.knights:\" + ext + (ext.endsWith(\"-knight\") ? \"\" : \"-knight\") + ':' + lookupVersion();\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/__.XML\");\n byte[] byteArray0 = new byte[2];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getBrowseNodeFile(\"\", \"\", \"\");\n assertNotNull(file0);\n assertEquals(2L, file0.length());\n }", "public void mo55254a() {\n }", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/CGGSK_9<#S%7P.SU/IN~Q__NULL.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"9<#s%7P.sU/In~q\");\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&AsinSearch=CGgsK&type=&offerpage=null&offer=9<#s%7P.sU/In~q&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\");\n FileInputStream fileInputStream0 = fileUtil0.fetchASINFile(\"CGgsK\", \"\", \"9<#s%7P.sU/In~q\", (String) null);\n assertEquals(16, fileInputStream0.available());\n }", "public Builder setExtension(char key, String value) {\n/* 1645 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo115190b() {\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/___.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n fileUtil0.fetchASINFile(\"\", \"\", \"\", \"\");\n fileUtil0.deleteFile(\"\");\n File file0 = fileUtil0.downloadBlendedSearchFile(\"\", \"\");\n assertNull(file0);\n }", "java.lang.String getExtensionText();", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180321));\n byte[] byteArray0 = new byte[6];\n byteArray0[1] = (byte) (-8);\n byteArray0[2] = (byte)111;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n byteArray0[3] = (byte)111;\n byteArray0[4] = (byte)114;\n byteArray0[5] = (byte) (-85);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180321), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, false);\n methodWriter0.visitMethodInsn(183, \"\", \"\", \"<T'RwU+).UKJX>\");\n methodWriter0.visitTypeInsn((byte)0, \"HC\");\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n ClassWriter classWriter0 = new ClassWriter((-1312));\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"value \";\n stringArray0[1] = \"\";\n stringArray0[2] = \"{uh\";\n stringArray0[3] = \"i&b}d$\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.thisName = null;\n stringArray0[4] = \"\";\n stringArray0[5] = \"Ac\";\n classWriter0.newClassItem(\"value \");\n Item item0 = classWriter0.newLong(0L);\n classWriter0.newFieldItem(\"\", \"\\\"}422X3^Z.n4y5<z!\", \"\");\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(76, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_NULL.XML\");\n byte[] byteArray0 = new byte[9];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileInputStream fileInputStream0 = fileUtil0.fetchSimilarItems((String) null, \"\");\n assertEquals(9, fileInputStream0.available());\n }", "public void start6()\n\t{\n\t\tExtensionBombe extension = new ExtensionBombe();\n\t\textension.challenge1();\n\t\tSystem.out.println();\n\t\textension.challenge2();\n\t\tSystem.out.println();\n\t\textension.challenge3();\n\t}", "private void handleFeat() {\n sendMsgToClient(\"211-Extensions supported:\");\n sendMsgToClient(\"211 END\");\n }", "public sun.security.x509.Extension getExtension(sun.security.util.ObjectIdentifier r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getExtension(sun.security.util.ObjectIdentifier):sun.security.x509.Extension, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getExtension(sun.security.util.ObjectIdentifier):sun.security.x509.Extension\");\n }", "public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&.YBKYR[P|b=.YBKYR%5BP%7Cb&mode=.YBKYR[P|b&type=&page=\\\"90hR%xB!V_E&offer=\\\"90hR%xB!V_E&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\".YBKYR[P|b\", \".YBKYR[P|b\", \".YBKYR[P|b\", \"\", \"\\\"90hR%xB!V_E\", \"\\\"90hR%xB!V_E\");\n assertNull(fileInputStream0);\n }", "File downloadExtension(DownloadExtensionRequest request);", "public void testExtensionsRSA() throws Exception\n\t{\n\t\t//TODO: test does not validate: either fix test or fix the function\n\t\tm_random.setSeed(355582912);\n\t\ttestExtensions(new RSATestKeyPairGenerator(m_random));\n\t}", "public Extension getExtension() {\n return extension;\n }", "String getExtension();", "public void setExtension(java.lang.Object extension) {\r\n this.extension = extension;\r\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter((-2826));\n classWriter0.visit(1872, 1048575, \"Sensitive\", \"\", \"\", (String[]) null);\n ClassWriter classWriter1 = new ClassWriter((-2077));\n MethodWriter methodWriter0 = classWriter1.firstMethod;\n classWriter0.lastMethod = null;\n classWriter0.newClassItem(\"\");\n Item item0 = classWriter0.newLong(0L);\n Item item1 = new Item(2, item0);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)126;\n byteArray0[1] = (byte) (-85);\n byteArray0[2] = (byte) (-99);\n byteArray0[3] = (byte)11;\n byteArray0[4] = (byte)91;\n byteArray0[5] = (byte)91;\n byteArray0[6] = (byte) (-33);\n byteArray0[7] = (byte)74;\n byteArray0[8] = (byte)69;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"u;T>z)bm]K%a}Ta\");\n classWriter1.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(23, 1872, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"tX )E\", \"tX )E\");\n fileUtil0.downloadCart(\"tX )E\");\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&BrowseNodeSearch=1;XU-2`&mode=\\\\#^uu!B1x/lh-*M,)6&type=lite&page=There is no Properties File Setting to default&offer=new&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"tX )E\");\n fileUtil0.fetchKeywordSearchFile(\"+(jC + 3`\", \"#^uu!B1x/lh-*M,)6\", \"tX )E\", \"There is no Properties File Setting to default\");\n fileUtil0.downloadKeywordSearchFile(\"tX )E\", \"tX )E\", \"+(jC + 3`\", \"#^uu!B1x/lh-*M,)6\");\n MockFile.createTempFile(\"#^uu!B1x/lh-*M,)6\", \"tX )E\", (File) null);\n fileUtil0.downloadSimilaritesFile(\"tX )E\", \"lite\", \"tX )E\");\n ArrayList<String> arrayList0 = new ArrayList<String>();\n arrayList0.iterator();\n fileUtil0.downloadAccessoriesFile(\"+(jC + 3`\", arrayList0, \"There is no Properties File Setting to default\");\n fileUtil0.renameFile(\"1;XU-2`\", \"tX )E\");\n fileUtil0.downloadBrowseNodeFile(\"+(jC + 3`\", \"R\", \"+(jC + 3`\", \"+(jC + 3`\");\n fileUtil0.downloadBlendedSearchFile(\"1;XU-2`\", \"#^uu!B1x/lh-*M,)6\");\n fileUtil0.renameFile(\"@Yly^-s.@l\", \"tX )E\");\n fileUtil0.downloadSimilaritesFile(\"@Yly^-s.@l\", \"+(jC + 3`\", \"http://xml.amazon.net/onca/xml3\");\n fileUtil0.downloadBrowseNodeFile(\"tX )E\", \"tX )E\", \"http://xml.amazon.net/onca/xml3\", \"1;XU-2`\");\n fileUtil0.downloadOneASINFile(\"#^uu!B1x/lh-*M,)6\", \"'d&Andc.-pE]$E]0\\t\", \"\", \"tX )E\", \"Jk=S(2?.}+~aac+SeU\");\n fileUtil0.downloadGenericSearchFile(\"#^uu!B1x/lh-*M,)6\", \"'d&Andc.-pE]$E]0\\t\", \"\", \"http://xml.amazon.net/onca/xml3\", \"zsWYd.xqZ4/?(dPNX\", \"R\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"#^uu!B1x/lh-*M,)6\", \"1;XU-2`\", \"There is no Properties File Setting to default\");\n assertNull(fileInputStream0);\n }", "public java.lang.Object getExtension() {\r\n return extension;\r\n }", "@Test\n @Tag(\"bm1000\")\n public void testSHARE2B() {\n CuteNetlibCase.doTest(\"SHARE2B.SIF\", \"-4.1573224074E+02\", \"-265.0981144446295\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n String[] stringArray0 = new String[3];\n stringArray0[0] = \" u]{2y%.,\";\n stringArray0[1] = \" u]{2y%.,\";\n stringArray0[2] = \"+#`s5#[1e3xKfl3\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 889, \"byte\", \"oc[MfnZM[~MHOK iO\", \"+#`s5#[1e3xKfl3\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(889, 2, stringArray0, 2, stringArray0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n methodWriter0.visitTypeInsn(2, \"byte\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, true);\n methodWriter0.visitFrame((-525), (-1274), stringArray0, 458, stringArray0);\n assertEquals(3, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "public Object getExtension(){\n\t\treturn ext;\n\t}", "public byte[] getExtensionValue(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getExtensionValue(java.lang.String):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getExtensionValue(java.lang.String):byte[]\");\n }", "public void receiveResultextensionEntidad(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionEntidadResponseE result\r\n ) {\r\n }", "void mo57277b();", "public void testExtensionsDSA() throws Exception\n\t{\n\t\t//TODO: test does not validate: either fix test or fix the function\n\t\tm_random.setSeed(158943225);\n\t\ttestExtensions(new DSATestKeyPairGenerator(m_random));\n\t}", "public boolean isExtension() {\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Player player0 = new Player();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n player0.reset(true);\n Player player1 = new Player((-1817));\n player0.reset(false);\n System.setCurrentTimeMillis((short)4919);\n System.setCurrentTimeMillis((short)4919);\n player1.isJoinOK(player0, false);\n System.setCurrentTimeMillis(2413L);\n }", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "public void mo21825b() {\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickPrice((-1403), 2125570549, 4832, 4832);\n assertEquals(\"id=-1403 unknown=4832.0 canAutoExecute\", string0);\n }", "private boolean updateExtensionStatement(IASTBldInfExtensionBlockStatement extension, boolean test) {\r\n\t\tif (!test) {\r\n\t\t\treturn applyStructuredItemChange(bldInfView.getExtensions(),\r\n\t\t\t\t\textension,\r\n\t\t\t\t\tnew ExtensionListConverter(bldInfView, BldInfView.PRJ_EXTENSIONS_KEYWORD),\r\n\t\t\t\t\textensionToStatementMap,\r\n\t\t\t\t\tstatementToExtensionsMap) != null;\r\n\t\t} else {\r\n\t\t\treturn applyStructuredItemChange(bldInfView.getTestExtensions(),\r\n\t\t\t\t\textension,\r\n\t\t\t\t\tnew ExtensionListConverter(bldInfView, BldInfView.PRJ_TESTEXTENSIONS_KEYWORD),\r\n\t\t\t\t\ttestExtensionToStatementMap,\r\n\t\t\t\t\tstatementToTestExtensionsMap) != null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "String getOutputExtension();", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP12() {\n CuteNetlibCase.doTest(\"QAP12.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public CapsPacketExtension()\n {\n }", "@Test\n @Tag(\"bm1000\")\n public void testBOEING2() {\n CuteNetlibCase.doTest(\"BOEING2.SIF\", \"-3.1501872802E+02\", \"-73.36896910872208\", NumberContext.of(7, 4));\n }", "public void mo23813b() {\n }", "@Test(priority=4)\n\tpublic void EME_InternalMrktplce() throws IOException \n\t{\n\t\tel.EME_InternalMarketplce().click();\n\t\tAssert.assertEquals(driver.getTitle(), \"EME\");//Bug: Title should be EME Internal Marketplace\n\t\tdriver.navigate().back();\n\t\n\t}", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"xzO!>TX45 #n,Nt&W\";\n classWriter0.visit(10, 3042, \"xzO!>TX45 #n,Nt&W\", \"xzO!>TX45 #n,Nt&W\", \"\", stringArray0);\n Class<Object> class1 = Object.class;\n Type.getInternalName(class1);\n Item item0 = classWriter0.newLong(10);\n Item item1 = new Item(158, item0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"Pm\\f^v\");\n Class<String> class2 = String.class;\n Type.getDescriptor(class2);\n // Undeclared exception!\n try { \n frame0.execute(16, 3, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private void _setExtension(XSTCtrl_extensionType ext) {\n\n\t}", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_RYNHV)!DEYJP^3IL$.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getSimilarItems(\"RYnHv)!DEyJP^3il$\", \"\");\n assertEquals(\"/S_RYNHV)!DEYJP^3IL$.XML\", file0.toString());\n assertFalse(file0.isFile());\n assertNotNull(file0);\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-2450));\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, true, false);\n Object object0 = new Object();\n int int0 = MethodWriter.SAME_LOCALS_1_STACK_ITEM_FRAME;\n methodWriter0.visitTypeInsn((-1299), \"9~\\\"GM0+ ?&-(JmN[0f.\");\n methodWriter0.visitTypeInsn(188, \"Fj)3/|(;sZXz$\");\n Label label0 = new Label();\n Frame frame0 = label0.frame;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n label0.frame = null;\n Label label1 = label0.successor;\n methodWriter0.visitIntInsn(188, 99);\n }", "@Test\n public void testListExtensions() {\n FlumeBuilder.getSinkNames().contains(\"agentSink\");\n FlumeBuilder.getDecoratorNames().contains(\"regex\");\n FlumeBuilder.getSourceNames().contains(\"collectorSource\");\n }", "private String extensions() {\n return Arrays.stream(f.getName().split(\"\\\\.\")).skip(1).collect(Collectors.joining(\".\"));\n }", "public void mo44053a() {\n }", "public void mo2740a() {\n }", "public interface C45630d {\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$f */\n public interface C10555f {\n /* renamed from: es */\n void mo22049es(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$d */\n public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$e */\n public interface C27129e {\n void onVisibilityChanged(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$g */\n public enum C27130g {\n DEFAULT,\n FILL,\n CONTAIN,\n COVER;\n\n static {\n AppMethodBeat.m2505o(126548);\n }\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$a */\n public interface C38399a {\n void aDF();\n\n void aEZ();\n\n boolean aFA();\n\n void aFD();\n\n void aFE();\n\n boolean aFF();\n\n void aFG();\n\n void aFH();\n\n boolean aFI();\n\n void aFN();\n\n void aFO();\n\n boolean aFR();\n\n void aFy();\n\n void hide();\n\n void onDestroy();\n\n void seek(int i);\n\n void setDanmakuBtnOnClickListener(C10555f c10555f);\n\n void setDanmakuBtnOpen(boolean z);\n\n void setExitFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setIplaySeekCallback(C42594c c42594c);\n\n void setMuteBtnOnClickListener(OnClickListener onClickListener);\n\n void setMuteBtnState(boolean z);\n\n void setOnPlayButtonClickListener(OnClickListener onClickListener);\n\n void setOnUpdateProgressLenListener(C19512d c19512d);\n\n void setOnVisibilityChangedListener(C27129e c27129e);\n\n void setPlayBtnInCenterPosition(boolean z);\n\n void setShowControlProgress(boolean z);\n\n void setShowDanmakuBtn(boolean z);\n\n void setShowFullScreenBtn(boolean z);\n\n void setShowMuteBtn(boolean z);\n\n void setShowPlayBtn(boolean z);\n\n void setShowProgress(boolean z);\n\n void setStatePorter(C38400h c38400h);\n\n void setTitle(String str);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$h */\n public interface C38400h {\n int aFg();\n\n int aFh();\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$b */\n public interface C42593b {\n /* renamed from: H */\n void mo34677H(String str, int i, int i2);\n\n void aFq();\n\n void aFr();\n\n void aFs();\n\n void aFt();\n\n void aFu();\n\n void aFv();\n\n /* renamed from: de */\n void mo34684de(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$c */\n public interface C42594c {\n void aFw();\n\n /* renamed from: oA */\n void mo22044oA(int i);\n }\n\n void aEX();\n\n void akV();\n\n void akW();\n\n /* renamed from: as */\n boolean mo61579as(float f);\n\n /* renamed from: c */\n void mo61580c(boolean z, String str, int i);\n\n /* renamed from: e */\n boolean mo61581e(double d, boolean z);\n\n int getCacheTimeSec();\n\n int getCurrPosMs();\n\n int getCurrPosSec();\n\n int getVideoDurationSec();\n\n boolean isLive();\n\n boolean isPlaying();\n\n boolean pause();\n\n /* renamed from: s */\n boolean mo61590s(double d);\n\n void setControlBar(C38399a c38399a);\n\n void setIMMVideoViewCallback(C42593b c42593b);\n\n void setMute(boolean z);\n\n void setScaleType(C27130g c27130g);\n\n void setVideoSource(int i);\n\n void start();\n\n void stop();\n}", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"\", \"d{0#Y4%ee!;Yw.9xr>V\");\n fileUtil0.downloadBrowseNodeFile(\"\", \"d{0#Y4%ee!;Yw.9xr>V\", \"d{0#Y4%ee!;Yw.9xr>V\", \"\");\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/R_VMO[__]'%9WQBNDWET<QJK.XML\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"4}~$2!H+!GA n\");\n fileUtil0.downloadKeywordSearchFile(\"'HhfAcFk9,$-jk-Y\", \"\", \"_m76\", \"FQKwgc<irS^!|aiNk S\");\n fileUtil0.downloadCart(\"\");\n fileUtil0.downloadBlendedSearchFile(\"Qqq3JV&a\", \"d{0#Y4%ee!;Yw.9xr>V\");\n fileUtil0.downloadGenericSearchFile(\"net.kencochrane.a4j.util.LoadProperties\", \"]'%9wqBNDWet<qjK\", \"\", \"d{0#Y4%ee!;Yw.9xr>V\", \"Qqq3JV&a\", (String) null);\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n arrayList0.add((Object) null);\n fileUtil0.downloadAccessoriesFile((String) null, arrayList0, \"\");\n fileUtil0.downloadBlendedSearchFile(\"'HhfAcFk9,$-jk-Y\", \"_m76\");\n fileUtil0.downloadSimilaritesFile(\"]'%9wqBNDWet<qjK\", \"ey\\\"(\\\"aT]CwLwd[\", \"ey\\\"(\\\"aT]CwLwd[\");\n fileUtil0.downloadThirdPartySearchFile(\"FQKwgc<irS^!|aiNk S\", \"'HhfAcFk9,$-jk-Y\", \"\", \"JBq\");\n fileUtil0.downloadAccessoriesFile(\"FQKwgc<irS^!|aiNk S\", arrayList0, \"d{0#Y4%ee!;Yw.9xr>V\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"r_vmO[\", \"\", \"]'%9wqBNDWet<qjK\");\n assertEquals(14, fileInputStream0.available());\n }", "public interface Extension {\r\n\r\n /**\r\n *\r\n * @return the extension name\r\n */\r\n String getName();\r\n}", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "public void mo38117a() {\n }", "public final void mo1285b() {\n }", "@Ignore(\"test in testPGNT0102002, testPGNT0101001, testPGNT0101002\")\n public void testDAM30507001() {\n }", "public EpicExtensionProvider() {\r\n\t}", "void mo57275a();", "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void testVideoTesting() throws Exception {\r\n\t\tRegUserAndChangePass.RegisterToComcastAppAndChangePassword(driver);\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.linkText(\"My Dog Eve\")).click();\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.pause\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\t// driver.findElement(By.cssSelector(\"button.play\")).click();\r\n\r\n\t\tThread.currentThread().sleep(7000);\r\n\t\t// String a=\r\n\t\t// driver.findElement(By.id(\"scrubber\")).getAttribute(\"Position update\");\r\n\t\t// driver.findElement(By.id(\"scrubber\")).sendKeys(\"Position update\",\"9.765\");\r\n\r\n\t\t// Mouse mouse = ((HasInputDevices) driver).getMouse();\r\n\t\tWebElement myElement = driver.findElement(By.id(\"scrubber\"));\r\n\r\n\t\t// mouse.mouseDown((Coordinates) myElement.getLocation());\r\n\r\n\t\tWebElement source = driver.findElement(By.id(\"scrubber\"));\r\n\t\tWebElement target = driver.findElement(By.id(\"scrubber\"));\r\n\t\tnew Actions(driver).dragAndDrop(source, target).build().perform();\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.pause\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.play\")).click();\r\n\r\n\t\tThread.currentThread().sleep(7000);\r\n\t\tdriver.findElement(By.id(\"scrubber\")).click();\r\n\r\n\t\tdriver.findElement(By.linkText(\"Log Out\")).click();\r\n\r\n\t\t/*\r\n\t\t * \r\n\t\t * In Video Response we are getting spaces between the text so test case\r\n\t\t * is failing Below commented lines will execute by taking xpath.\r\n\t\t * \r\n\t\t * String VideoTitle=driver.findElement(By.xpath(\r\n\t\t * \".//*[@id='content-wrap']/article/section/article/div/div/section/ul/li[1]/article/h1/a\"\r\n\t\t * )).getText(); Thread.sleep(sleepTime);\r\n\t\t * driver.findElement(By.linkText(VideoTitle)).click();\r\n\t\t * \r\n\t\t * \r\n\t\t * Thread.sleep(sleepTimeForVideoPlay); String\r\n\t\t * currentPosition=flashApp.callFlashObject(\"getCurrentPosition\");\r\n\t\t * \r\n\t\t * double videoSleepTime=(double)Math.round(sleepTimeForVideoPlay);\r\n\t\t * double latestCurrentPosition=(double)Math.round(Double.parseDouble(\r\n\t\t * currentPosition));\r\n\t\t * \r\n\t\t * if(latestCurrentPosition>20) {\r\n\t\t */\r\n\t\t/*\r\n\t\t * } else assertEquals(currentPosition,\r\n\t\t * driver.findElement(By.id(\"display\")).getText());\r\n\t\t */\r\n\t}" ]
[ "0.6185658", "0.5908461", "0.5851267", "0.58042294", "0.5653091", "0.5569867", "0.55469584", "0.5536355", "0.5408831", "0.5405191", "0.53335494", "0.52802", "0.5244087", "0.52350074", "0.52311915", "0.5215812", "0.5211801", "0.5180097", "0.5167445", "0.5152693", "0.5152693", "0.5152693", "0.5152693", "0.5152693", "0.5152693", "0.5152693", "0.51443034", "0.51376826", "0.5117447", "0.511649", "0.51059604", "0.5082766", "0.50760716", "0.5071115", "0.5067427", "0.5057336", "0.50410956", "0.5038864", "0.5037366", "0.50280124", "0.5014049", "0.50136024", "0.501231", "0.4999473", "0.49913448", "0.4989344", "0.49820492", "0.49802533", "0.4976679", "0.49757364", "0.49699223", "0.4966187", "0.4961478", "0.4952242", "0.4942236", "0.49330333", "0.4929489", "0.49285865", "0.49275494", "0.4919208", "0.49179506", "0.49160942", "0.4908307", "0.49058956", "0.49025238", "0.48908785", "0.4889179", "0.48887634", "0.4875356", "0.48713169", "0.4866822", "0.48565745", "0.48544252", "0.4852711", "0.4845264", "0.48371813", "0.48360768", "0.4831864", "0.48205277", "0.48196566", "0.4818693", "0.48181286", "0.48148578", "0.48112723", "0.48107535", "0.4807882", "0.47999316", "0.4797854", "0.47936666", "0.47910416", "0.47865775", "0.4781377", "0.47803292", "0.47788677", "0.477651", "0.47758913", "0.47750947", "0.47743687", "0.47683957", "0.4768193" ]
0.7068011
0
endregion region Public Methods
public Single<DomainUserModel> map(LoginViewModel loginViewModel) { user.setAccessToken(loginViewModel.getAccessToken()); return Single.just(user); }
{ "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 }", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\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 anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void mo4359a() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo38117a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public contrustor(){\r\n\t}", "protected void mo6255a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "private TMCourse() {\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 }", "public void mo21793R() {\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override public int describeContents() { return 0; }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private zza.zza()\n\t\t{\n\t\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo115190b() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo21825b() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public abstract void mo70713b();", "public void method_4270() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo21782G() {\n }", "@Override\n void init() {\n }", "public void mo21785J() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21779D() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void init() {\n }", "public void mo21791P() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public void mo1531a() {\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "protected abstract Set method_1559();", "public abstract Object mo1771a();" ]
[ "0.6649074", "0.657075", "0.6500915", "0.6445911", "0.6428642", "0.6405824", "0.6405824", "0.64026636", "0.63860416", "0.63398993", "0.62523633", "0.6249168", "0.6249168", "0.62469244", "0.6201809", "0.6188594", "0.6188389", "0.61883014", "0.6183088", "0.61391306", "0.613869", "0.61380494", "0.6106355", "0.6096861", "0.6085769", "0.6085769", "0.6085562", "0.60791904", "0.6070754", "0.6065235", "0.605817", "0.605417", "0.60031396", "0.5995666", "0.59927464", "0.5985836", "0.59704214", "0.59697783", "0.5961943", "0.59367603", "0.59324497", "0.59222853", "0.59215695", "0.5914248", "0.5892513", "0.5886982", "0.5882293", "0.58808213", "0.58805966", "0.58792365", "0.5875354", "0.58699006", "0.58687735", "0.58687735", "0.58687735", "0.58687735", "0.58687735", "0.58687735", "0.58687735", "0.5867057", "0.5864821", "0.5854424", "0.5854424", "0.5854424", "0.5854424", "0.5854424", "0.5854424", "0.5849283", "0.5848639", "0.58407843", "0.58405805", "0.5835991", "0.58323723", "0.5823026", "0.5819592", "0.5803152", "0.5802068", "0.579711", "0.5796888", "0.57954454", "0.5792017", "0.5791325", "0.57895386", "0.57878894", "0.57878894", "0.5778787", "0.5768331", "0.5764416", "0.5762843", "0.57605207", "0.5750791", "0.5746087", "0.57451683", "0.5743412", "0.57432294", "0.5743125", "0.5727294", "0.57238615", "0.57190835", "0.5715165", "0.57145876" ]
0.0
-1
Method 1: Time O(N), Space O(1)
public static <T> T findKthElement(LinkedListNode<T> list, int K){ //!!!!static <T> otherwise can't match to a non-static if (K <= 0 || K > list.calLength()){ System.out.println("Error!!"); return null; // return null!!! } int i = 1; Node<T> beg = list.head; Node<T> end = beg; while (i < K) { end = end.next; i++; } while (end.next!=null){ beg = beg.next; end = end.next; } return beg.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "private int find(int p){\n while(p!=id[p]){\n p=id[p];\n eachDoUnionArrayAccessTimes+=2; //遍历读取某个元素算一次,设置值也算一次,所以加2次\n }\n eachDoUnionArrayAccessTimes++; //查询p的时候依然会读取一次\n return p;\n }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "public int findFirstUniqueNumber (List<Integer> numberList) {\n\n ////// Solution 1:\n LinkedHashMap<Integer, Integer> occurMap = new LinkedHashMap<>();\n\n for (int number: numberList) { // O(n)\n if (occurMap.containsKey(number) && occurMap.get(number) != 0) {\n occurMap.replace(number, occurMap.get(number), 0);\n }\n occurMap.putIfAbsent(number, 1);\n }\n\n for (Map.Entry<Integer, Integer> entry: occurMap.entrySet()) {\n if (entry.getValue() == 1) {\n return entry.getKey();\n }\n }\n\n ////// Solution 2: O(n * n)\n// for (int n: numberList) {\n// if (numberList.indexOf(n) == numberList.lastIndexOf(n)) { // O(n * n)\n// return n;\n// }\n// }\n\n return -1;\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "WeightedUnionFind(int N){\n id = new int[N];\n size = new int[N];\n for (int i = 0; i < N; i++){\n id[i] = i;\n size[i] = 1;\n }\n }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "public static int efficientOne(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\tint prevPrev = 0;\r\n\t\tint prev = 1;\r\n\t\tint fib = 0;\r\n\t\tfor (int i = 2; i <= n; i++) {\r\n\t\t\tfib = prev + prevPrev;\r\n\t\t\tprevPrev = prev;\r\n\t\t\tprev = fib;\r\n\t\t}\r\n\t\treturn fib;\r\n\t}", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "private static int find(int i)\r\n{\n int ind = i;\r\n while (ind != ptrs[ind]) {\r\n ind = ptrs[ind];\r\n }\r\n // fix the link so that it is one hop only\r\n // note: this doesn't implement the full union-find update\r\n\r\n ptrs[i] = ind;\r\n\r\n return ind;\r\n}", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "private int hashFunc1(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n // Java can return negative vals with hashCode() it's biggg so need to check for this\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n return hashVal; // Idea index position we'd like to insert or search in\n }", "public FirstFind(int n) {\n id = new int[n];\n count = n;\n for (int i = 0; i < n; i++) id[i] = i;\n }", "public int findDuplicate(int[] nums) {\n int slow = nums[0];\n int fast = nums[0];\n do {\n slow = nums[slow];\n fast = nums[nums[fast]];\n } while (slow != fast);\n \n slow = nums[0];\n while (slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n return slow;\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "static int find(int[] arr){\n\t\tif(arr.length==1) return -1;\n\t\tint slow = arr[0] , fast = arr[arr[0]];\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[arr[fast]];\n\t\t}\n\t\tslow = 0;\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[fast];\n\t\t}\n\t\treturn slow;\n\n\t}", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "public int removeDuplicates(int[] nums) {\n if (nums.length == 0) return 0;\n int i = 0;\n for (int j = 1; j < nums.length; j++) {\n if (nums[j] != nums[i]) {\n i++;\n nums[i] = nums[j];\n }\n }\n return i + 1;\n}", "public static void a2v2(int[] A)\n {\n Map<Integer, List<Integer>> hashMap = new HashMap<>();\n\n insert(hashMap, 0, -1);\n\n int sum = 0;\n\n for (int i = 0; i < A.length; i++)\n {\n sum += A[i];\n\n if (hashMap.containsKey(sum))\n {\n List<Integer> list = hashMap.get(sum);\n\n // find all subarrays with the same sum\n for (Integer value: list)\n {\n System.out.println(\"Subarray [\" + (value + 1) + \"…\" +\n i + \"]\");\n }\n }\n\n // insert (sum so far, current index) pair into the hashmap\n insert(hashMap, sum, i);\n }\n }", "private int elementNC(int i) {\n return first + i * stride;\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "int query(int l, int r) {\n l += n;\n r += n;\n int resl = identity;\n int resr = identity;\n while (l < r) {\n if ((l & 1) > 0) resl = combine(resl, st[l++]);\n if ((r & 1) > 0) resr = combine(st[--r], resr);\n l /= 2;\n r /= 2;\n }\n return combine(resl, resr);\n }", "private int calcDistanceMemoize(int i, int j, char[] one, char[] two, int [][]table) {\n if (i < 0)\n return j+1;\n\tif (j < 0)\n\t return i+1;\n\n if (table[i][j] == -1) \n table[i][j] = calcDistanceRecursive(i, j, one, two, table);\n\t\n return table[i][j];\n }", "public static void main(String[] args) {\n\t\tfinal long startTime = System.nanoTime();\r\n\t\t\r\n\t\tint [] plop = {1,1,1,2,2,3};\r\n\t\tSystem.out.println(removeDuplicates2(plop));\r\n\t\t\r\n\r\n\t\tfinal long duration = System.nanoTime() - startTime;\r\n\t\tSystem.out.println(duration);\r\n\t\t\r\n\t}", "public void n()\r\n/* 515: */ {\r\n/* 516:523 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 517:524 */ if (this.a[i] != null)\r\n/* 518: */ {\r\n/* 519:525 */ this.d.a(this.a[i], true, false);\r\n/* 520:526 */ this.a[i] = null;\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:529 */ for (i = 0; i < this.b.length; i++) {\r\n/* 524:530 */ if (this.b[i] != null)\r\n/* 525: */ {\r\n/* 526:531 */ this.d.a(this.b[i], true, false);\r\n/* 527:532 */ this.b[i] = null;\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530: */ }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public int removeDuplicatesMethod1(int[] nums) {\n \tif(nums == null) {\n \t\treturn 0;\n \t}\n int len = nums.length;\n if(len == 0) {\n \treturn 0;\n }\n int endOfNewArray = 0;\n int cnt = 1;\n int temp = nums[0];\n for(int i = 1; i < len; i++) {\n \tif(nums[i] == temp) {\n \t\tif(cnt < 2) {\n \t\t\tcnt++;\n \t\t\tnums[++endOfNewArray] = nums[i];\n \t\t}\n \t}else {\n \t\tcnt = 1;\n \t\tnums[++endOfNewArray] = nums[i];\n \t\ttemp = nums[i];\n \t}\n }\n return ++endOfNewArray;\n }", "private int first_leaf() { return n/2; }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "static void updateArray(int arr[], int N) { \n\t\t\t// convert array into prefix sum array \n\t\tfor (int i = 1; i < N; i++) \n\t\t\tarr[i] += arr[i - 1]; \n\t}", "private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }", "private static void sortAccording(int A1[], int A2[], int m, int n)\n {\n // The temp array is used to store a copy \n // of A1[] and visited[] is used to mark the \n // visited elements in temp[].\n int temp[] = new int[m], visited[] = new int[m];\n for (int i = 0; i < m; i++)\n {\n temp[i] = A1[i];\n visited[i] = 0;\n }\n \n // Sort elements in temp\n Arrays.sort(temp);\n \n // for index of output which is sorted A1[]\n int ind = 0; \n \n // Consider all elements of A2[], find them\n // in temp[] and copy to A1[] in order.\n for (int i = 0; i < n; i++){\n\n // Find index of the first occurrence\n // of A2[i] in temp\n int f = first(temp, 0, m-1, A2[i], m);\n \n // If not present, no need to proceed\n if (f == -1) \n continue;\n \n // Copy all occurrences of A2[i] to A1[]\n for (int j = f; (j < m && temp[j] == A2[i]); j++){\n \n A1[ind++] = temp[j];\n visited[j] = 1;\n }\n }\n \n // Now copy all items of temp[] which are \n // not present in A2[]\n for (int i = 0; i < m; i++)\n if (visited[i] == 0)\n A1[ind++] = temp[i];\n }", "public static void main(String[] args) {\n\t\t TreeSet<Integer> treeSet = new TreeSet<Integer>();\n\t\t \n\t\t treeSet.add(21);\n\t\t treeSet.add(10);\n\t\t treeSet.add(25);\n\t\t // treeSet.add(null);\n\t\t treeSet.add(25);\n\t\t //treeSet.add(null);\n\t\t long start = System.currentTimeMillis();\n\t\t Iterator<Integer> iterator = treeSet.iterator();\n\t\t while(iterator.hasNext())\n\t\t {\n\t\t\t System.out.println(iterator.next());\n\t\t }\n\t\t long end = System.currentTimeMillis();\n\t\t System.out.println(end - start);\n\t}", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "private void discretization(int[] nums) {\n\t\tint[] sorted = nums.clone();\n\t\tArrays.sort(sorted);\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tnums[i] = Arrays.binarySearch(sorted, nums[i]);\n\t\t}\n\t}", "public int singles(int [] arr){\n HashMap<Integer, Integer> hm = new HashMap<>();\n long s1 = 0, s2 = 0;\n for(int x = 0; x < arr.length; x++){\n if(!hm.containsKey(arr[x])){\n s1 += arr[x];\n hm.put(arr[x], 1);\n }\n s2 += arr[x];\n }\n return (int)(2* s1 - s2);\n }", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }", "void segregate0and1(int arr[], int size)\n {\n int left = 0;\n int right = size - 1;\n while(left < right){\n while(arr[left] !=1 && left< right){\n left ++;\n }\n while(arr[right] !=0 && left < right){\n right --;\n }\n if(left != right){\n int tmp = arr[left];\n arr[left] = arr[right];\n arr[right] = tmp;\n left ++;\n right -- ;\n }\n }\n }", "static Object m11869n(@NullableDecl int[] iArr, @NullableDecl Object[] objArr, int i, int i2, @NullableDecl Object obj) {\n Object obj2 = null;\n if (obj == null) {\n return null;\n }\n if (i == 1) {\n if (objArr[i2].equals(obj)) {\n obj2 = objArr[i2 ^ 1];\n }\n return obj2;\n } else if (iArr == null) {\n return null;\n } else {\n int length = iArr.length - 1;\n int b = Hashing.m11897b(obj.hashCode());\n while (true) {\n int i3 = b & length;\n int i4 = iArr[i3];\n if (i4 == -1) {\n return null;\n }\n if (objArr[i4].equals(obj)) {\n return objArr[i4 ^ 1];\n }\n b = i3 + 1;\n }\n }\n }", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "static int[] productExceptSelfSpaceOptimized(int[] nums) {\n int n = nums.length;\n int[] result = new int[n];\n Arrays.fill(result, 1);\n int curr = 1;\n\n for (int i = 0; i < n; i++) {\n result[i] *= curr;\n curr *= nums[i];\n }\n\n curr = 1;\n for (int i = n - 1; i >= 0; i--) {\n result[i] *= curr;\n curr *= nums[i];\n }\n\n return result;\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "public static void cntArray(int A[], int N) \n { \n // initialize result with 0 \n int result = 0; \n \n for (int i = 0; i < N; i++) { \n \n // all size 1 sub-array \n // is part of our result \n result++; \n \n // element at current index \n int current_value = A[i]; \n \n for (int j = i + 1; j < N; j++) { \n \n // Check if A[j] = A[i] \n // increase result by 1 \n if (A[j] == current_value) { \n result++; \n } \n } \n } \n \n // print the result \n System.out.println(result); \n }", "static int countSubarrWithEqualZeroAndOne(int arr[], int n)\n {\n int count=0;\n int currentSum=0;\n HashMap<Integer,Integer> mp=new HashMap<>();\n for(int i=0;i<arr.length;i++)\n {\n if(arr[i]==0)\n arr[i]=-1;\n currentSum+=arr[i];\n \n if(currentSum==0)\n count++;\n if(mp.containsKey(currentSum))\n count+=mp.get(currentSum);\n if(!mp.containsKey(currentSum))\n mp.put(currentSum,1);\n else\n mp.put(currentSum,mp.get(currentSum)+1);\n \n \n }\n return count;\n }", "public static int firstMissingEffective(int[] x){\n int i = 0;\n while(i<x.length){\n // first two conditions check that element can correspond to index of array\n // third condition checks that they are not in their required position\n // fourth condition checks that there is no duplicate already at their position\n if( x[i]>0 && x[i]<x.length && x[i]-1!=i && x[x[i]-1]!=x[i]) exch(x,i,x[i]-1);\n else i++;\n }\n\n // second pass\n for(int j=0; j < x.length; j++){\n if( x[j]-1!=j) return j+1;\n }\n return x.length+1;\n\n }", "private static int[] p1(int[] ar, int n) {\n int[] p1 = new int[n];\n Arrays.fill(p1, -1);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] <= ar[st.peek()]) {\n st.pop();\n }\n if (st.size() != 0) {\n p1[i] = st.peek();\n }\n st.push(i);\n }\n return p1;\n }", "private static void find_coins(int[] d, int k, int n) {\n\t\t\n\t}", "private int goalEntry1d(int ind) {\n if (ind == L - 1) return 0;\n else return ind + 1;\n }", "private static int queryLazy(int[] segtree, int[] lazyValue, int l, int r, int ns, int ne, int index) {\n if(lazyValue[index]!=0){\n segtree[index]+=lazyValue[index];\n if(ns!=ne){\n lazyValue[2*index]+=lazyValue[index];\n lazyValue[2*index+1]+=lazyValue[index];\n }\n lazyValue[index]=0;\n }\n if(r<ns || l>ne){\n //no overlap\n return Integer.MAX_VALUE;\n }\n if(ns>=l && ne<=r){\n //complete overlap\n return segtree[index];\n }else{\n //partial overlap\n int mid=(ns+ne)/2;\n int leftAns=queryLazy(segtree, lazyValue, l, r, ns, mid, 2*index);\n int rightAns=queryLazy(segtree, lazyValue, l, r, mid+1, ne, 2*index+1);\n return Math.min(leftAns,rightAns);\n }\n }", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "private static void fun2(List<String> ac1, List<List<String>> result, int index) {\n\t\tString key = ac1.get(0);\r\n\t\tfor(int i=index;i<result.size();i++){\r\n\t\t\tList<String> res=result.get(i);\r\n\t\t\tif(res.get(0).equals(key)){\r\n\t\t\t\t//check if any one of the value is repeated\r\n\t\t\t\tboolean check=fun3(res,ac1);\r\n\t\t\t\tif(check){\r\n\t\t\t\t\tfor(int j=1;j<ac1.size();j++){\r\n\t\t\t\t\t\tres.add(ac1.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int solution(int N) {\n\n int l = 0; // 2*l - r\n int r = 1; // 2*r - l\n\n return search(l, r, N);\n }", "private void check() {\n if (s[s.length-1] != null) {\n for (int i = 0; i < N; i++) {\n s[i] = s[first+i];\n s[first+i] = null;\n }\n first = 0;\n }\n }", "public void missingNumberEfficient2(int[] array, int n) {\n\t\t\n\t\tint X = 0;\n\t\tint Y = 0;\n\t\t\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tX ^= array[i];\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tY ^= i;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Missing Number is : \" + (X ^ Y));\n\t}", "public int get_odd_occurences_optimal_v2(int[] a) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tresult ^= i;\n\t\t}\n\t\treturn result;\n\t}", "public static int solution(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n while (arr[i] != i + 1 && arr[i] < n && arr[i] > 0) {\n int temp = arr[i];\n if (temp == arr[temp - 1])\n break;\n arr[i] = arr[temp - 1];\n arr[temp - 1] = temp;\n }\n }\n for (int i = 0; i < n; i++)\n if (arr[i] != i + 1)\n return i + 1;\n return n + 1;\n }", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "public static int getBetterApproach(int n){\n\t\t\n\t\tint t[] = new int[n+1];\n\t\t\n if(n<=2)\n return n;\n \n\t\tt[0] = 0;\n\t\tt[1] = 1;\n\t\tt[2] = 2;\n\t\tfor(int i = 3;i<=n;i++){\n\t\t\tt[i] = t[i-1] + t[i-2];\n\t\t}\n\t\treturn t[n];\n\t}", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "private static List<Integer> getCommonElementsAlgo1(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> list1 = new ArrayList<Integer>();\n\t\tfor (int i : arr1) {\n\t\t\tlist1.add(i);\n\t\t}\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tfor (int i : arr2) {\n\t\t\tlist2.add(i);\n\t\t}\n\t\tif (list1.size() > list2.size()) {\n\t\t\tlist1.retainAll(list2);\n\t\t\treturn list1;\n\t\t}\n\t\telse {\n\t\t\tlist2.retainAll(list1);\n\t\t\treturn list2;\n\t\t}\n\t\t\n\t}", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "static void compute(List<Integer> slate, int[] input) {\n if (input.length == 0)\n System.out.println(slate);\n else {\n int[] copy = Arrays.copyOfRange(input, 1, input.length);\n compute(slate, copy);\n slate.add(input[0]);\n compute(slate, copy);\n slate.remove(slate.size() - 1);\n }\n }", "public int solution(int[] A) {\n Set<Integer> set = new HashSet<>();\n\n for(int i=1; i < A.length+1; i++)\n set.add(i);\n\n for(int i=0; i < A.length; i++)\n {\n if(set.contains(A[i]))\n set.remove(A[i]);\n\n else\n set.add(A[i]); \n }\n\n if(set.isEmpty())\n return 1;\n\n return 0;\n }", "private int A(int n, int m) {\n int res = 1;\n for (int i = 0; i < m; n++)\n res *= n;\n return res;\n }", "public static void s1AscendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Ascending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "private static void findMissingAndDuplicateNumberFrom1toN(int[] input) {\n\t\tint len = input.length;\n\t\tint i = 0;\n\n\t\twhile (i < len) {\n\t\t\t//if its already in correct place\n\t\t\tif (input[i] == i + 1) {\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else if (input[i] == input[input[i] - 1]) { //if the elment to be swapped with are same\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tint temp = input[i];\n\t\t\t\tinput[i] = input[input[i] - 1];\n\t\t\t\tinput[temp - 1] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (input[i] != i + 1) {\n\t\t\t\tSystem.out.println(\"Missing number : \" + (i + 1));\n\t\t\t\tSystem.out.println(\"Duplicate number : \" + input[i]);\n\t\t\t}\n\t\t}\n\n\t}", "private static List<Integer> getCommonElementsAlgo2(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\t\t\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\t\n\t\tfor (int i : arr1) {\n\t\t\tif (table.containsKey(i)) {\n\t\t\t\ttable.put(i, table.get(i) + 1);\n\t\t\t}\n\t\t\ttable.put(i, 1);\n\t\t}\n\t\t\n\t\tfor (int j : arr2) {\n\t\t\tif (table.containsKey(j)) {\n\t\t\t\tduplicates.add(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn duplicates;\n\t\t\n\t}", "protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }", "static int[] find2(int a[]){\r\n int sum = a[0];\r\n int pro = a[0];\r\n for(int i=1;i<a.length;i++){\r\n sum += a[i];\r\n pro += a[i]*a[i];\r\n }\r\n int s = (n*(n+1))/2 - sum;\r\n int p = (n*(n+1)*(2*n+1))/6 - pro;\r\n return solveSP(s, p);\r\n }", "private int d(amj paramamj)\r\n/* 50: */ {\r\n/* 51: 70 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 52: 71 */ if ((this.a[i] != null) && (this.a[i].b() == paramamj.b()) && (this.a[i].d()) && (this.a[i].b < this.a[i].c()) && (this.a[i].b < p_()) && ((!this.a[i].f()) || (this.a[i].i() == paramamj.i())) && (amj.a(this.a[i], paramamj))) {\r\n/* 53: 72 */ return i;\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 75 */ return -1;\r\n/* 57: */ }", "@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "private static int distance(ArrayList<Integer>[] adj, ArrayList<Integer>[] cost, int s, int t) {\n\n Set<Integer> visited = new HashSet<>(); //option 1\n Map<Integer, Integer> distance = new HashMap<>();\n// Queue<Integer> q = new PriorityQueue<>(11, (o1, o2) -> { //option 0\n// Integer d1 = distance.get(o1); //option 0\n// Integer d2 = distance.get(o2); //option 0\n Queue<Map.Entry<Integer, Integer>> q = new PriorityQueue<>(11, (o1, o2) -> { //option 1\n Integer d1 = o1.getValue(); //option 1\n Integer d2 = o2.getValue(); //option 1\n\n if (Objects.equals(d1, d2)) return 0;\n if (d1 == null) return 1;\n if (d2 == null) return -1;\n\n return d1 - d2;\n });\n\n distance.put(s, 0);\n// q.addAll(IntStream.range(0, adj.length).boxed().collect(Collectors.toList())); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(s, 0)); //option 1\n\n while (!q.isEmpty()) {\n// int u = q.remove(); //option 0\n int u = q.remove().getKey(); //option 1\n\n if (u == t) {\n Integer dist = distance.get(u);\n if (dist == null) return -1;\n return dist;\n }\n\n if (visited.contains(u)) continue; //option 1\n visited.add(u); //option 1\n\n List<Integer> adjList = adj[u];\n List<Integer> costList = cost[u];\n for (int i = 0; i < adjList.size(); i++) {\n int v = adjList.get(i);\n int w = costList.get(i);\n Integer dist = distance.get(v);\n Integer newDist = distance.get(u);\n if (newDist != null) newDist += w;\n\n if (newDist != null && (dist == null || dist > newDist)) {\n //relax\n distance.put(v, newDist);\n// q.remove(v); //option 0\n// q.add(v); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(v, distance.get(v))); //option 1\n }\n }\n }\n\n return -1;\n }", "private static BigInteger singleTree(int n) {\n \tif (T[n] != null) {\n \t\treturn T[n];\n \t}\n \tBigInteger ret = BigInteger.ZERO;\n \tfor (int i = 1; i < n; i++) {\n \t\tret = ret.add(binomial(n, i).multiply(BigInteger.valueOf(n - i).pow(n - i))\n \t\t\t\t .multiply(BigInteger.valueOf(i).pow(i)));\n \t}\n \treturn T[n] = ret.divide(BigInteger.valueOf(n));\n }" ]
[ "0.6936397", "0.68621546", "0.60611737", "0.60103744", "0.5992702", "0.59907603", "0.5734513", "0.56884456", "0.547108", "0.54629135", "0.54625714", "0.54321444", "0.5393993", "0.53788", "0.5365964", "0.53401315", "0.53099394", "0.52935684", "0.5254707", "0.5246129", "0.5244781", "0.5220287", "0.5213669", "0.5211216", "0.5146389", "0.5145716", "0.51422143", "0.51414025", "0.5116649", "0.51159257", "0.5115918", "0.5095806", "0.5068707", "0.5059923", "0.5048984", "0.5040942", "0.5020133", "0.5015107", "0.501248", "0.49981397", "0.49950853", "0.4992567", "0.4981607", "0.49749076", "0.49737278", "0.4964977", "0.49591047", "0.4954938", "0.49518487", "0.4950316", "0.4950245", "0.49465546", "0.49317354", "0.4928379", "0.4904754", "0.49039185", "0.48913306", "0.48747817", "0.48688948", "0.48653698", "0.4860457", "0.48573583", "0.4852602", "0.48462874", "0.4841684", "0.48416388", "0.48411402", "0.48398226", "0.4836545", "0.4834486", "0.48322228", "0.48285663", "0.48279265", "0.48252106", "0.48220584", "0.48194447", "0.48190647", "0.4818973", "0.4814953", "0.48123088", "0.48079374", "0.48077303", "0.47995836", "0.47983435", "0.47963086", "0.4793504", "0.47888404", "0.47870672", "0.4783965", "0.47837266", "0.47814077", "0.47775105", "0.47768888", "0.47748014", "0.47741634", "0.4773459", "0.47718275", "0.47709024", "0.4770672", "0.4769251", "0.47662956" ]
0.0
-1
Method 2: recursive Time O(N) Space O(N)
public static <T> int findKthElement2(Node<T> head, int K){ if (K <= 0 ){ System.out.println("Error!!"); System.exit(0);; // return null!!! } if (head == null) return 0; else{ int i = findKthElement2(head.next, K) + 1; if (i == K) System.out.println(head.data.toString()); return i; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }", "static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "public void inOrderTraverseRecursive();", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "public void inOrderTraverseIterative();", "private boolean dfs(int n, int[] P) { // 0 is empty, 1 is false, 2 is true\n if (P[n] != 0) {\n if (P[n] == 1) {\n return false;\n }\n else {\n return true;\n }\n }\n\n if (n == 1) {\n P[1] = 2;\n //return true;\n }\n else if (n == 2) {\n P[2] = 2;\n //return true;\n }\n else if (n == 3) {\n P[3] = 1;\n //return false;\n }\n else {\n boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n P[n] = res ? 2 : 1;\n }\n\n return P[n] == 2;\n\n //P[n] = P[n-2] + P[n-3] == 4 || P[n-3] + P[n-4] == 4 ? 2 : 1;\n //boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n //P[n] = res ? 2 : 1;\n //return res;\n }", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }", "private static void traverse(int i, int j) {\r\n\t\tif(i + j == SIZE + SIZE){\r\n\t\t\tCOUNT++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(i < SIZE){\r\n\t\t\ttraverse(i + 1, j);\r\n\t\t}\r\n\t\tif(j < SIZE){\r\n\t\t\ttraverse(i, j + 1);\r\n\t\t}\r\n\t}", "private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "boolean isRecursive();", "int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}", "boolean hasRecursive();", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}", "static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }", "private static String subProcess(int[] n1, int[] n2) {\n\n\t\t// if n1.length is smaller than n2.length, we are going to be too small.\n\t\tif (n1.length < n2.length) {\n\t\t\treturn \"+\" + toString (n1);\n\t\t}\n\t\t\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\tint off = 0;\n\t\tint length = n2.length;\n\t\twhile (compareTo(n2,0,length,n1,off) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t\tlength = n2.length;\n\t\t\t\n\t\t\tif (length > n1.length) {\n\t\t\t\t// gone too far! We at last have our remainder! Return as \"+remainder\".\n\t\t\t\treturn \"+\" + toString(n1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint []innerSum = new int[n1.length+1]; // add 1 just in case we get too high\n\t\tint []result = new int[length]; \n\t\tint start;\n\t\t\n\t\t// initial set.\n\t\tif (n2[0] == 0) { start = 9; } else { start = n1[0]/n2[0]; }\n\t\t\n\t\tmultiply(n2, start, innerSum);\n\t\tinnerSum = reduce(innerSum);\n\t\t\n\t\tif (innerSum.length < n2.length) {\n\t\t\t// perfect fit. Expand back out to work with subtractDown. REALLY UGLY CODE\n\t\t\tinnerSum = expand(innerSum);\n\t\t} else {\n\t\t\t// must reduce and continue....\n\t\t\twhile (n2.length < innerSum.length) {\n\t\t\t\tstart--; // had gone too far! Back down.\n\t\t\t\tinnerSum = new int[n1.length+1];\n\t\t\t\tmultiply (n2, start, innerSum);\n\t\t\t\tinnerSum = reduce(innerSum);\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean subtractDown = compareTo(innerSum, n1, innerSum.length) > 0; // if false, we have to add up\n\t\twhile (true) {\n\t\t\tif (subtractDown) {\n\t\t\t\tstart--;\n\t\t\t\tsubtract(innerSum, n2, result, subProcessSign);\n\t\t\t\tassign(innerSum, result);\n\t\t\t\t\n\t\t\t\tsubtractDown = compareTo(innerSum, n1, innerSum.length) > 0;\n\t\t\t} else {\n\t\t\t\t// found. Note that 'start' is the digit in the quotient. Subtract from and replace.\n\t\t\t\tint []newTop = new int[innerSum.length];\n\t\t\t\textract(newTop,0,n1,0,innerSum.length);\n\t\t\t\t\n\t\t\t\tresult = new int[innerSum.length];\n\t\t\t\tsubtract(newTop, innerSum, result, subProcessSign); \n\t\t\t\textract(n1,0,result,0,result.length); // copy back in\n\t\t\t\t\n\t\t\t\tint[]normalized_n1 = reduce(n1);\n\t\t\t\tint[]normalized_n2 = reduce(n2);\n\t\t\t\tString s = start + subProcess(normalized_n1, normalized_n2);\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }", "public int fib(int n) {\n// // 法一:记忆化递归\n// if (n <= 1) {\n// return n;\n// }\n// if (cache[n] != 0) {\n// return cache[n];\n// }\n// cache[n] = (fib(n - 1) + fib(n - 2)) % 1000000007;\n// return cache[n];\n// // 法二:动态规划\n// if (n == 0 || n == 1) {\n// return n;\n// }\n// int[] dp = new int[n + 1];\n// dp[0] = 0; dp[1] = 1;\n// for (int i = 2; i <= n; i++) {\n// dp[i] = dp[i - 1] + dp[i - 2];\n// dp[i] = dp[i] % 1000000007;\n// }\n// return dp[n];\n // 动态规划,优化空间\n if (n == 0 || n == 1) {\n return n;\n }\n int a = 0, b = 1, sum = 0;\n for (int i = 2; i <= n; i++) {\n sum = (a + b) % 1000000007;\n a = b;\n b = sum;\n }\n return sum;\n }", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "private int searchKeyRecursive(T key, int startIndex, int endIndex) {\n int arraySize = endIndex - startIndex;\n\n int midIndex = startIndex + (arraySize / 2);\n\n //Works only for primitive types.\n if (array[midIndex] == key) {\n return midIndex;\n }\n\n if (arraySize == 1) {\n return -1;\n }\n\n// if (key.) {\n// return searchKeyRecursive(key, midIndex + 1, endIndex);\n// }\n\n\n return arraySize;\n }", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "boolean findCycleUtil(int i, boolean[] visited, boolean[] recStack, LinkedList<Integer>[] g) {\n if (recStack[i]) {\n return true;\n }\n if (visited[i]) {\n return false;\n }\n visited[i] = true;\n recStack[i] = true;\n for (int c : g[i]) {\n if (findCycleUtil(c, visited, recStack, g)) {\n return true;\n }\n }\n recStack[i] = false;\n return false;\n }", "private static int recursion(int x) {\n\t\tif(x == 1) return 0;\n\n\t\tif(dp[x] != -1) return dp[x];\n\t\tint result = Integer.MAX_VALUE;\n\n\t\tif(x % 3 == 0) result = Math.min(recursion(x / 3), result);\n\t\tif(x % 2 == 0) result = Math.min(recursion(x >> 1), result);\n\t\tif(x >= 1) result = Math.min(recursion(x - 1), result);\n\n\t\treturn dp[x] = result + 1;\n\t}", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public MyArrayList<MyArrayList<Node>> findStronglyConnectedComponents(boolean recursive, boolean timing) {\n long startTime = System.currentTimeMillis();\n //(1) Run DFS on the graph G\n if (recursive) {\n this.DFSRecursive();\n } else {\n this.DFS();\n }\n if (timing) {\n System.out.println(\"Finished first DFS: \" + (System.currentTimeMillis() - startTime));\n }\n //(2) Construct G^t - graph with reversed edges\n Graph Gt = this.constructReversedGraph();\n if (timing) {\n System.out.println(\"Finished constructing Gt: \" + (System.currentTimeMillis() - startTime));\n }\n //(3) Sort the nodes in G^t by finishing times in the first DFS\n if (recursive) {\n SortingUtils.mergeSortRecursive(Gt.nodes);\n } else {\n SortingUtils.mergeSort(Gt.nodes);\n }\n if (timing) {\n System.out.println(\"Finished merge sort: \" + (System.currentTimeMillis() - startTime));\n }\n //(4) Run DFS on graph G^t taking vertices in descending order of finishing times (since we just sorted them)\n if (recursive) {\n return Gt.DFSRecursive();\n } else {\n return Gt.DFS();\n }\n }", "private static int combinationRecursive(int n, int k) {\n\t\tif (k == 0 || n == k) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn (int)(n/(double)k) * combinationRecursive(n-1, k-1);\n\t\t}\n\t}", "private int dfs(int[][] matrix, int i, int j, int last, int[][] memo) {\n if (i < 0 || i >= matrix.length || j < 0 || j >= matrix[0].length || matrix[i][j] <= last) {\n return 0;\n }\n if (memo[i][j] != 0) {\n return memo[i][j];\n }\n int maxLength = 0;\n maxLength = Math.max(maxLength, dfs(matrix, i - 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i + 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j - 1, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j + 1, matrix[i][j], memo));\n memo[i][j] = maxLength + 1;\n return memo[i][j];\n }", "private List<TreeNode> helper(int m, int n) {\n\t\t//System.out.println(\"== \" + m + \" \" + n + \"== \");\n\t\tList<TreeNode> result = new ArrayList<TreeNode>();\n\t\tif (m > n) {\n\t\t\t/* MUST add null \n\t\t\t * Cannot do nothing because foreach loop cannot find it if nothing inside \n\t\t\t */\n\t\t\tresult.add(null);\n\t\t} else if (m == n) {\n\t\t\tTreeNode node = new TreeNode(m);\n\t\t\tresult.add(node);\n\t\t} else {\n\t\t\tfor (int i = m; i <= n; i++) {\n\t\t\t\t//System.out.println(\"m, n, i : \" + m + \" \" + n + \" - \" + i);\n\t\t\t\tList<TreeNode> ls = helper(m, i - 1);\n\t\t\t\tList<TreeNode> rs = helper(i + 1, n);\n\t\t\t\t\n\t\t\t\tfor(TreeNode l: ls){\n\t\t\t\t\tfor(TreeNode r: rs){\n\t\t\t\t\t\tTreeNode node = new TreeNode(i);\n\t\t\t\t\t\tnode.left =l;\n\t\t\t\t\t\tnode.right=r;\n\t\t\t\t\t\tresult.add(node);\n\t\t\t\t\t\t//System.out.println(\">>>>>>>\");\n\t\t\t\t\t\t//node.printBFS();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private int recurse(int[] numbers, int left, int right) {\n\n // Base Case\n if (left >= right) {\n return numbers[right] >= 0 ? 1 : 0;\n }\n\n // Divide\n int center = (left + right) / 2;\n int leftCount = this.recurse(numbers, left, center);\n int rightCount = this.recurse(numbers, center+1, right);\n\n // Merge\n return leftCount+rightCount;\n }", "private static int numberOfWaysRecursive(int n) {\n\t\tif(n<0)\n\t\t\treturn 0;\n\t\tif(n==0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn numberOfWaysRecursive(n-1) + numberOfWaysRecursive(n-2) + numberOfWaysRecursive(n-3);\n\t}", "private int recursiveTopDown(int[] price, int n) {\n if( n== 0) return 0;\n int ans = Integer.MIN_VALUE;\n\n for (int i = 0; i < n; i++) {\n ans = Math.max(ans, price[i] + recursiveTopDown(price, n - 1 - i));\n }\n return ans;\n }", "static void p(){\n System.out.println(\"My recursion example 1\");\n p();\n }", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "private void DFS2(int[] array, int level, List<Integer> list) {\n\t\tif (level == array.length) {\n\t\t\tif ((array.length % 2 == 0 && list.size() == array.length / 2) || (array.length % 2 == 1\n\t\t\t\t\t&& (list.size() == array.length / 2 || list.size() == array.length / 2 + 1))) {\n\t\t\t\tif (Math.abs(sum - 2 * cur) < min) {\n\t\t\t\t\tmin = Math.abs(sum - 2 * cur);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tcur += array[level];\n\t\tlist.add(array[level]);\n\t\tDFS2(array, level + 1, list);\n\t\tcur -= array[level];\n\t\tlist.remove(list.size() - 1);\n\t\tDFS2(array, level + 1, list);\n\t}", "public void DFS(List<List<Integer>> result, List<Integer> temp, int n, int start){\n for(int i = start; i * i <= n; i++){\n //we skip undividable factor\n if(n%i != 0) continue;\n \n //found a pair of factor, we can add them to temp list to build a valid factor combination\n List<Integer> copy = new ArrayList<Integer>(temp);\n //since i <= n/i, we will add i first, then n/i\n copy.add(i);\n copy.add(n/i);\n result.add(copy);\n \n //then we try to decompose larger n/i factor, and our later factors shall not be > i, since i has been inserted into list \n temp.add(i);\n DFS(result, temp, n/i, i);\n temp.remove(temp.size() - 1);\n }\n }", "private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}", "private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }", "public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }", "static int sumDownBy2(int i) {\n\t\tif (i<=2) { // Stop recursing when the number is 2 or 1\n\t\t\tif (i < 0) {return 0;} // If there is a negative number, default to zero\n\t\t\telse { return i;}\n\t\t}\n\t\telse {\n\t\t\treturn i + sumDownBy2(i-2);\n\t\t}\n\t}", "@Test\n public void withRecursion() {\n assertThat(ReturnKthtoLast.withRecursion(list, 4), is(2));\n }", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static int foo3( int n )\r\n\t{\r\n\t\tif ( n == 0 )\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t\treturn n + foo3( n - 1 );\r\n\t\t\r\n\t}", "void calculating(int depth);", "private int dfs(int[][] matrix, int i, int j, int d) {\n if (i < 0 || j < 0 || i == matrix.length || j == matrix[0].length || matrix[i][j] != 0)\n return 0;\n if (dp[i][j][d] > 0) return dp[i][j][d];\n timeComplexityCount++;\n maxI = Math.max(maxI, i);\n int res;\n if (d == 1)\n res = Math.max(dfs(matrix, i, j + 1, 1), dfs(matrix, i, j + 1, 2));\n else if (d == 0)\n res = Math.max(dfs(matrix, i, j - 1, 0), dfs(matrix, i, j - 1, 2));\n else\n res = Math.max(dfs(matrix, i + 1, j, 0), Math.max(dfs(matrix, i + 1, j, 1), dfs(matrix, i + 1, j, 2)));\n dp[i][j][d] = res + 1;\n return res + 1;\n }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public static void backtrack(int first, ArrayList<Integer> curr, int[] nums\n , List<List<Integer>> output, int n, int k) {\n if (curr.size() == k) {\n output.add(new ArrayList(curr));\n }\n for (int i = first; i < n; ++i) {\n // add i into the current combination\n curr.add(nums[i]);\n // use next integers to complete the combination\n backtrack(i + 1, curr, nums, output, n, k);\n // backtrack\n curr.remove(curr.size() - 1);\n }\n }", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int fibonacciRecursion(int n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n if (n == 1 || n == 2) {\r\n return 1;\r\n }\r\n return fibonacciRecursion(n - 2) + fibonacciRecursion(n - 1);\r\n }", "int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }", "private int first_leaf() { return n/2; }", "static long numWays(int index, int m, int n, int[] arr) {\n long count = 0;\n\n\n if (n == 0 || index == (m - 1)) {\n if (index == (m - 1)) {\n arr[index] = n;\n }\n// for (int x : arr) {\n// System.out.print(x + \",\");\n// }\n// System.out.println();\n return 1;\n }\n\n if (n < 0 || index >= m) {\n return 0;\n }\n\n\n String key = index(arr, index, m, n);\n if (dp.containsKey(key)) {\n return dp.get(key);\n }\n\n\n for (int i = 0; i <= n; i++) {\n arr[index] = i;\n count += numWays(index + 1, m, n - i, arr);\n// for (int j = index + 1; j < arr.length; j++) {\n// arr[j] = 0;\n// }\n }\n\n dp.put(key, count % prime);\n return count % prime;\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "@SuppressWarnings({\"rawtypes\", \"unchecked\", \"SuspiciousMethodCalls\"})\n private List getDepthFirstTraversal_iterative_usingStack_BigO_VPlusE() throws Exception {\n Map<Object, Boolean> visited = new LinkedHashMap<>();\n Stack watchStack = new Stack();\n\n V root = data.keySet().stream().findFirst().orElseThrow(() -> new Exception(\"Graph is Empty\"));\n watchStack.push(root);\n visited.put(root, true);\n\n while(!watchStack.isEmpty()) {\n Object currentVertex = watchStack.top();\n\n BinarySearchTree<E> edgeTree = data.getOrDefault(currentVertex, new BinarySearchTree<>());\n List<E> edges = edgeTree.getTreeByInOrder_depthFirst();\n\n //Remove an item from the stack when there are no edges or all the edges are visited for that vertex\n if(edgeTree.isEmpty() || visited.keySet().containsAll(edges)) {\n watchStack.pop();\n } else {\n for(E edge : edges) {\n if(!visited.containsKey(edge)) {\n watchStack.push(edge);\n visited.put(edge, true);\n break;\n }\n }\n }\n }\n return new ArrayList<>(visited.keySet());\n }", "public void helper(List<Integer> permutation,\n List<List<Integer>> rst,\n int[] nums) {\n // 3-recursion exit\n if (permutation.size() == nums.length) {\n // deep copy\n rst.add(new ArrayList<>(permutation));\n return;\n }\n\n // 2-recursion split\n // [3, 1] => [3, 1, 2]\n for (int i = 0; i < nums.length; i ++) {\n if (permutation.contains(nums[i])) continue;\n permutation.add(nums[i]);\n helper(permutation, rst, nums);\n permutation.remove(permutation.size() - 1);\n }\n }", "public static int recursionSum(int[] num, int n) {\n if (n <= 2)\n System.out.println(num[n]);\n if (n <= 0)\n return 0;\n return recursionSum(num, n - 1) + num[n - 1];\n }", "private int helper(List<List<Integer>> res, TreeNode root) {\n if (root == null) return -1;\n int left = helper(res, root.left);\n int right = helper(res, root.right);\n int curr = Math.max(left, right) + 1;\n if (res.size() == curr) res.add(new ArrayList<>());\n res.get(curr).add(root.val);\n return curr;\n }", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "int help(int n, int k, int[][] map) {\n if (n <= 0 || k < 0) return 0;\n if (0 == k) return 1;\n if (1 == k) return n - 1;\n if (map[n][k] > 0) return map[n][k];\n long sum = 0;\n for (int i = 1; i <= k; i ++) {\n for (int j = 0; j < n; j ++) {\n// System.out.println(\"i = \" + i + \", j = \" + j + \", j - i = \" + (j - i) + \", j + i = \" + (j + i) + \", f0 = \" + (n - j + i - 1) + \", f1 = \" + (n - j - i - 1) + \", k - i = \" + (k - i));\n int g = 0, g0 = 0, g1 = 0;\n if (j - i >= 0) {\n g += help(n - j + i - 1, k - i, map);\n sum += g;\n// System.out.println(\"g0 = \" + g0 + \", g1 = \" + g1 + \", g = \" + g + \", sum = \" + sum);\n// System.out.println(\"-\");\n }\n }\n\n }\n// System.out.println(\"sum = \" + sum + \" ----\");\n map[n][k] = (int)sum;\n return (int)sum;\n }", "private List<T> inOrder(Node<T> curr, List<T> list) { //Time Complexity: O(n)\n if (curr == null) {\n return list;\n }\n inOrder(curr.left, list);\n list.add(curr.data);\n inOrder(curr.right, list);\n return list;\n }", "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}", "private static int betterSolution(int n) {\n return n*n*n;\n }", "private void helper(int n, List<Integer> cur, List<List<Integer>> result) {\n\t\tif (cur.size() == n) {\n\t\t\tresult.add(new ArrayList<Integer>(cur));\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// check if putting a queen at column i at current row is valid.\n\t\t\tif (valid(cur, i)) {\n\t\t\t\tcur.add(i);\n\t\t\t\thelper(n, cur, result);\n\t\t\t\tcur.remove(cur.size() - 1);\n\t\t\t}\n\t\t} // end for\n\t}", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "int getRecursionDepth();", "static int paths_usingRecursion(int[][] matrix) {\n\t\treturn paths(matrix, 0, 0);\n\t}", "private void DFS(int[] array, int level, List<Integer> list) {\n\t\tif (level == array.length) {\n\t\t\tif (Math.abs(sum - 2 * cur) < min) {\n\t\t\t\tmin = Math.abs(sum - 2 * cur);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tcur += array[level];\n\t\tlist.add(array[level]);\n\t\tDFS(array, level + 1, list);\n\t\tcur -= array[level];\n\t\tlist.remove(list.size() - 1);\n\t\tDFS(array, level + 1, list);\n\t}", "private int fibonacciHelper (int fibCurrent, int fibPrevious, int n) {\n\t\tcounter ++;\n\t\tif (n==1) \n\t\t\treturn fibCurrent;\n\t\t\telse \n\t\t\t\treturn fibonacciHelper ( fibCurrent+ fibPrevious, fibCurrent, n-1);\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "private void dfs(List<List<Integer>> res, List<Integer> tmp, int n, int k, int start) {\n\t\tif(tmp.size() == k) {\n\t\t\tres.add(new ArrayList<Integer>(tmp));\n\t\t\treturn;\n\t\t}\n\t\tfor(int i=start;i<=n;i++) {\n\t\t\t//i <= (n - (k - tmp.size()) + 1) 剪枝,当可选的数已经不够时,直接剪枝\n\t\t\ttmp.add(i);\n\t\t\tdfs(res,tmp,n,k,i+1);//i+1,别老忘写+1\n\t\t\ttmp.remove(tmp.size()-1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tInteger[] arr = new Integer[]{1,5,10,25};\r\n\t\tInteger N = 100;\r\n\t\t\r\n\t\tInteger[] dp = new Integer[N+1];\r\n\t\tCoinChange obj = new CoinChange();\r\n\t\t\r\n\t\tSystem.out.println(obj.recurse(arr,dp,100));\r\n\t}", "public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }", "public static long iterative (int n)\r\n {\r\n long mult=1;\r\n while(true)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n if (n==1)\r\n return (mult*n);\r\n mult=mult*n;\r\n n=n-1;\r\n }\r\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public static long FiboRec (int n) {\n if (n < 0) {\n return -1;\n } \n if (n == 0 || n == 1) {\n return n;\n }\n return FiboRec(n-1) + FiboRec(n-2);\n }", "void quickRecursion(int[] arr, int low, int high) {\n\n\t\tint pi = partition(arr, low, high);\n\n\t\tif (low < pi - 1) {\n\t\t\tquickRecursion(arr, low, pi - 1);\n\t\t}\n\t\tif (pi < high) {\n\t\t\tquickRecursion(arr, pi, high);\n\t\t\n\t\t}\n\t}", "public static void print_recursion(int a){\r\n if(a<2){\r\n array.add(a);\r\n for(int i=1;i<=array.size();i++){\r\n System.out.print(array.get(array.size()-i));\r\n }\r\n System.out.println(\"\");\r\n }\r\n else{\r\n array.add(a%2);\r\n print_recursion(a/2);\r\n }\r\n }", "private static void checkRecurseUnordered(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1306 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1307 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.1\", new Object[] {\n/* 1308 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1309 */ Integer.toString(max1), \n/* 1310 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1311 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1314 */ int count1 = dChildren.size();\n/* 1315 */ int count2 = bChildren.size();\n/* */ \n/* 1317 */ boolean[] foundIt = new boolean[count2];\n/* */ \n/* 1319 */ for (int i = 0; i < count1; i++) {\n/* 1320 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* */ \n/* 1322 */ int k = 0; while (true) { if (k < count2) {\n/* 1323 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* */ try {\n/* 1325 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* 1326 */ if (foundIt[k]) {\n/* 1327 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* 1329 */ foundIt[k] = true;\n/* */ \n/* */ \n/* */ break;\n/* 1333 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ k++;\n/* */ continue;\n/* */ } \n/* 1337 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1341 */ for (int j = 0; j < count2; j++) {\n/* 1342 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1343 */ if (!foundIt[j] && !particle2.emptiable()) {\n/* 1344 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* */ } \n/* */ }", "public int numTrees(int n) {\n if(n<=1)\n return 1;\n int[] dp = new int[n+1];\n dp[0] = 1;\n dp[1] = 1;\n dp[2] = 2;\n \n for(int i=3;i<=n;i++){\n int sum = 0;\n for(int a=0;a<i;a++){\n sum+=dp[0+a]*dp[i-1-a];\n }\n dp[i] = sum;\n //if i is odd then add the i/2 dp after you multiply by 2\n }\n return dp[n];\n }", "private static int path(int n) {\n if (n == 0 || n == 1 || n == 2) {\n return n;\n }\n return path(n-1) + path(n-2);\n }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "public static long pureRecursive (int n)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n else if (n==1)\r\n return (n);\r\n else\r\n return (n * pureRecursive(n-1));\r\n }", "void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }", "public boolean dfs_iterative_util(LinkedList<Integer>[] graph, boolean[] visited, int s){\n Stack<Integer> fringe = new Stack<Integer>();\n Set<Integer> currStack = new HashSet<Integer>();\n \n fringe.push(s);\n currStack.add(s);\n \n while(!fringe.isEmpty()){\n int curr = fringe.pop();\n if(currStack.contains(curr))\n return false;\n visited[curr] = true;\n currStack.add(curr);\n if(graph[curr] != null){\n Iterator<Integer> itr = graph[curr].iterator();\n while(itr.hasNext()){\n int n = itr.next();\n \n if(!visited[n]){\n fringe.push(n);\n }\n }\n currStack.remove(curr);\n }\n \n }\n \n return true;\n }", "private Node linearize2(Node node) {\n\t\tif (node.children.size() == 0) {\n\t\t\treturn node;\n\t\t}\n\n\t\tNode ltail = linearize2(node.children.get(node.children.size() - 1));\n\t\twhile (node.children.size() > 1) {\n\t\t\tNode lr = node.children.remove(node.children.size() - 1);\n\t\t\tNode sl = node.children.get(node.children.size() - 1);\n\t\t\tNode sltail = linearize2(sl);\n\t\t\tsltail.children.add(lr);\n\t\t}\n\t\treturn ltail;\n\t}", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}" ]
[ "0.6506002", "0.6301466", "0.6301433", "0.62547785", "0.6192239", "0.59547275", "0.5950592", "0.5940081", "0.5928337", "0.58524364", "0.5851247", "0.5819327", "0.5817762", "0.57426", "0.5722862", "0.5707975", "0.56798166", "0.56570494", "0.5637988", "0.5631774", "0.5628986", "0.56224847", "0.56168365", "0.5585315", "0.5581917", "0.5513125", "0.5500215", "0.54913986", "0.54901904", "0.54853827", "0.5477557", "0.5476194", "0.54704607", "0.54667735", "0.5436064", "0.543103", "0.5415391", "0.54151595", "0.5401583", "0.539261", "0.5386482", "0.5384665", "0.538008", "0.53719234", "0.5345965", "0.53418165", "0.53348684", "0.5330265", "0.532637", "0.5296279", "0.52957326", "0.5295311", "0.52821064", "0.52809036", "0.52806777", "0.52791244", "0.5276654", "0.5264938", "0.5256638", "0.5252152", "0.52517", "0.5242654", "0.5242642", "0.52417433", "0.5239912", "0.5230314", "0.5227556", "0.5226916", "0.5226755", "0.5219531", "0.52188784", "0.5217114", "0.52150834", "0.5213624", "0.5207002", "0.52050793", "0.5200112", "0.51983947", "0.5195225", "0.5192764", "0.51899785", "0.51854634", "0.5184486", "0.5168567", "0.51684827", "0.51629525", "0.51623863", "0.5160295", "0.5159103", "0.5145756", "0.51446253", "0.5142383", "0.5136046", "0.5133031", "0.5132846", "0.51311207", "0.5127579", "0.51256865", "0.51183826", "0.51176506", "0.51169753" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_myths, container, false); Toolbar toolbar = view.findViewById(R.id.mythToolbar); toolbar.setTitle("Myths"); toolbar.setTitleTextColor(Color.WHITE); ( (AppCompatActivity)getActivity()).setSupportActionBar(toolbar); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348", "0.66202056", "0.66176945", "0.66094035", "0.65976113", "0.65937936", "0.6585841", "0.6585124", "0.65741223", "0.65721804", "0.65698904", "0.65695107", "0.6569451", "0.6568099", "0.6565633", "0.6554688", "0.65533894", "0.65447044", "0.65432465", "0.6542017", "0.65385425", "0.6537571", "0.65369105", "0.6535379", "0.6533447", "0.6533258", "0.65316767", "0.6529574", "0.6528449", "0.65262675", "0.6525467", "0.6525181", "0.6524235", "0.6523963", "0.65187466", "0.65138274", "0.65137535", "0.6513218", "0.6513202", "0.65115535", "0.651113", "0.6510943", "0.6510124", "0.65094703", "0.65082514", "0.65038425", "0.65023196", "0.6501983", "0.65014684", "0.64982104", "0.64945936", "0.6492533", "0.6491023", "0.6488248", "0.64879525", "0.6487852", "0.6487744", "0.64873713", "0.6487171", "0.64851", "0.6485003", "0.6483167", "0.6482433", "0.64824027", "0.6481711", "0.6480902", "0.64779234", "0.64767206", "0.6476515", "0.6475657", "0.64747864", "0.64715266", "0.64714354", "0.64711314", "0.6470619", "0.6468112", "0.6466466", "0.64631015", "0.646268", "0.6462456", "0.64620507" ]
0.0
-1
Created by ESIDEM jnr on 4/4/2017.
public interface MyCallback { void updateAdapter(Movies[] movies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public final void mo91715d() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n public void init() {\n }", "@Override\n public void memoria() {\n \n }", "public void mo21779D() {\n }", "private void init() {\n\n\t}", "public void mo12930a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void one() {\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}", "public void mo55254a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "public void skystonePos4() {\n }", "public void mo21877s() {\n }", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void mo6255a() {\n }", "private void m50367F() {\n }", "public void mo21785J() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}" ]
[ "0.61042583", "0.5999221", "0.5916736", "0.5873184", "0.58630997", "0.5810728", "0.5781105", "0.5736545", "0.5736545", "0.5729829", "0.5718357", "0.5707542", "0.5702711", "0.5702591", "0.5677058", "0.567463", "0.5664521", "0.5646752", "0.56458277", "0.56281614", "0.5618957", "0.56184924", "0.5616651", "0.55941075", "0.5583121", "0.5542232", "0.5529493", "0.55249935", "0.55243874", "0.5510845", "0.5505815", "0.5505815", "0.5505815", "0.5505815", "0.5505815", "0.5505815", "0.5505815", "0.5493194", "0.5490242", "0.5486839", "0.5486839", "0.5486839", "0.5486839", "0.5486839", "0.5453222", "0.5450204", "0.54478866", "0.54447776", "0.54430574", "0.54427445", "0.5438002", "0.5435344", "0.54319626", "0.54319626", "0.54317623", "0.54315555", "0.5425343", "0.542382", "0.5413165", "0.5407797", "0.54066455", "0.54007936", "0.53914505", "0.53912836", "0.5390501", "0.5386462", "0.5377671", "0.5377671", "0.5376627", "0.5368302", "0.53616834", "0.5358183", "0.5352756", "0.5352756", "0.5352756", "0.53498703", "0.5345756", "0.5345756", "0.5345756", "0.5345756", "0.5345756", "0.5345756", "0.53431326", "0.5342755", "0.5341566", "0.5333268", "0.53331393", "0.5327839", "0.5327839", "0.53260744", "0.5325829", "0.53255", "0.5316942", "0.5309068", "0.53073806", "0.53073806", "0.53073806", "0.53070146", "0.53070146", "0.53070146", "0.52992386" ]
0.0
-1
Called just before this Command runs the first time
protected void initialize() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void preRun() {\n super.preRun();\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public void prePerform() {\n // nothing to do by default\n }", "protected void onFirstUse() {}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n public void beforeStart() {\n \n }", "protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "public void preExecution() throws CommandListenerException;", "public void initDefaultCommand() {\n\t\t// Don't do anything\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "protected void runBeforeStep() {}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }", "void PrepareRun() {\n }", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "@Override\r\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\r\n\t\t\t}", "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "protected void onPreExecute() {\n\t\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n\t protected void onPreExecute() {\n\t }", "public void initDefaultCommand() {\n \n }", "@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n\n }", "protected abstract void preRun();", "private Command() {\n initFields();\n }", "public void initDefaultCommand() {\n \n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }", "public void onStart() {\n /* do nothing - stub */\n }", "@Override\n protected void startUp() {\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@Override\n public void initDefaultCommand() \n {\n }", "@Override\n protected void onPreExecute()\n {\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n\n }", "@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n }", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "public void preInstallHook() {\n }", "public void initDefaultCommand() {\n\t}", "public void startup() {\n neutral();\n }", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "public void onStart() {\n super.onStart();\n getStockVerification();\n }", "@Override\n public void onStart() {\n \n }", "@Override\n public void onStart() {\n \n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n }" ]
[ "0.71116775", "0.6540082", "0.643276", "0.64309984", "0.6406235", "0.63530433", "0.6307191", "0.62521607", "0.6246859", "0.6240541", "0.61669374", "0.6162758", "0.612669", "0.612669", "0.612669", "0.612669", "0.612669", "0.6106636", "0.60843927", "0.60843927", "0.6078098", "0.6078098", "0.6067516", "0.6067516", "0.6067516", "0.6067516", "0.606738", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.6057326", "0.60445184", "0.60395783", "0.6038108", "0.60342497", "0.6029028", "0.6028095", "0.6011726", "0.60035837", "0.6001935", "0.5994244", "0.5990546", "0.5988089", "0.5988089", "0.5988089", "0.5988089", "0.5988089", "0.5976879", "0.59630865", "0.59607804", "0.5948146", "0.5944802", "0.59428716", "0.59088343", "0.5907871", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59073347", "0.590471", "0.5903377", "0.5901662", "0.5891441", "0.58837813", "0.5882797", "0.5881506", "0.5876781", "0.5869825", "0.58597183", "0.58569473", "0.5848948", "0.58431983", "0.5841212", "0.58401227", "0.5836663", "0.5836663", "0.5836663", "0.5834893", "0.5834893", "0.5832427", "0.5832427", "0.5832232", "0.5827022", "0.5827022", "0.58263487" ]
0.0
-1
Called repeatedly when this Command is scheduled to run
protected void execute() { buttonOpenValue = Robot.m_oi_pilot.joystick.getRawButton(1); buttonCloseValue = Robot.m_oi_pilot.joystick.getRawButton(2); if(buttonOpenValue){ direction = DoubleSolenoid.Value.kForward; } else if(buttonCloseValue){ direction = DoubleSolenoid.Value.kReverse; } else{ direction = DoubleSolenoid.Value.kOff; } //Robot.m_pneumatics.runSolenoid(direction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void runEachMinute() {\n \n }", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "private void scheduleJob() {\n\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void run() throws IOException {\n\t\tif (lastTime + interval > Time.now())\n\t\t\treturn;\n\t\texitCode = 0; // reset for next run\n\t\trunCommand();\n\t}", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "protected void waitUntilCommandFinished() {\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n public void autonomousPeriodic() {\n \n }", "public void intialRun() {\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "@Override\n\tpublic void postRun() {\n\t}", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "protected void runEachSecond() {\n \n }", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "public void execute() {\n\t\tlaunch();\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tif (this.isRunning == true) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isRunning = true;\n\t\t// 写入一条日志\n\t\t\n\t\t// 详细运行参数\n\t\ttry {\n\t\t\tthis.taskRun();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isRunning = false;\n\t\tthis.addHistory(new Date());\n\t\tif(this.once) {\n\t\t\tthis.cancel();\n\t\t}\n\t}", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void taskStarting() {\n\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void run() {\n\t\tautomatischDurchAlleRouten();\n\n\t\t\n\t}", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }", "@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}", "protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }", "protected void execute() {\n command.start();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "@Override\n public void run()\n {\n //Log.d(TAG ,\"==========>Task Run In!\");\n updateDroneLocation();\n }", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void execute() {\n setExecuted(true);\n }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "protected void execute() {\n\t\tshooter.runShooter(power);\n\t}", "@Override\r\n public void run() {}", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }" ]
[ "0.6689458", "0.6631115", "0.6566414", "0.65512514", "0.6530515", "0.6488629", "0.64019585", "0.6380878", "0.637645", "0.6363615", "0.63557744", "0.6330997", "0.6295938", "0.6275704", "0.6268897", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.6255461", "0.624429", "0.6241397", "0.62090397", "0.6183934", "0.6178626", "0.61670285", "0.614122", "0.6137012", "0.6132416", "0.6132416", "0.6132416", "0.6132416", "0.61313075", "0.61313075", "0.61313075", "0.6120398", "0.61091226", "0.61073244", "0.610631", "0.610404", "0.6101818", "0.61014", "0.6099132", "0.6093559", "0.6092883", "0.6092883", "0.6092883", "0.6092883", "0.60926527", "0.60926485", "0.6077805", "0.6074907", "0.606528", "0.6062541", "0.60580474", "0.6056443", "0.60554063", "0.6054432", "0.60539037", "0.60538137", "0.60505164", "0.60505164", "0.604125", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6027496", "0.6027496", "0.6027496", "0.60272455", "0.6009362", "0.6006723", "0.59990466", "0.59985226", "0.59967", "0.5994757", "0.5985855", "0.59771705", "0.5973198", "0.5970597", "0.59701514", "0.5965313", "0.5964212", "0.596267", "0.59585357", "0.5954102", "0.595137", "0.5949223", "0.5946874", "0.5942587", "0.59406763", "0.59406763", "0.59366745" ]
0.0
-1
Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean execute() {\n return false;\n }", "@Override\n public boolean execute() {\n return false;\n }", "public boolean execute(){\n return false;\n }", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "protected boolean onExecute(String command)\n {\n return false;\n }", "@Override\n\tpublic boolean execute() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}", "public boolean shouldExecute() {\n\t\treturn true;\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "@Override\n public boolean canExecute() {\n return true;\n }", "protected void execute() {\n finished = true;\n }", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "public Command() {\n this.executed = false;\n }", "@Override\n public void stopExecute() {\n\n }", "public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n public void execute() {\n if(!manipulatorController.getRawButton(button)){\n shooter.shooterMotorsOff();\n hopper.hopperMotorOff();\n isDone = true;\n end(false);\n }\n\n }", "public void unExecute()\n\t{\n\t}", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "public boolean shouldContinueExecuting() {\n return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();\n }", "public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }", "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "protected void waitUntilCommandFinished() {\n }", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "protected boolean isFinished() {\n return false;\n \n }", "boolean redoLastCommand() throws Exception;", "@Override\n public boolean isFinished() {\n return false;\n }", "public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }" ]
[ "0.7731388", "0.7731388", "0.7676477", "0.76479256", "0.75945383", "0.755139", "0.6876917", "0.674626", "0.6726289", "0.66824305", "0.65877676", "0.65649086", "0.649714", "0.6385132", "0.6373108", "0.6358361", "0.6358361", "0.63498634", "0.634211", "0.6330674", "0.6323974", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6320391", "0.6317173", "0.63114035", "0.63114035", "0.6299333", "0.627667", "0.62760925", "0.62760925", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62515897", "0.62133604", "0.62108415", "0.62108415", "0.621026", "0.6206479", "0.6203346", "0.61946404", "0.6172182", "0.61629695", "0.61629695", "0.61629695", "0.61629695", "0.61629695", "0.61588246", "0.61547846", "0.614955", "0.6147714", "0.6144715", "0.61395454" ]
0.6186873
86
Called once after isFinished returns true
protected void end() { isFinished(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n boolean isFinished() {\n return false;\n }", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished(){\r\n return true;\r\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return isFinished;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Override\n protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }" ]
[ "0.8586457", "0.85408485", "0.8335299", "0.8333223", "0.8333223", "0.8307876", "0.8305855", "0.83003116", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.82784426", "0.8277496", "0.82701373", "0.8238729", "0.8238729", "0.8231302", "0.8208284", "0.8208284", "0.8208284", "0.8208284", "0.8208284", "0.8208284", "0.81640875", "0.81605667", "0.81605667", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.8152963", "0.81476676", "0.81392443", "0.81392443", "0.81392443", "0.81392443", "0.81392443", "0.8126868", "0.8126868", "0.8114698", "0.8113729", "0.80906826", "0.8085441", "0.80427516", "0.80427516", "0.80427516", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.80345356", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878", "0.802878" ]
0.0
-1
Called when another command which requires one or more of the same subsystems is scheduled to run
protected void interrupted() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // withtimeout-- girdigin sure kadar\n // yapar\n // (new RunShooter(m_shooter, 1).withTimeout(0.75),new RunLift(m_lift,\n // 0.5).raceWith(new RunHopper(m_hopper, 0.8)),\n // new AutonomousDrive(m_drive, 0.8, 300).withTimeout(3));\n\n super(new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8)).withTimeout(2.5),\n new AutonomousDrive(m_drive, -0.8, -300).raceWith(new RunIntake(m_intake, 0.8)\n .raceWith(new RunHopper(m_hopper, 0.8).raceWith(new RunShooter(m_shooter, 0.3),\n new AutonomousDrive(m_drive, 0.8, 300), new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8).withTimeout(2.5))))));\n\n }", "@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "public InstantCommand(Runnable toRun, Subsystem... requirements) {\n\t\trequireNonNull(toRun);\n\t\tm_toRun = toRun;\n\t\taddRequirements(requirements);\n\t}", "private void registerCommands() {\n }", "protected void runSubCommand(int num) {\n subCommands[num].execute();\n }", "public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}", "void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}", "@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }", "private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}", "public PnuematicSubsystem() {\n\n }", "public void TurnCommand() {\n\n requires(Robot.driveSubsystem);\n\n }", "public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}", "public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}", "@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}", "@Override\n protected int run() throws Exception {\n if (User.current() == null) {\n stderr.println(\"Must be logged in before executing...\");\n return 1;\n }\n\n // First check to see if they exist\n Jenkins instance = Jenkins.getInstance();\n AbstractProject project1 = instance.getItemByFullName(first, AbstractProject.class);\n if (project1 == null) {\n throw new CmdLineException(null, \"Project: \" + first + \" does not exist\");\n }\n AbstractProject project2 = instance.getItemByFullName(second, AbstractProject.class);\n if (project2 == null) {\n throw new CmdLineException(null, \"Project: \" + second + \" does not exist\");\n }\n\n // Make sure user has permission to build.\n if (!project1.hasPermission(Item.BUILD) &&\n !project2.hasPermission(Item.BUILD)) {\n throw new CmdLineException(null, \"You do not have permission to execute these jobs.\");\n }\n\n // Let's build both projects.\n project1.scheduleBuild2(0);\n project2.scheduleBuild2(0);\n return 0;\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }", "@Scheduled(cron = \"${toil1.schedule2}\")\n\tpublic void toiL1Schedule2() {\n\t\tlog.info(\"Running toiL1Schedule2\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}", "public void verifyAndRegister() {\n // All top level commands are supposed to be registered in the command manager\n this.internalTree.children.stream().map(Node::getValue).forEach(commandArgument -> {\n if (!(commandArgument instanceof StaticArgument)) {\n throw new IllegalStateException(\"Top level command argument cannot be a variable\");\n }\n });\n\n this.checkAmbiguity(this.internalTree);\n\n // Verify that all leaf nodes have command registered\n this.getLeaves(this.internalTree).forEach(leaf -> {\n if (leaf.getOwningCommand() == null) {\n throw new NoCommandInLeafException(leaf);\n } else {\n final Command<C> owningCommand = leaf.getOwningCommand();\n this.commandManager.getCommandRegistrationHandler().registerCommand(owningCommand);\n }\n });\n\n // Register command permissions\n this.getLeavesRaw(this.internalTree).forEach(node -> {\n // noinspection all\n final CommandPermission commandPermission = node.getValue().getOwningCommand().getCommandPermission();\n /* All leaves must necessarily have an owning command */\n node.nodeMeta.put(\"permission\", commandPermission);\n // Get chain and order it tail->head then skip the tail (leaf node)\n List<Node<CommandArgument<C, ?>>> chain = this.getChain(node);\n Collections.reverse(chain);\n chain = chain.subList(1, chain.size());\n // Go through all nodes from the tail upwards until a collision occurs\n for (final Node<CommandArgument<C, ?>> commandArgumentNode : chain) {\n final CommandPermission existingPermission = (CommandPermission) commandArgumentNode.nodeMeta\n .get(\"permission\");\n\n CommandPermission permission;\n if (existingPermission != null) {\n permission = OrPermission.of(Arrays.asList(commandPermission, existingPermission));\n } else {\n permission = commandPermission;\n }\n\n /* Now also check if there's a command handler attached to an upper level node */\n if (commandArgumentNode.getValue() != null && commandArgumentNode\n .getValue()\n .getOwningCommand() != null) {\n final Command<C> command = commandArgumentNode.getValue().getOwningCommand();\n if (this\n .getCommandManager()\n .getSetting(CommandManager.ManagerSettings.ENFORCE_INTERMEDIARY_PERMISSIONS)) {\n permission = command.getCommandPermission();\n } else {\n permission = OrPermission.of(Arrays.asList(permission, command.getCommandPermission()));\n }\n }\n\n commandArgumentNode.nodeMeta.put(\"permission\", permission);\n }\n });\n }", "void legalCommand();", "@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}", "public void registerCommand(BaseCommand baseCommand) throws Exception {\n baseCommand.setShard(shard);\n Command botCommand = baseCommand.botCommand;\n for (BaseCommand cmd : baseCommands) {\n if (StringUtils.stripAccents(cmd.getCommandIdentifier()).equalsIgnoreCase(StringUtils.stripAccents\n (botCommand.getCommandIdentifier())))\n {\n System.out.println(\"Multiple baseCommands cannot be registered under the same name. Ignoring new \" +\n \"instance\" +\n \".\\n\" +\n \"Name: \" + baseCommand.toString());\n return;\n }\n }\n botCommand.setupSubcommands();\n baseCommands.add(baseCommand);\n commandUsages.put(baseCommand.commandIdentifier, (long) 0);\n System.out.println(\"Successfully registered \" + baseCommand.toString());\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "@Override\n public void adjustStartEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity oldLatestProcessDefinition) {\n super.adjustStartEventSubscriptions(newLatestProcessDefinition, oldLatestProcessDefinition);\n\n LOG.debug(\"Adding start event simulation timers.\");\n removeObsoleteStartEventSimulationJobs(newLatestProcessDefinition);\n addStartEventSimulationJobs(newLatestProcessDefinition);\n }", "@Test\n public void testSubsystem1_1() throws Exception {\n KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization())\n .setSubsystemXml(readResource(\"keycloak-1.1.xml\")).build();\n Assert.assertTrue(\"Subsystem boot failed!\", servicesA.isSuccessfulBoot());\n ModelNode modelA = servicesA.readWholeModel();\n super.validateModel(modelA);\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}", "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }", "public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }", "private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "@Command\n\tpublic void buscar() {\n\t}", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "private static void executeTask02() {\n }", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "public void subTask(String name) {\n\r\n\t}", "void cronScheduledProcesses();", "public DefaultAutonomous(DriveSubsystem ds,\n ShooterSubSystem ss,\n LEDSubSystem ls,\n XboxController manipulator,\n double distanceInFeet) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(new ShooterCommand(ss, ls, manipulator, true, Constants.kShooterSpeedSlow).withTimeout(5),\n new DriveADistanceInFeet(ds, distanceInFeet, true).withTimeout(5));\n }", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }", "private void scheduleJob() {\n\n }", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "@Test\n\tpublic void testAddCommand1() {\n\t\tString task1 = \"normal task\";\n\t\tString task2 = \"priority task\";\n\t\tString label = testData.getCurrLabel();\n\t\t\n\t\tAddCommand comd = new AddCommand(task1, new TDTDateAndTime(), false);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tcomd = new AddCommand(task2, new TDTDateAndTime(), true);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(2, taskList.size());\n\t\tassertTrue(task2.equals(taskList.get(0).getDetails()));\n\t\tassertTrue(taskList.get(0).isHighPriority());\n\t\tassertTrue(task1.equals(taskList.get(1).getDetails()));\n\t\tassertFalse(taskList.get(1).isHighPriority());\n\t}", "protected void execute() {\n\t\tif(RobotMap.gearDoorExtended)\n\t\t\tgearSubsystem.retractPiston();\n\t\telse\n\t\t\tif(Robot.oi.getRightStick().getTrigger() || auton)\n\t\t\t\tgearSubsystem.extendPiston();\n\t\t\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}", "public void subTask(String tr) {\n\t\t\n\t}", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "private void processWTBy(WasTriggeredBy dep) {\n\n\t}", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }", "protected abstract void scheduler_init();", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}", "public void noSuchCommand() {\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "private void updateDiagnostics() {\n\t// driveSubsystem.updateDiagnostics();\n\t// elevatorSubsystem.updateDiagnostics();\n\t// cubeSubsystem.updateDiagnostics();\n\t// cubeVision.updateDiagnostics();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }", "abstract boolean shouldTaskActivate();", "public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }", "private void submitCollectSysTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\taddTask(new CollectSysTrafficTask());\n\t}", "@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }", "private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}", "void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}", "@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}", "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}", "private void registToWX() {\n }", "public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }", "private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }", "public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}", "@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }", "private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }", "public static void twoClientSetupProcesses(List<String> aClientTags, List<String> aServerTags ) {\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_1\", \"Client_0\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Registry\", 500);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Server\", 2000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_0\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_1\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}", "private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }" ]
[ "0.57638615", "0.5596325", "0.552643", "0.54340327", "0.5383419", "0.5363712", "0.53502446", "0.53427285", "0.53291255", "0.5327942", "0.5298728", "0.5262931", "0.5255555", "0.52312833", "0.5223626", "0.5202386", "0.51912916", "0.5179374", "0.51630044", "0.51523274", "0.5143429", "0.5133436", "0.51287884", "0.51007295", "0.50987774", "0.5065754", "0.50593936", "0.5053886", "0.5052827", "0.5049765", "0.5049424", "0.5039456", "0.50268954", "0.50130635", "0.50078684", "0.5002149", "0.49984986", "0.4994803", "0.4994803", "0.49936163", "0.49788898", "0.4973147", "0.4971567", "0.49599177", "0.49570048", "0.49520922", "0.49484915", "0.49469215", "0.4938038", "0.49338964", "0.49306676", "0.49224606", "0.49192882", "0.49154705", "0.49139214", "0.49135542", "0.49127162", "0.49103293", "0.49024618", "0.4900073", "0.4899106", "0.4891082", "0.4885132", "0.4878857", "0.4874752", "0.48715937", "0.48660922", "0.48654273", "0.48650575", "0.48609054", "0.4855063", "0.48528823", "0.4846814", "0.48367566", "0.48357803", "0.4832311", "0.48306474", "0.48143792", "0.48133484", "0.4806116", "0.48031622", "0.47994146", "0.4793614", "0.47919464", "0.4789673", "0.47861615", "0.47858715", "0.47848412", "0.478431", "0.47837642", "0.4781812", "0.47800535", "0.47790134", "0.47788513", "0.4778546", "0.47750968", "0.47704235", "0.4766019", "0.47597164", "0.47585353", "0.47550562" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { FragmentManager fm = getActivity().getSupportFragmentManager(); Fragment_Order_Create_ListDlg editNameDialog = new Fragment_Order_Create_ListDlg(); // editNameDialog.getDialog().setTitle("Nhập số lượng"); editNameDialog.setHandleData(FragmentOrderCreate_ViewOrConfirm.this); editNameDialog.show(fm, "fragment_edit_name"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { if (_dataSource.size() == 0) { Toast.makeText(getActivity(), "Bạn phải chọn sản phẩm trước khi xác nhận", Toast.LENGTH_SHORT) .show(); } else { AlertDialog.Builder b = new AlertDialog.Builder(getActivity()); b.setMessage("Bạn chắc chắn muốn xác nhận đơn đặt hàng?"); b.setPositiveButton("Có", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { saveToServer(); } }); b.setNegativeButton("Không", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); b.create().show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public View getView() { return super.getView(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void process(String key, int status, List<JSONObject> lst) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void initParamsForFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onResume() { int x = 0; x++; super.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPause() { int x = 0; x++; super.onPause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void sendData(JSONObject o) { addToProduct(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public JSONObject getData(JSONObject o) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean hasDataSource() { return _dataSource.size() > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void saveDataSource() { saveServerOffline(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onBackPressed() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Determines whether delete was confirmed or cancelled
@Override public void onClick(DialogInterface arg0, int arg1) { if (arg1 == DialogInterface.BUTTON_POSITIVE) { onDialogPositiveClick((DialogFragment) arg0); } else { onDialogNegativeClick((DialogFragment) arg0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Boolean confirmDeletion() {\n final AtomicReference<Boolean> reference = new AtomicReference<>(false);\n\n TopsoilNotification.showNotification(\n TopsoilNotification.NotificationType.VERIFICATION,\n \"Delete Table\",\n \"Do you really want to delete this table?\\n\"\n + \"This operation can not be undone.\"\n ).ifPresent(response -> {\n if (response == ButtonType.OK) {\n reference.set(true);\n }\n });\n\n return reference.get();\n }", "boolean hasDelete();", "boolean hasDelete();", "public boolean canBeDeleted() {\n\t\treturn System.currentTimeMillis() - dateTimeOfSubmission.getTime() < ACCEPT_CANCEL_TIME;\n\t}", "Boolean isConsumeDelete();", "boolean isCancelled();", "boolean hasForceDelete();", "protected boolean beforeDelete() {\n if (DOCSTATUS_Drafted.equals(getDocStatus())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n }", "boolean isDeleted();", "public boolean canDelete() throws GTClientException\n {\n return false;\n }", "protected boolean _isEventForSuccessfulDelete(final PersistenceOperationOKEvent opEvent) {\n\t\tPersistenceOperationOK opResult = opEvent.getResultAsOperationOK();\n\t\tboolean handle = _crudOperationOKEventFilter.hasTobeHandled(opEvent);\n\t\tif (!handle) return false;\n\t\t\n\t\treturn ((opResult.isCRUDOK()) \n\t\t\t && (opResult.as(CRUDOK.class).hasBeenDeleted()));\t\t\t\t\t\t\t\t// it's a delete event\n\t}", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "boolean hasDeleteBackUp();", "public void setConfirmDelete(boolean b) {\r\n\t\t_confirmDelete = b;\r\n\t}", "public boolean isDeleted();", "public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }", "private boolean actionDelete()\n {\n Debug.enter();\n onDeleteListener.onDelete();\n dismiss();\n Debug.leave();\n return true;\n }", "boolean hasDeletionProtection();", "public String getDeleteStatus() {\n return deleteStatus;\n }", "protected boolean afterDelete() {\n if (!DOCSTATUS_Drafted.equals(getDocStatus())) {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n } \n \n //C_AllocationLine\n String sql = \"DELETE FROM C_AllocationLine \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PaymentAllocate\n sql = \"DELETE FROM C_PaymentAllocate \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_VALORPAGO\n sql = \"DELETE FROM C_VALORPAGO \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTVALORES\n sql = \"DELETE FROM C_PAYMENTVALORES \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTRET\n sql = \"DELETE FROM C_PAYMENTRET \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n return true;\n\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }", "public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }", "public boolean hasDeleteAfterCompletion()\r\n\t{\r\n\t\treturn isDeleteAfterCompletion();\r\n\t}", "private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdeleteBookmark();\n\t\t\t}\n\t\t});\n\t\tdialog.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Pack and show\n\t\tAlertDialog alert = dialog.create();\n\t\talert.show();\n\t}", "public boolean isIsDelete() {\n return isDelete;\n }", "public void onConfirmFavouriteDeletion();", "public Integer getIsdelete() {\n\t\treturn isdelete;\n\t}", "boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void verifyDeleteRequestOnPopup() {\n getLogger().info(\"Verify to delete a request on the popup.\");\n boolean isCheckDeleteRequest = false;\n try {\n clickElement(deleteRequestBtn, \"click to deleteRequestBtn\");\n waitForClickableOfLocator(By.xpath(deleteRequestMenuStr));\n Thread.sleep(smallerTimeOut);\n sendKeyTextBox(findRequestEmpty1, \"Deleted the request\", \"send data to findRequestEmpty1\");\n isCheckDeleteRequest = clickElement(deleteRequestMenu, \"click to deleteRequestMenu\");\n if (isCheckDeleteRequest) {\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}", "boolean hasDeleteFile();", "boolean hasDeleteCharacteristic();", "public boolean isItDelete() {\n\t\treturn false;\n\t}", "public Integer getIsdelete() {\n return isdelete;\n }", "public void doDeleteconfirm ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tSet deleteIdSet = new TreeSet();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tString[] deleteIds = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (deleteIds == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile3\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdeleteIdSet.addAll(Arrays.asList(deleteIds));\n\t\t\tList deleteItems = new Vector();\n\t\t\tList notDeleteItems = new Vector();\n\t\t\tList nonEmptyFolders = new Vector();\n\t\t\tList roots = (List) state.getAttribute(STATE_COLLECTION_ROOTS);\n\t\t\tIterator rootIt = roots.iterator();\n\t\t\twhile(rootIt.hasNext())\n\t\t\t{\n\t\t\t\tBrowseItem root = (BrowseItem) rootIt.next();\n\n\t\t\t\tList members = root.getMembers();\n\t\t\t\tIterator memberIt = members.iterator();\n\t\t\t\twhile(memberIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem member = (BrowseItem) memberIt.next();\n\t\t\t\t\tif(deleteIdSet.contains(member.getId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(member.isFolder())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(ContentHostingService.allowRemoveCollection(member.getId()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t\t\tif(! member.isEmpty())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnonEmptyFolders.add(member);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ContentHostingService.allowRemoveResource(member.getId()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(! notDeleteItems.isEmpty())\n\t\t\t{\n\t\t\t\tString notDeleteNames = \"\";\n\t\t\t\tboolean first_item = true;\n\t\t\t\tIterator notIt = notDeleteItems.iterator();\n\t\t\t\twhile(notIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem item = (BrowseItem) notIt.next();\n\t\t\t\t\tif(first_item)\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames = item.getName();\n\t\t\t\t\t\tfirst_item = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if(notIt.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \", \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \" and \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taddAlert(state, rb.getString(\"notpermis14\") + notDeleteNames);\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\t\t\t//htripath-SAK-1712 - Set new collectionId as resources are not deleted under 'more' requirement.\n\t\t\t\t\tif(state.getAttribute(STATE_MESSAGE) == null){\n\t\t\t\t\t String newCollectionId=ContentHostingService.getContainingCollectionId(currentId);\n\t\t\t\t\t state.setAttribute(STATE_COLLECTION_ID, newCollectionId);\n\t\t\t\t\t}\n\t\t\t*/\n\n\t\t\t// delete item\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS, deleteItems);\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS_NOT_EMPTY, nonEmptyFolders);\n\t\t}\t// if-else\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tstate.setAttribute (STATE_MODE, MODE_DELETE_CONFIRM);\n\t\t\tstate.setAttribute(STATE_LIST_SELECTIONS, deleteIdSet);\n\t\t}\n\n\n\t}", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}", "public boolean isDeleted() {\n\t\treturn getStatus() == STATUS_DELETED;\n\t}", "@Override\n \tpublic boolean canDelete() {\n \t\treturn false;\n \t}", "boolean hasDeleteCampaign();", "public boolean isDeleteAfterCompletion()\r\n\t{\r\n\t\treturn deleteAfterCompletion;\r\n\t}", "public final boolean isForDelete() {\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"forDelete\");\n\t}", "private void checkDeleteable() {\n \t\tboolean oldIsDeleteable = isDeleteable;\n \t\tisDeleteable = isDeleteEnabled();\n \t\tif (oldIsDeleteable != isDeleteable) {\n \t\t\tfireEnablementChanged(DELETE);\n \t\t}\n \t}", "protected boolean deleted() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n } else if (state.isUpdated()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n }\n return false;\n }", "public boolean getDelete() {\n\t\t\treturn delete.get();\n\t\t}", "public boolean isDeleted() {\n return deleted != null;\n }", "@Override\r\n\tprotected boolean beforeDelete() {\r\n\t\t\r\n\t\tString valida = DB.getSQLValueString(null,\"SELECT DocStatus FROM C_Hes WHERE C_Hes_ID=\" + getC_Hes_ID());\r\n if (!valida.contains(\"DR\")){\r\n \t\r\n \tthrow new AdempiereException(\"No se puede Eliminar este documento por motivos de Auditoria\");\r\n\r\n }\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean hasForceDelete() {\n return forceDelete_ != null;\n }", "boolean isCancelled(){\n\t\treturn cancelled;\n\t}", "public String getIs_delete() {\n return is_delete;\n }", "public void onCancelFavouriteDeletion();", "public void notifyDeleteRequestState (COPSPdpOSReqStateMan man);", "boolean hasDeleteBlock();", "@Override\r\n\tpublic boolean isCutoffDelete() throws NotesApiException {\n\t\treturn false;\r\n\t}", "boolean isConfirmed(){\n\t\treturn confirmed;\n\t}", "public void deleteRequest(Request request) {\n String title = \"Confirm delete of request(Y/N): \";\n if (Validation.confirmAction(title)) {\n if (Database.deleteRequest(request)) System.out.println(\"Request deleted successfully\");\n else System.out.println(\"Failed to delete request\");\n }else System.out.println(\"Delete of request aborted\");\n }", "boolean isConfirmed();", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();", "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "protected abstract boolean isConfirmEnabled();", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public Boolean getIsdelete() {\r\n return isdelete;\r\n }", "public boolean isDeleted() {\n return deleted;\n }", "boolean hasDeleteBeacon();", "public Byte getIsDelete() {\n return isDelete;\n }", "public Byte getIsDelete() {\n return isDelete;\n }", "@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}", "protected boolean beforeDelete ()\n\t{\n\t\tlog.saveError(\"Error\", Msg.getMsg(getCtx(), \"CannotDelete\"));\n\t\treturn false;\n\t}", "public boolean isConfirmed() {\n return confirmed;\n }", "public abstract boolean confirm();", "public String getIsdelete() {\n return isdelete;\n }", "public String getIsdelete() {\n return isdelete;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "@Test(priority = 1, dependsOnMethods = \"createThingChild\")\n public void thingChildIsNotDeletedAfterCancelConfirmation(){\n int before = mainPage.countThingChilds();\n\n mainPage.cancelThingChildDelete();\n\n // count childs after delete\n int after = mainPage.countThingChilds();\n\n Assert.assertFalse(mainPage.isChildDeleted(before, after));\n }", "public boolean isOkToDelete() {\r\n // TODO - implement User.isOkToDelete\r\n throw new UnsupportedOperationException();\r\n }", "public boolean isDeleted() {\n\t\treturn deleted;\n\t}", "@Override\r\n\tpublic int deletedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.deleted\",vo);\r\n\t}", "public boolean hasUncompletedPendingDeletes() {\n return numUncompletedDeletes.get() > 0;\n }", "private boolean stabilizedOnDelete(\n final DeleteIndexRequest deleteIndexRequest,\n final DeleteIndexResponse deleteIndexResponse,\n final ProxyClient<KendraClient> proxyClient,\n final ResourceModel model,\n final CallbackContext callbackContext) {\n\n DescribeIndexRequest describeIndexRequest = DescribeIndexRequest.builder()\n .id(model.getId())\n .build();\n boolean stabilized;\n try {\n proxyClient.injectCredentialsAndInvokeV2(describeIndexRequest,\n proxyClient.client()::describeIndex);\n stabilized = false;\n } catch (ResourceNotFoundException e) {\n stabilized = true;\n }\n logger.log(String.format(\"%s [%s] deletion has stabilized: %s\", ResourceModel.TYPE_NAME, model.getPrimaryIdentifier(), stabilized));\n return stabilized;\n }", "public boolean onDelete(Session s) throws CallbackException;", "public void tryDelete() throws Exception {\r\n\t\tif (_confirmDelete && getPageDataStoresStatus() != DataStoreBuffer.STATUS_NEW) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToDeleteQuestion, _okToDeleteValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToDeleteQuestion, null, -1, _okToDelete);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoDelete();\r\n }\r\n\t}", "public Integer getDeleteflag() {\n return deleteflag;\n }", "public java.lang.Boolean getDeleted();", "@Override\n\tpublic boolean delete(int rno) {\n\t\treturn replyMapper.delete(rno)>0?true:false;\n\t}", "public final boolean isCancelled(){\n return cancel;\n }", "public boolean isCancelled() {\n return cancelled;\n }", "public boolean getDelete() {\n\t\treturn delete;\n\t}", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "public void showDeleteConfirmationAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setTitle(\"AlertDialog\");\n builder.setMessage(R.string.income_deletion_confirmation);\n\n // add the buttons\n builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mIncome.getReceiptPic() != null) {\n if (!mIncome.getReceiptPic().equals(\"\")) {\n new File(mIncome.getReceiptPic()).delete();\n }\n }\n mDatabaseHandler.setPaymentLogEntryInactive(mIncome);\n //IncomeListFragment.incomeListAdapterNeedsRefreshed = true;\n setResult(MainActivity.RESULT_DATA_WAS_MODIFIED);\n IncomeViewActivity.this.finish();\n }\n });\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n // create and show the alert mDialog\n mDialog = builder.create();\n mDialog.show();\n }", "private void deleteRequest() {\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode());\n\t\tmessageToServer.setOperation(\"DeleteRequest\");\n\t\tmessageToServer.setControllerName(\"PrincipalController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (res) {\n\t\t\t// success pop up\n\t\t\tTheRequestWasHandledSuccessfullyWindowController popUp = new TheRequestWasHandledSuccessfullyWindowController();\n\t\t\ttry {\n\t\t\t\tpopUp.start(new Stage());\n\t\t\t} catch (Exception e) {\n\t\t\t\tUsefulMethods.instance().printException(e);\n\t\t\t}\n\t\t} else {\n\t\t\tUsefulMethods.instance().display(\"error in deleting request!\");\n\t\t}\n\t}", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "public boolean deleteRenter(int id){\n String sql = \"SELECT agreementID FROM agreement WHERE renterID = ? && end_date>=curdate() && is_cancelled = 0\";\n int activeContracts;\n //confirmation of deletion set to true as default\n boolean confirmation = true;\n try {\n activeContracts = template.queryForObject(sql, Integer.class, id);\n //exactly 1 future/active contract were found\n //can't delete renter\n confirmation = false;\n } catch (EmptyResultDataAccessException e){\n //this exception is okay - no contracts for the renter and it can execute finally block to delete the renter\n } catch (IncorrectResultSizeDataAccessException e){\n //more than 1 future/active contracts were found\n //can't delete renter\n confirmation = false;\n } finally{\n if (confirmation) {\n //if renter doesn't have active/future contracts it deletes him\n sql = \"DELETE FROM renter WHERE renterID = ?\";\n template.update(sql, id);\n }\n //returns whether deletion has been completed or no\n return confirmation;\n }\n }", "public boolean isDeleted() {\n return (this == RecordStatusEnum.DELETED);\n }", "public boolean isCancelled() {\n return isCancelled;\n }", "public void deleteRequest() {\n assertTrue(true);\n }", "public Integer getIsdeleted() {\n return isdeleted;\n }", "protected boolean afterDelete() throws DBSIOException{return true;}", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder to display a confirmation message about deleting the book\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.editor_activity_delete_message);\n builder.setPositiveButton(getString(R.string.editor_activity_delete_message_positive),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Delete\"\n deleteBook();\n }\n });\n\n builder.setNegativeButton(getString(R.string.editor_activity_delete_message_negative),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Cancel\"\n if (dialogInterface != null)\n dialogInterface.dismiss();\n }\n });\n\n // Create and show the dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }" ]
[ "0.7378383", "0.7098697", "0.7098697", "0.7042347", "0.6981226", "0.6811385", "0.67649513", "0.6697342", "0.6673525", "0.66709125", "0.6668895", "0.6556214", "0.6556214", "0.6556214", "0.6506397", "0.6455165", "0.64548665", "0.6412085", "0.6407024", "0.63550526", "0.6346672", "0.63457996", "0.63252866", "0.63040686", "0.63002455", "0.62374794", "0.6215398", "0.61969894", "0.6196544", "0.6195568", "0.6194159", "0.6188968", "0.61700433", "0.6163139", "0.61589706", "0.6141368", "0.61328137", "0.6129902", "0.6125081", "0.6100217", "0.6099778", "0.608261", "0.60797787", "0.6074945", "0.6059547", "0.6059205", "0.60539365", "0.60526764", "0.6038929", "0.6030596", "0.6030115", "0.60222214", "0.6019389", "0.6015594", "0.601143", "0.6010842", "0.60095227", "0.600804", "0.6006315", "0.5997115", "0.5992749", "0.5990967", "0.5987168", "0.59811735", "0.5980503", "0.59792185", "0.5977389", "0.5976617", "0.5976617", "0.5955968", "0.59507006", "0.5947736", "0.5940567", "0.5933261", "0.5933261", "0.5902625", "0.5896787", "0.5895203", "0.5885504", "0.5883558", "0.5878668", "0.5877618", "0.5872642", "0.5871655", "0.5860958", "0.5860895", "0.58578783", "0.5847602", "0.58328635", "0.58279806", "0.5824268", "0.582426", "0.58116937", "0.58032334", "0.5794802", "0.57763517", "0.5775326", "0.5775162", "0.5773265", "0.5771805", "0.57715476" ]
0.0
-1
Delete was confirmed by clicking confirm on the dialog fragment
public void onDialogPositiveClick(DialogFragment dialog) { d.setSelectedPaths(d.getmAdapter().getCurrentPaths()); for (int i = 0; i < d.getSelectedPaths().size(); i++) { //File f = new File(d.getSelectedPaths().get(i)); //ASyncCopyFiles.DeleteRecursive(f); d.getmAdapter().remove(d.getSelectedPaths().get(i)); d.getmAdapter().notifyDataSetChanged(); } d.getSelectedPaths().clear(); Toast.makeText(d.getBaseContext(), "Delete successful", Toast.LENGTH_SHORT).show(); d.getMode().finish(); // Action picked, so close the CAB }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void showDeleteConfirmationAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setTitle(\"AlertDialog\");\n builder.setMessage(R.string.income_deletion_confirmation);\n\n // add the buttons\n builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mIncome.getReceiptPic() != null) {\n if (!mIncome.getReceiptPic().equals(\"\")) {\n new File(mIncome.getReceiptPic()).delete();\n }\n }\n mDatabaseHandler.setPaymentLogEntryInactive(mIncome);\n //IncomeListFragment.incomeListAdapterNeedsRefreshed = true;\n setResult(MainActivity.RESULT_DATA_WAS_MODIFIED);\n IncomeViewActivity.this.finish();\n }\n });\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n // create and show the alert mDialog\n mDialog = builder.create();\n mDialog.show();\n }", "private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdeleteBookmark();\n\t\t\t}\n\t\t});\n\t\tdialog.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Pack and show\n\t\tAlertDialog alert = dialog.create();\n\t\talert.show();\n\t}", "public void onPressDelete() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT)\r\n .show(getSupportFragmentManager(), null);\r\n }", "@Override\n public void onClickDelete() {\n new DeleteDialog(this.getActivity(), this).show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(mFragment.getActivity());\n\t\t\t\talertDialog.setTitle(mFragment.getResources().getString(R.string.confirm_deleting));\n\t\t\t\talertDialog.setMessage(mFragment.getResources().getString(R.string.are_you_sure_delete));\n\n\t\t\t\t// Setting Positive \"Yes\" Btn\n\t\t\t\talertDialog.setPositiveButton(mFragment.getResources().getString(R.string.yes),\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\n\t\t\t\t \tTheMissApplication.getInstance().showProgressFullScreenDialog(mFragment.getActivity());\n\t\t\t\t \t\n\t\t\t\t\t\t\t\tpost.deleteInBackground(new DeleteCallback(){\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tTheMissApplication.getInstance().hideProgressDialog();\n\t\t\t\t\t\t\t\t\t\tif(arg0 == null){\n\t\t\t\t\t\t\t\t\t\t\tmFlaggedPicturesList.remove(flaggedPicture);\n\t\t\t\t\t\t\t\t\t\t\tFlaggedPicturesListCellAdapter.this.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t// Setting Negative \"NO\" Btn\n\t\t\t\talertDialog.setNegativeButton(\"NO\",\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t }\n\t\t\t\t });\n\n\t\t\t\t// Showing Alert Dialog\n\t\t\t\talertDialog.show();\n\t\t\t}", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the fruit.\n deleteFruit();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the fruit.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteFav();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void onDelete() {\n if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName());\n showDialog(R.id.dialog_confirm_delete);\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder to display a confirmation message about deleting the book\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.editor_activity_delete_message);\n builder.setPositiveButton(getString(R.string.editor_activity_delete_message_positive),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Delete\"\n deleteBook();\n }\n });\n\n builder.setNegativeButton(getString(R.string.editor_activity_delete_message_negative),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Cancel\"\n if (dialogInterface != null)\n dialogInterface.dismiss();\n }\n });\n\n // Create and show the dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showConfirmDeletionDialog(){\n //give builder our custom dialog fragment style\n new AlertDialog.Builder(this, R.style.dialogFragment_title_style)\n .setMessage(getString(R.string.powerlist_confirmRemoval))\n .setTitle(getString(R.string.powerList_confirmRemoval_title))\n .setPositiveButton(getString(R.string.action_remove),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n myActionListener.userDeletingPowersFromList(\n PowerListActivity.this.adapter.getSelectedSpells());\n deleteButton.setVisibility(View.GONE);\n //tell adapter to switch selection mode off\n PowerListActivity.this.adapter.endSelectionMode();\n }\n })\n .setNegativeButton(getString(R.string.action_cancel), null)\n .show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.delete_book_warning);\r\n builder.setPositiveButton(R.string.delete_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n deletebook();\r\n }\r\n });\r\n builder.setNegativeButton(R.string.cancel_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n if (dialogInterface != null) {\r\n dialogInterface.dismiss();\r\n }\r\n }\r\n });\r\n\r\n //show alert dialog upon deletion\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.delete_dialog_msg);\r\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Delete\" button, so delete the pet.\r\n// deletePet();\r\n }\r\n });\r\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Cancel\" button, so dismiss the dialog\r\n // and continue editing.\r\n if (dialog != null) {\r\n dialog.dismiss();\r\n }\r\n }\r\n });\r\n\r\n // Create and show the AlertDialog\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the goal.\n deleteGoal();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteEmployee();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n // Set the message.\n builder.setMessage(R.string.delete_dialog_msg);\n\n // Handle the button clicks.\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteBook();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteBook();\n finish();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteBook();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void onConfirmFavouriteDeletion();", "private void actionDelete() {\r\n showDeleteDialog();\r\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deletePet();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showConfirmationDeleteDialog(\n DialogInterface.OnClickListener yesButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.are_you_sure);\n builder.setPositiveButton(R.string.yes, yesButtonClickListener);\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the Item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the book.\n deleteAllBooks();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the book.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg_course);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteCourse();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the inventory item.\n deleteItem();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the inventory item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteProduct();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the Product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void showDeleteConfirmationDialog(){\n //Create an AlertDialog.Builder and set the message, and click listeners\n //for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Delete this item?\");\n builder.setPositiveButton(\"Delete\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n //User clicked the \"Delete\" button, so delete the item.\n deleteItem();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n //User clicked the \"Cancel\" button, so dismiss the dialog\n //and continue editing the item.\n if(dialog != null){\n dialog.dismiss();\n }\n }\n });\n\n //Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the product.\n deleteProduct();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\r\n public void onClick(View v) {\n\t\t\t\tfinal Dialog confirmDialog = new Dialog(context, R.style.Dialog);\r\n\t\t\t\tconfirmDialog.setContentView(R.layout.question_delete);\r\n\t\t\t\tDisplay displaySize = ActivityUtil.getDisplaySize(getContext());\r\n\t\t\t\tconfirmDialog.getWindow().setLayout(displaySize.getWidth(), displaySize.getHeight());\r\n\t\t\t\tconfirmDialog.show();\r\n\t\t\t\t\r\n\t\t\t\t// Adding listeners on each button\r\n\t\t\t\tButton btCancel = (Button) confirmDialog.findViewById(R.id.bt_cancel);\r\n\t\t\t\tButton btConfirm = (Button) confirmDialog.findViewById(R.id.bt_confirm);\r\n \t\r\n btCancel.setOnClickListener(new CloseClickListenerUtil(confirmDialog));\r\n btConfirm.setOnClickListener(new Button.OnClickListener() {\r\n \t\r\n \tpublic void onClick(View v) {\r\n \t\t//\r\n // #91 XXX TODO: Add some error handling to check whether we really need to delete or not before we\r\n // incorrectly assume our REST call to the server worked.\r\n \t\ttry {\r\n\t\t\t\t\t\t\tSmilePlugServerManager spsm = new SmilePlugServerManager();\r\n String status = spsm.deleteQuestionInSessionByNumber(ip, context, currentQuestion);\r\n Toast.makeText(context, status, Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t} catch (NetworkErrorException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n Toast.makeText(context, \"Error deleting question, reason: \" + e.getMessage(), Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t}\r\n \t\t\r\n \t\t\tconfirmDialog.dismiss();\r\n \t\t\tdetailsDialog.dismiss();\r\n \t\t\t\r\n \t\t\t// QuestionsManager.addDeletedQuestionInLocalFile(context, currentQuestion);\r\n\t\t\t\t\t};\r\n });\r\n \t }", "public void showSucceedDeleteDialog() {\n\t\tString msg = getApplicationContext().getResources().getString(\n\t\t\t\tR.string.MSG_DLG_LABEL_DELETE_ITEM_SUCCESS);\n\t\tfinal AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\tthis);\n\t\talertDialogBuilder\n\t\t\t\t.setMessage(msg)\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\n\t\t\t\t\t\tgetApplicationContext().getResources().getString(\n\t\t\t\t\t\t\t\tR.string.MSG_DLG_LABEL_OK),\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(getIntent());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\talertDialog.show();\n\n\t}", "public void buttonDelete(View view) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_delete_confirmation)\n .setTitle(R.string.text_attention_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Delete the record confirmed\n deleteRecord();\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message\n // This also creates click listeners for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the phone.\n deletePhone();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the phone.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "void deleteDialog(){\r\n\t\tString title = getString(R.string.confirm);\r\n\t\tString message = getString(R.string.delete_message);\r\n\t\tString positive = getString(R.string.delete); \r\n\t\tString negative = getString(R.string.cancel);\r\n\t\t\r\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n \t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t // set the dialog message\r\n\t builder.setMessage(message);\r\n\t\t\r\n\t // set positive button\r\n\t builder.setPositiveButton(positive, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t\r\n\t \t// delete data from database if delete button clicked\r\n\t \tHomeActivity.dbPrograms.deleteData(ProgramID);\r\n\t \tToast.makeText(DetailProgramActivity.this, getString(R.string.success_delete), Toast.LENGTH_SHORT).show();\r\n\t \tgetSupportFragmentManager()\r\n\t\t\t\t.beginTransaction().\r\n\t\t\t\tremove(HomeActivity.programListFrag)\r\n\t\t\t\t.commit();\r\n\t \tfinish();\r\n\t }\r\n\t });\r\n\t \r\n\t // set negative button\r\n\t builder.setNegativeButton(negative, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t// close dialog if cancel button clicked\r\n\t \tdialog.dismiss();\r\n\t }\r\n\t });\r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_products_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the product.\n deleteAllProducts();\n }\n });\n builder.setNegativeButton(R.string.cancel, null);\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_all_products);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete products.\n deleteAllProducts();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void deleteItem(final int id){\n // Instantiate AlertDialog builder\n builder = new AlertDialog.Builder(context);\n\n // Inflate the confirmation dialog\n inflater = LayoutInflater.from(context);\n View view = inflater.inflate(R.layout.confirmation_popup, null);\n\n // Instantiate buttons\n Button noButton = view.findViewById(R.id.conf_no_button);\n Button yesButton = view.findViewById(R.id.conf_yes_button);\n\n builder.setView(view);\n dialog = builder.create();\n dialog.show();\n\n\n // When user confirms to delete, delete the task item and clear the dialog\n yesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // DatabaseHandler\n DatabaseHandler db1 = new DatabaseHandler(context, \"task_details\"); // MODIFIED JUNE 5TH\n\n // Delete the task from database\n db1.deleteTask(id);\n todoItems.remove(getAdapterPosition());\n notifyItemRemoved(getAdapterPosition());\n\n dialog.dismiss();\n }\n });\n\n // When user confirms not to delete, just get rid of the dialog\n noButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }", "@Override\n public void deleteClick(int pos) {\n deletePos = pos;\n DeleteApptDialog dialog = new DeleteApptDialog();\n dialog.show(getSupportFragmentManager(), \"example dialog\");\n }", "@Override\n\tpublic void onDialogPositiveClick(DialogFragment dialog) {\n\t\tString[] params = { Integer.toString(vh.getUser_id()),\n\t\t\t\tInteger.toString(vh.getVehicle_id()) };\n\t\tnew VehicleAsyncDelete(this, new DeleteVehicleTaskCompleteListener(), params)\n\t\t\t\t.execute();\n\t}", "private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}", "@Override\n public void onClick(View v) {\n FragmentManager fm = getFragmentManager();\n ConfirmDialogFragment cfDialog =\n ConfirmDialogFragment.getNewInstance(R.string.add_confirm, R.string.save_title);\n cfDialog.setTargetFragment(MemeViewFragment.this, REQUEST_CODE4);\n cfDialog.show(fm, CONFIRM);\n }", "public void handleUpdateItemDeleteButtonAction(ActionEvent event) {\n confirmHeader.setText(\"Confirm delete action\");\n String text = \"are you sure you want to update this item?\";\n confirmText.setText(text);\n confirmPane.setVisible(true);\n maskPane.setVisible(true);\n this.handleOnShowAnimation(confirmMessageHolderPane);\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@Override\n public void onClick(View v) {\n builder.setMessage(\"Are you sure you want to delete this?\")\n .setTitle(\"Warning\");\n\n // Add the buttons\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n Pokemon crtPokemon = database.PokemonDao().getEntries().get(index);\n database.PokemonDao().delete(crtPokemon);\n finish();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // 3. Get the AlertDialog from create()\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "private void confirmDeleteLog() {\n new AlertDialog.Builder(this)\n .setTitle(R.string.confirm_delete_log_title)\n .setMessage(R.string.confirm_delete_log_message)\n .setPositiveButton(R.string.btn_delete_log, (dialog, which) -> {\n service.deleteEntireAuditLog();\n dialog.dismiss();\n })\n .setNegativeButton(R.string.btn_cancel, (dialog, which) -> dialog.dismiss())\n .show();\n }", "public void onDelete(View view){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Are you sure you want to delete this item?\")\n\t\t .setCancelable(false)\n\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t dialog.cancel();\n\t\t }\n\t\t })\n\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t deleteItem();\n\t }\n\t });\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "private void deleteDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.warmhint));\n\t\tbuilder.setMessage(getString(R.string.changequestion2));\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdeleteAllTag();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\tgetString(R.string.successdelete),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "public void setConfirmDelete(boolean b) {\r\n\t\t_confirmDelete = b;\r\n\t}", "public void Confirm(){\n new AlertDialog.Builder(MapsActivity.this)\n .setTitle(\"Confirm Location\")\n .setMessage(\"Are you sure about this location?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "@Override\r\n public void onDialogPositiveConfirmation(int requestID) {\r\n switch (requestID) {\r\n case REQUEST_CONFIRMATION_DELETE_EVENT:\r\n deleteEvent();\r\n break;\r\n case REQUEST_CONFIRMATION_DELETE_PHOTO:\r\n deletePressedPhoto();\r\n break;\r\n case REQUEST_CONFIRMATION_DELETE_EVENT_CALENDAR_ENTRY:\r\n removeFromCalendar();\r\n break;\r\n case REQUEST_CONFIRMATION_ADD_EVENT_CALENDAR_ENTRY:\r\n addToCalendar();\r\n break;\r\n }\r\n }", "public void onClick(DialogInterface dialog, int id) {\n cbh.getSwipeToDeleteListener().deletePendingRow(position);\n }", "@FXML\n public void confirmStudentDelete(ActionEvent e) {\n Student s = handledStudent;\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Student will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this student?\";\n\n AlertHandler ah = new AlertHandler();\n\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteStudentFromDatabase(s);\n Cancel(new ActionEvent());\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }", "void onDeleteDataEntryDialogPositiveClick(DeleteDataEntryDialog dialog);", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getActivity(), \"Eliminacion cancelada \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n showDialog(DIALOG_DELETE);\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n showDialog(DIALOG_DELETE);\n }", "private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }", "public void deleteDialog(){\n AlertDialog ad = new AlertDialog.Builder(this).create();\n ad.setMessage(getString(R.string.del_message));\n ad.setButton(getString(R.string.del_btnPos),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n deleteTaleFromStorage();\n }\n });\n ad.setButton2(getResources().getString(R.string.del_btnNeg),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n ad.setCancelable(true);\n ad.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.deleteEntrenador) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n // set title\n //String alert_title = getResources().getString(\"Confirmación\");\n String alert_title = (getResources().getString(R.string.confirmation));\n String alert_description = (getResources().getString(R.string.areYouSure));\n alertDialogBuilder.setTitle(alert_title);\n\n // set dialog message\n alertDialogBuilder\n .setMessage(alert_description)\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.yes),new DialogInterface.OnClickListener() {\n // Lo que sucede si se pulsa yes\n public void onClick(DialogInterface dialog,int id) {\n\n try {\n Client myUserClient = null;\n do {\n myUserClient = ClientsFromEntrenadorSuperAdmin.this.searchEntrenador(selectedEntrenador.getObjectId());\n if (myUserClient != null) {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"entrenadorId\", selectedEntrenador.getObjectId());\n ParseCloud.callFunction(\"deleteEntrenadorDependencies\", params);\n }\n }while(myUserClient != null);\n\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"entrenadorId\", selectedEntrenador.getObjectId());\n ParseCloud.callFunction(\"deleteEntrenador\", params);\n\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n Intent i = new Intent(getApplicationContext(), SuperAdminDashboard.class);\n startActivity(i);\n finish();\n }\n\n\n })\n .setNegativeButton(getResources().getString(R.string.no),new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // Si se pulsa no no hace nada\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void confirmRemove(View view) {\n if(networkID == null || networkID.equals(\"Select a Network\"))\n {\n Toast.makeText(getApplicationContext(), \"You must select a network\", Toast.LENGTH_LONG).show();\n return;\n }\n if(gatewayID == null || gatewayID.length() == 0)\n {\n Toast.makeText(getApplicationContext(), \"You must select a gateway\", Toast.LENGTH_LONG).show();\n return;\n }\n AlertDialog.Builder alert = new AlertDialog.Builder(RemoveGatewayActivity.this);\n alert.setTitle(\"Delete\");\n alert.setMessage(\"Are you sure you want to delete \" + gatewayName + \"?\");\n\n alert.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n removeGateway();\n dialog.dismiss();\n }\n });\n\n alert.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n alert.show();\n }", "public String btn_confirm_delete_action()\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(\n getgermplasm$SementalSessionBean().getDeleteSemental());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n \n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n \n return null;\n }", "@Override\n public void onClick(View v) {\n AlertDialog dialogo = new AlertDialog\n .Builder(ModificarStockIngredienteActivity.this)\n .setPositiveButton(\"Sí, eliminar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ingreDAO.erase(ingrediente);\n onBackPressed();\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n })\n .setTitle(\"Confirmar\")\n .setMessage(\"Seguro que deseas eliminar ?\")\n .create();\n dialogo.show();\n\n }", "private void showDeleteDialog() {\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n View view = View.inflate(this, R.layout.delete_alert_dialog, null);\r\n builder.setView(view);\r\n TextView okBtn = (TextView) view.findViewById(R.id.alert_yes_button);\r\n TextView cancelBtn = (TextView) view.findViewById(R.id.alert_no_button);\r\n final AlertDialog deleteDialog = builder.create();\r\n deleteDialog.show();\r\n okBtn.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n // method to delete file after click on OK button\r\n deleteFile();\r\n deleteDialog.dismiss();\r\n }\r\n });\r\n cancelBtn.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n deleteDialog.dismiss();\r\n }\r\n });\r\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttableObjects.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tableObjects.getItem(data);\r\n\t\t\t\t\t\t\t\tConfirmDialog.Factory df = new DefaultConfirmDialogFactory() {\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t\t\t\tpublic ConfirmDialog create(String caption, String message, String okCaption,\r\n\t\t\t\t\t\t\t\t\t\t\tString cancelCaption, String notOkCaption) {\r\n\r\n\t\t\t\t\t\t\t\t ConfirmDialog d = super.create(caption,message,okCaption, cancelCaption, notOkCaption\r\n\t\t\t\t\t\t\t\t );\r\n\t\t\t\t\t\t\t\t // Change the order of buttons\r\n\t\t\t\t\t\t\t\t Button ok = d.getOkButton();\r\n\t\t\t\t\t\t\t\t HorizontalLayout buttons = (HorizontalLayout) ok.getParent();\r\n\t\t\t\t\t\t\t\t buttons.removeComponent(ok);\r\n\t\t\t\t\t\t\t\t buttons.addComponent(ok,1);\r\n\t\t\t\t\t\t\t\t buttons.setComponentAlignment(ok, Alignment.MIDDLE_RIGHT);\r\n\t\t\t\t\t\t\t\t return d;\r\n\t\t\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tConfirmDialog.setFactory(df);\t\t\r\n\t\t\t\t\t\t \tConfirmDialog.show(UI.getCurrent(), \"Delete Pack\", \"Are you sure delete all objects of this Pack ?\",\r\n\t\t\t\t\t\t \t \"Yes\", \"No\", new ConfirmDialog.Listener() {\r\n\r\n\t\t\t\t\t\t \t public void onClose(ConfirmDialog dialog) {\r\n\t\t\t\t\t\t \t if (dialog.isConfirmed()) {\r\n\r\n\t\t\t\t\t\t \t \t// Borramos el registro\r\n\t\t\t\t\t\t \t \ttry {\r\n\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tconexion = new Conexion();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tConnection con = conexion.getConnection();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tStatement statement = con.createStatement();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tObject rowId = tableObjects.getValue(); // get the selected rows id\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tInteger id = (Integer)tableObjects.getContainerProperty(rowId,\"IdObject\").getValue();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tString cadena = \"DELETE ObjectBYPacks WHERE IDpack =\" + String.valueOf(id); \r\n\t\t\t\t\t\t \t \t\t\t\t\t\tstatement.executeUpdate(cadena);\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tstatement.close();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tcon.close();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\ttableObjects.removeItem(rowId);\r\n\r\n\t\t\t\t\t\t \t \t\t\t\t\tnew Notification(\"Process OK\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t\"Object deleted\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t.show(Page.getCurrent());\r\n\t\t\t\t\t\t \t \t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t } catch (SQLException e) {\r\n\t\t\t\t\t\t \t \t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t \t \t\t \te.printStackTrace();\r\n\t\t\t\t\t\t \t \t\t \tnew Notification(\"Got an exception!\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\te.getMessage(),\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\tNotification.Type.ERROR_MESSAGE, true)\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t.show(Page.getCurrent());\r\n\t\t\t\t\t\t \t \t\t \t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t}\r\n\t\t\t\t\t\t \t } \r\n\t\t\t\t\t\t \t }\r\n\t\t\t\t\t\t \t });\r\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tAlertDialog.Builder alertbox = new AlertDialog.Builder(MainActivity.this);\n\t\t\t\talertbox.setCancelable(true);\n\t\t\t\talertbox.setMessage(\"Are you sure you want to delete ?\");\n\t\t\t\tSystem.out.println(\"Inside 2 OnClickListener() !!!!\");\n\t\t\t\t\n\t\t\t\talertbox.setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\n\t\t\t\t\t\t\t\t//Intent shopIntent = new Intent(ShopActivity.this,ShopActivity.class);\n\t\t\t\t\t\t\t\t//featuredIntent.putExtra(EXTRA_MESSAGE, message);\n\t\t\t\t\t\t\t\t//startActivity(shopIntent);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Inside Click !!!!\");\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\"Record Deleted...\",\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\talertbox.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\talertbox.show();\n\t\t\t\t\n\t\t\t}", "private void deleteShoppingList() {\n //Dialog to confirm delete\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getResources().getString(R.string.dialog_title))\n .setMessage(getResources().getString(R.string.dialog_message))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Se elimina la lista de la compra\n shoppingLists.remove(position);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //go to home fragment\n Fragment homeFragement = new HomeFragment();\n navigationController.changeFragment(getActivity(), homeFragement, null, Constants.HOME_STATES.HOME_STATE);\n }\n })\n .setNegativeButton(\"CANCELAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).show();\n }", "private AlertDialog showDeleteConfirmationDialog(Activity activity)\n {\n AlertDialog alertDialog = new AlertDialog.Builder(activity)\n // set message, title, and icon\n .setTitle(\"Delete\")\n .setMessage(\"Do you want to delete the selection?\")\n .setIcon(android.R.drawable.ic_menu_delete)\n .setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n if(imageFile != null) {\n Toast.makeText(getApplicationContext(),\"Deleting image...\"+imageFile.getName(), Toast.LENGTH_SHORT).show();\n GalleryUtil.deleteImage(imageFile);\n GalleryFragment.listImageModel.remove(currentPosition);\n GalleryFragment.gridAdapter.notifyDataSetChanged();\n activity.finish();\n }\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n dialog.dismiss();\n }\n })\n .create();\n\n return alertDialog;\n }", "private void showDeleteDialog(String yesLabel, String noLabel, String messageText, final int parameterId){\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AppTheme_Dialog));\n builder.setMessage(messageText)\n .setPositiveButton(yesLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n new DeleteAquariumTask(parameterId).execute();\n }\n })\n .setNegativeButton(noLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "public void deleteChapterWarningFragmentDoPositiveClick() {\n chapterManager.removeChapter();\n finish();\n }", "public void onPressRemoveFromCalendar() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event_calendar_entry))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT_CALENDAR_ENTRY)\r\n .show(getSupportFragmentManager(), null);\r\n }", "private void confirmar(){\n\n cliente = new Cliente();\n\n if (validaCampos() == false){\n\n cliente.idade = Integer.parseInt(edtIdade.getText().toString());\n try {\n\n clienteRepositorio.inserir(cliente);\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n finish();\n dlg.setTitle(\"Sucess\");\n dlg.setMessage(\"Cadastro realizado com sucesso\");\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }\n }", "public void onDeleteButton(View view){\n if (db.getAllRecipes().size() <= 0) {\n Toast.makeText(this, \"There are no recipes in database!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n // We have to add a confirmation here before delete all recipes.\n AlertDialog.Builder dialog = new AlertDialog.Builder(RecipesActivity.this);\n dialog.setTitle(\"Delete?\")\n .setMessage(\"Are you sure you want to delete ALL recipes?\")\n .setNegativeButton(\"Cancel\", null)\n .setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int which) {\n /// Remove all recipes from database\n db.deleteAll();\n recipes.clear();\n adapter.notifyDataSetChanged();\n }\n })\n .setIcon(R.drawable.ic_dialog_alert)\n .show();\n }", "public static Boolean confirmDeletion() {\n final AtomicReference<Boolean> reference = new AtomicReference<>(false);\n\n TopsoilNotification.showNotification(\n TopsoilNotification.NotificationType.VERIFICATION,\n \"Delete Table\",\n \"Do you really want to delete this table?\\n\"\n + \"This operation can not be undone.\"\n ).ifPresent(response -> {\n if (response == ButtonType.OK) {\n reference.set(true);\n }\n });\n\n return reference.get();\n }", "public ConfirmDialogPage pressDeleteButton() {\n controls.getDeleteButton().click();\n return new ConfirmDialogPage();\n }", "@Override\n public void onClick(View v) {\n dialog.dismiss();\n Delete_Email delete_email = new Delete_Email();\n delete_email.execute();\n }", "void confirm();", "private void simpleConfirmRequest(int title, int message, boolean showCancel){\n // Set up the fragment.\n FragmentManager mgr = null;\n try {\n mgr = getActivity().getSupportFragmentManager();\n } catch (Exception ex) { return; }\n Fragment fragment = mgr.findFragmentByTag(KY_SIMPLE_CONFIRM_FRAG);\n if (fragment != null) { // Clear out the previous use.\n mgr.beginTransaction().remove(fragment).commit();\n }\n // Launch the confirmation.\n DialogFragment submitFrag = new SimpleConfirmDialog(title, message, !showCancel);\n submitFrag.show(mgr, KY_SIMPLE_CONFIRM_FRAG);\n }", "@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n appViewModel.eliminarDireccion(userId, direccion.direccion, direccion.telefono);\n }", "private void showDeleteAlert(final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater layoutInflater = LayoutInflater.from(this);\n final View view = layoutInflater.inflate(R.layout.unfollow_alert_dialog, null);\n TextView tvDialogContent = (TextView) view.findViewById(R.id.dialog_content);\n tvDialogContent.setText(getResources().getString(R.string.delete_topic_message));\n builder.setView(view);\n\n Button yesBtn = (Button) view.findViewById(R.id.yes_btn);\n Button noBtn = (Button) view.findViewById(R.id.no_btn);\n\n yesBtn.setText(getString(R.string.yes));\n noBtn.setText(getString(R.string.no));\n\n final AlertDialog alertDialog = builder.create();\n alertDialog.setCancelable(false);\n alertDialog.show();\n\n yesBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n deleteMagazine(title);\n }\n });\n\n\n noBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish(); // go back to previous activity when item not cascade deleted\n\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not confirmed\",\n Toast.LENGTH_SHORT).show();\n }", "public void onCancelFavouriteDeletion();", "@FXML\n private void confirmDeletionOfRecords(){\n ObservableList<Record> recordsToBeDeleted = tbvRecords.getSelectionModel().getSelectedItems();\n\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Record(s) will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this data?\";\n AlertHandler ah = new AlertHandler();\n\n if(recordsToBeDeleted.isEmpty()){\n ah.getTableError();\n }\n else{\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteRecordsFromDatabase(recordsToBeDeleted);\n populateRecords();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }}", "@Override\n public void onClick(View view) {\n if(myUid.equals(uid)){\n // show deletr dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getRootView().getContext());\n builder.setTitle(\"Delete Comments\");\n builder.setMessage(\"Are You Serious Delete This ?\");\n builder.setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n deleteComments(cid);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n builder.create().show();\n }else{\n // not my comment\n Toast.makeText(context, \"Can't Delete Other User Post...\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttablePacks.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tablePacks.getItem(data);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tConfirmDialog.Factory df = new DefaultConfirmDialogFactory() {\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t\t\t\tpublic ConfirmDialog create(String caption, String message, String okCaption,\r\n\t\t\t\t\t\t\t\t\t\t\tString cancelCaption, String notOkCaption) {\r\n\r\n\t\t\t\t\t\t\t\t ConfirmDialog d = super.create(caption,message,okCaption, cancelCaption, notOkCaption\r\n\t\t\t\t\t\t\t\t );\r\n\t\t\t\t\t\t\t\t // Change the order of buttons\r\n\t\t\t\t\t\t\t\t Button ok = d.getOkButton();\r\n\t\t\t\t\t\t\t\t HorizontalLayout buttons = (HorizontalLayout) ok.getParent();\r\n\t\t\t\t\t\t\t\t buttons.removeComponent(ok);\r\n\t\t\t\t\t\t\t\t buttons.addComponent(ok,1);\r\n\t\t\t\t\t\t\t\t buttons.setComponentAlignment(ok, Alignment.MIDDLE_RIGHT);\r\n\t\t\t\t\t\t\t\t return d;\r\n\t\t\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\tConfirmDialog.setFactory(df);\t\t\r\n\t\t\t\t\t\t \tConfirmDialog.show(UI.getCurrent(), \"Delete Objects by Pack\", \"Are you sure delete objects of this pack ?\",\r\n\t\t\t\t\t\t \t \"Yes\", \"No\", new ConfirmDialog.Listener() {\r\n\r\n\t\t\t\t\t\t \t public void onClose(ConfirmDialog dialog) {\r\n\t\t\t\t\t\t \t if (dialog.isConfirmed()) {\r\n\r\n\t\t\t\t\t\t \t \t// Borramos el registro\r\n\t\t\t\t\t\t \t \ttry {\r\n\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tconexion = new Conexion();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tConnection con = conexion.getConnection();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tStatement statement = con.createStatement();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tObject rowId = tablePacks.getValue(); // get the selected rows id\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tInteger id = (Integer)tablePacks.getContainerProperty(rowId,\"IdPack\").getValue();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tString cadena = \"DELETE ObjectbyPacks WHERE idpack =\" + String.valueOf(id); \r\n\t\t\t\t\t\t \t \t\t\t\t\t\tstatement.executeUpdate(cadena);\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tstatement.close();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\tcon.close();\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\ttablePacks.removeItem(rowId);\r\n\r\n\t\t\t\t\t\t \t \t\t\t\t\tnew Notification(\"Process OK\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t\"Objects by Pack deleted\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t.show(Page.getCurrent());\r\n\t\t\t\t\t\t \t \t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t } catch (SQLException e) {\r\n\t\t\t\t\t\t \t \t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t \t \t\t \te.printStackTrace();\r\n\t\t\t\t\t\t \t \t\t \tnew Notification(\"Got an exception!\",\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\te.getMessage(),\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\tNotification.Type.ERROR_MESSAGE, true)\r\n\t\t\t\t\t\t \t \t\t\t\t\t\t\t.show(Page.getCurrent());\r\n\t\t\t\t\t\t \t \t\t \t\r\n\t\t\t\t\t\t \t \t\t\t\t\t\r\n\t\t\t\t\t\t \t \t\t\t\t}\r\n\t\t\t\t\t\t \t } \r\n\t\t\t\t\t\t \t }\r\n\t\t\t\t\t\t \t });\r\n\r\n\t\t\t\t\t\t\t\t}", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final Stave selectedComposition = compositions.get(position);\n\n AlertDialog.Builder deleteConfirmationDialog = new AlertDialog.Builder(getActivity());\n deleteConfirmationDialog.setTitle(getString(R.string.delete_composition_title) + selectedComposition.getName() + getString(R.string.question_mark));\n\n deleteConfirmationDialog.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int buttonId) {\n // Tell the listener and close this fragment...\n\n // Close the fragment...\n // Looked up the following line at https://stackoverflow.com/questions/5901298/how-to-get-a-fragment-to-remove-itself-i-e-its-equivalent-of-finish\n getActivity().getFragmentManager().beginTransaction().remove(OpenCompositionFragment.this).commit();\n\n\n if (listener != null) {\n // Tell the listener about the deletion...\n listener.compositionMarkedForDeletionFromFragment(OpenCompositionFragment.this, selectedComposition);\n }\n\n }\n });\n\n deleteConfirmationDialog.setNegativeButton(R.string.cancel, null);\n\n deleteConfirmationDialog.show();\n\n return true;\n }", "private void showConfirmClearDialog() {\n AlertDialog.Builder dialog = new AlertDialog.Builder(getActivity());\n dialog.setTitle(res.getString(R.string.dialog_clear_sale));\n dialog.setPositiveButton(res.getString(R.string.no), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n\n dialog.setNegativeButton(res.getString(R.string.clear), new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n register.cancleSale();\n update();\n }\n });\n\n dialog.show();\n }", "public void onClick(DialogInterface dialog, int id) {\n Pokemon crtPokemon = database.PokemonDao().getEntries().get(index);\n database.PokemonDao().delete(crtPokemon);\n finish();\n }", "@FXML\n void confirmDelete () {\n\n// cycles through all Elements to be deleted\n for (Element element : app.deleteElements) {\n\n// if it is a Timeline, it removes it\n if (element instanceof Timeline) {\n app.timelines.remove(element);\n }\n\n// if it is an Event, it finds the relevant Timeline, then removes the Event\n if (element instanceof Event) {\n for (Timeline timeline : app.timelines) {\n if (timeline == ((Event) element).timeline) {\n timeline.events.remove(element);\n }\n }\n }\n }\n\n exitDeleteWindow();\n\n// creates a message for the user\n setMessage(\"Exited Delete Mode: \" + app.deleteElements.size() + \" elements deleted\", false);\n }", "public void onConfirmPressed(Uri uri) {\n if (mListener != null) {\n mListener.onFragmentInteraction(0);\n }\n }", "@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}", "public void onClick(DialogInterface dialog,int which) {\n new deleteBook().execute();\n }", "public void handleUpdateCopyDeleteButtonAction(ActionEvent event) {\n confirmHeader.setText(\"Confirm delete action\");\n String text = \"are you sure you want to update this copy?\";\n confirmText.setText(text);\n confirmPane.setVisible(true);\n maskPane.setVisible(true);\n this.handleOnShowAnimation(confirmMessageHolderPane);\n }", "private void deleteitem() {\n if (mCurrentItemInfoUri != null) {\n DialogInterface.OnClickListener yesButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mProgressbarView.setVisibility(View.VISIBLE);\n ContentValues values = null;\n new updateDeleteItemToDbTask().execute(values);\n }\n };\n // Show dialog that there are unsaved changes\n showConfirmationDeleteDialog(yesButtonClickListener);\n }\n }", "public void deleteRelationshipDialog() { new DeleteRelationshipDialog(); }", "public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogDeletePartPositiveClick(DeletePartDialogFragment.this, lesson_part_id);\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n final Dialog dialog;\n dialog = new AlertDialog.Builder(this).setMessage(\n \"Are you sure you want to delete \" + listOfMyPalaces.getPalace(palacePosition).getName() + \" ?\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.out.println(listOfMyPalaces + \" \" + palacePosition);\n listOfMyPalaces.deletePalace(palacePosition, getApplicationContext());\n finish();\n startActivity(new Intent(MyPalaceDetail.this, ViewPalaceList.class));\n }\n })\n .setNegativeButton(\"No\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }\n }).create();\n return dialog;\n\n }" ]
[ "0.82293224", "0.7751875", "0.76689404", "0.76220316", "0.74933994", "0.7439765", "0.7433281", "0.74190295", "0.7403504", "0.7388704", "0.73762345", "0.73662597", "0.73577386", "0.73372966", "0.73362905", "0.7286579", "0.7267419", "0.72663033", "0.72544116", "0.7247839", "0.72414404", "0.7232105", "0.72239816", "0.71922433", "0.7182296", "0.7181736", "0.7173207", "0.71600735", "0.7138631", "0.7136187", "0.7116051", "0.7111339", "0.7109085", "0.7104093", "0.707652", "0.70222783", "0.6993337", "0.6992076", "0.6983589", "0.69633204", "0.69420934", "0.6937655", "0.6933107", "0.6927492", "0.6918316", "0.6902604", "0.687666", "0.6862049", "0.6854013", "0.68360317", "0.6833922", "0.6808048", "0.679399", "0.6788366", "0.6784389", "0.6750555", "0.6739433", "0.6739433", "0.6723721", "0.67122555", "0.6696035", "0.6690529", "0.66700995", "0.664241", "0.66279995", "0.6624888", "0.65902084", "0.65872335", "0.6584164", "0.65825886", "0.6573729", "0.656766", "0.6550371", "0.65458226", "0.65396166", "0.6530156", "0.6530122", "0.6524737", "0.6493049", "0.6487064", "0.6485018", "0.6481044", "0.64661056", "0.6462019", "0.64544326", "0.64443654", "0.64398694", "0.64386684", "0.64354134", "0.6433156", "0.64244545", "0.64241594", "0.64229363", "0.6422076", "0.6420776", "0.6417351", "0.6415537", "0.641287", "0.64076185", "0.6404846", "0.64027977" ]
0.0
-1
Delete cancelled by selecting cancel on the dialog fragment
public void onDialogNegativeClick(DialogFragment dialog) { d.getMode().finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCancel(DialogInterface arg0) {\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getActivity(), \"Eliminacion cancelada \", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n cbh.getSwipeToDeleteListener().cancelPendingRow(null, 0, false);\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n cbh.getSwipeToDeleteListener().deletePendingRow(position);\n }", "@Override\n public void onClickDelete() {\n new DeleteDialog(this.getActivity(), this).show();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish(); // go back to previous activity when item not cascade deleted\n\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "private void actionDelete() {\r\n showDeleteDialog();\r\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void onClick(DialogInterface dialog, int which) {\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "private void deleteDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.warmhint));\n\t\tbuilder.setMessage(getString(R.string.changequestion2));\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdeleteAllTag();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\tgetString(R.string.successdelete),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(MainActivity.this,\"Su registro se ha cancelado\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog,int which) {\n new deleteBook().execute();\n }", "public void onDelete() {\n if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName());\n showDialog(R.id.dialog_confirm_delete);\n }", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n \n\n bookMarkList.remove(selectedItem);\n iadapter.notifyDataSetChanged();\n // Toast.makeText(getApplicationContext(),\"delete\"+ valuebpage+ \" name is \"+ valuebname,Toast.LENGTH_LONG).show();\n // dialogBookmark.dismiss();\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id){\n deleteItem();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(mFragment.getActivity());\n\t\t\t\talertDialog.setTitle(mFragment.getResources().getString(R.string.confirm_deleting));\n\t\t\t\talertDialog.setMessage(mFragment.getResources().getString(R.string.are_you_sure_delete));\n\n\t\t\t\t// Setting Positive \"Yes\" Btn\n\t\t\t\talertDialog.setPositiveButton(mFragment.getResources().getString(R.string.yes),\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\n\t\t\t\t \tTheMissApplication.getInstance().showProgressFullScreenDialog(mFragment.getActivity());\n\t\t\t\t \t\n\t\t\t\t\t\t\t\tpost.deleteInBackground(new DeleteCallback(){\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tTheMissApplication.getInstance().hideProgressDialog();\n\t\t\t\t\t\t\t\t\t\tif(arg0 == null){\n\t\t\t\t\t\t\t\t\t\t\tmFlaggedPicturesList.remove(flaggedPicture);\n\t\t\t\t\t\t\t\t\t\t\tFlaggedPicturesListCellAdapter.this.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t// Setting Negative \"NO\" Btn\n\t\t\t\talertDialog.setNegativeButton(\"NO\",\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t }\n\t\t\t\t });\n\n\t\t\t\t// Showing Alert Dialog\n\t\t\t\talertDialog.show();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteRecord();\n }", "void onDeleteDataEntryDialogPositiveClick(DeleteDataEntryDialog dialog);", "public void onClick(DialogInterface dialog, int which) {\n actuallyRemove();\n // startQuery();\n // mListView.requestLayout();\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n appViewModel.eliminarDireccion(userId, direccion.direccion, direccion.telefono);\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}", "void deleteDialog(){\r\n\t\tString title = getString(R.string.confirm);\r\n\t\tString message = getString(R.string.delete_message);\r\n\t\tString positive = getString(R.string.delete); \r\n\t\tString negative = getString(R.string.cancel);\r\n\t\t\r\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t \r\n \t// set the dialog title\r\n\t builder.setTitle(title);\r\n\t // set the dialog message\r\n\t builder.setMessage(message);\r\n\t\t\r\n\t // set positive button\r\n\t builder.setPositiveButton(positive, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t\r\n\t \t// delete data from database if delete button clicked\r\n\t \tHomeActivity.dbPrograms.deleteData(ProgramID);\r\n\t \tToast.makeText(DetailProgramActivity.this, getString(R.string.success_delete), Toast.LENGTH_SHORT).show();\r\n\t \tgetSupportFragmentManager()\r\n\t\t\t\t.beginTransaction().\r\n\t\t\t\tremove(HomeActivity.programListFrag)\r\n\t\t\t\t.commit();\r\n\t \tfinish();\r\n\t }\r\n\t });\r\n\t \r\n\t // set negative button\r\n\t builder.setNegativeButton(negative, new DialogInterface.OnClickListener() {\r\n\t @Override\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t// close dialog if cancel button clicked\r\n\t \tdialog.dismiss();\r\n\t }\r\n\t });\r\n\r\n\t // show dialog\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.show();\r\n\t}", "void onCancelClicked();", "@Override\n\tpublic void onDialogPositiveClick(DialogFragment dialog) {\n\t\tString[] params = { Integer.toString(vh.getUser_id()),\n\t\t\t\tInteger.toString(vh.getVehicle_id()) };\n\t\tnew VehicleAsyncDelete(this, new DeleteVehicleTaskCompleteListener(), params)\n\t\t\t\t.execute();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t \t dialog.dismiss();\r\n\t\t\t\t\t\t \t new RemoveView(index).execute();\r\n\t\t\t\t\t\t \t \r\n\t\t\t\t\t\t }", "public void deleteDialog(){\n AlertDialog ad = new AlertDialog.Builder(this).create();\n ad.setMessage(getString(R.string.del_message));\n ad.setButton(getString(R.string.del_btnPos),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n deleteTaleFromStorage();\n }\n });\n ad.setButton2(getResources().getString(R.string.del_btnNeg),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n ad.setCancelable(true);\n ad.show();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteItem();\n }", "void onDeleteDataEntryDialogNegativeClick(DeleteDataEntryDialog dialog);", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Ok il reste dans la liste alors\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n showDialog(DIALOG_DELETE);\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n showDialog(DIALOG_DELETE);\n }", "public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogDeletePartNegativeClick(DeletePartDialogFragment.this);\n }", "public void cancelRemove(View view) {\n prgDialog.dismiss();\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteBook();\n finish();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n new AgendamentoDAO(MainActivity.this).delete(agendamentos.get(position));\n\n // Remover o item da lista de agendamentos que está em memória\n agendamentos.remove(position);\n\n // Atualizar lista\n adapter.notifyItemRemoved(position);\n\n // Avisar o usuário\n Toast.makeText(MainActivity.this, R.string.agendamento_excluido, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int buttonId) {\n getActivity().getFragmentManager().beginTransaction().remove(OpenCompositionFragment.this).commit();\n\n\n if (listener != null) {\n // Tell the listener about the deletion...\n listener.compositionMarkedForDeletionFromFragment(OpenCompositionFragment.this, selectedComposition);\n }\n\n }", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(ListClientes.this, \"Sincronizacion cancelada \", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tString[] strArray = { mSpinner\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem().toString() };\n\t\t\t\t\t\t\t\t\tmWebDao.delete(strArray);\n\t\t\t\t\t\t\t\t\tlist.remove(mSpinner\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItemPosition());\n\t\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n Pokemon crtPokemon = database.PokemonDao().getEntries().get(index);\n database.PokemonDao().delete(crtPokemon);\n finish();\n }", "public void onDialogPositiveClick(DialogFragment dialog) {\n\t\td.setSelectedPaths(d.getmAdapter().getCurrentPaths());\n\t\tfor (int i = 0; i < d.getSelectedPaths().size(); i++) {\n\t\t\t//File f = new File(d.getSelectedPaths().get(i));\n\t\t\t//ASyncCopyFiles.DeleteRecursive(f);\n\t\t\td.getmAdapter().remove(d.getSelectedPaths().get(i));\n\t\t\td.getmAdapter().notifyDataSetChanged();\n\t\t}\n\t\td.getSelectedPaths().clear();\n\t\tToast.makeText(d.getBaseContext(), \"Delete successful\",\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\td.getMode().finish(); // Action picked, so close the CAB\n\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n deleteFile(tableId);\n dialog.dismiss();\n EditTable.super.onBackPressed();\n }", "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(getContext(), \"Se cancelo la finalizacion\", Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tif (layout == R.layout.diaplay_dialog)\n\t\t\t\t\tpersonService.delete(data);\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()){\n case R.id.remove_yes_id:\n DBConnection dbConnection=new DBConnection(removeView.getContext());\n if(dbConnection.remove(id,type)==1){\n Toast.makeText(getActivity(),type+\" has been removed successfully\",Toast.LENGTH_LONG).show();\n updateFragment(CAT_ID);\n dismiss();\n }else{\n Toast.makeText(getActivity(),\"Remove Error \",Toast.LENGTH_LONG).show();\n dismiss();\n }\n break;\n case R.id.remove_cancel_id:\n dismiss();\n break;\n }\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dialog_member.dismiss();\n bookingasHost.Vol_CancelBooking(MemberList.get(position).getHostId());\n\n }", "@Override\n public void onDelete() {\n mDialog.dismiss();\n ((FrameLayout) getParent()).removeView(this);\n }", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n subjectDAO.deleteFridayEntry(employee);\r\n subjectListAdapter.remove(employee);\r\n Toast.makeText(getActivity(), \"Subject Deleted\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n super.onCancel(dialog);\n Log.d(TAG,\"Dialog cancelled!\");\n }", "@Override\n public void onClick(View v) {\n AlertDialog dialogo = new AlertDialog\n .Builder(ModificarStockIngredienteActivity.this)\n .setPositiveButton(\"Sí, eliminar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ingreDAO.erase(ingrediente);\n onBackPressed();\n }\n })\n .setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n })\n .setTitle(\"Confirmar\")\n .setMessage(\"Seguro que deseas eliminar ?\")\n .create();\n dialogo.show();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteCourse();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteBook();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteBook();\n }", "@Override\n public void deleteClick(int pos) {\n deletePos = pos;\n DeleteApptDialog dialog = new DeleteApptDialog();\n dialog.show(getSupportFragmentManager(), \"example dialog\");\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteHoliday(hObj);\n\n }" ]
[ "0.7648417", "0.7645881", "0.75495404", "0.74928796", "0.74705213", "0.7462025", "0.7379206", "0.7350084", "0.7339744", "0.7332173", "0.7320268", "0.73063684", "0.729126", "0.7215279", "0.7213308", "0.7200114", "0.7198055", "0.7189265", "0.71725696", "0.7170573", "0.71677023", "0.71672213", "0.7156761", "0.7150604", "0.712023", "0.712023", "0.71129274", "0.71084136", "0.7106184", "0.70957714", "0.70920813", "0.70897394", "0.70835125", "0.7078654", "0.7077874", "0.70751286", "0.7074711", "0.70640135", "0.70612866", "0.70569533", "0.70568144", "0.70509505", "0.70405513", "0.7036566", "0.70321304", "0.70242333", "0.70205444", "0.7015493", "0.70153326", "0.7014641", "0.70129293", "0.70074105", "0.7005405", "0.70020247", "0.70010674", "0.698826", "0.698826", "0.69790804", "0.6973409", "0.6971812", "0.69682705", "0.6963835", "0.6963428", "0.6963428", "0.6963428", "0.6963428", "0.6963428", "0.6955751", "0.6955452", "0.69395185", "0.69395185", "0.69395185", "0.69359374", "0.6929916", "0.69246227", "0.6924137", "0.6918988", "0.6917339", "0.6917253", "0.6911111", "0.6907175", "0.690466", "0.68971235", "0.68946636", "0.68918544", "0.68895775", "0.6882127", "0.6881663", "0.68764305", "0.68754387", "0.68732363", "0.68688995", "0.68684596", "0.6866812", "0.6865525", "0.6863253", "0.6854844", "0.6854844", "0.6854674", "0.6852449", "0.685199" ]
0.0
-1
addedToWorld adds the label to the world
public void addedToWorld(World w){ PauseWorld world = (PauseWorld) w; world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addedToWorld(World world) \n {\n createImages();\n }", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "public void addedToWorld(World w) {\r\n\t\tupdate();\r\n\t}", "public void addToWorld(World world);", "@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}", "public void addedToWorld (World w)\n {\n w.addObject (healthBar, this.getX(), this.getY()-60);\n world = (MyWorld) w;\n healthBar.update(health);\n }", "String addLabel(String label);", "void addObjLabel(ObjLabel objLabel) {\n\n //make sure the Object gets notified of mouse movements\n objCanvas.addEventHandler(MouseEvent.MOUSE_MOVED, objLabel);\n objCanvas.drawLabel(objLabel);\n }", "public abstract Code addLabel(String label);", "public void processAddLabel() {\n AppTextEnterDialogSingleton dialog = AppTextEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Label\", \"Enter text of the label to add:\");\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LABEL_MODE);\n }", "public abstract void addLabel(String str);", "public void onWorldChanged(World world);", "public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n } catch(IndexOutOfBoundsException e){\n MessageDisplayer.showMessage(\"The new LinkIndic didn't find a TerritoryHex at this position.\");\n this.destroy();\n }\n \n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();", "@Override\n\tpublic void handleEventWorldUpdate(World world) {\n\t}", "public abstract void updateLabels();", "@Override\n\tpublic void updateLabels() {\n\n\t}", "public void onWorldLoad(Minecraft minecraft, WorldClient world, String message);", "protected void addLabel(AeIconLabel aLabel) {\r\n }", "private void addLabels()\n {\n add(my_score_label);\n add(my_level_label);\n add(my_lines_label);\n }", "@Override\n public void afterWorldInit() {\n }", "public void run()\n\t{\n\t\tGLabel label = new GLabel(\"Hello world!\", 10, 10);\n\t\tadd(label);\n\t}", "public void addLabel()\r\n {\r\n LabelFigure label = new LabelFigure();\r\n this.labels.add(label);\r\n add(label);\r\n }", "public void addLabel(Label label) {\n\t\tgetCodeItem().addLabel(label);\n\t}", "private Label addNewLabel() {\n getElement().getChildren().forEach(e -> getElement().removeChild(e));\n // Create and add a new slotted label\n Label label = new Label();\n label.getElement().setAttribute(\"slot\", \"label\");\n this.getElement().appendChild(label.getElement());\n return label;\n }", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "@Override\n public void addLabelable(Corpus corp, cvac.Labelable[] addme, Ice.Current __current)\n {\n CorpusI cs = checkValidityAndLookup( corp );\n if (null==cs)\n {\n logger.log(Level.WARNING, \"nothing known about corpus {0}\", corp.name);\n return;\n }\n if ( cs.isImmutableMirror || !cs.localMirrorExists())\n {\n logger.log(Level.WARNING, \"corpus {0} is immutabel or still loading, cannot add labels\", cs.name);\n }\n// cs.addSample( addme );\n }", "private void addCustomWords() {\r\n\r\n }", "@Override\n\tpublic void addPrintLabelInfo(GUIPrintLabelDto printLabelEntity) {\n\t}", "private void setupSpellHereLabel(){\n\t\tJLabel spell_here_text = new JLabel(\"SPELL HERE\");\n\t\tspell_here_text.setFont(new Font(\"Arial\", Font.BOLD, 45));\n\t\tspell_here_text.setForeground(new Color(254, 157, 79));\n\t\tadd(spell_here_text);\n\t\tspell_here_text.setBounds(32, 484, 332, 74);\n\t\tspell_here_text.setOpaque(false);\n\t}", "private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}", "public void addText(String text){\n try{\n FXMLLoader battleLogEntryLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"FXML/BattleLogEntry.fxml\"));\n Label battleLogEntryLabel = battleLogEntryLoader.load();\n battleLogEntryLabel.setText(text);\n if(count % 2 == 0){\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n } else{\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.TRANSPARENT, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n textSpace.getChildren().add(battleLogEntryLabel);\n count++;\n } catch(Exception e) {\n\n }\n }", "public void update(Observable o, Object arg) {\r\n\t\tBufferedImage background = map.getRm().getEmptyMap();\r\n\t\tthis.setIcon(new ImageIcon(this.getImageMap(background)));\r\n\t\tif (map.isSuccess()) // GameSuccess Like Google Style\r\n\t\t{\r\n\t\t\tthis.setHorizontalTextPosition(JLabel.CENTER);\r\n\t\t\tthis.setText(\"<HTML><B><H1><I><FONT COLOR='BLUE'>S</FONT>\"\r\n\t\t\t\t\t+ \"<FONT COLOR='RED'>U</FONT><FONT COLOR='YELLOW'>CC</FONT>\"\r\n\t\t\t\t\t+ \"<FONT COLOR='BLUE'>E</FONT><FONT COLOR='GREEN'>S</FONT>\"\r\n\t\t\t\t\t+ \"<FONT COLOR='RED'>S</FONT></I></H1></B></HTML>\");\r\n\t\t}\r\n\t}", "public void addWorld(File file, String name){\n worlds.add(new MBMWorld(file, name));\n }", "public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }", "public static void addWorld(World world) {\n\t\tworlds.add(world);\n\t}", "@Nonnull\n LabelResponse addLabel(@Nonnull final Label label, @Nonnull final Telegraf telegraf);", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "String updateLabel(String oldLabel, String newLabel);", "void onNodePlaced(World world, BlockPos pos);", "@Override\n\tpublic void addInformation(ItemStack is, EntityPlayer player, List l, boolean b){\n\t\tl.add(\"This staff is magical!\");\n\t}", "private void addNameLabel() {\n\t\tadd (new JLabel(\"Name \"), SOUTH);\n\t}", "public void add(float x, float y, String label) {\n\t\tpoints.add(new GPoint(x, y, label));\n\t}", "boolean addNode(long idNum, String label);", "private void updateLabels(ArSceneView sceneView,Node node)\n {\n\n Vector3 camera = sceneView.getScene().getCamera().getWorldPosition();\n Vector3 uiPosition = node.getWorldPosition();\n Vector3 direction = Vector3.subtract(camera, uiPosition);\n Quaternion lookRotation = Quaternion.lookRotation(direction, Vector3.up());\n node.setLocalPosition(new Vector3(0,0.02f,0));\n node.setWorldRotation(lookRotation);\n }", "@Override\n\tpublic void addMarkers(World world, Random random, ICoords coords) {\n\t\treturn;\n\t}", "@Override\n public void onChunkLoad(ChunkLoadEvent event) {\n Chunk chunk = event.getChunk();\n\n //\n Legends.info(\"Chunk loaded in world: \" + event.getWorld().getName());\n\n }", "@Override\n public void mouseDragged(MouseEvent e){\n lblNewLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void update(World world, Target target);", "public void addPlayerData() {\n\t\tStackPane root = (StackPane) GameLogic.getRoot();\n\t\t//VBox info = new VBox();\n\t\t//info.setAlignment(Pos.TOP_LEFT);\n\t\tLabel playerInfo = new Label();\n\t\tplayerInfo.setBackground(new Background(new BackgroundFill(Color.LIGHTGOLDENRODYELLOW, CornerRadii.EMPTY, Insets.EMPTY)));\n\t\t//playerInfo.setGraphic(new ImageView(BackgroundImageHolder.textBackground));\n\t\tplayerInfo.setText(\" Player :\"+GameSaved.getPlayer_name()+\"\\n Level : \"+GameSaved.getPlayer_level()+\"\\n Experience point : \"+GameSaved.getExperiencePoint()+\"/\"+GameSaved.getExperiencePoint_Max()+\" \");\n\t\t//playerInfo.setAlignment(Pos.TOP_LEFT);\n\t\t//info.getChildren().add(playerInfo);\n\t\troot.getChildren().add(playerInfo);\n\t\tStackPane.setAlignment(playerInfo,Pos.TOP_LEFT);\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tmsg=\"\";\r\n\t\tmsg+=\" You Entered the frame\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}", "void addHadithText(Object newHadithText);", "private void drawDynamicLabels(Graphics2D g2d, RenderContext myrc, String dyn_labeler_copy) {\n long start_time = System.currentTimeMillis();\n\t// Get the node information for the one directly under the mouse\n\tString str;\n if (myrc.node_coord_set.get(dyn_labeler_copy).size() == 1) { // It's a single node -- just get the first string\n\t str = myrc.node_coord_set.get(dyn_labeler_copy).iterator().next();\n\t} else { // It's a group node -- summarize appropriately\n\t str = Utils.calculateCIDR(myrc.node_coord_set.get(dyn_labeler_copy)); \n\t}\n\tPoint2D pt = myrc.node_coord_lu.get(dyn_labeler_copy);\n\tint txt_w = Utils.txtW(g2d,str), txt_h = Utils.txtH(g2d,str);\n\tclearStr(g2d, str, (int) (pt.getX() - txt_w/2), (int) (pt.getY() + 2*txt_h), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\tArea already_taken = new Area(new Rectangle2D.Double(pt.getX()-txt_w/2,pt.getY()+txt_h,txt_w,txt_h));\n\n\t// Draw the neighbors\n Set<String> set = myrc.node_coord_set.get(entity_to_sxy.get(str));\n\tif (set != null) {\n\t // First iteration is to make sure the actual geometrical shapes are in the \"already_taken\" area\n Iterator<String> it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D(); already_taken.add(new Area(bounds));\n\t\t}\n\t }\n\t }\n\t }\n\t // Second iteration actually places them\n it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D();\n\t\t txt_w = Utils.txtW(g2d,nbor); \n\t\t txt_h = Utils.txtH(g2d,nbor);\n\t\t Rectangle2D nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2, bounds.getMaxY() + 0.1*txt_h, txt_w, txt_h);\n\t\t // Find a good location for the text rectangle -- needs to check for overlap with other rectangles\n\t\t int iteration = 0; boolean original = true; \n\t\t double dx = bounds.getCenterX() - pt.getX(), dy = bounds.getCenterY() - pt.getY(); double len = Math.sqrt(dx*dx+dy*dy);\n\t\t if (len < 0.001) { len = 1.0; dx = 0.0; dy = 1.0; } dx /= len; dy /= len; // Normalize the vector\n\t\t double pdx = -dy, pdy = dx; // Perpendicular vectors\n\t\t while (iteration < 20 && already_taken.intersects(nbor_rect)) { // search for a better location\n\t\t double distance = 15 * iteration / 3, perp_distance = 10 * ((iteration % 3) - 1);\n\t\t nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2 + dx*distance + pdx*perp_distance, \n\t\t bounds.getMaxY() + 0.1*txt_h + dy*distance + pdy*perp_distance, \n\t\t\t\t\t\t txt_w, txt_h);\n iteration++; original = false;\n }\n\t\t if (original == false) g2d.drawLine((int) nbor_rect.getCenterX(), (int) nbor_rect.getCenterY(), (int) bounds.getCenterX(), (int) bounds.getCenterY());\n\t clearStr(g2d, nbor, (int) nbor_rect.getMinX(), (int) nbor_rect.getMaxY(), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\t\t already_taken.add(new Area(nbor_rect));\n\t }\n }\n\t }\n\t }\n\t}\n }", "@Override\n public void run() { // This is running in the UI Thread so updating the label\n ourLabel.setText(\"We did something\");\n }", "com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();", "@Override\n public void mouseDragged(MouseEvent e){\n newLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "private void addObjectTo(Obstacle obj, int l) {\r\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\r\n\t\tif (l == LevelCreator.allTag) {\r\n\t\t\tsharedObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t\telse if (l == LevelCreator.lightTag) {\r\n\t\t\tlightObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}else if (l == LevelCreator.darkTag) {\r\n\t\t\tdarkObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t}", "public void addLabel(LabelInfo label) {\n\t\talLabels.add(label);\n\t\tif (iMaxSegmentDepth < label.getSegmentLabelDepth()) {\n\t\t\tiMaxSegmentDepth = label.getSegmentLabelDepth();\n\t\t}\n\t}", "@Override\n public void world() {\n super.world();\n }", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"前置通知\");\n\t\ttarget.add();\n\t\tSystem.out.println(\"后置通知\");\n\t}", "private void AddPerson (MouseEvent evt)\n {\n if(currentPlayers < nPlayers && !textfield1.getText().equals(\"\"))\n {\n Names[currentPlayers] = textfield1.getText();\n currentPlayers++;\n editorpane1.setText(editorpane1.getText()+textfield1.getText()+'\\n');\n }\n else\n {\n if(currentPlayers == nPlayers)\n {\n label2.setText(\"Max number of players reached\");\n }\n else\n {\n if(textfield1.getText().equals(\"\"))\n {\n label2.setText(\"Add a Name\");\n }\n }\n }\n }", "public void actionPerformed(ActionEvent event)\n {\n label.append(\"\\n\" + pokemonName);\n party.add(pokemon);\n }", "public void draw(WorldLocation coord){\n \n }", "protected void addLabel(String key, Label value) {\n\t\tlabels.put(key, value);\n\t}", "Label setLocation();", "protected void updateWorld(World world) {\r\n\t\tthis.world = world;\r\n\t\tsetup(); //Call setup again to re assign certain variables that depend\r\n\t\t\t\t // on the world\r\n\t\tbufferWorld(); //Buffer the new world\r\n\t}", "@Action\n public void addLabeledPoint() {\n Point2D p1 = randomPoint();\n LabeledPointGraphic<Point2D, Graphics2D> lpg = new LabeledPointGraphic<>(p1, p1, new ObjectStyler());\n lpg.setRenderer(MarkerRenderer.getInstance());\n lpg.setLabelRenderer(new TextRenderer());\n lpg.getObjectStyler().setLabelDelegate(p -> String.format(\"(%.2f,%.2f)\", p.getX(), p.getY()));\n lpg.getObjectStyler().setLabelStyle(Styles.text(Color.red, 14f, Anchor.SOUTHWEST));\n lpg.setDefaultTooltip(\"<html><b>Labeled Point</b>: <i> \" + p1 + \"</i>\");\n lpg.setDragEnabled(true);\n root1.addGraphic(lpg); \n }", "public synchronized void add(String text, BoundingBox box, boolean errored) {\n labels.add(new LabelToWrite(text, box, errored));\n sumSizes.add(box.extent().x(), box.extent().y());\n }", "void setLabel(String label);", "void setLabel(Label label);", "public void addAgent(Agent a)\n/* 86: */ {\n/* 87:139 */ this.mapPanel.addAgent(a);\n/* 88: */ }", "public void addChild(char label, TrieNode<F> node) {\r\n trieNodeMap.put(label, node);\r\n numChildren++;\r\n }", "public void add(int index, float x, float y, String label) {\n\t\tpoints.add(index, new GPoint(x, y, label));\n\t}", "public static void add() {\n\t\trender();\n\t}", "public interface ClientWorldListener extends BLMod {\n /**\n * Called when a world is loaded.\n *\n * @param world The world being loaded.\n * @param message The message displayed to the user on the loading screen.\n */\n public void onWorldLoad(Minecraft minecraft, WorldClient world, String message);\n\n /**\n * Called when a world is unloaded.\n *\n * @param world The world being unloaded.\n * @param message The message displayed to the user on the loading screen.\n */\n public void onWorldUnload(Minecraft minecraft, WorldClient world, String message);\n \n /**\n * Called when the client's world changes\n * @param world\t\tThe new value for Minecraft.worldObj, may be null\n */\n public void onWorldChanged(World world);\n}", "public void createWorld(){\n\n }", "private void addDestinationTextLabel() {\n try {\n Component lastComponent = destinationLabelPanel.getComponent(2);\n if (lastComponent == destinationButton) {\n destinationLabelPanel.remove(destinationButton);\n destinationLabelPanel.add(destinationTextLabel);\n }\n }\n catch (ArrayIndexOutOfBoundsException e) {\n destinationLabelPanel.add(destinationTextLabel);\n }\n }", "void onWorldChange(@NotNull TabPlayer changed, @NotNull String from, @NotNull String to);", "@Override\n public void addLoaders(WorldLoader wl, WorldInfo info) {\n }", "public void setLabel(String label) {\n this.label = label;\n }", "public void addSign(Vector3D location, String world, String[] lines) {\n dirty = true;\n if (!getSignAt(location, world).isPresent()) {\n signLocations.add(new SignLocation(location, world, server, lines));\n }\n }", "String addNewNode(Double lat, Double lon);", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "void registerLabel(SNode inputNode, Iterable<SNode> outputNodes, String mappingLabel);", "private void addLabel(){\n int linecount=0;\n Scanner scanner;\n try {\n scanner = new Scanner(new File(\"story.txt\"));\n\n String next;\n while(scanner.hasNext())\n {\t\n next=scanner.nextLine();\t\t\t\n for(int i=0;i!=next.toUpperCase().toCharArray().length;i++)\n {\t\n JLabel temp = new JLabel(new ImageIcon(next.charAt(i)+\".png\"));\n temp.setSize(new ImageIcon(next.charAt(i)+\".png\").getIconWidth()\n ,new ImageIcon(next.charAt(i)+\".png\").getIconHeight());\n temp.setVisible(true);\n temp.setLocation(350+(i*45),5+linecount*50);\n this.add(temp);\n }\n linecount++;\n }\t\n } catch (FileNotFoundException e1) {\n System.out.println(\"Letter not found?\");\n }\n\t}", "public void entryAdded (TudeySceneModel.Entry entry)\n {\n setVisibility(entry);\n }", "public void addCaseToLabel(CaseUUID aCaseUUID, LabelUUID aLabelUUID);", "@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}", "@Override\n\tpublic void setComponentLabel(String label) {\n\t\t\n\t}", "public void addLocationObserver(String location);", "private void postInfo(String text) {\r\n\t\tLabel hLabel = new Label(labelInfo.getText());\r\n\t\thLabel.addStyleName(Styles.battle_info);\r\n\t\t//add the old info to the history\r\n\t\tvPanelInfoHistory.insert(hLabel, 0);\r\n\t\tlabelInfo.setText(SafeHtmlUtils.htmlEscape(text));\r\n\t}", "public void addMarker(int iX,int iY,String sLabelJS,String sWorld)\n \t{\n \t\tMarker m=new Marker();\n \t\tm.iX=iX;\n \t\tm.iY=iY;\n \t\tm.sLabelJS=sLabelJS==null ? \"\" : sLabelJS;\n \t\tm.sWorld=sWorld;\n \t\tlMarkers.add(m);\n \t}", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public void generate() {\n currentlyGenerating = true;\n Bukkit.broadcastMessage(ChatColor.GREEN + \"The world generation process has been started!\");\n createUhcWorld();\n }", "public interface WorldListener {\n\t\tpublic void pickUpMineral();\n\t\t\n\t\tpublic void hit();\n\t}", "@Override\n public void setLabel(String arg0)\n {\n \n }", "@Override\r\n\tpublic void append(Layer other)\r\n\t{\n\r\n\t}", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }" ]
[ "0.6870934", "0.6860833", "0.6860833", "0.68164295", "0.6627345", "0.6509333", "0.6451585", "0.64175665", "0.6412216", "0.63878703", "0.62992734", "0.61924493", "0.6088048", "0.5996643", "0.5965486", "0.5948207", "0.58608687", "0.5787394", "0.57822263", "0.5776922", "0.57661754", "0.5751264", "0.5723933", "0.57058966", "0.56344545", "0.5624369", "0.5602292", "0.5581216", "0.5545462", "0.55086744", "0.5504093", "0.54778355", "0.5420095", "0.53955495", "0.53857774", "0.53852564", "0.53817916", "0.5362903", "0.5348647", "0.53405666", "0.53310424", "0.5306331", "0.5302721", "0.5300832", "0.5277162", "0.5274852", "0.5265072", "0.525908", "0.52506536", "0.52182174", "0.52080244", "0.5196896", "0.51904047", "0.5189607", "0.5176802", "0.51687884", "0.5157569", "0.5147392", "0.51422846", "0.513833", "0.5137779", "0.51229906", "0.51224744", "0.51218355", "0.5119384", "0.5118027", "0.51099956", "0.5072949", "0.50659394", "0.5058014", "0.5051031", "0.50391036", "0.5029398", "0.50255567", "0.50167304", "0.5013476", "0.50073403", "0.50022274", "0.49992946", "0.49986452", "0.49885347", "0.49804932", "0.49786624", "0.4963099", "0.49554095", "0.4949604", "0.49479222", "0.49476328", "0.4946957", "0.49395177", "0.49302226", "0.4925304", "0.49243617", "0.4923594", "0.49183747", "0.49179906", "0.4912438", "0.4912017", "0.49102426", "0.49088347" ]
0.68763155
0
Act do whatever the StoreItem wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act() { if(Greenfoot.mouseClicked(this)){ storeMenu.getLastPressed(this,item,cost); changeImage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public void act()\n {\n if(onSales == true)\n {\n calculateSale();\n }\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void act() {\n\t}", "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "@Override\n protected void doAct() {\n }", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\n public void act() {\n }", "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }", "@Override\n\tpublic void execute() {\n\t\t_inventory = _game.getInventory();\n\t\tif (_examineInventory)\n\t\t\t_game.print(_inventory.showInventory());\n\t\telse\n\t\t\t_game.print(_inventory.examineItem(_itemName));\n\t}", "@Override\n public void run() {\n chosenActionUnit.run(getGame(), inputCommands);\n }", "public void act() \n {\n // Add your action code here.\n tempoUp();\n }", "@Override\r\n\tpublic void performAction(Client client, RentUnit rentUnit) {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void perform() {\n\t\tlog.info(\"begin to play the drum\");\n\t\tthrow new RuntimeException();\n\t}", "public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }", "public void act()\n {\n // Make sure fish is alive and well in the environment -- fish\n // that have been removed from the environment shouldn't act.\n if ( isInEnv() ) \n move();\n }", "public void act()\n\t{\n\t\tif(getFirstDriver().isAtPump())\n\t\t{\n\t\t\tif(!getFirstDriver().isDoneRefilling())\n\t\t\t{\n\t\t\t\tgetFirstDriver().act(priceOfFuel);\n\t\t\t}\n\t\t}\n\t\telse if(getFirstDriver().isDone())\n\t\t{\n\t\t\tremoveDriver();\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\r\n String ac = e.getActionCommand();\r\n if (Constants.CMD_RUN.equals(ac)) {\r\n try {\r\n stopOps = false;\r\n installAndRun(this, cfg);\r\n } catch (Exception ex) {\r\n // assume SecurityEx or some other problem...\r\n setStatus(\"Encountered problem:\\n\" + ex.toString()\r\n + \"\\n\\nPlease insure that all components are installed properly.\");\r\n } // endtry\r\n } // endif\r\n }", "@Override\n public void act() {\n sleepCheck();\n if (!isAwake()) return;\n while (getActionTime() > 0f) {\n UAction action = nextAction();\n if (action == null) {\n this.setActionTime(0f);\n return;\n }\n if (area().closed) return;\n doAction(action);\n }\n }", "public void act() {\r\n\t\tturn(steps[number % steps.length]);\r\n\t\tnumber++;\r\n\t\tsuper.act();\r\n\t}", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }", "public void act();", "public void performAction();", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void action() {\n store.readNextArrival();\n Employee employee = (Employee)this.getActor();\n checkout = store.firstUnmannedCheckout();\n checkout.setCashier(employee);\n checkout.setOpen(true);\n int quittingTime = employee.getQuittingTime();\n Event event = new ShiftCompletedEvent(quittingTime, employee, checkout);\n store.getEventList().addEvent(event);\n \n System.out.printf(\"Time %d: Cashier %d arrives (Speed %d, quitting time %d, checkout %d)\\n\",\n time,\n employee.getId(),\n employee.getSpeed(),\n employee.getQuittingTime(),\n checkout.getIndex());\n }", "public void action() {\n action.action();\n }", "public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}", "public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRun();\n\t}", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "public void executeAction( String actionInfo );", "@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}", "void act();", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public void playAI() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"You're going to lose foolish human!\");\r\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "abstract public void performAction();", "public void act(){\n super.act();\n }", "public void act()\n {\n trackTime();\n showScore();\n \n }", "@Override\n public void run() {\n activityTestRule.getActivity().findViewById(R.id.sell_button).performClick();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (runButton_.isSelected()) {\n runButton_.setText(\"Abort Acquisition\");\n runAcquisition();\n } else {\n runButton_.setText(\"Run Acquisition\");\n }\n }", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "void perform() {\r\n\t\tSystem.out.println(\"I sing in the key of - \" + key + \" - \"\r\n\t\t\t\t+ performerID);\r\n\t}", "public void actionPerformed(ActionEvent ae) {\n theAppMgr.fireButtonEvent(\"CUST_LOOKUP\");\n }", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n girarHaciaEnemigo();\n movimientoPegadoAJefe();\n }\n }", "public void interact(Context context)\n {\n switch (defaultItemInteraction)\n {\n case PICKUP:\n pickUp(context);\n break;\n case LOOK:\n look(context);\n break;\n case USE:\n use(context);\n break;\n }\n }", "public void postActionEvent() {\n fireActionPerformed();\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "public void act()\n {\n addBox();\n }", "public void doAction(){}", "public void doAction(SpaceWars game){\r\n\t\t\r\n\t\tsuper.doAction(game);\r\n\t\taccelerate();\r\n\t\tfire(game);\r\n\t}", "public void actionPerformed(ActionEvent e) {\n String command = e.getActionCommand();\n \n if (command.equals(\"execute\")) {\n try {\n execute();\n } catch (PropertyVetoException pve) {}\n } else {\n if (Trace.isTracing(Trace.MASK_APPLICATION))\n {\n Trace.record(Trace.MASK_APPLICATION, BEANNAME, \"ActionEvent \" + e.toString());\n }\n }\n }", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}", "@Override\r\n\tpublic void run(IAction action) {\r\n\r\n\t\ttry {\r\n\t\t\tif (MigrationGoalsContainer.INSTANCE.getMigrationGoals() == null){\r\n\t\t\t\tMessageDialog.openWarning(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), \"Warning\", \"Please load the Migration Goals before opening the Inventory View\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//Load the model for the selected file and open the inventory view. \r\n\t\t\t\tComponentModelQuery.INSTANCE.loadModel(selectedFile);\r\n\t\t\t\tif (window.getActivePage().findView(InventoryView.ID) != null) {\r\n\t\t\t\t\twindow.getActivePage().hideView(window.getActivePage().findView(InventoryView.ID));\r\n\t\t\t\t}\r\n\t\t\t\twindow.getActivePage().showView(InventoryView.ID);\r\n\t\t\t}\r\n\t\t} catch (PartInitException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//TODO: HANDLE THIS\r\n\t\t}\r\n\t}", "@Override\n\tpublic void step(int actionType) {\n\n\t}", "public void act() \n {\n checkClicked();\n }", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "public void perform() {\n if (valid) {\n if (isUndo) {\n ObjArrayUtil.addItems(itemSlots, this.items, true);\n Editor.setClipboard(savedClipboard);\n } else {\n // undo operation constructs modified items for us\n getUndo();\n Editor.setClipboard(oppOper.items);\n ObjArrayUtil.deleteItems(itemSlots);\n }\n }\n }", "void issuedClick(String item);", "private void goToShop() {\n shopMenu.runMenu();\n }", "public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\taddAction();\n\t\t\t}", "public void execute(A action) {\n\t\tS testState=action.applyTo(currentState);\n\t\tif (stop ||testState.equals(null)){\n\t\t\tString text=\"Impossible to make the action: \";\n\t\t\t\n\t\t\tif(stop){\n\t\t\t\ttext+=\"The game was stopped before \";\n\t\t\t}\n\t\t\telse if(testState.equals(null)){\n\t\t\t\ttext+=\"The game should start before realize an action\";\n\t\t\t}\n\t\t\t\n\t\t\tGameError error=new GameError(text);\n\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Error, null,currentState, error, error.getMessage()));\n\t\t\tthrow error;\n\t\t\t\n\t\t\t\t\t\n\t\t}else{\n\t\t\tthis.currentState=testState;\n\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Change, action, currentState, null,\"The game has change\"));\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\n \t}", "public void actionPerformed(ActionEvent ea)\n\t{\n\t\tString action = ea.getActionCommand();\n\t\t\n\t\t//System.out.println(action);\n\t\t\tif(action.equals(\"Exit\")){\n\t\t\t\texit();\n\t\t\t}\n\t\t\telse if(action.equals(\"About\")){\n\t\t\t\tabout();\n\t\t\t}\n\t\t\telse if(action.equals(\"Enter Database Credentials\")){\n\t\t\t\tpromptDBCreds();\n\t\t\t}\n\t\t\telse if(action.equals(\"Enter API Keys\")){\n\t\t\t\tpromptAPIkeys();\n\t\t\t}\n\t\t\telse if(action.equals(\"Start Scraper\")){\n\t\t\t\tstart();\n\t\t\t}\n\t\t\telse if(action.equals(\"Stop Scraper\")){\n\t\t\t\tstop();\n\t\t\t}\n\t\t\telse if(action.equals(\"Clear Log\"))\n\t\t\t{\n\t\t\t\tclear();\n\t\t\t}\t\t\n\t}", "public void actionPerformed(ActionEvent e)\r\n {\r\n\t// Add and remove items from the customer queue\r\n\t\r\n\tif (e.getSource() == dispenseButton)\r\n\t{\r\n\t dispense();\t\r\n\t}\r\n\telse\r\n\t{\r\n\t serve();\r\n\t}\r\n\tupdateDisplay();\r\n }", "public void doPerform() {\n int noAct = 0;\n float[] curTable = myIal.getPlaceTable(0, 0, 0);\n \n while(checkNotDone()) {\n if(noAct > 3)\n return;\n\n myIal.wait(150);\n //Do an IAL action *****************************************************************************************************************\n if(myIal.lookBlock(myIal.locx, myIal.locy, myIal.locz).equals(\"air\")) { //Assess current location and change state accordingly\n myIal.myState = Agent.State.PLACE;\n } else {\n myIal.myState = Agent.State.MOVE;\n }\n\n if(myIal.myState == Agent.State.PLACE) {\n curTable = myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz);\n noAct = 0;\n }\n else if(myIal.myState == Agent.State.MOVE) {\n curTable = myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz);\n noAct++;\n }\n \n myIal.doAction(getMaxIndex(curTable));\n //System.out.println(\"IAL action done\");\n\n my2Ial.wait(150);\n //Do a 2IAL action *****************************************************************************************************************\n if(my2Ial.lookBlock(my2Ial.locx, my2Ial.locy, my2Ial.locz) == \"air\") { //Assess current location and change state accordingly\n my2Ial.myState = Agent.State.PLACE;\n } else {\n my2Ial.myState = Agent.State.MOVE;\n }\n //System.out.println(\"ysysy\");\n if(my2Ial.myState == Agent.State.PLACE) {\n \n curTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n noAct = 0;\n }\n else if(my2Ial.myState == Agent.State.MOVE) {\n curTable = my2Ial.getMoveTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n noAct++;\n }\n \n my2Ial.doAction(getMaxIndex(curTable));\n //System.out.println(\"JAL action done\");\n }\n\n System.out.println(\"Building is done :)\");\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(e.getActionCommand().equals(\"run\")) {\n\t\t\t\tstartsever();\n\t\t\t\titemrun.setEnabled(false);\n\t\t\t}else if(e.getActionCommand().equals(\"exit\")) {\n\t\t\t\tif(!itemrun.isEnabled()) {\n\t\t\t\t\titemrun.setEnabled(true);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsever.close();\n\t\t\t\t\t\tarea.append(\"服务器关闭\"+'\\n');\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "public void act() \n {\n canSeeAlex();\n }" ]
[ "0.6600735", "0.6585301", "0.6477034", "0.6477034", "0.6356215", "0.6356215", "0.6356215", "0.6356215", "0.6356215", "0.6356215", "0.6356215", "0.6356215", "0.6311412", "0.6304133", "0.628801", "0.62778574", "0.62372595", "0.6189572", "0.6123601", "0.6084341", "0.6074675", "0.60380536", "0.60202944", "0.6013309", "0.6011592", "0.5992711", "0.5906178", "0.58985585", "0.5886881", "0.5886039", "0.5875265", "0.5862979", "0.5850113", "0.5842417", "0.5837691", "0.5837691", "0.5837691", "0.5835554", "0.5831796", "0.5829011", "0.5825987", "0.576981", "0.57650924", "0.57641155", "0.57618934", "0.5741769", "0.57411826", "0.57366747", "0.57350093", "0.57103276", "0.57054186", "0.56999904", "0.56895113", "0.5676025", "0.56554127", "0.56482834", "0.56423974", "0.56329316", "0.5628555", "0.56215143", "0.56154114", "0.56077564", "0.5604367", "0.5604367", "0.5604367", "0.5604367", "0.5604367", "0.5604367", "0.5604367", "0.55823684", "0.5580612", "0.55780196", "0.5564741", "0.55612874", "0.55571413", "0.55408865", "0.5538036", "0.5536516", "0.5524264", "0.5516294", "0.5514424", "0.5514059", "0.55100465", "0.5508531", "0.55037665", "0.5496301", "0.5471403", "0.5470423", "0.5466946", "0.5459613", "0.5458742", "0.54542124", "0.54497504", "0.54391265", "0.54302764", "0.54186356", "0.54165655", "0.5415026", "0.5414476", "0.54097855" ]
0.61677706
18
changeImage changes the image of StoreItem
public void changeImage(){ if(getImage()==storeItemImg) setImage(selected); else setImage(storeItemImg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "void setImage(String image);", "public void setImage(String image){\n this.image = image;\n }", "public void setImage(Image image) {\n this.image = image;\n }", "public void setImage(String _image)\n {\n this.image = _image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n\t\t this.image = image;\n\t}", "void setImage(IViewModel image);", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "public void setImage(Context ctx, String image)\n {\n }", "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "public void setImage (Product product) {\n\t\t//TODO beh�ver hj�lp. hur s�tter jag mha referens till objektet bilden?\n\t\tpictureLbl.setText(\"\");\n\t\t//picLbl.setIcon(product.getImageName());\n\t\tpictureLbl.repaint();\n\t}", "private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}", "public void setImage(String Image) {\n this.Image = Image;\n }", "void setImage(TokenEntry entry, @NonNull String newImage);", "public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }", "public void setImage(String image) {\n\t\tif(image!=null)\n\t\t\tthis.image = image;\n\t}", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "@Override\n public void onSuccess(Uri uri) {\n item.setImage(uri.toString());\n }", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "String getItemImage();", "public void changeImage(String fileName) {\n\n\t\timageList.add(image);\n\n\t\ttry {\n\t\t\timage = new Image(new FileInputStream(fileName), 0, 50, true, false);\n\t\t\tscreen.updateBox();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tnew ErrorBox(\"Invalid Image\", \"Please Choose a Valid Image\");\n\t\t}\n\n\t}", "public void changePhoto(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n userPhotoFile = fileChooser.showOpenDialog(null);\n\n if( userPhotoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n accountPhoto.setImage(new Image(userPhotoFile.toURI().toString()));\n changePhotoButton.setText(\"Change Photo\");\n }\n }", "void setImageFromFile(File imageFile);", "public final void setImage(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String image)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Image.toString(), image);\n\t}", "public void setNewImage(String newImage) {\r\n\t\tthis.newImage = newImage;\r\n\t}", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "public void setImage(String key, Image image)\n {\n imageRegistry.put(key, image);\n }", "public void setImage(Image newImage)\n {\n if (newImage == null)\n {\n setFill(null);\n }\n else\n {\n setFill(new ImageFill(newImage));\n }\n }", "public void update(ImageObject nImage) { \r\n selectedImage = nImage;\r\n \r\n update();\r\n }", "void setImageResource(String imageResource) throws IOException;", "public void setImage(Drawable image){\n\t\tmImage = image;\n\t}", "public void setProductImageUrl(final String productImageUrl);", "public void changeDirection(int image){\n this.image = image; \n }", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "public void setImageName(String name) {\n imageToInsert = name;\n}", "public void setImg(String img) {\n this.img = img;\n }", "public void setImage(String tmp) {\n this.image = tmp;\n }", "@Override\n\tpublic Image modifier(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "public void setImage(byte[] image) {\n this.image = image;\n }", "public void setImage(byte[] image) {\n this.image = image;\n }", "private void editImageButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editImageButtonActionPerformed\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"Image\", \"jpg\"));\n fileChooser.showOpenDialog(this);\n if (fileChooser.getSelectedFile() != null) {\n selectedFilePath = fileChooser.getSelectedFile().getAbsolutePath();\n oldImageTitle = imageTitle;\n imageTitle = phoneField.getText() + fileChooser.getSelectedFile().getName();\n ImageIcon contactImage = new ImageIcon(new ImageIcon(fileChooser.getSelectedFile().getAbsolutePath()).getImage().getScaledInstance(contactImageLabel.getWidth(), contactImageLabel.getHeight(), Image.SCALE_DEFAULT));\n contactImageLabel.setIcon(contactImage);\n } else {\n\n }\n\n\n }", "public void setImage(String imageName)\n {\n if (imageName == null)\n {\n setImage((Image) null);\n }\n else\n {\n setImage(new Image(imageName));\n }\n }", "void setImageFromURL(String imageURL);", "private void setImage(Bitmap image) {\n }", "public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }", "void lSetImage(Image img);", "void setImage(Layer layer, Image image);", "public void setImage(byte[] value) {\n this.image = ((byte[]) value);\n }", "public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }", "public void ChangeImage(Image SymImage){\n\n this.imgBackground = SymImage;\n /**\n imwidth = (double) this.imgBackground.getWidth(null);\n oldwidth = 461;\n oldheight = 361;\n */\n }", "public final void setImage(java.lang.String image)\n\t{\n\t\tsetImage(getContext(), image);\n\t}", "public void updateImageForIndex(int index) {\n\t\t//Nothing to do\n\t}", "public void setImage(String file){ \n try {\n image = ImageIO.read(new File(file));\n } catch (IOException ex) {\n Logger.getLogger(GridSquarePanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setImage(java.lang.String image) {\n\t\t_imageCompanyAg.setImage(image);\n\t}", "public void on_edit(ActionEvent actionEvent) {\r\n\t\tint index = getSelectedIndex();\r\n\t\tif ( 0 > index)\r\n\t\t\treturn;\r\n\r\n\t\tThumbnailItem thumbnailItem = ( ThumbnailItem)_defaultComboBoxModel.getElementAt( index);\r\n\r\n\t\tString original_filename = thumbnailItem._file.getName();\r\n\r\n\t\tEditImageFilenameDlg editImageFilenameDlg = new EditImageFilenameDlg( MainFrame.get_instance(),\r\n\t\t\tResourceManager.get( \"edit.image.filename.dialog.title\"),\r\n\t\t\ttrue, original_filename, _imagePropertyManager);\r\n\t\tif ( !editImageFilenameDlg.do_modal( _parent))\r\n\t\t\treturn;\r\n\r\n\t\tString new_filename = editImageFilenameDlg._new_filename;\r\n\r\n\t\tif ( !rename( thumbnailItem, new_filename))\r\n\t\t\treturn;\r\n\r\n\t\t_thumbnailListCallback.update();\r\n\r\n\t\tFile file = new File( _imageDirectory, original_filename);\r\n\t\tImage image = ( Image)AnimatorImageManager.get_instance().get( file.getAbsolutePath());\r\n\t\tif ( null != image) {\r\n\t\t\tAnimatorImageManager.get_instance().remove( file.getAbsolutePath());\r\n\t\t\tfile = new File( _imageDirectory, new_filename);\r\n\t\t\tAnimatorImageManager.get_instance().put( file.getAbsolutePath(), image);\r\n\t\t}\r\n\r\n\t\tObjectManager.get_instance().update_image( original_filename, new_filename);\r\n\r\n\t\tAnimatorView.get_instance().repaint();\r\n\r\n\t\tmodified();\r\n\t}", "void setImage(Bitmap bitmap);", "public void setImage(BufferedImage newImage) {\n if (newImage == null) {\n throw new NullArgumentException(\"Image must not be null\");\n }\n\n ByteArrayOutputStream byteOut = new ByteArrayOutputStream();\n\n try {\n ImageIO.write(newImage, \"png\", byteOut);\n this.setImageBase64(Base64.encodeBase64String(byteOut.toByteArray()));\n }\n catch (IOException e) {\n if (this.logger != null) {\n this.logger.warning(\"Error when encoding base64 server icon\");\n }\n setImageBase64(\"\");\n }\n }", "public void setImage(Bitmap image) {\n this.image = image;\n }", "void setImage(BufferedImage valueImage, BufferedImage BackImage);", "Builder addImage(ImageObject value);", "void setImage(BufferedImage i);", "public void updateImage(final Image image) { //The Reason that we have Set the Image to final over here is because once we fetch the Image from the AbsolutePath then after scaling this should be the Final Image in which we detect the Faces \n\t\timagelabel.setIcon(new ImageIcon(scaleImage(image))); \n\t}", "public void setImage(Image image) {\n this.image = image;\n width = image.getWidth();\n height = image.getHeight();\n }", "public void updateImage(GameObject.Direction direction) {\n switch (direction) {\n case NORTH:\n currentImage = north;\n break;\n\n case SOUTH:\n currentImage = south;\n break;\n\n case WEST:\n currentImage = west;\n break;\n\n case EAST:\n currentImage = east;\n break;\n }\n }", "void setImage(PImage img) {\n _img = img;\n }", "public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}", "public void setAlbumArtImage(Image image) {\n\t\tthis.oldImage = this.image;\n\t\tthis.oldImageAlpha = this.imageAlpha;\n\n\t\tthis.image = image;\n\t\tthis.imageAlpha = 0;\n\t\tfloat vFactor = (float) ALBUM_ART_DIM\n\t\t\t\t/ (float) image.getImageData().height;\n\t\tfloat hFactor = (float) ALBUM_ART_DIM\n\t\t\t\t/ (float) image.getImageData().width;\n\t\tfloat factor = Math.min(1.0f, Math.min(vFactor, hFactor));\n\t\tif (factor < 1.0f) {\n\t\t\t// scaled to fit available area\n\t\t\tthis.image = GraniteUtils.getScaledInstance(image,\n\t\t\t\t\t(int) (factor * image.getImageData().width),\n\t\t\t\t\t(int) (factor * image.getImageData().height));\n\t\t}\n\t}", "protected void setPic() {\n }", "public void updateImage(ColorImage newImage) {\n currentImage.push(newImage);\n }", "public Builder setImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n image_ = value;\n onChanged();\n return this;\n }", "private void showImage() {\n this.animalKind = (String) imageCbox.getSelectedItem();\n try {\n ImageIcon imageIcon = new ImageIcon(getClass().getResource(\"/\" + animalKind + \"E.png\")); // load the image to a imageIcon\n Image image = imageIcon.getImage(); // transform it\n Image newImg = image.getScaledInstance(120, 120, Image.SCALE_SMOOTH); // scale it the smooth way\n imageIcon = new ImageIcon(newImg);// transform it back\n imgLabel.setIcon(imageIcon);\n this.add(imgLabel, gbc);\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n repaint();\n }", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "@Override\n protected void onActivityResult(int requestCode,int resultCode, Intent data){\n if (requestCode == 0x1 && resultCode == RESULT_OK) {\n if (data != null) {\n imageuri=data.getData();\n imageView.setImageURI(imageuri);\n changeUri(imageuri.toString());\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public void setInventoryPicture(ImageIdentifier inventoryPicture)\n\t {\n\t this.inventoryPicture=inventoryPicture;\n\t }", "@Override\n\tpublic void saveImage(Image image) {\n\t\tnew ImageDaoImpl().saveImage(image);\n\t}", "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}", "private void setImageRestaurant(String type, ImageView imageView){\n\n switch (type){\n case Restaurante.TYPE_ITALIAN:\n imageView.setImageResource(R.drawable.italian);\n break;\n case Restaurante.TYPE_MEXICAN:\n imageView.setImageResource(R.drawable.mexicano);\n break;\n case Restaurante.TYPE_ASIAN:\n imageView.setImageResource(R.drawable.japones);\n break;\n case Restaurante.TYPE_BURGER :\n imageView.setImageResource(R.drawable.hamburguesa);\n break;\n case Restaurante.TYPE_TAKEAWAY :\n imageView.setImageResource(R.drawable.takeaway);\n default:\n imageView.setImageResource(R.drawable.restaurante);\n break;\n }\n\n }", "void setImageFromSpec(ImageProvider spec);", "public void changeTeamLogo(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n editTeamLogoFile = fileChooser.showOpenDialog(null);\n\n if( editTeamLogoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n uploadTeamLogoButton.setText(\"Change Photo\");\n logoChangeImage.setImage(new Image(editTeamLogoFile.toURI().toString()));\n }\n }", "void setImagePath(String path);", "public void setImage(BufferedImage i) {\n // Paint image object\n paint = true;\n image = i;\n this.repaint();\n }", "protected void onReloadImage() {\n String url = DataProvider.SCREEN + DataProvider.SCREEN_INDEX + mScreenId + \"&time=\" + System.currentTimeMillis();\n image.setUrl(url); //just to avoid caching\n loadTree();\n }", "Builder addImage(String value);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "public void updateImage(BufferedImage displayImage) {\n this.imageToDisplay = new ImageIcon(displayImage);\n this.revalidate();\n this.repaint();\n }", "public int updateCoffeeShopImage(CoffeeShopImage coffeeShopImage) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(CoffeeShopDatabase.CoffeeShopImageTable.COLUMN_NAME_SHOP_ID, coffeeShopImage.getShop_id());\n contentValues.put(CoffeeShopDatabase.CoffeeShopImageTable.COLUMN_NAME_IMAGE_URL, coffeeShopImage.getImage_url());\n\n return db.update(CoffeeShopDatabase.CoffeeShopImageTable.TABLE_NAME, contentValues,\n CoffeeShopDatabase.CoffeeShopImageTable._ID + \" = ? \", new String[]{String.valueOf(coffeeShopImage.get_id())});\n }", "private void updatePicture() {\n \tif (!picture.getText().equals(\"\")) {\n\t\t\tif ( currentProfile != null ) {\n\t\t\t\t//Tries to open the given image fileName from user, throws an error if unable to open file.\n\t\t\t\tGImage image = null;\n\t\t\t\ttry {\n\t\t\t\t\timage = new GImage(picture.getText());\n\t\t\t\t} catch (ErrorException ex) {\n\t\t\t\t\tthrow ex;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Sets the currentProfile picture to the opened image and informs the user accordingly\n\t\t\t\tcurrentProfile.setImage(image);\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Picture updated\");\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change picture\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void updateImage(ProLicense license) {\n\t\tdao.updateImage(license);\r\n\t}", "public void setImage(String path) {\n\t\tthis.path = path;\n\t\tgetImage().set(new Image(path));\n\t}", "public void setItemImageUrl(CharSequence value) {\n this.item_image_url = value;\n }", "public void setProfileImg() {\n }", "public void update(BaseImageObject result) {\n mImageObject = result;\n\n // Try to get product image from LRCCache\n String imageUrl = result.getImageThumbnailUrl();\n if (imageUrl != null) {\n Bitmap productImageBitmap = (Bitmap) LRUCache.getValue(imageUrl);\n if (productImageBitmap != null) {\n Utils.updateImageWithDrawable(productImageBitmap, mImageView);\n } else if (mImageObject != null) {\n // If get nothing from LRCCache, fetch the image by BitmapFetcher \n getImageFromBackground(mImageObject.getImageThumbnailUrl());\n \n } \n } else {\n mImageView.setImageResource(R.drawable.noimage);\n }\n \n if (mImageObject != null) {\n mImageText.setText(mImageObject.getImageName());\n }\n }", "public void setImage(Image image, boolean isNew)\r\n\t{\r\n\t\tif (isNew)\r\n\t\t{\r\n\t\t\tmRawImage = image;\r\n\t\t\tif (! mZoom)\r\n\t\t\t{\r\n\t\t\t\tint height = image.getHeight(null);\r\n\t\t\t\tint width = image.getWidth(null);\r\n\t\t\t\tif (mCurrentHeight != height) // assume different widths if different heights\r\n\t\t\t\t{\r\n\t\t\t\t\tsetTargetHeight(height);\r\n\t\t\t\t\tsetTargetWidth(width);\r\n\t\t\t\t\tnew ZoomAnimation().start();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// scale image to canvas as necessary\r\n\t\timage = new ImageIcon(image.getScaledInstance(getCurrentWidth(), getCurrentHeight(), Image.SCALE_FAST)).getImage();\r\n\r\n\t\t// check BufferedImage fit\r\n\t\tmImageBuffer = resizeBuffer(image);\r\n\r\n\t\t// paint incoming Image to BufferedImage\r\n\t\tGraphics2D g = mImageBuffer.createGraphics();\r\n\t\tg.drawImage(image, 0, 0, null);\r\n\t\tg.dispose();\r\n\r\n\t\tmCameraListener.newImage();\r\n\t}", "@Override\n public void setProfileImage(String s, String s1) {\n }", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }" ]
[ "0.7345953", "0.7041595", "0.6797216", "0.6700662", "0.6635921", "0.6630592", "0.6608456", "0.6608456", "0.6579573", "0.6570444", "0.6532343", "0.6425963", "0.6397492", "0.6344687", "0.63019586", "0.62688625", "0.6256811", "0.61985075", "0.6186831", "0.6174338", "0.61683923", "0.6120025", "0.6113621", "0.6105366", "0.6099926", "0.6090153", "0.60814655", "0.60774076", "0.60216844", "0.6010477", "0.60080504", "0.6005823", "0.599939", "0.5998965", "0.5994039", "0.5993704", "0.5982254", "0.59811664", "0.5979011", "0.59785324", "0.59691703", "0.5966927", "0.5963993", "0.5953401", "0.5953401", "0.59452057", "0.5937487", "0.59348595", "0.59320825", "0.5927517", "0.5916798", "0.59136343", "0.5895004", "0.5891739", "0.5858013", "0.5841378", "0.5821507", "0.58199793", "0.5797624", "0.5796023", "0.57926553", "0.5769358", "0.5765267", "0.5761955", "0.5751774", "0.5748546", "0.57244545", "0.57131815", "0.5708437", "0.5706313", "0.5700253", "0.5691228", "0.5674238", "0.56433105", "0.5619744", "0.561211", "0.5611378", "0.56067306", "0.55951655", "0.55900663", "0.5586342", "0.55828893", "0.5580193", "0.55777586", "0.55746794", "0.55673057", "0.55621225", "0.55601233", "0.5558532", "0.55549735", "0.5537681", "0.5534964", "0.55308694", "0.5529427", "0.55255896", "0.55236375", "0.55074745", "0.54996467", "0.54994226", "0.5496003" ]
0.83442676
0
Gets the property id.
public int getPropertyId() { return propertyId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyId() {\n return propertyId;\n }", "public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }", "public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}", "public String getIdPropertyName() {\n \t\treturn idPropertyName;\n \t}", "@Override\n\t\t\tpublic String getPropertyId() {\n\t\t\t\treturn null;\n\t\t\t}", "public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}", "public SimpleIntegerProperty getIDProperty(){ return id; }", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Define the identifier for the task.\")\n @JsonProperty(JSON_PROPERTY_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getId() {\n return id;\n }", "public int getPropertyId(int templateId, String templateproperty){\n\t\t\n \tint id=0;\n \t\n\t\tString sql = \"select id from templateproperty where \"\n\t\t\t\t+\" idtemplate=\"+templateId\n\t\t\t\t+\" AND \"\n\t\t\t\t+ \" templateproperty=\\\"\" +templateproperty+\"\\\"\";\n\t\t\n\t\ttry {\n\t\t\t// prepared statement para inserção\n\t\t\tConnection con = DatabaseConnectionFactory.getConnection();\n \t\n\t\t\tPreparedStatement stmt = con.prepareStatement(sql);\n\n\t\t\tResultSet rs = stmt.executeQuery();\n \n if(rs.next()) {\n // criando o objeto TemplateProperty\n \n \t id=rs.getInt(\"id\");\n\n }\n\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn id;\n\t}", "public Integer getId() {\n return id.get();\n }", "public Long getId() {\n return this.id.get();\n }", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public Long getId () {\n\t\treturn id;\n\t}", "public String getOid() {\n return getProperty(Property.OID);\n }", "public Long getId () {\r\n\t\treturn id;\r\n\t}", "public String getId() {\n\t\treturn mId;\n\t}", "public String getId() {\n\t\treturn mId;\n\t}", "public java.lang.String getId() {\n return id;\n }", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public String getID() {\n return (id);\n }", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public java.lang.String getId() {\n return _id;\n }", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public Long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public java.lang.String getId () {\n\t\treturn id;\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}", "public final String getId() {\n return id;\n }", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}" ]
[ "0.84973115", "0.8277192", "0.8263903", "0.8263903", "0.8263903", "0.8263903", "0.8263903", "0.8263903", "0.8263903", "0.8180967", "0.7267615", "0.7212356", "0.71260214", "0.700012", "0.6894637", "0.67045116", "0.6687906", "0.66700166", "0.6668358", "0.6667422", "0.66559196", "0.6654079", "0.6615691", "0.66052115", "0.6604738", "0.6588284", "0.6585528", "0.6585528", "0.65828997", "0.6582103", "0.6580878", "0.65774786", "0.65660715", "0.65599096", "0.65599096", "0.65599096", "0.6544984", "0.6544984", "0.65293074", "0.65293074", "0.65293074", "0.6528109", "0.6521432", "0.65194947", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.65179485", "0.6509984", "0.65097815", "0.6508208", "0.6508208", "0.6508208", "0.6508208", "0.6508208", "0.65073323", "0.6500388", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265", "0.64964265" ]
0.8553064
0
Sets the property id.
public void setPropertyId(int propertyId) { this.propertyId = propertyId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPropertyId(String propertyId) {\n this.propertyId = propertyId == null ? null : propertyId.trim();\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "public void setIdPropertyName(final String idPropertyName) {\n \t\tthis.idPropertyName = idPropertyName;\n \t}", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n mId = id;\n }", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "public void setId(String id) {\n if (this.id == null) {\n this.id = id;\n }\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(final long id) {\n this.id = id;\n }", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId (String id) {\n this.id = id;\n }", "public void setId (java.lang.Integer id) {\r\n this.id = id;\r\n }", "public void setId(long id)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6);\n }\n target.setLongValue(id);\n }\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "protected void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(final Long id) {\n\t\tthis.id = id;\n\t}", "public void setId (String id)\n {\n _id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public final void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId (String id) {\n this.id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId(String id) {\n _id = id;\n }", "public void setPropId(String propId) {\r\n\t\t if (propId != null && StringUtils.isBlank(propId)) {\r\n\t\t throw new IllegalArgumentException(\"propId must be null or non-blank\");\r\n\t\t }\r\n\t\t\tthis.propId = propId;\r\n\t\t}", "public final void setId(long id) {\n mId = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(String id) {\r\n\t\tsId = id;\r\n\t}", "public void setId(long id) {\n\tthis.id = id;\n }", "void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(final int id) {\n mId = id;\n }", "public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}", "public void setId(String id) {\r\n \t\tthis.id = id;\r\n \t}", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(String id) {\n\t\t_id = id;\n\t}", "public final native void setId(int id) /*-{\n\t\tthis.id = id;\n\t}-*/;", "public void setId(String id) {\n\t\tthis._id = id;\n\t}", "public void setId(String id)\n\t{\n\t\tthis.id = id;\n\t}", "public void setId( Long id )\n\t{\n\t\tthis.id = id;\n\t}", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(String id) {\n\t\tthis.id = id;\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n this.id = id;\r\n }" ]
[ "0.75824696", "0.7479753", "0.7479753", "0.72900754", "0.72815466", "0.7252524", "0.72178197", "0.72129387", "0.7206874", "0.7206874", "0.7206874", "0.71987677", "0.7194252", "0.7194252", "0.7190276", "0.7190276", "0.7190276", "0.7190276", "0.7190276", "0.71777713", "0.7176549", "0.71572", "0.71561545", "0.71548903", "0.71548903", "0.71548903", "0.71548903", "0.71450585", "0.71087587", "0.71087587", "0.71087587", "0.71087587", "0.71038944", "0.71035296", "0.7100949", "0.70993274", "0.70993274", "0.7098723", "0.70945823", "0.70929205", "0.7092682", "0.70923835", "0.70923835", "0.7091065", "0.70894474", "0.70890206", "0.7088695", "0.70884216", "0.70884216", "0.7087975", "0.70868754", "0.7085929", "0.7085929", "0.7084875", "0.7084586", "0.70839924", "0.70816237", "0.70803916", "0.7076667", "0.7074744", "0.70735735", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.70718175", "0.7069685", "0.7069039", "0.70683324", "0.70628154", "0.70628154", "0.7061928", "0.7060898", "0.70600176", "0.70556015", "0.7053539", "0.70514715", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.70505977", "0.7048712", "0.7048712", "0.7048712", "0.7048712", "0.7048712", "0.70476794" ]
0.79433405
0
Gets the property title.
public String getPropertyTitle() { return propertyTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTitle() {\n return getProperty(Property.TITLE);\n }", "public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:title\")\n public String getTitle() {\n return getProperty(TITLE);\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.Object getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle()\n {\n return this.title;\n }", "@DISPID(-2147418043)\n @PropGet\n java.lang.String title();", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String get(String title) {\n\t\treturn prop.getProperty(title);\n\t}", "public String getTitle() {\r\n return this.title;\r\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle()\r\n {\r\n return this.title;\r\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "String getTitle() {\n\t\treturn this.mTitle;\n\t}", "public String getTitle()\r\n {\r\n return getSemanticObject().getProperty(swb_title);\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "@Nullable\n final public String getTitle() {\n return mTitle;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }" ]
[ "0.8974607", "0.890522", "0.8424607", "0.8250218", "0.8230122", "0.8228076", "0.8226373", "0.8226373", "0.8226373", "0.8150307", "0.8150182", "0.81501544", "0.8146433", "0.8146433", "0.8146433", "0.8121885", "0.8110676", "0.8107882", "0.8107882", "0.8107882", "0.8107882", "0.8107882", "0.8107882", "0.8107882", "0.80932665", "0.8092738", "0.8092738", "0.8092738", "0.8092738", "0.8092738", "0.8086529", "0.8086529", "0.8086529", "0.8086529", "0.8086529", "0.8086529", "0.8086529", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.80855775", "0.8080508", "0.80662155", "0.80595666", "0.8054147", "0.8053885", "0.8053885", "0.805313", "0.8052269", "0.80510974", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834", "0.8045834" ]
0.8694869
2
Sets the property title.
public void setPropertyTitle(String propertyTitle) { this.propertyTitle = propertyTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\n mTitle = title;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(String title) { this.title = title; }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title){\n this.title = title;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(final String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(final String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$2);\n }\n target.setStringValue(title);\n }\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "protected void setPopUpTitle(String title){\r\n\t\tthis.stage.setTitle(title);\r\n\t}", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setTitle(String mTitle) {\n this.mTitle = mTitle;\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "void setTitle(java.lang.String title);", "public void setTitle(Title Title) {\n\t\ttitle = Title;\n\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String title) {\n m_title.setText(title);\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }", "public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }" ]
[ "0.82702285", "0.82678956", "0.82661575", "0.82581156", "0.82581156", "0.82478327", "0.82478327", "0.8218751", "0.8215404", "0.8210255", "0.8210255", "0.8210255", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82101727", "0.82049036", "0.8201636", "0.8201636", "0.8201636", "0.8201636", "0.8201636", "0.8197699", "0.8197699", "0.8197699", "0.8197699", "0.8197465", "0.8194124", "0.81827885", "0.81687474", "0.81573397", "0.81566906", "0.815444", "0.8144006", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8140559", "0.8136703", "0.81361425", "0.81289697", "0.8122958", "0.811706", "0.8107902", "0.8106972", "0.8086514", "0.80827475", "0.8082448", "0.8082448", "0.8082448", "0.80822176", "0.80808383", "0.80352765", "0.7938517", "0.790239", "0.78974754", "0.7876927", "0.78717864", "0.7851981", "0.7822543", "0.7786014", "0.778082", "0.7771836", "0.77647746", "0.7760232", "0.7760232", "0.7760232", "0.7748708", "0.7741175", "0.7733564", "0.7716447", "0.77019346", "0.7664495", "0.7664495", "0.7664495", "0.7664495", "0.76605046", "0.76605046", "0.76605046", "0.76605046", "0.76605046" ]
0.8568892
0
Gets the property buyer id.
public int getPropertyBuyerId() { return propertyBuyerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getBuyerId() {\r\n return buyerId;\r\n }", "public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }", "public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }", "public String getBuyer() {\n return buyer;\n }", "public String getBuyerMemberId() {\n return buyerMemberId;\n }", "@ApiModelProperty(value = \"This identifier is optionally provided during the product ordering and stored for informative purpose in the seller inventory\")\n @JsonProperty(\"buyerProductId\")\n public String getBuyerProductId() {\n return buyerProductId;\n }", "public Integer getPropertySellerId() {\n\t\treturn propertySellerId;\n\t}", "public void setPropertyBuyerId(int propertyBuyerId) {\n\t\tthis.propertyBuyerId = propertyBuyerId;\n\t}", "public String getBuyerContactor() {\n return buyerContactor;\n }", "public String getBuyerName() {\n return buyerName;\n }", "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "public Integer getSellerId() {\n return sellerId;\n }", "@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public ArrayList<String> getBuyersId(){\n return buyersId;\n }", "public long getBuid() {\r\n return buid;\r\n }", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public long getDealerId() {\n\t\treturn dealerId;\n\t}", "public interface BuyerBuyerId {\n\n Long getBuyerId();\n}", "public String getBuyerContactPhone() {\n return buyerContactPhone;\n }", "public String getDealerId() {\n\t\treturn dealerId;\n\t}", "public Integer getBorrowerId() {\n return borrowerId;\n }", "@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "public void setBuyer(String buyer) {\n this.buyer = buyer;\n }", "public Integer getDealUid() {\r\n return dealUid;\r\n }", "public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public BigDecimal getEmployerId() {\n return getEmployerIdProperty().getValue();\n }", "@AutoEscape\n public String getDealerId();", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public String getSeller() {\n return seller;\n }", "public String getSeller() {\n return seller;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "@JsonProperty\n public Integer getOriginatorUserId() {\n return originator.getUserId();\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public Integer getPublisherId() {\n return publisherId;\n }", "java.lang.String getSeller();", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public Integer getPurchaseId() {\r\n return purchaseId;\r\n }", "public short getIdVendor() {\r\n\t\treturn idVendor;\r\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public Long getSellerItemInfoId() {\r\n return sellerItemInfoId;\r\n }", "public String getSellerFulfillmentOrderItemId() {\n return sellerFulfillmentOrderItemId;\n }", "@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public Long getOnemerchant() {\n return onemerchant;\n }", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public String getCustId() {\n return custId;\n }", "public String getSellerSKU() {\n return sellerSKU;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "public int getSenderId() {\n return senderId;\n }", "public Integer getCustomerID() {\n return customerID;\n }", "@java.lang.Override\n public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\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 seller_ = s;\n return s;\n }\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "String getTheirPartyId();", "public int getCurrentBuyID(){\n return currentBuyID;\n }", "public int getCustomerID() {\n return customerID;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}", "public Long getCustomerId() {\n return customerId;\n }", "public final String getVendorId(){\n return peripheralVendorId;\n }", "java.lang.String getSenderId();", "public Long getCustId() {\n return custId;\n }", "public java.lang.String getBillToId() {\n return billToId;\n }", "String getCustomerID();", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\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 seller_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "java.lang.String getCouponId();", "public java.lang.String getSoldToId() {\n return soldToId;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getSellerSku() {\n return sellerSku;\n }", "public String getCustomerid() {\n return customerid;\n }", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public int getId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "public Integer getConsigneeUserId() {\n return consigneeUserId;\n }" ]
[ "0.84256047", "0.83953196", "0.83814126", "0.74116623", "0.7328026", "0.7186508", "0.7182612", "0.69357353", "0.6864352", "0.6862722", "0.671491", "0.65913445", "0.65828097", "0.6574996", "0.6574996", "0.652071", "0.652071", "0.6497049", "0.6495612", "0.64194375", "0.64129007", "0.63709414", "0.636272", "0.63542575", "0.62971383", "0.62664795", "0.6228066", "0.62222546", "0.6216893", "0.6178793", "0.6141899", "0.61354864", "0.6088913", "0.6018936", "0.6018936", "0.6018936", "0.6018936", "0.600866", "0.5998657", "0.5998657", "0.59214526", "0.59168744", "0.58841395", "0.58841395", "0.58791906", "0.586378", "0.5858302", "0.58471936", "0.5832845", "0.5813277", "0.57544756", "0.5749319", "0.57249904", "0.5722961", "0.57220304", "0.57129896", "0.56953853", "0.56939", "0.56939", "0.56825745", "0.5681786", "0.5681786", "0.56793135", "0.5674424", "0.5674119", "0.5674119", "0.56716007", "0.56685776", "0.5664928", "0.56593055", "0.5657407", "0.56563014", "0.5645822", "0.56384194", "0.5631826", "0.56315476", "0.56169784", "0.5612942", "0.56106687", "0.55987173", "0.5598543", "0.55904925", "0.55904925", "0.5581633", "0.5577692", "0.5576288", "0.55762094", "0.55756515", "0.55756515", "0.55756515", "0.55756515", "0.55756515", "0.55691457", "0.55685496", "0.55669427", "0.5559502", "0.5558889", "0.55579567", "0.5541696", "0.55387324" ]
0.89023745
0
Sets the property buyer id.
public void setPropertyBuyerId(int propertyBuyerId) { this.propertyBuyerId = propertyBuyerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "public Long getBuyerId() {\r\n return buyerId;\r\n }", "public int getPropertyBuyerId() {\n\t\treturn propertyBuyerId;\n\t}", "public void setBuyer(String buyer) {\n this.buyer = buyer;\n }", "public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }", "public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }", "@ApiModelProperty(value = \"This identifier is optionally provided during the product ordering and stored for informative purpose in the seller inventory\")\n @JsonProperty(\"buyerProductId\")\n public String getBuyerProductId() {\n return buyerProductId;\n }", "public void setPropertySellerId(Integer propertySellerId) {\n\t\tthis.propertySellerId = propertySellerId;\n\t}", "@Override\n public void setDealerId(java.lang.String dealerId) {\n _entityCustomer.setDealerId(dealerId);\n }", "public void setBuyerMemberId(String buyerMemberId) {\n this.buyerMemberId = buyerMemberId;\n }", "public String getBuyer() {\n return buyer;\n }", "public String getBuyerMemberId() {\n return buyerMemberId;\n }", "public void setDealerId(String dealerId);", "public void setSellerId(Integer sellerId) {\n this.sellerId = sellerId;\n }", "void setSenderId(int id) {\n this.senderId = id;\n }", "public Integer getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public void setBorrowerId(Integer borrowerId) {\n this.borrowerId = borrowerId;\n }", "public Integer getPropertySellerId() {\n\t\treturn propertySellerId;\n\t}", "public void setEmployerId(BigDecimal employerId) {\n getEmployerIdProperty().setValue(employerId);\n }", "public TVendor(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setBuid(long value) {\r\n this.buid = value;\r\n }", "@Override\n\tpublic void affectInsuranceToBuyer(int insId, int buyerId) {\n\n\t}", "public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }", "public ArrayList<String> getBuyersId(){\n return buyersId;\n }", "public String getBuyerName() {\n return buyerName;\n }", "public interface BuyerBuyerId {\n\n Long getBuyerId();\n}", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "public void setBuyerContactor(String buyerContactor) {\n this.buyerContactor = buyerContactor == null ? null : buyerContactor.trim();\n }", "public String getBuyerContactor() {\n return buyerContactor;\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_buySellProducts.setId(id);\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public final void setVendorId(String vendorId){\n peripheralVendorId = vendorId;\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }", "public void setDealUid(Integer dealUid) {\r\n this.dealUid = dealUid;\r\n }", "@JsonSetter(\"callerId\")\r\n public void setCallerId (CallerIdModel value) { \r\n this.callerId = value;\r\n }", "@JsonSetter(\"deliveryId\")\r\n public void setDeliveryId (int value) { \r\n this.deliveryId = value;\r\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public Builder setBrokerId(String value) {\n validate(fields()[1], value);\n this.brokerId = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public Builder setBrokerId(String value) {\n validate(fields()[1], value);\n this.brokerId = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}", "public void setDealerId(String dealerId) {\n\t\tthis.dealerId = dealerId == null ? null : dealerId.trim();\n\t}", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public SellerId(String id) {\n super(id);\n requireNonNull(id);\n checkArgument(isValidId(id), MESSAGE_CONSTRAINTS);\n }", "public void setSellerOrderId(String sellerOrderId) {\r\n this.sellerOrderId = sellerOrderId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setBuyerName(String buyerName) {\n this.buyerName = buyerName == null ? null : buyerName.trim();\n }", "@Override\n\tvoid setId(final UserId userId);", "public void setTexts(BuyerValues buyer) {\n\t\t\tBuyerIDtextField.setText(buyer.getBuyerId());\n\t\t\tBuyerNametextField.setText(buyer.getBuyerName());\n\t\t\tBuyerAgetextField.setText(buyer.getBuyerAge().toString());\n\t\t\tBuyerAddresstextField.setText(buyer.getBuyerAddress());\n\t\t\tBuyerCitytextField.setText(buyer.getBuyerCity());\n\t\t\tBuyerStatetextField.setText(buyer.getBuyerState());\n\t\t\tBuyerZIPtextField.setText(buyer.getBuyerZIP());\n\t\t\tContactNumbertextField.setText(buyer.getBuyerContactNumber());\t\n\t}", "@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }", "public void setID(String username){\n this.clientID = username+\": \"+clientID;\n \n }", "@JsonSetter(\"id\")\r\n public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "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}", "public void setId(int id){\r\n this.id = id;\r\n }", "public Builder setSeller(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n seller_ = value;\n onChanged();\n return this;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public void setID(int id){\n this.id=id;\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String uid){\n this.uid = uid;\n }", "private void setBId(int value) {\n \n bId_ = value;\n }", "public void setId (String id)\n {\n _id = id;\n }", "public String getDealerId() {\n\t\treturn dealerId;\n\t}", "public void setSenderId(int senderId) {\r\n\t\tthis.senderId = senderId;\r\n\t}", "public long getDealerId() {\n\t\treturn dealerId;\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setPublisherId(final Integer publisherId) {\n this.publisherId = publisherId;\n }", "public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }", "public void setIdProveedor(Integer idProveedor) {\n this.idProveedor = idProveedor;\n }", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }" ]
[ "0.8028212", "0.8028212", "0.7998957", "0.7723444", "0.75832665", "0.739008", "0.6878596", "0.68419963", "0.675417", "0.67115897", "0.6453575", "0.6366449", "0.6358543", "0.63063383", "0.6232807", "0.6026945", "0.6013667", "0.59706414", "0.5962996", "0.5962996", "0.59513366", "0.59513366", "0.589358", "0.5892112", "0.5879741", "0.58179915", "0.5817857", "0.580835", "0.57552904", "0.5731904", "0.572262", "0.5700548", "0.5694987", "0.5677049", "0.5673156", "0.5673156", "0.5667539", "0.56585866", "0.5652142", "0.563327", "0.5620832", "0.5620832", "0.5593783", "0.558299", "0.558299", "0.5516721", "0.5509971", "0.5509123", "0.5494853", "0.5484533", "0.54819053", "0.54802805", "0.54802805", "0.54646486", "0.54594743", "0.5457756", "0.5457756", "0.5457756", "0.5457756", "0.5457756", "0.54518706", "0.5447582", "0.54411185", "0.5439145", "0.542481", "0.54174733", "0.5414247", "0.54126644", "0.54070544", "0.5406843", "0.5403607", "0.5403044", "0.5392486", "0.5381334", "0.53748405", "0.53715456", "0.53700674", "0.5361943", "0.536112", "0.536112", "0.5355788", "0.53436226", "0.53425694", "0.5336966", "0.5336863", "0.53253394", "0.5324553", "0.5322434", "0.53161126", "0.5312523", "0.53088546", "0.53083587", "0.53078353", "0.53078353", "0.5305697", "0.5305697", "0.53027296", "0.52997726", "0.52997595", "0.52946544" ]
0.82439387
0
Gets the un sold.
public String getUnSold() { return unSold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUnSold(String unSold) {\n\t\tthis.unSold = unSold;\n\t}", "public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}", "public int getSold() {\n\t\treturn sold_;\n\t}", "public int getAmountSold() { return amountSold; }", "public static String getSells() {\n if(DatabaseMethods.sales_analaysis()){\r\n return DatabaseMethods.get_total_sales();\r\n }\r\n else{\r\n return null; \r\n }\r\n \r\n\t}", "public ArrayList<Property> getNotSoldProperties() {\r\n\t\treturn notSoldProperties;\r\n\t}", "public List<AbstractProduct> getItemsOutOfStock() {\n return this.itemsOutOfStock;\n }", "public List<AbstractProduct> getoutOfStock() {\n return outOfStock;\n }", "int getSellCurrent();", "public int getNotReservedShoes(){\r\n\t\treturn this.numOfOrderedShoes-this.numOfReservedShoes;\r\n\t}", "public float getSellingPrice () {\n return (float) 0.0;\n }", "int getSellCurrentRaw();", "public void resetAmountSold() { amountSold = 0; }", "public boolean isSold() {\n return sold;\n }", "@Override\n\tpublic List<Goods> GetGoodsBySell() {\n\t\treturn null;\n\t}", "double getUnpaidAmount();", "public double getGrossSales() {\n return grossSales;\n }", "@Override\n\tpublic long getStatus() {\n\t\treturn _buySellProducts.getStatus();\n\t}", "@Override\r\n\tpublic double getGrossPrice() {\n\t\treturn 0;\r\n\t}", "public float getQuantityAvailableForSale () {\n return (float) 0.0;\n }", "public double getDayUnpaidLv() {\n return dayUnpaidLv;\n }", "public int getSale() {\n\t\treturn sale;\r\n\t}", "public double uninvested() {\r\n\t\treturn getAmount() - allocated();\r\n\t}", "public boolean getOnSell() {\n\t\treturn this.onSell;\n\t}", "int getSellQuantity();", "@Override\n\tpublic List<SaleInfo> getMostSoldProduct() {\n\t\treturn productDao.getMostSoldProduct();\n\t}", "public double getGrossSales() {\r\n\t\treturn grossSales;\r\n\t}", "public ArrayList<ItemModel> getAllUncheckedProduct() {\n ArrayList<ItemModel> uncheckedProducts = new ArrayList<ItemModel>();\n ArrayList<ItemModel> allProducts = getAllProducts();\n Log.d(DatabaseHelper.class.getName(), \"getAllUncheckedProducts:\");\n for (ItemModel item : allProducts) {\n if (!item.isAcquired()) {\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllUncheckedProducts:\" + item.toString());\n uncheckedProducts.add(item);\n }\n }\n\n return uncheckedProducts;\n }", "public Purse getPurse(){\n return purses.get(0);\n }", "public double getSale()\n {\n return sale;\n }", "public Integer getSellNumber() {\n return sellNumber;\n }", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }", "public Integer getAmountOnSale() {\n return amountOnSale;\n }", "private String marketSellAmounts() {\r\n\t\tint[] amounts= market.getSellAmounts();\r\n\t\tString out = \"Sell Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}", "public int getStock() {\n return stock;\n }", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "public ArrayList<Integer> getUsedUDays() {\n return pastUDays;\n }", "public String getSupStockStatus() {\n return supStockStatus;\n }", "@Override\n\t\t\tpublic double getPrice() {\n\t\t\t\treturn 0;\n\t\t\t}", "private String getStock() {\n\t\treturn stock;\n\t}", "@Override\n\tpublic int getPrice() {\n\t\treturn 0;\n\t}", "public int getKeySellItem() {\r\n return getKeyShoot();\r\n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "int getBuyCurrent();", "public Integer getSales() {\n return sales;\n }", "public int getSalesPurchase() {\n return salesPurchase;\n }", "public Double getDailySaleWithoutVat(java.sql.Timestamp transDate, java.sql.Timestamp eodDate, int storeCode) {\n\t\tDouble amount = getRawGross(transDate, eodDate, storeCode)/getVatRate();\r\n\t\tlogger.debug(\"Raw Gross: \"+amount);\r\n\t\treturn amount;\r\n//\t\treturn dailySale+totDisc+vat;\r\n\t}", "public double getSavings()\r\n {\r\n return savings;\r\n }", "public synchronized int getUPS() {\n return ups;\n }", "int getBuyCurrentRaw();", "public double getSellableSell(ShipUpgrade upgrade) {\n return upgrade.getPrice() * SELLPRICEPENALTY;\n }", "public ArrayList<Zapato> getStock(){\n\t\treturn this.stock;\n\t}", "public Integer getStock() {\n return stock;\n }", "public String getBestSeller ()\n {\n return (bestSeller);\n }", "public Integer getPurchases() {\n return purchases;\n }", "public int getStock() {\n\t\treturn stock;\n\t}", "@Override\n\tpublic Stock getStock() {\n\t\treturn null;\n\t}", "public int getSalePrice() {\n return salePrice;\n }", "public ArrayList<OrderBillPO> getUnmarkingBills() {\n\t\tArrayList<OrderBillPO> result;\n\t\ttry {\n\t\t\tresult=si.getUnjudged();\n\t\t\treturn result;\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}", "public ResultSet getItemListForSold() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , auc_start, auc_end_date , startbid , currentbid , CURRENTBID-STARTBID \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE SELLERNO = '\" + this.id +\"' AND STATUS = 'SOLD' \"\n \t+\"GROUP BY SELLERNO, INUMBER, INAME, auc_start, auc_end_date,\"+ \n \t\t\" startbid, currentbid, CURRENTBID-STARTBID\";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "@Override\n\tpublic int getProfit() {\n\t\treturn 0;\n\t}", "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "public double getLowPrice() {\n return this.lowPrice;\n }", "private ProductBookSide getSellSide() {\n\t\treturn sellSide;\n\t}", "public String getGoodsSn() {\n return goodsSn;\n }", "public Integer getDeliverSales() {\n return this.deliverSales;\n }", "@Override\n\tpublic double getStockPrice(String stockName) {\n\t\treturn 0;\n\t}", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public String getStock() {\n return stock;\n }", "public String getStock() {\n return stock;\n }", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "public double getSaleAmount() {\n return saleAmount;\n }", "public String getSupEntMoney() {\n return supEntMoney;\n }", "public double getSalePrice() {\n\t\n\t\treturn regularPrice;\n\t}", "public int salePrice(){\n return this.salePrice;\n }", "private void refreshStock(){\n storeStock = sysMgr.getStock(sysMgr.getLoginId());\n ArrayList<Stock> nonEmpty = new ArrayList<>();\n for(Stock i : storeStock)\n if(i.getQuantity() != 0)\n nonEmpty.add(i);\n storeStock = nonEmpty;\n }", "public int getStuns() {\n return stuns;\n }", "public ArrayList<Property> getSoldProperties() {\r\n\t\treturn soldProperties;\r\n\t}", "public void itemsSold() {\n quanitySnacks--;\n }", "public List<Integer> getPurchasedWeapons() {\r\n\t\treturn collectionManager.getPurchasedWeapons();\r\n\t}", "@Override\n\tpublic List<Article> getStock() {\n\t\treturn null;\n\t}", "@Override\n\tpublic java.lang.String getAskingPrice() {\n\t\treturn _buySellProducts.getAskingPrice();\n\t}", "@Accessor(qualifier = \"itemsSkipped\", type = Accessor.Type.GETTER)\n\tpublic Integer getItemsSkipped()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ITEMSSKIPPED);\n\t}", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "public ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}", "public Collection<Dealsusagetb> getSdeals() {\n RedeemAmount = 0;\n sdeals = new ArrayList<>();\n Collection<Dealsusagetb> usages = res.readEntity(gDUsages);\n for (Dealsusagetb usage : usages) {\n if(usage.getStatus() == 2) {\n sdeals.add(usage);\n //RedeemAmount += usage.getDealID().getAverageCost();\n }\n }\n return sdeals;\n }", "public double getLowPrice() {\r\n\t\treturn lowPrice;\r\n\t}", "public Double getRawGross(int orNo, int storeCode ) {\r\n//\t\tString query = \"SELECT SUM(IF(o.RETURN=0,i.SELL_PRICE*i.QUANTITY,p.AMT)) FROM invoice_item i, invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE o.OR_NO= '\"+orNo+\"' AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t+ \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \"\r\n\t\t;\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t\r\n\t\t\t\tdailySale = dailySale - getDeductibles(orNo, storeCode) + getCompletedTransactions(orNo, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER SUBTRACTION: \"+dailySale);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"Raw Gross: \"+dailySale);\r\n\t\treturn dailySale;\r\n\t}", "public ArrayList<Product> getMissingProduct(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE (Quantity_In_Store+Quantity_In_storeroom)<=\"\r\n\t\t\t\t+ \"(Average_Sales_Per_Day*Delivery_Time)\";\r\n\t\tArrayList<Product> products = new ArrayList<>();\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t products.add(getProductByID(rs.getInt(\"Barcode\")));\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"getMissingProduct: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t\treturn products;\r\n\t}", "public String getUnfoundStudents() {\r\n\t\treturn this.unfoundStudents;\r\n\t}", "public double getProductOff() {\n\t\treturn productOff;\n\t}", "public ArrayList<Stock> getStockWithName() {\n\n return null;\n }", "public double getSalePrice() {\n return salePrice;\n }", "public int getSalesPrice() {\n return salesPrice;\n }", "public int getNoBooked() {\n\n\t\treturn noBooked;\n\t}", "public int getNumSales(){\r\n return sales;\r\n }", "public String getDiscountPercentageoffirstVolumeDiscountQuantity()\n\t{\n\t\twaitForVisibility(discountPercentageoffirstVolumeDiscountQuantity);\n\t\treturn discountPercentageoffirstVolumeDiscountQuantity.getText();\n\t}", "public String uncheckedBill() {\n\t\tMap<String,Object> request = (Map) ActionContext.getContext().get(\"request\");\r\n\t\t\r\n\t\tSet uncheckedBill = creditCardManager.getUncheckedBill(creditCardID);\r\n\t\trequest.put(\"uncheckedBill\", uncheckedBill);\r\n\t\treturn \"uncheckedBill\";\r\n\t}", "Double getAnchorageSlip();" ]
[ "0.6964856", "0.6919372", "0.68329585", "0.64950067", "0.6405022", "0.6211651", "0.61068827", "0.60648066", "0.6030389", "0.601672", "0.5983919", "0.598302", "0.59516543", "0.59413195", "0.59410256", "0.59243596", "0.5885843", "0.58704734", "0.58546966", "0.58169997", "0.5807431", "0.57933474", "0.57765067", "0.57676226", "0.5748476", "0.57279944", "0.5720932", "0.57017165", "0.5682567", "0.5664601", "0.5662695", "0.5643352", "0.5634258", "0.56322294", "0.56279707", "0.56249005", "0.56022424", "0.56019396", "0.55964136", "0.5579366", "0.5543893", "0.55405104", "0.5534981", "0.5531996", "0.55270356", "0.5520405", "0.55121624", "0.5497093", "0.5491733", "0.5483731", "0.5481634", "0.5471483", "0.54698414", "0.54668915", "0.5465579", "0.5463525", "0.5459272", "0.5455138", "0.5453919", "0.54519516", "0.54512185", "0.54469895", "0.54426956", "0.54373795", "0.54360837", "0.5429663", "0.54288316", "0.54267997", "0.54202896", "0.541715", "0.541715", "0.54160523", "0.5411558", "0.5408668", "0.54085267", "0.5405907", "0.5405071", "0.54009306", "0.5397128", "0.5392553", "0.5390612", "0.5384476", "0.5381956", "0.53760886", "0.53717715", "0.53698206", "0.5369053", "0.53648305", "0.53647983", "0.53647023", "0.5364452", "0.53590465", "0.5357064", "0.5348022", "0.53417593", "0.53391975", "0.53375214", "0.53366685", "0.5331137", "0.5329032" ]
0.8439261
0
Sets the un sold.
public void setUnSold(String unSold) { this.unSold = unSold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetAmountSold() { amountSold = 0; }", "public void setSold(int sold) {\n\t\t\n\t\tsold_ = sold;\n\t}", "public String getUnSold() {\n\t\treturn unSold;\n\t}", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public void setSold(final boolean newSold) {\n this.sold = newSold;\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 }", "public void resetAmountBought() {\n //System.out.println(\"Resetting amount bought for \" + clientName + \"...\");\n amountBought = 0;\n }", "public void itemsSold() {\n quanitySnacks--;\n }", "public void decrementAmount() {\n this.amount--;\n amountSold++;\n }", "public void setUnsoldTickets(int ticketsWanted) \n {\n this.unsoldTickets = this.unsoldTickets - ticketsWanted;\n }", "void unsetValueQuantity();", "public void setauto_shutoff(int shutoff)\n {\n if(shutoff == 1 && auto_shutoff == 0)\n super.update_price(5.75);\n if(shutoff == 0 && auto_shutoff == 1)\n super.update_price(-5.75);\n this.auto_shutoff = shutoff;\n }", "@Override\n\tpublic void setStatus(long status) {\n\t\t_buySellProducts.setStatus(status);\n\t}", "public void resetState() {\n \ts = State.STRAIGHT;\n }", "public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}", "public void setBet(double bet){\n\t\tthis.bet = bet;\n\t\ttotalMoney -= bet;\n\t}", "public int getSold() {\n\t\treturn sold_;\n\t}", "void unsetAmount();", "public void setShopping(boolean b)\n\t{\n\t\tm_isShopping = b;\n\t\tif(!b)\n\t\t\tm_currentShop = null;\n\t}", "public void setRevealed(int revealed) { revealedShips = revealed;}", "public void buyFarm(){\n bought = !bought;\n }", "public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}", "public int getAmountSold() { return amountSold; }", "public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }", "public final void setFuelUpgrade(int fuelUp){fuelUpgrade = fuelUp;}", "public synchronized void resetSales() {\n sales = null;\n }", "void unsetCapitalPayed();", "private void setStock(int stock) throws StockNegativoException {\n if (stock < 0)\n throw new StockNegativoException(\"El stock no puede ser negativo.\");\n this.stock = stock;\n }", "public void setBestSeller (String bS)\n {\n bestSeller = bS;\n }", "public void resupply()\n {\n fuel = model.maxFuel;\n ammo = model.maxAmmo;\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "void unset() {\n size = min = pref = max = UNSET;\n }", "public void startSale()\n\t{\n\t\tpurchase.reset();\n\t}", "public void Restock() {\n for (Ingredient ingredient : stock.keySet()) {\n stock.put(ingredient, inventoryMax);\n }\n }", "public void setSale(int sale) {\n\t\tthis.sale = sale;\r\n\t}", "public void setLowStock(boolean lowStock)\r\n\t{\r\n\t\tthis.lowStock = lowStock;\r\n\t\tif(this.lowStock)\r\n\t\t{\r\n\t\t\tnotifyObserver();\r\n\t\t}\r\n\t}", "public void setNumSales(int numSales){\r\n this.sales = numSales;\r\n }", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }", "public void setShop(Shop s)\n\t{\n\t\tm_currentShop = s;\n\t}", "public void setUsed()\n\t{\n\t\tm_justReset = false;\n\t}", "public void setCheese(Cheese newHold) {\n this.hold = newHold;\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void sellProperty(){\n owner.addMoney(costs[0]/2);\n owner.removeProperty(this);\n owner = null;\n }", "public boolean isSold() {\n return sold;\n }", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void resetQuantity() {\n Log.d(\"Method\", \"resetQuantity()\");\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n quantityAlert = false;\n cb.setChecked(false);\n displayQuantity();\n }", "public void setUnstable() {\n this.unstable = true;\n this.unstableTimeline.play();\n if (this.online == true) {\n this.statusLed.setStatus(\"alert\");\n this.statusLed.setFastBlink(true);\n }\n }", "public void setSales(Integer sales) {\n this.sales = this.sales + sales;\n }", "public void unsetAmountOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AMOUNTOPEN$8, 0);\n }\n }", "private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "public void setValue(int size) {\n s.setValue(-size);\n }", "public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }", "public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}", "public void setSaleAmount(double amount) {\n saleAmount = amount;\n }", "public void setSalesPrice(int value) {\n this.salesPrice = value;\n }", "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "public final void set () {\t\n\t\tsymbol = null;\t\n\t\tmksa = underScore; factor = 1;\n\t\tvalue = 0./0.;\t\t\t// NaN\n\t\toffset = 0.;\n\t}", "void setBet(int bet) {\n\t\tif (bet > _money) { // all in if you bet more than you have\n\t\t\t_bet = _money;\n\t\t\t_money = 0;\n\t\t\t\n\t\t}\n\t\telse if (bet < 1) {\n\t\t\t_bet = 1;\n\t\t\t_money -= _bet;\n\t\t}\n\t\telse {\n\t\t\t_bet = bet;\n\t\t\t_money -= bet;\n\t\t}\n\t}", "public void reset() {\n price = 0;\n itemNumbers.clear();\n selectedOptions.clear();\n setupGUI();\n }", "public void resetPotandWins() {\n setPot(0.0);\n setNumOfPaylines(0);\n }", "public void changepay(){\n pay = !pay;\n }", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "private void resetActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining) {\n\t\t\tint betAm = obj.getBet();\n\t\t\t//reset the bet amount and return the credit amount and update the labels and buttons\n\t\t\tobj.setCredit(obj.getCredit() + betAm);\n\t\t\tobj.setBet(0);\n\t\t\tupdateLabels();\n\t\t\tupdateDisabledButtons();\n\t\t}\n\t\t//restart\n//\t\tobj.setBet(0);\n//\t\tobj.setWin(0);\n//\t\tobj.setLoses(0);\n//\t\tobj.setCredit(10);\n//\t\tdispose();\n//\t\tstart();\n\t}", "public void sell() throws UnavailableObjectException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.increaseBudget(getSellValue());\r\n\t\tgame.getInventory().take(id);\r\n\t}", "private void clearSell()\r\n {\r\n fieldSell_Description.setText(\"\");\r\n fieldSell_Manufacturer.setText(\"\");\r\n fieldSell_Price.setText(\"\");\r\n fieldSell_taxRate.setText(\"\");\r\n fieldSell_Customer.setText(\"\");\r\n fieldSell_Date.setText(\"\");\r\n fieldSell_hardwareDeviceNo.setText(\"\");\r\n }", "@Override\r\n\tpublic void unsetGiveValue() {\n\t\t\r\n\t}", "public void onPowerSaveUnwhitelisted(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "public void setOldOrderToPaid() {\n\n\t\tDate date = new Date();\n\n\t\tTimestamp ts = new Timestamp(date.getTime());\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n\t\tString sql = \"UPDATE restodb.order, location set status = 'Paid', state = 'Vacant' where idorder > 0 and date < '\"\n\t\t\t\t+ formatter.format(ts).substring(0, 10) + \" 00:00:00\" + \"'\";\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tstatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t}", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }", "@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}", "public void aendereWert (int value) {\n\t\tvalue = 0 ;\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public void setBorneSup() { \n\t\tif(profondeur < ListObjet.size())borneSup = borneInf + ((poids_maximal - poidsActuelle)*ListObjet.get(profondeur).getRapport());\n\t\telse borneSup = borneInf + ((poids_maximal - poidsActuelle)*0);\n\t}", "public void setShipped(){\n this.shipped = new Date();\n }", "public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) \n\t\t\t\t\t? LowStockText : NormalText);\n\t}", "public void setStuns(int stuns) {\n this.stuns = stuns;\n }", "private void resetAvailable(Roll roll){\n\t\tStock replacementStock = new Stock(roll, inventoryLevel);\n\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString rollType = roll.getType();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(inventory.get(i).getRoll().getType().equals(rollType)){\n\t\t\t\tinventory.set(i,replacementStock);\n\t\t\t}\n\t\t}\n\t}", "public static void lose()\n\t{\n\t\tGame.setMoney(Game.getMoney()-bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"The dealer wins\");\n\t\tif(Game.getMoney()<=0)\n\t\t{\n\t\t\tGame.setComplete(true);\n\t\t\tendGameSequence();\n\n\t\t}\n\t}", "public void setSoul(int soul) {\n \t\tthis.soul = soul;\n \t}", "public void setLowGearState() {\n shifter.set(Constants.Drivetrain.LOW_GEAR_STATE);\n }", "@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), false);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}", "public void unKingMe() {\r\n this.type = Type.SINGLE;\r\n }", "public void unsetAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AMOUNT$6, 0);\n }\n }", "public void setProductOff(double productOff) {\n\t\tthis.productOff = productOff;\n\t}", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public void minusShield(int down) {\n\t\tshieldLevel -= down;\n\t}", "public void setFuel(int amount) {\r\n this.fuel = amount;\r\n }", "public void wearOutfit() {\r\n for (int index = 0; index < mTops.size(); index++) {\r\n mTops.get(index).setWorn(true);\r\n }\r\n for (int index = 0; index < mBottoms.size(); index++) {\r\n mBottoms.get(index).setWorn(true);\r\n }\r\n if (mShoes != null) {\r\n mShoes.setWorn(true);\r\n }\r\n for (int index = 0; index < mAccessories.size(); index++) {\r\n mAccessories.get(index).setWorn(true);\r\n }\r\n if (mHat != null) {\r\n mHat.setWorn(true);\r\n }\r\n }", "public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setSellNumber(Integer sellNumber) {\n this.sellNumber = sellNumber;\n }", "public void setOldPrice(Money oldPrice) {\n\t\tif (oldPrice == null) {\n\t\t\tthis.oldPrice = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.oldPrice = oldPrice;\n\t\t}\n\t}" ]
[ "0.7366213", "0.6884151", "0.6555155", "0.6372815", "0.6364628", "0.63287747", "0.62476003", "0.61382776", "0.6062098", "0.5961428", "0.5851271", "0.5763874", "0.57344884", "0.57191527", "0.5718679", "0.5711984", "0.57043356", "0.56936455", "0.56845915", "0.56661963", "0.5637375", "0.5582227", "0.5576081", "0.5573786", "0.55710346", "0.5563104", "0.556068", "0.55548596", "0.5551666", "0.5538094", "0.5530512", "0.5516989", "0.55093294", "0.5501819", "0.5499882", "0.54837614", "0.5476039", "0.5472874", "0.54720676", "0.5467004", "0.54620564", "0.5460973", "0.54597294", "0.54526097", "0.54411864", "0.5440321", "0.5431618", "0.54220015", "0.541001", "0.5407452", "0.5394882", "0.53895265", "0.5388166", "0.5382748", "0.5377074", "0.53716904", "0.5371298", "0.5367368", "0.5358058", "0.5343106", "0.5337545", "0.53216237", "0.53195184", "0.53192973", "0.5310153", "0.5308626", "0.5308487", "0.53079075", "0.5306192", "0.5297934", "0.5295871", "0.5295663", "0.52923214", "0.52922195", "0.5291062", "0.5285389", "0.5284795", "0.5278935", "0.5277893", "0.52660793", "0.52635074", "0.52564317", "0.5252071", "0.52482176", "0.5247548", "0.5244951", "0.52396744", "0.52366", "0.5235222", "0.5234748", "0.52203417", "0.5216616", "0.5216275", "0.5215799", "0.5213528", "0.5210835", "0.5192922", "0.5192922", "0.5189205", "0.51882213" ]
0.8105325
0
/ access modifiers changed from: packageprivate
public final void a(int i, org.b.c<? super T>[] cVarArr, org.b.c<T>[] cVarArr2, ah.c cVar) { io.reactivex.internal.b.a aVar = cVarArr[i]; io.reactivex.internal.d.b bVar = new io.reactivex.internal.d.b(this.c); if (aVar instanceof io.reactivex.internal.b.a) { cVarArr2[i] = new c(aVar, this.c, bVar, cVar); } else { cVarArr2[i] = new d(aVar, this.c, bVar, cVar); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "protected void mo6255a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo23813b() {\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "private SourcecodePackage() {}", "public void mo115188a() {\n }", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private Utils() {\n\t}", "private Utils() {\n\t}", "private final zzgy zzgb() {\n }", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2740a() {\n }", "private NativeSupport() {\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}" ]
[ "0.7151204", "0.6685856", "0.65579224", "0.64821804", "0.6429287", "0.6384333", "0.63834417", "0.63473904", "0.63293463", "0.6275806", "0.62622887", "0.62497604", "0.62368774", "0.623226", "0.62282825", "0.61979276", "0.61979276", "0.61937356", "0.618325", "0.6179347", "0.6156394", "0.6152321", "0.6150922", "0.6116055", "0.61086726", "0.6107442", "0.6086904", "0.60811025", "0.6072478", "0.60696185", "0.60570914", "0.6054833", "0.6054526", "0.60525656", "0.60491097", "0.60460424", "0.6045443", "0.60358196", "0.6024209", "0.6024209", "0.6024209", "0.6024209", "0.6019897", "0.6018897", "0.60171866", "0.60158986", "0.60048693", "0.6001631", "0.5998349", "0.59978527", "0.5995711", "0.5994793", "0.59905267", "0.59905267", "0.59905267", "0.59905267", "0.59905267", "0.59905267", "0.59905267", "0.5989437", "0.5986115", "0.5986115", "0.59834504", "0.5981717", "0.5972327", "0.5957651", "0.59563696", "0.5951661", "0.5950725", "0.59470475", "0.59463423", "0.5943738", "0.5941805", "0.59394234", "0.5937379", "0.59370273", "0.59262437", "0.59262437", "0.59256387", "0.592516", "0.59133077", "0.5910573", "0.59043795", "0.5903848", "0.59034365", "0.5898162", "0.58955926", "0.5892817", "0.5892674", "0.588908", "0.5881135", "0.58779347", "0.5876591", "0.5876238", "0.5875925", "0.5872185", "0.58655745", "0.58654153", "0.5865284", "0.586524", "0.586524" ]
0.0
-1
Method for getting all customers
@ApiOperation(value = "Lists all the customers", notes = "") @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public CustomerListDTO getCustomers() { return new CustomerListDTO(customerService.getCustomers()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }", "public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }", "public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }", "@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}", "@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}", "@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}", "@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}", "public ArrayList<Customer> getAllCustomers();", "@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}", "public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }", "@GetMapping(value = CustomerRestURIConstants.GET_ALL_CUSTOMER )\n\tpublic ResponseEntity<List<Customer>> list() {\n\t\tList<Customer> customers = customerService.getAllCustomers();\n\t\treturn ResponseEntity.ok().body(customers);\n\t}", "@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}", "public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "List<Customer> getCustomers();", "@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}", "@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}", "@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}", "public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }", "@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}", "@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}", "@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET)\n\tpublic Mono<ResponseEntity<List<Customer>>> allCustomers() {\n\n\t\treturn repo.findAll().collectList()\n\t\t\t.filter(customers -> customers.size() > 0)\n\t\t\t.map(customers -> ok(customers))\n\t\t\t.defaultIfEmpty(noContent().build());\n\t}", "public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}", "@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}", "@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}", "List<Customer> loadAllCustomer();", "public List<Customer> findAllCustomers() throws DatabaseOperationException;", "@RequestMapping(\"getAllCustomers\")\r\n\t @ResponseBody\r\n\t public List<Customer> getAllCustomers() {\r\n\t\t return repo.findAll();\r\n\t }", "@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}", "@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}", "@Override\r\n\tpublic List<Customer> getAllCustomers() {\r\n\t\tList<Customer> allCustomers = new ArrayList<Customer>();\r\n\t\tallCustomers = customerRepository.findAll();\r\n\t\tif (!allCustomers.isEmpty()) {\r\n\t\t\treturn allCustomers;\r\n\t\t} else {\r\n\t\t\tthrow new EmptyEntityListException(\"No Customers Found.\");\r\n\t\t}\r\n\r\n\t}", "@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}", "@GetMapping(\"/customers\")\n public List<Customer> findAll()\n {\n return customerService.findAll();\n }", "@Override\n\t@Transactional\n\tpublic List<Customer> getAll() {\n\t\tList<Customer> loadAll = hibernateTemplate.loadAll(Customer.class);\n\t\treturn loadAll;\n\t}", "@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }", "public List<CustomerModel> getCustomers();", "@RequestMapping(method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Collection<Customer>> getAllUsers() {\n\t\t\treturn service.getAllCustomers();\n\t\t}", "@Override\n\tpublic List<Customer> findAll() {\n\t\treturn customerRepository.findAll();\n\t}", "@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerAddres> getAllCustomerAddres() {\n log.debug(\"REST request to get all CustomerAddres\");\n List<CustomerAddres> customerAddres = customerAddresRepository.findAll();\n return customerAddres;\n }", "@RequestMapping(value = \"/customers\", method = RequestMethod.GET)\n public ResponseEntity<?> getCustomers() {\n Iterable<Customer> customerList = customerService.getCustomers();\n return new ResponseEntity<>(customerList, HttpStatus.OK);\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 List<Customer> findAll() {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query to fetch all records\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\"from Customer where customerId!=:customerId\", Customer.class);\n\t\t//get account details of all accounts\n\t\tquery.setParameter(\"customerId\", 9999999);\n\t\tList<Customer> customer = query.getResultList();\n\t\t//return the result\n\t\treturn customer;\n\t}", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "List<Customer> getCustomerList();", "@GetMapping(\"/customers\")\n public List<CustomerHibernate> listCustomers() {\n return customerService.findAll();\n }", "@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}", "public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"recipient1@example.com\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"recipient2@example.com\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"recipient3@example.com\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"recipient4@example.com\", \"Orange\"));\n\n return customers;\n }", "public Object getAllCustomers(HttpServletRequest req);", "@GetMapping(\"/customers\")\n\tpublic ResponseEntity<Object> getAllCustomers(HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tList<Customer> c = cService.findAll();;\n\t\t\tMappingJacksonValue mappedCustomers = new MappingJacksonValue(c);\n\t\t\tmappedCustomers.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"id\", \"email\", \"name\")));\n\t\t\treturn new ResponseEntity<>(mappedCustomers, HttpStatus.OK);\n\t\t}\n\t}", "@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Customer> findAll() {\n\t\treturn (List<Customer>) customerDAO.findAll();\n\t}", "List<CustomerOrder> getAllCustomerOrder();", "List<Customer> getList();", "@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\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 Collection<Customer> listCustomer10() {\r\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\r\n\t\treturn list;\r\n\t}", "public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}", "public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}", "public Collection<Customer> listCustomer10() {\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\n\t\treturn list;\n\t}", "com.google.cloud.channel.v1.Customer getCustomers(int index);", "public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }", "public List<CustomerEntity> findAll() {\n\t\treturn customerRepository.findAll();\n\t}", "@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, customerService.showCustomerList());\n return CUSTOMERS_INDEX;\n }", "java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();", "Set<Customer> getCustomers(final CustomerQueryFilter filter);", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic @ResponseBody\n\tIterable<Customer> findAll() {\n\t\tLOGGER.debug(\"Rendering persons list\");\n\t\treturn customerService.findAll();\n\n\t}", "@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}", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Customer> getCustomerFindAll() {\n return em.createNamedQuery(\"Customer.findAll\", Customer.class).getResultList();\n }", "@Override\n\tpublic List<Customer> findall() {\n\t\treturn (List<Customer>) h.find(\"from Customer\");\n\t}", "@GetMapping()\n public Iterable<Customer> getCustomers(CustomerSpec spec){\n return customerRepository.findAll(spec);\n }", "@GetMapping(value = \"/showCustomers\")\n\tpublic String getAllCustomers(Model model) {\n\t\t// AllCustomers model attribute iterated over to display Customers in table on\n\t\t// JSP page\n\t\tmodel.addAttribute(\"AllCustomers\", customerService.getCustomers());\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"showCustomers\";\n\t}", "public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }", "@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\t/*\n\t * @ApiOperation(value = \"Get all the customers\", notes =\n\t * \"Send GET request to get all the customers\" , httpMethod = \"GET\", code = 200,\n\t * response = CustomerResponse.class, responseContainer = \"List\", produces =\n\t * MediaType.APPLICATION_JSON_VALUE)\n\t * \n\t * @ApiResponses(value = {\n\t * \n\t * @ApiResponse(code = 200, response = CustomerResponse.class, responseContainer\n\t * = \"List\", message = \"List of all customers\"),\n\t * \n\t * @ApiResponse(code = 401, response = ErrorResponse.class, message =\n\t * \"Invalid or expired token provided. Error code: CREDENTIALS_REJECTED\"),\n\t * \n\t * @ApiResponse(code = 500, response = ErrorResponse.class, message =\n\t * \"Runtime server error occurred. Error code: SERVER_ERROR\")})\n\t */\n\tpublic List<CustomerResponse> getCustomers() {\n\t\tlog.info(\"hit the controller\");\n\t\treturn customerService.findAll();\n\t}", "public ArrayList<Customer> getAllCustomers(){\n ArrayList<Customer> customers = new ArrayList<>();\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer \");\n\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n customers.add(\n new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n ));\n\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return customers;\n }", "public List<Customer> read() {\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer\");\n rest = ppst.executeQuery();\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }", "public List<Customer> findAll() throws CustomerNotFoundException {\r\n return this.entityManager.createQuery(\"select customer from Customer as customer\").getResultList();\r\n }", "@RequestMapping( value = CONTEXT_URL,\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public List<CustomerDTO> getCustomers()\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomers\";\n logMethodBegin( methodName );\n List<CustomerDTO> customerDTOs = customerEntityService.getAllCustomers();\n logMethodEnd( methodName, customerDTOs );\n return customerDTOs;\n }", "public String allCustomers(){\n String outputString = \"Customer accounts:\"+\"\\n\";\n for(Customer record : bank.getName2CustomersMapping().values()){\n outputString += record.getFullName()+\" \"+record.getAccounts().toString()+\"\\n\";\n }\n return outputString;\n }", "public List<CustomerPurchase> getAll() throws SQLException;", "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 List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}", "@Override\n\tpublic Customer[] readAll() {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM %s ;\", TABLE_NAME);\n\t\tCustomer[] result = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\tArrayList<Customer> resultTmp = new ArrayList<Customer>();\n\n\t\t\twhile (rS.next()) {\n\t\t\t\tresultTmp.add(\tresultTmp.size(),\n\t\t\t\t\t\t\t\tnew Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\t\t\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS))\n\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\trS.close();\n\n\t\t\tresult = new Customer[resultTmp.size()];\n\t\t\tresultTmp.toArray(result);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during retrieving all data from of customer table : \" + e.getMessage());\n\t\t}\n\n\t\treturn result;\n\t}", "public Customer[] getCustomers() {\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tCustomer[] ret = new Customer[customers.size()];\r\n\t\tfor (int i = 0; i < ret.length; i++) {\r\n\t\t\tret[i] = customers.get(i);\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "List<CustomerDto> findAll();", "public static ObservableList<Customers> getAllCustomers() {\n\n ObservableList<Customers> clist = FXCollections.observableArrayList();\n\n try {\n String sql = \"SELECT * FROM customers\";\n\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n\n int customerID = rs.getInt(\"Customer_ID\");\n String customerName = rs.getString(\"Customer_Name\");\n String customerAddress = rs.getString(\"Address\");\n String customerPostalCode = rs.getString(\"Postal_Code\");\n String customerPhone = rs.getString(\"Phone\");\n Date customerCreateDate = rs.getDate(\"Create_Date\");\n String customerCreatedBy = rs.getString(\"Created_By\");\n Timestamp customerLastUpdate = rs.getTimestamp(\"Last_Update\");\n String customerLastUpdatedBy = rs.getString(\"Last_Updated_By\");\n int customerDivisionId = rs.getInt(\"Division_ID\");\n\n models.Customers C = new models.Customers(\n customerID,\n customerName,\n customerAddress,\n customerPostalCode,\n customerPhone,\n customerCreateDate,\n customerCreatedBy,\n customerLastUpdate,\n customerLastUpdatedBy,\n customerDivisionId\n );\n clist.add((Customers) C);\n }\n\n } catch (Exception throwables) {\n throwables.printStackTrace();\n }\n\n return clist;\n }", "@RequestMapping(\"/employee\")\r\n\tpublic List<Employee> getAllCustomers() throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getAllCustomers();\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(400, e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }", "@GetMapping()\n public List<AgentCustomerList> findAllAgentsCustomerList() {\n return agentRepo.findAllAgentCustomerListBy();\n }", "public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }", "@Accessor(qualifier = \"Customers\", type = Accessor.Type.GETTER)\n\tpublic Collection<B2BCustomerModel> getCustomers()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CUSTOMERS);\n\t}", "@GetMapping(\"/customers\")\n\tpublic String findAll(Model theModel) {\n\t\tList<Customer> theCustomer = customerServices.findAll();\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\n\t\treturn \"customer/list-customer\";\n\t}", "@Override\r\n\tpublic List<CustVO> getAll() {\n\t\tList<CustVO> list = new ArrayList<CustVO>();\r\n\t\tCustVO custVO = null;\r\n\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "public List<Customer> list() throws CustomerEmptyListException{\n\t\tList<Customer> customerList = new LinkedList<Customer>();\n\t\t\n\t\tif (repository.findAll() == null) {\n\t\t\tthrow new CustomerEmptyListException(\"There is no customer in the repository!\");\n\t\t}\n\t\t\n\t\tfor (Customer customer : repository.findAll()) {\n\t\t\tcustomerList.add(customer);\n\t\t}\n\t\treturn customerList;\n\t}", "@GetMapping(path=\"/all\")\n public @ResponseBody Iterable<CustomerOrder> getAllUsers() {\n return userRepository.findAll();\n }", "@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}", "List<Customer> findAllWithFetch();" ]
[ "0.8588482", "0.840245", "0.8392069", "0.8387138", "0.8339042", "0.82050174", "0.8184143", "0.8179307", "0.81767845", "0.8134683", "0.8090283", "0.80825144", "0.80318147", "0.8023606", "0.8003214", "0.7996572", "0.7989143", "0.79804224", "0.79743975", "0.7959958", "0.7928802", "0.7927522", "0.7925626", "0.79248273", "0.78886354", "0.78873384", "0.7848994", "0.783443", "0.7831845", "0.78234994", "0.78120023", "0.78024614", "0.7786265", "0.7769992", "0.7768979", "0.77576953", "0.77502507", "0.7743265", "0.77353024", "0.773427", "0.7725681", "0.7724836", "0.77101856", "0.77045923", "0.768271", "0.76668257", "0.76654494", "0.76416224", "0.759714", "0.75820065", "0.7566194", "0.75390494", "0.7532533", "0.7531643", "0.7514133", "0.7502619", "0.75022584", "0.74839705", "0.7460115", "0.7433363", "0.74225044", "0.73875046", "0.7378167", "0.73705786", "0.73686635", "0.73630524", "0.73408777", "0.7331456", "0.7304777", "0.7289471", "0.72849315", "0.7258767", "0.7239451", "0.72365826", "0.7230482", "0.72296375", "0.7220898", "0.72044516", "0.72032034", "0.7193115", "0.7190949", "0.7160384", "0.7112993", "0.7098884", "0.7071372", "0.70708424", "0.7069991", "0.7067821", "0.7062596", "0.70527095", "0.7034527", "0.70222586", "0.70142585", "0.69977105", "0.69854236", "0.6950771", "0.6944352", "0.69380957", "0.6905642", "0.6890438" ]
0.73586684
66
Method for getting customer by customer Id
@ApiOperation(value = "Get a customer by id", notes = "") @GetMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public CustomerDTO getCustomerById(@PathVariable Long customerId) { return customerService.getCustomerById(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(final Long id);", "public String getCustomer(String custId);", "Customer getCustomerById(int customerId);", "@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}", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\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}", "Customer findById(Long id);", "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 }", "@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}", "@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}", "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 Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}", "public Customer findCustomerById(long id) throws DatabaseOperationException;", "public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }", "@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "@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}", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}", "public Customer getCustomerById(Integer id) {\n\t\treturn (Customer) sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"id\",id)).uniqueResult();\r\n\t}", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "@Override\n\t@Transactional\n\tpublic Customer getCustomerbyId(int theid) {\n\n\t\tCustomer thecustomer = hibernateTemplate.get(Customer.class, theid);\n\n\t\treturn thecustomer;\n\t}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "@GetMapping(\"/customers/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable(value = \"id\") Long customerId)\n\t\tthrows ResourceNotFoundException {\n\t\tCustomer customer = customerRepository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Custumer not found for this id :: \" + customerId));\n\t\t\t\treturn ResponseEntity.ok().body(customer);\n\t}", "@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}", "@SuppressWarnings(\"finally\")\n\tpublic Customer getCustomer(int cust_id) throws SQLException //final&complete IMPL\n\t{\n\t\tCustomer res=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = openConnection();\n\t\t\tPreparedStatement queryStatement;\n\t\t\tResultSet queryResult;\n\t\t\t\n\t\t\tqueryStatement =connection.prepareStatement(\"select * from CUSTOMERS where customer_id=?;\");\n\t\t\tqueryStatement.setString(1, Integer.toString(cust_id));\n\t\t\tqueryResult = queryStatement.executeQuery();\n\t\t\t\n\t\t\tif(queryResult.next())\n\t\t\t{\n\t\t\t\tString cust_username=null, cust_password=null, user_email=null, user_PicURL=null;\n\t\t\t\tString cust_fname=null, cust_lname=null;\n\t\t\t\tboolean isCustomer = true;\n\t\t\t\t\n\t\t\t\tcust_fname = queryResult.getString(2);\n\t\t\t\tcust_lname = queryResult.getString(3);\n\t\t\t\tcust_username = queryResult.getString(4);\n\t\t\t\tcust_password = queryResult.getString(5);\n\t\t\t\tuser_email = queryResult.getString(6);\n\t\t\t\t\n\t\t\t\tres = new Customer((short)cust_id, cust_username, cust_password, cust_fname + cust_lname, user_email, user_PicURL, isCustomer, null, null);\n\t\t\t}\n\t\t}\t\n\t\tfinally\n\t\t{\n\t\t\tcloseConnection();\n\t\t\tif(res==null)\n\t\t\t\tthrow new SQLException(\"No customer user found for provided credantials!\");\n\t\t\telse\n\t\t\t\treturn res;\n\t\t}\n\t}", "public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}", "@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "String getCustomerNameById(int customerId);", "@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }", "public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "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 }", "@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}", "@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}", "public Customer getCustomerByName(String customerName);", "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 Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public Customer getCustomer(String id) {\n\t\tString firstName = \"\";\n//\t\tString lastName = \"\";\n//\t\tString address = \"\";\n//\t\tString creditCard = \"\";\n//\t\tString phone = \"\";\n//\t\tArrayList<Order> orders = new ArrayList<>();\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement selectStatement = connection.createStatement();\n\t\t\t\n\t\t\tString selectQuery = \"SELECT * from Customer where CustomerID='\" + id +\"'\";\n\t\t\tResultSet resultSet = selectStatement.executeQuery(selectQuery);\n\t\t\tresultSet.next();\n\t\t\t\n\t\t\tfirstName = resultSet.getString(\"FName\");\n//\t\t\tlastName = resultSet.getString(\"lastName\");\n//\t\t\taddress = resultSet.getString(\"lastName\"); //TODO update this code: Address has it's own table . access AddressDAO object (use attribute line 21) \n//\t\t\tcreditCard = resultSet.getString(\"creditCard\"); //TODO same as Address. (attribute line 22) \n\n//\t\t\torders = orderDAO.getAllOrders(); //TODO fix me (make sure function returns something).\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCustomer customer = new Customer();\n\t\tcustomer.setFirstName(firstName);\n//\t\tcustomer.setLastName(lastName);\n//\t\t//TODO customer.setAddress(address); update\n//\t\t//TODO customer.setCard(creditCard); update\n//\t\tcustomer.setOrders(orders);\n\t\t\n\t\treturn customer;\n\t}", "@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\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}", "@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }", "@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "@RequestMapping(\"/cars/{carId}/Customer/{id}\")//لما حطيت id لازم احط تحت باث فاريبل\r\n\t public CustomerDto FindCustomer(@PathVariable String id) {\r\n\t\treturn serviceUsers.getCustomer(id);\r\n\t }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "String getCustomerID();", "@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}", "public Customer loadCustomerFromId(int customerId) {\n ResultSet rs = database.getCustomer(customerId);\n Customer newCustomer = null;\n try {\n if (rs.next()) {\n newCustomer = new Customer(rs.getString(\"name\"), rs.getString(\"address\"), rs.getString(\"email\"), \"toBeLoaded\", rs.getDate(\"birthday\"), rs.getInt(\"phonenumber\"));\n newCustomer.setPassword(Customer.fromBase64(rs.getString(\"password\")));\n newCustomer.setSalt(Customer.fromBase64(rs.getString(\"passwordsalt\")));\n // newCustomer.setCurrentOrder(loadOrderFromId(rs.getInt(\"currentorderid\")));\n newCustomer.setCustomerID(customerId);\n } else {\n throw new NoSuchCustomerException(customerId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newCustomer == null) {\n throw new NoSuchCustomerException(customerId);\n }\n return newCustomer;\n }", "public Long getCustomerId() {\n return customerId;\n }", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }", "public Customer findById(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//get account details by id and return the result\n\t\tCustomer customer = currentSession.get(Customer.class, id);\n\t\t//return the result\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer show(int id) {\n\t\t\n\t\tOptional<Customer> customerOpt = this.customerRepo.findById(id);\n\t\tif(customerOpt.isPresent()) {\n\t\t\tCustomer customer = customerOpt.get();\n\t\t\treturn customer;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic CustomerRec getCustomerRecById(String id) {\n\t\tCustomerRec rec = customerRecDao.selectByPrimaryKey(id);\r\n\t\treturn rec;\r\n\t}", "@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "static Customer getCustomerWithId(int id){ return new Customer();}", "Customer getCustomer();", "@Override\n\tpublic Customer read(int id) {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM TB_Customer WHERE \" + COLUMN_NAME_ID + \" = %d\", id);\n\t\tCustomer customer = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\trS.next();\n\t\t\tcustomer = new Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS));\n\n\t\t\trS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during reading of customer \" + id + \" : \" + e.getMessage());\n\t\t}\n\n\t\treturn customer;\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}", "CustomerDto findById(Long id);", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);", "public static DTO_JPOS_Customer getCustomer(int customerId,Connection con) {\r\n\t\tLMSDAOFactory factory = LMSDAOFactory.getInstances();\r\n\t\tIJPOS_Customer myCustomer = factory.getJPOS_Customer();\r\n\t\treturn myCustomer.getCustomer(customerId,con);\r\n\t}", "public String getCustomerid() {\n return customerid;\n }", "@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }", "FetchRequest<Customer> byId(String id);", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic Customer findOne(Long id) {\n\t\treturn customerDAO.findById(id).orElse(null);\n\t}", "public int getCustomerId() \n {\n return customerId;\n }", "public CustomerPurchase getById(Integer id) throws SQLException;", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "@Override\r\n\tpublic Customer findByKey(int id) throws SQLException {\r\n\t\tString selectSql = \"SELECT * FROM \" + tableName + \" WHERE (id = ?)\";\r\n\t\tCustomer customer = null;\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(selectSql);\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomer = new Customer();\r\n\t\t\t\tcustomer.setId(rs.getInt(\"id\"));\r\n\t\t\t\tcustomer.setName(rs.getString(\"name\"));\r\n\t\t\t\tcustomer.setSurname(rs.getString(\"surname\"));\r\n\t\t\t\tcustomer.setBirthdate(rs.getDate(\"birth_date\"));\r\n\t\t\t\tcustomer.setBirthplace(rs.getString(\"birth_place\"));\r\n\t\t\t\tcustomer.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tcustomer.setCity(rs.getString(\"city\"));\r\n\t\t\t\tcustomer.setProvince(rs.getString(\"province\"));\r\n\t\t\t\tcustomer.setCap(rs.getInt(\"cap\"));\r\n\t\t\t\tcustomer.setPhoneNumber(rs.getString(\"phone_number\"));\r\n\t\t\t\tcustomer.setNewsletter(rs.getInt(\"newsletter\"));\r\n\t\t\t\tcustomer.setEmail(rs.getString(\"email\"));\r\n\t\t\t}\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn customer;\r\n\t}" ]
[ "0.8790163", "0.86227494", "0.8460868", "0.81992376", "0.81736803", "0.8106404", "0.80786264", "0.8070065", "0.80467415", "0.804429", "0.8018231", "0.8009267", "0.79840046", "0.7978098", "0.7958314", "0.7945328", "0.79346776", "0.7919267", "0.7901006", "0.78954834", "0.78773665", "0.7866759", "0.78664106", "0.7846917", "0.7846917", "0.78126925", "0.780387", "0.77919346", "0.77892554", "0.77649295", "0.77415156", "0.7739175", "0.77295166", "0.7717622", "0.7694042", "0.76635987", "0.7650408", "0.7628354", "0.76084244", "0.7608173", "0.7599581", "0.75958997", "0.7585835", "0.75822157", "0.755526", "0.75424933", "0.75376475", "0.75210094", "0.75168514", "0.750611", "0.7486001", "0.74812776", "0.7474454", "0.7467968", "0.74663746", "0.7465886", "0.7463046", "0.7436501", "0.743235", "0.74313724", "0.74276364", "0.7398774", "0.7398438", "0.73849624", "0.73849624", "0.7375769", "0.73654217", "0.73502916", "0.7346559", "0.7324423", "0.73222613", "0.7319379", "0.73059976", "0.73046947", "0.73021483", "0.7300688", "0.7296405", "0.7279071", "0.726965", "0.72660494", "0.7263061", "0.7263061", "0.72615206", "0.72437394", "0.72381866", "0.7207241", "0.7207241", "0.7202819", "0.7188012", "0.71850556", "0.71718657", "0.7164476", "0.71332496", "0.7133126", "0.7114088", "0.7095227", "0.7085674", "0.7079667", "0.70757407", "0.70738214" ]
0.74341774
58
Method for creating new customer
@ApiOperation(value = "Create a customer", notes = "") @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.CREATED) public CustomerDTO createCustomer(@Validated @RequestBody CustomerDTO customerDTO) { return customerService.createCustomer(customerDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "@PostMapping(value=\"/createCustomer\")\n\tpublic String createCustomer()\n\t{\n\t\t//return customer\n\t\treturn \"Created Customer\";\n\t}", "SerialResponse createCustomer(PinCustomerPost pinCustomerPost);", "Customers createCustomers();", "public Customer createCustomer() {\n return new Customer(nameNested, surNameNested, ageNested, streetNested);\n }", "private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }", "@Transactional\n\t@Override\n\tpublic Customer createCustomer(String name) {\n\t\t\n\t\tvalidateName(name);\n\t\tLocalDateTime now = LocalDateTime.now();\n\t\tAccount account = new Account(5000.0, now);\n\t\taccountRepository.save(account);\n\t\tSet<Item> set = new HashSet<>();\n\t\tCustomer customer = new Customer(name, account,set);\n\t\tcustRepository.save(customer);\n\t\treturn customer;\n\t\t\n\t}", "public ResponseEntity<?> createCustomer(customer.controller.Customer customer);", "@RequestMapping(value = \"/createCustomer\", method = RequestMethod.POST)\n\tpublic String createCustomer(@RequestBody Customer customer) throws Exception {\n\n\t\tlog.log(Level.INFO, \"Customer zawiera\", customer.toString());\n\t\tcustomerRepository.save(customer); // Zapis do bazy\n\t\tSystem.out.println(\"##################### Utworzono klienta: \" + customer);\n\t\treturn \"Klient zostal stworzony\" + customer;\n\t}", "@PostMapping(value = \"/customers\", consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void createCustomer(@RequestBody CustomerDTO custDTO) {\n\t\tlogger.info(\"Creation request for customer {}\", custDTO);\n\t\tcustService.createCustomer(custDTO);\n\t}", "@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}", "private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }", "@PostMapping()\n public String createCustomer(\n @ModelAttribute(CUSTOMER) CustomerDTO customerDTO) {\n customerDTO.getActualAddress().setCreated(LocalDateTime.now());\n customerDTO.getRegisteredAddress().setCreated(LocalDateTime.now());\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customerService.saveCustomer(customer);\n return REDIRECT_CLIENTS;\n }", "private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }", "public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}", "public void create(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"INSERT INTO customer (name, id, phone) VALUES (?, ?, ?)\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.executeUpdate();\n System.out.println(\"Customer created.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Creation error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "@Test\n\tpublic void create() {\n\t\t// Given\n\t\tString name = \"Mark\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"0211616447\";\n\n\t\t// When\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertNotNull(customer);\n\t}", "@Override\n\tpublic Customers create(Customers newcust) {\n\t\tif (newcust.getId()!=null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers savecust = CustRepo.save(newcust);\n\t\treturn savecust;\n\t}", "public boolean createCustomer(String customerJSON);", "Customer(){}", "public CustomerNew () {\n\t\tsuper();\n\t}", "@PostMapping(\"/customer\")\n\tpublic Customer createCustomer(@RequestBody Customer customer) {\n\t\treturn customerRepository.save(customer);\n\t}", "public MessageResponseCustomerDto createCustomer(CustomerDto customer);", "public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}", "void createCustomerAccount(String mobileNumber) throws Exception;", "@GET\n\t@Path(\"CreateCustomer\")\n\tpublic Customer createCustomer(@QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"username\")String username ,@QueryParam(\"password\") String password) {\n\t\treturn ManagerHelper.getCustomerManager().createCustomer(companyname, companynumber, contactname, email, phone, username,password );\n\t}", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public boolean createCustomer() throws ClassNotFoundException, SQLException {\n\t\tString name = KeyboardUtil.getString(\"Enter your name\");\n\t\tString password = KeyboardUtil.getString(\"Enter your password\");\n\t\tString city = KeyboardUtil.getString(\"Enter your city\");\n\t\tString state = KeyboardUtil.getString(\"Enter your state\");\n\t\tint zip = KeyboardUtil.getInt(\"Enter ZIP\");\n\t\tString country = KeyboardUtil.getString(\"Enter your country\");\n\t\t\n\t\tCustomer newCust = new Customer(password, city, state, zip, country);\n\t\ttry {\n\t\t\tConnection con = DAO.getConnection();\n\t\t\tnewCust.setCustomerName(name);\n\t\t\tString insertQuery = \"insert into Customer(Customer_Name, Password, City, State, Zip, Country) values(?, ?, ?, ?, ?, ?)\";\n\t\t\tPreparedStatement stmt = con.prepareStatement(insertQuery);\n\t\t\tstmt.setString(1, newCust.getCusomerName());\n\t\t\tstmt.setString(2, newCust.getPassword());\n\t\t\tstmt.setString(3, newCust.getCity());\n\t\t\tstmt.setString(4, newCust.getState());\n\t\t\tstmt.setInt(5, newCust.getZip());\n\t\t\tstmt.setString(6, newCust.getCountry());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(InvalidNameException e) {\n\t\t\tSystem.out.println(\"Name should not contain numbers or special characters and should be atleast 6 characters long!\");\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}", "Customer() \n\t{\n\t}", "@RequestMapping(value=\"/pizza/custCreate.html\", method = RequestMethod.POST)\r\n public ModelAndView custCreate(\r\n @ModelAttribute(\"customer\")Customer customer,\r\n @CookieValue(value = \"v\", defaultValue = \"\") String visitorId,\r\n HttpServletResponse response) throws Exception {\n visitorManager.setCookieValue(visitorId);\r\n \r\n // Get the current order\r\n Order order = shoppingCart.getOrder();\r\n ModelAndView result = new ModelAndView(\"/pizza/cardEntry\");\r\n result.addObject(\"order\", order);\r\n \r\n // TODO: Is the customer valid?\r\n \r\n // Add the customer to the order\r\n order.setCustomer(customer);\r\n shoppingCart.assignCustomer(customer);\r\n\r\n // Remember the visitor\r\n response.addCookie(new Cookie(\"v\", visitorManager.getCookieValue()));\r\n return result;\r\n }", "public CustomerNew (\n\t\t Long in_id\n ) {\n\t\tthis.setId(in_id);\n }", "public Customer(String name) {\n this.name = name;\n }", "public Customer(String name, String email, String password, double amount, LocalDate regDate) {\r\n\t\tthis.custId = idCounter++;\r\n\t\tthis.name = name;\r\n\t\tthis.email = email;\r\n\t\tthis.password = password;\r\n\t\tthis.amount = amount;\r\n\t\tthis.regDate = regDate;\r\n\t}", "public Customer (String customerName, String address,\n String telephoneNumber){\n this.customerName = customerName;\n this.address = address;\n this.telephoneNumber = telephoneNumber;\n }", "public Customer(int custId, String name, String email, String password, double amount, LocalDate regDate) {\r\n\t\tsuper();\r\n\t\tthis.custId = custId;\r\n\t\tthis.name = name;\r\n\t\tthis.email = email;\r\n\t\tthis.password = password;\r\n\t\tthis.amount = amount;\r\n\t\tthis.regDate = regDate;\r\n\t}", "public Customer(String name) {\n this.name=name;\n }", "@Test\n public void testCreateCustomer() {\n System.out.println(\"createCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n Customer result = instance.getCustomer(customerID);\n assertEquals(\"Gert Hansen\", result.getName());\n assertEquals(\"Grønnegade 12\", result.getAddress());\n assertEquals(\"98352010\", result.getPhone());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }", "Customer() {\n }", "public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could not add customer.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(customer);\r\n\t\t} while (yesOrNo(\"Would you like to add another Customer?\"));\r\n\t}", "public void createCustomerTransaction(String customerId, TransactionData transData) {\n \t\n \tTransaction transEntity = new Transaction();\n \t\n \tBeanUtils.copyProperties(transData, transEntity);\n \ttransEntity.setCustomerId(customerId.trim().toUpperCase());\n \t//Save and flush\n \ttransactionRepository.saveAndFlush(transEntity);\n }", "private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }", "public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}", "public Customer(int customer_ID, String customer_Name, String address, String postalCode, String phone, String createdDate, String createdBy, String lastUpdate, String lastUpdatedBy, int divisionID) {\n this.customer_ID = customer_ID;\n this.customer_Name = customer_Name;\n this.address = address;\n this.postalCode = postalCode;\n this.phone = phone;\n this.createdDate = createdDate;\n this.createdBy = createdBy;\n this.lastUpdate = lastUpdate;\n this.lastUpdatedBy = lastUpdatedBy;\n this.divisionID = divisionID;\n }", "void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}", "@RequestMapping(value = \"/customers\", method = RequestMethod.POST)\n public ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n Customer aNewCustomer = customerService.newCustomer(customer);\n return new ResponseEntity<>(aNewCustomer, HttpStatus.CREATED);\n }", "public Customer() {\n\t\tsuper();\n\t}", "private Customer createCustomerInstance(String name, String email, String phoneNumber) {\n Customer customer = new Customer();\n customer.setName(name);\n customer.setEmail(email);\n customer.setPhoneNumber(phoneNumber);\n return customer;\n }", "public static void createCustomer() throws IOException {\n\t\tString ssn = randomSSN();\n\t\twhile(SSNmap.containsKey(ssn)) {\n\t\t\tssn = randomSSN();\n\t\t}\n\t\tSSNmap.put(ssn, 1);\n\t\t\n\t\tString name = names[random(50)] + \" \" + names[random(50)];\n\t\tString address = randomNumber() + \" \" + streets[random(50)];\n\t\tString phone = randomPhone();\n\t\t\n\t\twriter.write(\"INSERT INTO Customer (Id, SSN, Name, Address, Phone) Values (\" + custId++ +\", '\" + ssn + \"', '\" \n\t\t\t\t+ name + \"', '\" + address + \"', '\" + phone +\"'\" + line);\n\t\twriter.flush();\n\t}", "public void create(Customer customer) {\r\n this.entityManager.persist(customer);\r\n }", "public Customer() {\n name = \"N.A.\";\n surname = \"N.A.\";\n address = \"N.A.\";\n email = \"N.A.\";\n }", "public void addCustomer(CustomerSignup p)\n {\n Session session = this.sessionFactory.getCurrentSession();\n \n session.persist(p);\n \n CustomerLogin cl=new CustomerLogin();\n cl.setUsername(p.getUsername());\n cl.setPassword(p.getPassword());\n cl.setId(p.getId());\n session.persist(cl);\n \n Authorities a = new Authorities();\n a.setUsername(p.getUsername());\n a.setAuthority(\"ROLE_USER\");\n a.setId(p.getId());\n session.saveOrUpdate(a);\n\n session.flush();\n \n logger.info(\"Customer saved successfully, Customer Details=\"+p);\n }", "@PostMapping(\"/customers\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic Customer createNewCustomer(@RequestBody @Valid Customer newCustomer) {\n\t\tif (customerRepository.existsByEmail(newCustomer.getEmail()))\n\t\t\tthrow new validationErrorException(\"Email is already registered\");\n\t\treturn customerRepository.save(newCustomer);\n\t}", "private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer checkCustomer = CustomerDao.getCustomer(id);\n if (checkCustomer == null) {\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer newCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(newCustomer);\n response.sendRedirect(\"/\");\n }\n else {\n String message = \"This ID already exist\";\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer ExitCustomer = new Customer(id, name, phone, email);\n request.setAttribute(\"message\", message);\n request.setAttribute(\"customer\", ExitCustomer);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/newCustomer.jsp\");\n dispatcher.forward(request, response);\n }\n }", "public Customers(int customerId, String customerName, String customerAddress, String customerPostalCode,\n String customerPhone, int divisionId, String divisionName, int countryId, String countryName) {\n this.customerId = customerId;\n this.customerName = customerName;\n this.customerAddress = customerAddress;\n this.customerPostalCode = customerPostalCode;\n this.customerPhone = customerPhone;\n this.divisionId = divisionId;\n this.divisionName = divisionName;\n this.countryId = countryId;\n this.countryName = countryName;\n }", "public Customermodel addCustomer(Customermodel customermodel) {\n\t\t return customerdb.save(customermodel);\n\t }", "public au.gov.asic.types.AccountIdentifierType addNewCustomer()\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().add_element_user(CUSTOMER$0);\n return target;\n }\n }", "private Customer createCustomerInstanceWithId(String name, String email, String phoneNumber) {\n Customer customer = new Customer();\n customer.setId(1000L);\n customer.setName(name);\n customer.setEmail(email);\n customer.setPhoneNumber(phoneNumber);\n return customer;\n }", "public Customer(String name, String surname, String address, String email, long tel) {\n this.name = name;\n this.surname = surname;\n this.address = address;\n this.email = email;\n this.tel = tel;\n }", "public Response<CustomerRegResponseDto> createCustomer(CustomerRegRequestDto requestDto) {\n\t\tResponse<CustomerRegResponseDto> responseDto = new Response<>();\n\t\tOptional<User> user = userRepo.findByUserId(requestDto.getUserId());\n\t\tif (!user.isPresent())\n\t\t\tthrow new UserNotFoundException(CustomerConstants.USER_NOT_FOUND);\n\n\t\tOptional<User> userEmail = userRepo.findByEmailId(requestDto.getCustomerEmailId());\n\t\tif (userEmail.isPresent())\n\t\t\tthrow new UserAlreadyExistException(CustomerConstants.USER_EMAIL_ID_ALREADY_EXISTS);\n\n\t\tUser userUserName = userRepo.findByUserNameContainsIgnoreCase(requestDto.getCustomerUserName().toLowerCase());\n\t\tif (userUserName != null)\n\t\t\tthrow new UserAlreadyExistException(CustomerConstants.USER_NAME_ALREADY_EXISTS);\n\n\t\tif (!requestDto.getPassword().equals(requestDto.getConfirmPassword())) {\n\t\t\tthrow new NoDataFoundException(CustomerConstants.PASSWORD_CONFIRMATION);\n\n\t\t}\n\n\t\tCustomer addNewCustomer = addCustomerDetails(requestDto);\n\t\tUser newUser = addNewUser(requestDto, addNewCustomer);\n\t\tCustomerRegResponseDto response = new CustomerRegResponseDto();\n\t\tresponse.setCustomerId(addNewCustomer.getCustomerId());\n\t\tresponse.setUserId(newUser.getUserId());\n\t\tresponseDto.setData(response);\n\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_CREATED_SUCCESSFULLY);\n\t\tresponseDto.setStatus(HttpServletResponse.SC_OK);\n\t\tresponseDto.setError(false);\n\t\tsendRegistrationEmailNotification(requestDto);\n\t\treturn responseDto;\n\t}", "@Override\r\n\tpublic int insertNewCustomer(Customer cust) throws CustException {\n\t\tmanager.persist(cust);\r\n\t\treturn 1;\r\n\t}", "public Customer(int id, String surname, String name, String patronymic, String address, int creditCardNumber, int bankAccountNumber) {\n this.id = id;\n this.surname = surname;\n this.name = name;\n this.patronymic = patronymic;\n this.address = address;\n this.creditCardNumber = creditCardNumber;\n this.bankAccountNumber = bankAccountNumber;\n }", "public Customer(){\n\t \n }", "@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> createCustomerAddres(@Valid @RequestBody CustomerAddres customerAddres) throws URISyntaxException {\n log.debug(\"REST request to save CustomerAddres : {}\", customerAddres);\n if (customerAddres.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"customerAddres\", \"idexists\", \"A new customerAddres cannot already have an ID\")).body(null);\n }\n CustomerAddres result = customerAddresRepository.save(customerAddres);\n return ResponseEntity.created(new URI(\"/api/customer-addres/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"customerAddres\", result.getId().toString()))\n .body(result);\n }", "@Override\n\tpublic String insertNewCustomer(Customer c) {\n\n\t\tInteger id=dao.insertNewCustomer(c);\n\t\tif(id==null)\n\t\t\treturn \"User registratin failed\";\n\t\treturn \"User registration successfull having user ID - \"+id;\n\n\t}", "@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }", "@Override\r\n\tpublic Customer addCustomer(Customer customer) {\r\n\r\n\t\tif (!inputValidator.nameValidator(customer.getName()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid Customer Name.\");\r\n\t\tif (!inputValidator.userIdValidator(customer.getUserId()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid UserId.\");\r\n\t\tif (!inputValidator.contactValidator(customer.getContactNo()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Contact Number.\");\r\n\t\tif (!inputValidator.emailValidator(customer.getEmail()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Email.\");\r\n\t\tCustomer customer2 = customerRepository.save(customer);\r\n\t\treturn customer2;\r\n\r\n\t}", "@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}", "@PostMapping(\"/addcustomer\")\n\tpublic String save(@ModelAttribute(\"customer\") Customer theCustomer) {\n\t\tcustomerServices.save(theCustomer);\n\t\treturn \"redirect:/dairymilk/customers\";\n\t}", "void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public Customer() {\r\n }", "public Customer Create(Customer customer) {\n\t\tString sqlInsert = \"Insert into customers (name, email, address) values('\" + customer.getName()+ \"','\"\n\t\t+ customer.getEmail()+ \"','\"+ customer.getAddress()+\"')\";\n\t\t\n\t\ttry {\n\t\t\tstmt.executeUpdate(sqlInsert);\n\t\t\treturn readLatest();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public static String buildCreateCustomerURL() {\n return NISUtils.getURL() + \"/nis/nwapi/v2/customer\";\n\t}", "@Override\n\tpublic void create(CustomerLogin customerLogin) {\n\t\tdao.insert(customerLogin);\n\t}", "@PostMapping(\"/customers\")\r\n\tpublic Customer addCustomer(@RequestBody Customer customer) {\n\t\tcustomer.setId(0);\r\n\t\t\r\n\t\tcustomerService.saveCustomer(customer);\r\n\t\treturn customer;\r\n\t}", "public Customer()\n {\n\n }", "public static NWCustomerResp oamCreateCustomer(String customerType, RESTActions actions) {\n\t\tNWCustomerResp respObj = null;\n\t\tWSCustomerContact contact = null;\n\t\t\n\t\t// Create \"Generic\" WSCustomerContactInfo\n\t\tcontact = createWSCustomerContact();\n\t\t\n\t\t// Send Request\n\t\trespObj = NWCustomerPOST.sendReq(customerType, contact, actions);\n\t\t\n\t\treturn respObj;\n\t}", "public String createCustomer(Map<String, Object> tokenParams, Map<String, Object> customerParams){\n Stripe.apiKey = stripeKey;\n\n String stripeCustomerId = null;\n try{\n Token token = Token.create(tokenParams);\n customerParams.put(\"source\", token.getId());\n Customer customer = Customer.create(customerParams);\n stripeCustomerId = customer.getId();\n }catch(AuthenticationException e){\n LOG.error(\"An authentication error occurred while creating a stripe customer\", e);\n throw new com.springfullstackcloudapp.exceptions.StripeException();\n }catch(InvalidRequestException e){\n LOG.error(\"An invalid request exception occurred while creating a stripe customer\", e);\n throw new com.springfullstackcloudapp.exceptions.StripeException();\n }catch(APIConnectionException e){\n LOG.error(\"An API Connection exception occurred while creating a stripe customer\", e);\n throw new com.springfullstackcloudapp.exceptions.StripeException();\n }catch(CardException e){\n LOG.error(\"A credit card exception occurred while creating a stripe customer\", e);\n throw new com.springfullstackcloudapp.exceptions.StripeException();\n }catch(APIException e){\n LOG.error(\"An API exception occurred while creating a stripe customer\", e);\n throw new com.springfullstackcloudapp.exceptions.StripeException();\n }\n return stripeCustomerId;\n }", "static void addCustomer(customer customer) {\n\n }", "@PostMapping( value = CustomerRestURIConstants.POST_CUSTOMER )\n\tpublic ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n\t\tlong id = customerService.save(customer);\n\t return ResponseEntity.ok().body(\"New Customer has been saved with ID:\" + id);\n\t}", "public Customer(String FirstName, String LastName, String Address, String Nationality, String eMail, int phoneNumber) {\n\t\tthis.FirstName = FirstName ;\n\t\tthis.LastName = LastName ;\n this.Address = Address;\n this.Nationality = Nationality;\n this.eMail = eMail;\n this.phoneNumber = phoneNumber;\n\t}", "public Customer(){}", "@POST\r\n @Path(\"/create\")\r\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public NewAccount createNewCustomerAccount(@FormParam(\"accountNumber\") int accountNumber,\r\n @FormParam(\"accountType\") String accountType,\r\n @FormParam(\"accountBalance\") double accountBalance\r\n ){\r\n return newaccountservice.createNewAccount(accountNumber, accountType, accountBalance);\r\n }", "@DOpt(type = DOpt.Type.ObjectFormConstructor)\n\t@DOpt(type = DOpt.Type.RequiredConstructor)\n\tpublic Customer( @AttrRef(\"name\") String name,\n\t\t\t@AttrRef(\"gender\") Gender gender,\n\t\t\t@AttrRef(\"dob\") Date dob, \n\t\t\t@AttrRef(\"address\") Address address, \n\t\t\t@AttrRef(\"email\") String email,\n\t\t\t@AttrRef(\"phone\") String phone) {\n\t\tthis(null, name, gender,dob, address, email, phone, null);\n\t}", "@RequestMapping(value=\"/insertCust\",method=RequestMethod.POST)\r\n\tpublic String saveCust(@ModelAttribute(\"customer\")Customer cust,ModelMap map){\r\n\t\t//generating pwd,token using codeUtil\r\n\t\tString token=codeUtil.genToken();\r\n\t\tString pwd=codeUtil.getPwd();\r\n\t\t//encoding using codec util\r\n\t\tString encToken=codecUtil.doEncode(token);\r\n\t\tString encPwd=codecUtil.doEncode(pwd);\r\n\t\t//set encoded values to customer (model attribute)\r\n\t\tcust.setPassword(encPwd);\r\n\t\tcust.setAccTock(encToken);\r\n\t\t//save object using SL.\r\n\t\tint custId=service.saveCustomer(cust);\r\n\r\n\t\t//send email\r\n\t\tString text=\"welcome to Customer :\"+cust.getCustName()+\r\n\t\t\t\t\"(\"+cust.getCustType()+\"),Your user name is:\"+cust.getCustEmail()\r\n\t\t\t\t+\",password is:\"+pwd+\",token is:\"+token;\r\n\t\tcommonUtil.sendEmail(cust.getCustEmail(), \"welcome to Customer\", text);\r\n\t\t//send success msg\r\n\t\tmap.addAttribute(\"msg\",\"Customer added with Id:\"+custId);\r\n\t\treturn \"CustomerReg\";\r\n\t}", "public Customer(int customerID, String name, String address, String email){\n\t\t\n\t\tthis.customerID = customerID;\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t\tthis.email = email;\n\t}", "public Customer(String name, String address, String phoneNumber) {\r\n\t\tsuper(name, address, phoneNumber);\r\n\t\tsuper.setId(CUSTOMER_STRING + (IdServer.instance().getId()));\r\n\t}", "public Customer() {\n }", "public Customer() {\n }" ]
[ "0.8406285", "0.8144457", "0.8144457", "0.8144457", "0.8144457", "0.7856831", "0.77844185", "0.77560866", "0.77179873", "0.7704594", "0.7594677", "0.7552317", "0.7545494", "0.752054", "0.74375945", "0.74178195", "0.74076104", "0.7380247", "0.73783547", "0.7340332", "0.7330097", "0.7259187", "0.72575456", "0.72189564", "0.7192205", "0.71869147", "0.71835923", "0.7179421", "0.71719", "0.7162087", "0.7058427", "0.7054861", "0.7046808", "0.70462734", "0.7044154", "0.70179534", "0.6980939", "0.6963037", "0.6959017", "0.6948289", "0.693098", "0.69127965", "0.6906751", "0.690241", "0.6886251", "0.6856633", "0.6844586", "0.6833314", "0.6832828", "0.68169165", "0.68135023", "0.6806902", "0.6777042", "0.6773855", "0.67522895", "0.6751981", "0.67452615", "0.6741532", "0.6741066", "0.6700179", "0.6698273", "0.66910505", "0.66810095", "0.6676914", "0.66759485", "0.6652284", "0.66497326", "0.66373837", "0.6636404", "0.6633347", "0.6631967", "0.6629844", "0.6628741", "0.66196", "0.66129094", "0.66113454", "0.6608885", "0.660572", "0.66041756", "0.65934515", "0.65890455", "0.6588561", "0.6587038", "0.6581989", "0.65587926", "0.65428746", "0.6539949", "0.6533913", "0.6529398", "0.6524252", "0.6518955", "0.6511527", "0.6505921", "0.648602", "0.64832115", "0.64831865", "0.6475971", "0.6475188", "0.64733315", "0.64733315" ]
0.704887
32
Method for updating a customer
@ApiOperation(value = "Replace a customer by new data", notes = "") @PutMapping(value = {"/{customerId}"},produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) { return customerService.updateCustomer(customerId, customerDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCustomerById(Customer customer);", "public void update(Customer customer) {\n\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "public void updateCustomer(String id) {\n\t\t\n\t}", "@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}", "@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }", "public void update(Customer myCust){\n }", "public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }", "@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}", "@Override\n\tpublic void update(Customer t) {\n\n\t}", "public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);", "@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\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}", "CustomerDto updateCustomer(CustomerDto customerDto);", "CustomerOrder update(CustomerOrder customerOrder);", "private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }", "@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}", "@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }", "@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}", "@Override\n\tpublic void updateCustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().update(customer);\n\t}", "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 }", "@PutMapping(\"/{id}\")\n public String update(@ModelAttribute(CUSTOMER) CustomerDTO customerDTO, @PathVariable(\"id\") long id) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customer.getActualAddress().setModified(LocalDateTime.now());\n customerService.updateCustomer(customer, id);\n return REDIRECT_CLIENTS;\n }", "@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\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 }", "@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}", "void updateCustomer(int id, String[] updateInfo);", "public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}", "@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public boolean updateCustomer(String customerJSON);", "public static void updateCustomer(int customerID, String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"UPDATE customers SET Customer_Name = ?, Address = ?, Postal_Code = ?, Phone = ?, Last_Update = ?, Last_Updated_By = ?, Division_ID = ? WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setTimestamp(5, Timestamp.valueOf(LocalDateTime.now()));\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n ps.setInt(8, customerID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }", "public void update(Customer customer) throws SQLException {\r\n\t\tString updateSql = \"UPDATE \" + tableName\r\n\t\t\t\t+ \" SET name=?,surname=?,birth_date=?,birth_place=?,address=?,city=?,province=?,\"\r\n\t\t\t\t+ \" cap=?,phone_number=?,newsletter=?,email=?\" + \"WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(updateSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.setInt(12, customer.getId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }", "@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}", "@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}", "@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }", "@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}", "void updateCustomerDDPay(CustomerDDPay cddp);", "@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 update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\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}", "public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\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\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }", "@Override\n\tpublic int updateCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.updateCustomerReprieve(customerReprieve);\n\t}", "@PutMapping(\"/customers\")\n public void updateCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n customerService.save(theCustomerHibernate);\n }", "@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = PUT, value = \"/{id}\", consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> updateCustomer(@PathVariable @NotNull ObjectId id,\n\t\t\t@RequestBody @Valid Customer customerToUpdate) {\n\n\t\treturn repo.existsById(id).flatMap(exists -> {\n\n\t\t\tif (!exists) {\n\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\"Customer does not exist, to create a new customer use POST instead.\");\n\t\t\t}\n\n\t\t\treturn repo.save(customerToUpdate).then(Mono.just(noContent().build()));\n\t\t});\n\t}", "@GET\n\t@Path(\"UpdateCustomer\")\n\tpublic Reply UpdateCustomer(@QueryParam(\"id\") int id, @QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"user\") int user) {\n\t\treturn ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email,\n\t\t\t\tphone, user);\n\t}", "public void updateCustomer(int phone, int discount, String name, String address, String group, int originalNumber)\n\t{\n\t\tCustomer customer = getCustomer(originalNumber);\n\t\tcustomer.setPhone(phone);\n\t\tcustomer.setDiscount(discount);\n\t\tcustomer.setName(name);\n\t\tcustomer.setAddress(address);\n\t\tcustomer.setGroup(group);\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/{id}\", params = \"form\", method = RequestMethod.POST)\n\tpublic String update(@Valid Customer customer, BindingResult bindingResult, \n\t\t\t\t\t\tModel uiModel, HttpServletRequest httpServletRequest, \n\t\t\t\t\t\tRedirectAttributes redirectAttributes, Locale locale) {\n\t\t\tlogger.info(\"Updating customer\"); \n\t\t\tif (bindingResult.hasErrors()) {\n\t\t\t\tuiModel.addAttribute(\"message\", new Message(\"error\", messageSource.getMessage(\"customer_save_fail\", new Object[]{}, locale)));\n\t\t\t\tuiModel.addAttribute(\"customer\", customer);\n\t\t\t\treturn \"customers/update\"; \n\t\t\t}\n\t\t\tuiModel.asMap().clear(); \n\t\t\tredirectAttributes.addFlashAttribute(\"message\", new Message(\"success\",messageSource.getMessage(\"customer_save_success\", new Object[]{}, locale))); \n\t\t\tcustomerService.save(customer);\n\t\t\treturn \"redirect:/customers/\" + UrlUtil.encodeUrlPathSegment(customer.getId().toString(),httpServletRequest);\n\t}", "public boolean updateCustomer() {\n\t\treturn false;\r\n\t}", "@ApiOperation(value = \"Update a customer\", notes = \"\")\n @PatchMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO patchCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.patchCustomer(customerId, customerDTO);\n }", "@PutMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> updateDetails(@PathVariable(\"id\") long id, @RequestBody CustomerDetails customerDetails) {\n\t\tcustomerService.updateDetails(id, customerDetails);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is updated sucessfully\");\n\t}", "public int updateCustomer(Map customerMap, Map allData){\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "@CrossOrigin\n @RequestMapping(method = PUT, path = \"/customer\", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<UpdateCustomerResponse> updateName(@RequestHeader(\"authorization\") final String authorization, @RequestBody UpdateCustomerRequest updateCustomerRequest) throws AuthorizationFailedException, UpdateCustomerException {\n String accessToken = utilityService.splitAuthorization(authorization);\n CustomerEntity customer = customerService.getCustomer(accessToken);\n String newFirstName = updateCustomerRequest.getFirstName();\n String newLastName = updateCustomerRequest.getLastName();\n // Check if the firstname entered is empty\n if (utilityService.isStringEmptyOrNull(newFirstName)) {\n throw new UpdateCustomerException(\"UCR-002\", \"First name field should not be empty\");\n } else {\n customer.setFirstName(newFirstName);\n customer.setLastName(newLastName);\n CustomerEntity updateCustomer = customerService.updateCustomer(customer);\n\n UpdateCustomerResponse response = new UpdateCustomerResponse();\n response.setId(updateCustomer.getUuid());\n response.setFirstName(updateCustomer.getFirstName());\n response.setLastName(updateCustomer.getLastName());\n response.setStatus(\"CUSTOMER DETAILS UPDATED SUCCESSFULLY\");\n return new ResponseEntity<UpdateCustomerResponse>(response, HttpStatus.OK);\n }\n\n }", "public void updateCustomer(String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward) throws SQLException {\n st.executeUpdate(\"UPDATE IOTBAY.CUSTOMER SET \"\n + \"NAME ='\" + name \n + \"DATEOFBIRTH ='\" + dob \n + \"GENDER ='\" + gender \n + \"CONTACTNUMBER ='\" + number \n + \"BILLINGADDRESS ='\" + address \n + \"PASSWORD ='\" + password \n + \"PROMOTIONALNEWSLETTER ='\" + promo \n + \"', REWARDPOINTS='\" + reward \n + \"' WHERE EMAIL='\" + email + \"'\" );\n\n }", "@RequestMapping(value = \"/customerOrders\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> updateCustomerOrder(@Valid @RequestBody CustomerOrder customerOrder) throws URISyntaxException {\n log.debug(\"REST request to update CustomerOrder : {}\", customerOrder);\n if (customerOrder.getId() == null) {\n return createCustomerOrder(customerOrder);\n }\n CustomerOrder result = customerOrderRepository.save(customerOrder);\n customerOrderSearchRepository.save(result);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"customerOrder\", customerOrder.getId().toString()))\n .body(result);\n }", "public Customer Update(int id, String attribute, Customer customer) {\n\t\t\n\t\tString sql = \"\";\n\t\t\n\t\tswitch(attribute) {\n\t\tcase \"NAME\":\n\t\t\tsql = \"UPDATE customers set name = '\"+ customer.getName() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\tcase \"EMAIL\":\n\t\t\tsql = \"UPDATE customers set email = '\"+ customer.getEmail() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\tcase \"ADDRESS\":\n\t\t\tsql = \"UPDATE customers set address = '\"+ customer.getAddress() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tstmt.executeUpdate(sql);\n\t\t\treturn readById(id);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "Boolean updateOrInsert(Customer customer);", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateCustomer(@PathVariable(\"id\") int id, @RequestBody @Valid CustomerViewModel customerViewModel){\n //check if the id matches the request body. Path variable and the\n //user passed data (customerId) must match to proceed.\n //so you need to input in both path variable and the requestbody\n if(id != customerViewModel.getCustomerId()){\n //throw illegal arguement\n }\n\n //if it does match, update that customer\n service.updateCustomer(customerViewModel);\n }", "@Test\n\t// @Disabled\n\tvoid testUpdateCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer1));\n\t\tMockito.when(custRep.save(customer1)).thenReturn(customer1);\n\t\tCustomer persistedCust = custService.updateCustomer(1, customer1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t}", "@Override\n\t\t\t\tpublic void execute()\n\t\t\t\t{\n\n\t\t\t\t\tMobiculeLogger.verbose(\"execute()\");\n\t\t\t\t\tresponse = updateCustomerFacade.updateCustomerDetails();\n\t\t\t\t}", "@Override\r\n\tpublic void update(CustVO custVO) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(UPDATE);\r\n\r\n\t\t\tpstmt.setString(1, custVO.getCust_acc());\r\n\t\t\tpstmt.setString(2, custVO.getCust_pwd());\r\n\t\t\tpstmt.setString(3, custVO.getCust_name());\r\n\t\t\tpstmt.setString(4, custVO.getCust_sex());\r\n\t\t\tpstmt.setString(5, custVO.getCust_tel());\r\n\t\t\tpstmt.setString(6, custVO.getCust_addr());\r\n\t\t\tpstmt.setString(7, custVO.getCust_pid());\r\n\t\t\tpstmt.setString(8, custVO.getCust_mail());\r\n\t\t\tpstmt.setDate(9, custVO.getCust_brd());\r\n\t\t\tpstmt.setDate(10, custVO.getCust_reg());\r\n\t\t\tpstmt.setBytes(11, custVO.getCust_pic());\r\n\t\t\tpstmt.setString(12, custVO.getCust_status());\r\n\t\t\tpstmt.setString(13, custVO.getCust_niname());\r\n\t\t\tpstmt.setString(14, custVO.getCust_ID());\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured.\" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "int updateByPrimaryKey(OcCustContract record);", "public Boolean updateCustomer(String customerId, Customer updatedValuedCustomer){\n Boolean success = false;\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"UPDATE Customer SET FirstName=?, LastName=?, Country=?, PostalCode=?, Phone=?, Email=? WHERE CustomerId = ?\");\n preparedStatement.setString(1, updatedValuedCustomer.getFirstName());\n preparedStatement.setString(2, updatedValuedCustomer.getLastName());\n preparedStatement.setString(3, updatedValuedCustomer.getCountry());\n preparedStatement.setString(4, updatedValuedCustomer.getPostalCode());\n preparedStatement.setString(5, updatedValuedCustomer.getPhoneNumber());\n preparedStatement.setString(6, updatedValuedCustomer.getEmail());\n preparedStatement.setString(7, customerId);\n\n int result = preparedStatement.executeUpdate();\n success = (result != 0);\n System.out.println(\"Added customer\");\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return success;\n }", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "public void update(Customer customer) throws CustomerNotFoundException {\r\n this.entityManager.merge(customer);\r\n }", "public CustomerProfileDTO editCustomerProfile(CustomerProfileDTO customerProfileDTO)throws EOTException;", "public void update(Customer user){\n\t\t\n\t\tString sql = \"UPDATE CUSTOMER SET \" +\n\t\t\t\t\"NAME = ?, Age = ? WHERE CUST_ID = ? \";\n\t\tConnection conn = null;\n\t\t\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\t\t\tps.setString(1, user.getName());\n\t\t\tps.setInt(2, user.getAge());\n\t\t\tps.setInt(3, user.getCustId());\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t\t\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}", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "@Override\n\tpublic void updateProfile(CustomerUpdateVO customerVO) {\n\t\tCustomer customer = customerRepository.findById(customerVO.getCid()).get();\n\t\ttry {\n\t\t\tcustomer.setImage(customerVO.getPhoto().getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustomer.setName(customerVO.getName());\n\t\tcustomer.setMobile(customerVO.getMobile());\n\t\tcustomer.setDom(new Timestamp(new Date().getTime()));\n\t\t/// customerRepository.save(customer);\n\t}", "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 setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "protected void updateCustomer( int C_W_ID, int C_D_ID, int C_ID, double OL_AMOUNT ) {\n String query = \"UPDATE tpcc_customer SET c_balance = c_balance + \" + OL_AMOUNT + \", c_delivery_cnt = c_delivery_cnt + 1 WHERE c_w_id = \" + C_W_ID + \" AND c_d_id = \" + C_D_ID + \" AND c_id = \" + C_ID;\n executeAndLogStatement( query, QueryType.QUERYTYPEUPDATE );\n }", "@PUT\n\t@Path(\"/update\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void putCustomer(String test)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Separate incoming data into individual strings\n\t\tString[] splited = test.split(\"\\\\s+\");\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Update the customers table\n\t\tdb.Update(\"UPDATE CUSTOMERS SET FIRST='\" + splited[1] + \"', SECOND='\" + splited[2] + \"', NUMBER='\" + splited[3]\n\t\t\t\t+ \"' WHERE id='\" + splited[0] + \"'\");\n\n\t\t// Update the bookings table\n\t\tdb.Update(\"UPDATE BOOKINGS SET FIRST='\" + splited[1] + \"', SECOND='\" + splited[2] + \"', NUMBER='\" + splited[3]\n\t\t\t\t+ \"' WHERE CUSTOMERID='\" + splited[0] + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// currentSession.save(theCustomer);\n\n\t\t// save/upate the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}", "public Response<CustomerUpdateResponseDto> updateCustomer(CustomerUpdateReqDto requestDto) {\n\t\tResponse<CustomerUpdateResponseDto> responseDto = new Response<>();\n\t\tCustomerUpdateResponseDto response = null;\n\t\tOptional<Customer> customer = customerRepo.findByCustomerId(requestDto.getCustomerId());\n\t\tif (customer.isPresent()) {\n\t\t\tCustomer customerDetail = customer.get();\n\t\t\tcustomerDetail.setAddress(requestDto.getAddress());\n\t\t\tcustomerDetail.setBillingType(requestDto.getBillingType());\n\t\t\tcustomerDetail.setBusinessType(requestDto.getBusinessType());\n\t\t\tcustomerDetail.setCustomerColourConfig(requestDto.getCustomerColourConfig());\n\t\t\tcustomerDetail.setCustomerDescription(requestDto.getCustomerDescription());\n\t\t\tcustomerDetail.setCustomerEmailId(requestDto.getCustomerEmailId());\n\t\t\tcustomerDetail.setCustomerGroupEmailId(requestDto.getCustomerGroupEmailId());\n\t\t\tcustomerDetail.setCustomerLogo(requestDto.getCustomerLogo());\n\t\t\tcustomerDetail.setCustomerMobileNumber(requestDto.getCustomerMobileNumber());\n\t\t\tcustomerDetail.setCustomerName(requestDto.getCustomerName());\n\t\t\tcustomerDetail.setCustomerPhoneNumber(requestDto.getCustomerPhoneNumber());\n\t\t\tcustomerDetail.setCustomerStatus(requestDto.getCustomerStatus());\n\t\t\tcustomerDetail.setUtilityId(requestDto.getCustomerUtilityId());\n\t\t\tcustomerDetail.setModifiedBy(requestDto.getCustomerId());\n\t\t\tcustomerDetail.setModifiedDate(new Date());\n\t\t\tcustomerRepo.save(customerDetail);\n\t\t\tOptional<User> user = userRepo.findByCustomer(customer.get());\n\t\t\tif (!user.isPresent())\n\t\t\t\tthrow new NoDataFoundException(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t\tUser userStatus = user.get();\n\t\t\tuserStatus.setUserStatus(requestDto.getCustomerStatus());\n\t\t\tuserStatus.setModifiedBy(requestDto.getCustomerId());\n\t\t\tuserStatus.setModifiedDate(new Date());\n\t\t\tuserRepo.save(userStatus);\n\t\t\tresponse = new CustomerUpdateResponseDto();\n\t\t\tresponse.setCustomerId(customerDetail.getCustomerId());\n\t\t\tresponseDto.setData(response);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_UPDATED_SUCCESSFULLY);\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_OK);\n\t\t\tresponseDto.setError(false);\n\n\t\t} else {\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_NO_CONTENT);\n\t\t\tresponseDto.setError(true);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t}\n\t\treturn responseDto;\n\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}", "public static int updateCustomer(int id, String name, String cnic,\r\n\t\t\tString phone, String address, int familySize, double monthlyIncome,\r\n\t\t\tdouble familyIncome, int status, String occupation) {\r\n\t\tConnection con = connection.Connect.getConnection();\r\n\t\tString query = \"Update customer SET customer_name = '\" + name\r\n\t\t\t\t+ \"',customer_cnic= '\" + cnic + \"',customer_address= '\"\r\n\t\t\t\t+ address + \"',customer_family_size= '\" + familySize\r\n\t\t\t\t+ \"',customer_phone ='\" + phone + \"',customer_monthly_income='\"\r\n\t\t\t\t+ monthlyIncome + \"',customer_family_income='\" + familyIncome\r\n\t\t\t\t+ \"',status= '\" + status + \"',occupation= '\" + occupation\r\n\t\t\t\t+ \"' WHERE customer_id= \" + id + \";\";\r\n\t\tint row = 0;\r\n\t\ttry {\r\n\t\t\tStatement st = con.createStatement();\r\n\t\t\trow = st.executeUpdate(query);\r\n\t\t\tif (row > 0) {\r\n\t\t\t\tSystem.out.println(\"Data is updated\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Data is not updated\");\r\n\t\t\t}\r\n\r\n\t\t\tst.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"\", ex);\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn row;\r\n\t}", "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 }", "CustDataNotesResponseDTO updateCustDataNotes(String id,CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;", "@Test\n public void updateCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Update the Customer in the database\n customer.setFirstName(\"Michael\");\n customer.setLastName(\"Stuckey\");\n customer.setEmail(\"michaelallenstuckey@gmail.com\");\n customer.setCompany(\"NuclearFuelServices\");\n customer.setPhone(\"222-222-2222\");\n service.updateCustomer(customer);\n\n // Test the updateCustomer() method\n verify(customerDao, times(1)).updateCustomer(customerArgumentCaptor.getValue());\n assertEquals(customer, customerArgumentCaptor.getValue());\n }", "public static boolean updateCustomer(String customerIdTextField, String customerName, String customerAddress, String customerPostalCode,\n String customerPhoneNumber, Integer divisionID)\n {\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String updateQuery = \"UPDATE customers SET Customer_Name='\" + customerName\n + \"', Address='\" + customerAddress\n + \"', Phone='\" + customerPhoneNumber\n + \"', Postal_Code='\" + customerPostalCode\n + \"', Division_ID='\" + divisionID\n + \"'WHERE Customer_ID=\" + customerIdTextField;\n statement.execute(updateQuery);\n if(statement.getUpdateCount() > 0)\n System.out.println(statement.getUpdateCount() + \" row(s) affected.\");\n else\n System.out.println(\"No changes were made.\");\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return false;\n }", "@Override\n\tpublic boolean updateCustomer(Integer id, Customer customer) {\n\n\t\tboolean isUpdated = false;\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcust.setUsername(customer.getUsername());\n\t\t\t\tcust.setFirstName(customer.getFirstName());\n\t\t\t\tcust.setLastName(customer.getLastName());\n\t\t\t\tcust.setEmail(customer.getEmail());\n\t\t\t\tcust.setUserType(customer.getUserType());\n\t\t\t\tcust.setPassword(customer.getPassword());\n\t\t\t\tcust.setAddress(customer.getAddress());\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is updated in the list\");\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Update done : updateCustomer.isUpdated = \" + isUpdated);\n\t\treturn isUpdated;\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t//currentSession.save(theCustomer);\n\t}", "@Override\n\tpublic void edit(CustomerLogin customerLogin) {\n\t\tCustomerLogin dbcustomerLogin=findCustomerLoginById(customerLogin.getCrn());\n\t\tif(dbcustomerLogin!=null) {\n\t\t\tdbcustomerLogin.setPassword(customerLogin.getPassword());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! Customer login Details not found.\");\n\t}", "@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}", "@PutMapping(\"/points/{customerId}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updatePointsOnAccount(@PathVariable(\"customerId\") int customerId, @RequestBody @Valid LevelUpViewModel lvm) {\n\n if (customerId != lvm.getCustomerId()) {\n throw new IllegalArgumentException(String.format(\"Id %s in the PathVariable does not match the Id %s in the RequestBody \", customerId, lvm.getCustomerId()));\n }\n\n serviceLayer.updatePoints(lvm);\n }", "public void updateCustomerInfo(){\n nameLabel.setText(customer.getName());\n productWantedLabel.setText(customer.getWantedItem());\n serviceManager.getTotalPrice().updateNode();\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "int updateByExample(@Param(\"record\") CCustomer record, @Param(\"example\") CCustomerExample example);", "public void updateSalerCustomer(SalerCustomer salerCustomer) {\n\t\tthis.salerCustomerMapper.updateSalerCustomer(salerCustomer);\n\t}", "public void updateNewTandC(Integer vendorId, String userName);", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public boolean editCustomer(int id, String firstName, String lastName, String phone, String address) {\r\n\t\tCustomer customer = getCustomer(id);\r\n\t\tcustomer.setFirstName(firstName);\r\n\t\tcustomer.setLastName(lastName);\r\n\t\tcustomer.setPhone(phone);\r\n\t\tcustomer.setAddress(address);\r\n\t\ttry {\r\n\t\t\tcustomer.commit();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/customer/editCustomer\", method = RequestMethod.POST)\n public String editCustomerPost(@Valid @ModelAttribute(\"customer\") Customer customer, BindingResult result,\n HttpServletRequest request ) {\n if(result.hasErrors()) {\n return \"editCustomer\";\n }\n\n customerService.editCustomer(customer);\n\n return \"redirect:/admin/customer\";\n }", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mobile Customer update()\");\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public int update(CustomerInfo ci){\n\t\t\n\t\tint retcode = PtvConstant.SUCCESS;\n\t\t\n\t\tsetLastTimeStamp(System.currentTimeMillis());\n\t\t\n\t\treturn retcode;\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tcustomerDAO.saveCustomer(theCustomer);\n\t\t\n\t}" ]
[ "0.84666336", "0.8386725", "0.8168051", "0.8168051", "0.8151344", "0.8092146", "0.8088517", "0.80220366", "0.8009493", "0.7939521", "0.793088", "0.78855145", "0.77770597", "0.77547574", "0.77361846", "0.7673699", "0.7656402", "0.7644504", "0.76221085", "0.7600373", "0.75827825", "0.75286204", "0.74907297", "0.748288", "0.74761325", "0.74706465", "0.74440473", "0.7437328", "0.74151546", "0.7409309", "0.7401598", "0.7385154", "0.738051", "0.73803717", "0.7353609", "0.7353391", "0.73307663", "0.7285904", "0.72684926", "0.72680837", "0.7256592", "0.72422695", "0.71679544", "0.71396196", "0.7100528", "0.7080714", "0.70780826", "0.70414364", "0.7026894", "0.7014268", "0.7012813", "0.69900775", "0.6979588", "0.695829", "0.69521874", "0.69377023", "0.6931092", "0.692266", "0.69224936", "0.69025856", "0.6891954", "0.6878387", "0.6856901", "0.68557614", "0.6855728", "0.6845855", "0.6839697", "0.6807777", "0.6784756", "0.67549306", "0.67481905", "0.66994685", "0.66959447", "0.6694148", "0.6684035", "0.66794646", "0.66766536", "0.6674268", "0.6671089", "0.6668212", "0.6652418", "0.66436297", "0.66402894", "0.66382486", "0.6620549", "0.65937203", "0.6590204", "0.6587999", "0.65867984", "0.6585826", "0.657327", "0.65442497", "0.6542385", "0.65395296", "0.65362865", "0.65351814", "0.65250105", "0.64988405", "0.64983165", "0.6484796" ]
0.7481072
24
Method for partially updating a customer
@ApiOperation(value = "Update a customer", notes = "") @PatchMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public CustomerDTO patchCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) { return customerService.patchCustomer(customerId, customerDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "public void update(Customer customer) {\n\n\t}", "@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void update(Customer t) {\n\n\t}", "public boolean updateCustomer() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}", "public void update(Customer myCust){\n }", "void updateCustomerById(Customer customer);", "@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }", "CustomerDto updateCustomer(CustomerDto customerDto);", "public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }", "public void updateCustomer(String id) {\n\t\t\n\t}", "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 ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);", "@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}", "CustomerOrder update(CustomerOrder customerOrder);", "@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}", "@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}", "@Test\n\t// @Disabled\n\tvoid testUpdateCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer1));\n\t\tMockito.when(custRep.save(customer1)).thenReturn(customer1);\n\t\tCustomer persistedCust = custService.updateCustomer(1, customer1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t}", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public int updateCustomer(Map customerMap, Map allData){\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }", "@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\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}", "@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}", "@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}", "@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}", "@Override\n\tpublic void updateCustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().update(customer);\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 }", "@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}", "Boolean updateOrInsert(Customer customer);", "public boolean updateCustomer(String customerJSON);", "void updateCustomer(int id, String[] updateInfo);", "@ApiOperation(value = \"Replace a customer by new data\", notes = \"\")\n @PutMapping(value = {\"/{customerId}\"},produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.updateCustomer(customerId, customerDTO);\n }", "public static void updateCustomer(int customerID, String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"UPDATE customers SET Customer_Name = ?, Address = ?, Postal_Code = ?, Phone = ?, Last_Update = ?, Last_Updated_By = ?, Division_ID = ? WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setTimestamp(5, Timestamp.valueOf(LocalDateTime.now()));\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n ps.setInt(8, customerID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }", "@Override\n\tpublic int updateCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.updateCustomerReprieve(customerReprieve);\n\t}", "public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}", "public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }", "void updateCustomerDDPay(CustomerDDPay cddp);", "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 }", "private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }", "public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\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\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }", "@Override\n\tpublic void modifyCustomer(Customer customer, Branch branch) {\n\t\t\n\t}", "protected void updateCustomer( int C_W_ID, int C_D_ID, int C_ID, double OL_AMOUNT ) {\n String query = \"UPDATE tpcc_customer SET c_balance = c_balance + \" + OL_AMOUNT + \", c_delivery_cnt = c_delivery_cnt + 1 WHERE c_w_id = \" + C_W_ID + \" AND c_d_id = \" + C_D_ID + \" AND c_id = \" + C_ID;\n executeAndLogStatement( query, QueryType.QUERYTYPEUPDATE );\n }", "@PutMapping(\"/{id}\")\n public String update(@ModelAttribute(CUSTOMER) CustomerDTO customerDTO, @PathVariable(\"id\") long id) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customer.getActualAddress().setModified(LocalDateTime.now());\n customerService.updateCustomer(customer, id);\n return REDIRECT_CLIENTS;\n }", "public Response<CustomerUpdateResponseDto> updateCustomer(CustomerUpdateReqDto requestDto) {\n\t\tResponse<CustomerUpdateResponseDto> responseDto = new Response<>();\n\t\tCustomerUpdateResponseDto response = null;\n\t\tOptional<Customer> customer = customerRepo.findByCustomerId(requestDto.getCustomerId());\n\t\tif (customer.isPresent()) {\n\t\t\tCustomer customerDetail = customer.get();\n\t\t\tcustomerDetail.setAddress(requestDto.getAddress());\n\t\t\tcustomerDetail.setBillingType(requestDto.getBillingType());\n\t\t\tcustomerDetail.setBusinessType(requestDto.getBusinessType());\n\t\t\tcustomerDetail.setCustomerColourConfig(requestDto.getCustomerColourConfig());\n\t\t\tcustomerDetail.setCustomerDescription(requestDto.getCustomerDescription());\n\t\t\tcustomerDetail.setCustomerEmailId(requestDto.getCustomerEmailId());\n\t\t\tcustomerDetail.setCustomerGroupEmailId(requestDto.getCustomerGroupEmailId());\n\t\t\tcustomerDetail.setCustomerLogo(requestDto.getCustomerLogo());\n\t\t\tcustomerDetail.setCustomerMobileNumber(requestDto.getCustomerMobileNumber());\n\t\t\tcustomerDetail.setCustomerName(requestDto.getCustomerName());\n\t\t\tcustomerDetail.setCustomerPhoneNumber(requestDto.getCustomerPhoneNumber());\n\t\t\tcustomerDetail.setCustomerStatus(requestDto.getCustomerStatus());\n\t\t\tcustomerDetail.setUtilityId(requestDto.getCustomerUtilityId());\n\t\t\tcustomerDetail.setModifiedBy(requestDto.getCustomerId());\n\t\t\tcustomerDetail.setModifiedDate(new Date());\n\t\t\tcustomerRepo.save(customerDetail);\n\t\t\tOptional<User> user = userRepo.findByCustomer(customer.get());\n\t\t\tif (!user.isPresent())\n\t\t\t\tthrow new NoDataFoundException(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t\tUser userStatus = user.get();\n\t\t\tuserStatus.setUserStatus(requestDto.getCustomerStatus());\n\t\t\tuserStatus.setModifiedBy(requestDto.getCustomerId());\n\t\t\tuserStatus.setModifiedDate(new Date());\n\t\t\tuserRepo.save(userStatus);\n\t\t\tresponse = new CustomerUpdateResponseDto();\n\t\t\tresponse.setCustomerId(customerDetail.getCustomerId());\n\t\t\tresponseDto.setData(response);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_UPDATED_SUCCESSFULLY);\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_OK);\n\t\t\tresponseDto.setError(false);\n\n\t\t} else {\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_NO_CONTENT);\n\t\t\tresponseDto.setError(true);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t}\n\t\treturn responseDto;\n\n\t}", "public void updateCustomer(int phone, int discount, String name, String address, String group, int originalNumber)\n\t{\n\t\tCustomer customer = getCustomer(originalNumber);\n\t\tcustomer.setPhone(phone);\n\t\tcustomer.setDiscount(discount);\n\t\tcustomer.setName(name);\n\t\tcustomer.setAddress(address);\n\t\tcustomer.setGroup(group);\n\t}", "@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}", "@Test\n\t// @Disabled\n\tvoid testUpdateCustomerbyFirstname() {\n\t\tCustomer customer = new Customer(1, \"jen\", \"cru\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tMockito.when(custRep.save(customer)).thenReturn(customer);\n\t\tCustomer persistedCust = custService.updateFirstName(1, customer);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"jen\", persistedCust.getFirstName());\n\t}", "@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}", "@Override\n\tpublic void modifyAccount(Account account, Customer customer) {\n\t\t\n\t}", "int updateByExampleSelective(@Param(\"record\") CCustomer record, @Param(\"example\") CCustomerExample example);", "int updateByPrimaryKey(OcCustContract record);", "public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}", "@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = PUT, value = \"/{id}\", consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> updateCustomer(@PathVariable @NotNull ObjectId id,\n\t\t\t@RequestBody @Valid Customer customerToUpdate) {\n\n\t\treturn repo.existsById(id).flatMap(exists -> {\n\n\t\t\tif (!exists) {\n\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\"Customer does not exist, to create a new customer use POST instead.\");\n\t\t\t}\n\n\t\t\treturn repo.save(customerToUpdate).then(Mono.just(noContent().build()));\n\t\t});\n\t}", "@Override\n\tpublic boolean updateCustomer(Integer id, Customer customer) {\n\n\t\tboolean isUpdated = false;\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcust.setUsername(customer.getUsername());\n\t\t\t\tcust.setFirstName(customer.getFirstName());\n\t\t\t\tcust.setLastName(customer.getLastName());\n\t\t\t\tcust.setEmail(customer.getEmail());\n\t\t\t\tcust.setUserType(customer.getUserType());\n\t\t\t\tcust.setPassword(customer.getPassword());\n\t\t\t\tcust.setAddress(customer.getAddress());\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is updated in the list\");\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Update done : updateCustomer.isUpdated = \" + isUpdated);\n\t\treturn isUpdated;\n\t}", "@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}", "public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}", "@Override\n\t\t\t\tpublic void execute()\n\t\t\t\t{\n\n\t\t\t\t\tMobiculeLogger.verbose(\"execute()\");\n\t\t\t\t\tresponse = updateCustomerFacade.updateCustomerDetails();\n\t\t\t\t}", "public Customer createOrUpdateCustomer(final Customer customer) {\n checkNotNull(customer);\n\n String key = CustomerDbClient.computeKey(customer.getPhone(), customer.getName());\n Customer existing = dbClient.getById(key);\n if (existing == null) {\n return dbClient.putAndUpdateTimestamp(customer.toBuilder().setId(key).build());\n }\n\n List<Address> newAddresses = customer.getAddressesList()\n .stream()\n .filter(t -> !existing.getAddressesList().contains(t))\n .collect(Collectors.toList());\n\n Customer toUpdate = existing.toBuilder()\n .clearAddresses()\n .addAllAddresses(newAddresses) // The new address will be the default one.\n .addAllAddresses(existing.getAddressesList())\n .setDefaultAddressIndex(0)\n .build();\n\n return dbClient.putAndUpdateTimestamp(toUpdate);\n }", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mobile Customer update()\");\n\t}", "public void update(Customer customer) throws SQLException {\r\n\t\tString updateSql = \"UPDATE \" + tableName\r\n\t\t\t\t+ \" SET name=?,surname=?,birth_date=?,birth_place=?,address=?,city=?,province=?,\"\r\n\t\t\t\t+ \" cap=?,phone_number=?,newsletter=?,email=?\" + \"WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(updateSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.setInt(12, customer.getId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "public void updateSalerCustomerByForbidden(int uid) {\n\t\tthis.salerCustomerMapper.updateSalerCustomerByForbidden(uid);\n\t}", "public void update(Customer customer) throws CustomerNotFoundException {\r\n this.entityManager.merge(customer);\r\n }", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateCustomer(@PathVariable(\"id\") int id, @RequestBody @Valid CustomerViewModel customerViewModel){\n //check if the id matches the request body. Path variable and the\n //user passed data (customerId) must match to proceed.\n //so you need to input in both path variable and the requestbody\n if(id != customerViewModel.getCustomerId()){\n //throw illegal arguement\n }\n\n //if it does match, update that customer\n service.updateCustomer(customerViewModel);\n }", "@Override\r\n\tpublic void updateWx_BindCustomerPassword(Wx_BindCustomer wx_BindCustomer) {\n\t\tshopuserDao.updateWx_BindCustomerPassword(wx_BindCustomer);\r\n\t}", "public boolean updateProfile(String customerId) {\n\t\treturn false;\n\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public CustomerProfileDTO editCustomerProfile(CustomerProfileDTO customerProfileDTO)throws EOTException;", "@Override\r\n\tpublic boolean updatePostPaidAccount(int customerID, PostpaidAccount account) {\n\t\treturn false;\r\n\t}", "@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }", "@PutMapping(\"/customers\")\n public void updateCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n customerService.save(theCustomerHibernate);\n }", "public InwardEntity updateInvoice(InwardEntity entity , String companyId, String customerId) throws EntityException\n\t\t\t{\n\n\t\t\t\tDatastore ds = null;\n\t\t\t\tCompany cmp = null;\n\t\t\t\tBusinessPlayers customer = null;\n\t\t\t\tProducts prod = null;\n\t\t\t\tTax tax = null;\n\t\t\t\tKey<InwardEntity> key = null;\n\t\t\t\tObjectId oid = null;\n\t\t\t\tObjectId customerOid = null;\n\t\t\t\tObjectId prodOid = null;\n\t\t\t\tObjectId taxOid = null;\n\t\t\t\tInwardEntity invoice = null;\n\t\t\t\tboolean customerChange = false;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tds = Morphiacxn.getInstance().getMORPHIADB(\"test\");\n\t\t\t\t\toid = new ObjectId(companyId);\n\t\t\t\t\tQuery<Company> query = ds.createQuery(Company.class).field(\"id\").equal(oid);\n\t\t\t\t\tcmp = query.get();\n\t\t\t\t\tif(cmp == null)\n\t\t\t\t\t\tthrow new EntityException(404, \"cmp not found\", null, null);\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t//check if invoice exists with object id for update , fetch invoice, make changes to it\n\t\t\t\t\n\t\t\t\t\tQuery<InwardEntity> iQuery = ds.find(InwardEntity.class).filter(\"company\",cmp).filter(\"isInvoice\", true).\n\t\t\t\t\t\t\tfilter(\"id\",entity.getId());\n\n\t\t\t\t\tinvoice = iQuery.get();\n\t\t\t\t\tif(invoice == null)\n\t\t\t\t\t\tthrow new EntityException(512, \"invoice not found\", null, null); //cant update\n\n\n\t\t\t\t\t/*check if vendor changed in update, if so then check if new vendor exists\n\t\t\t\t\t * if vendor hasnt changed bt was deleted - let it be\n\t\t\t\t\t */\n\n\t\t\t\t\tif(!(customerId.equals(invoice.getCustomer().getId().toString())))\n\t\t\t\t\t{\n\t\t\t\t\t\tcustomerChange = true;\n\t\t\t\t\t\tcustomerOid = new ObjectId(customerId);\n\t\t\t\t\t\tQuery<BusinessPlayers> bpquery = ds.createQuery(BusinessPlayers.class).field(\"company\").equal(cmp).field(\"isCustomer\").equal(true).field(\"id\").equal(customerOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\tcustomer = bpquery.get();\n\t\t\t\t\t\tif(customer == null)\n\t\t\t\t\t\t\tthrow new EntityException(512, \"customer not found\", null, null);\n\n\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*if bill number is editable, do check if there is new /old vendor + new/old bill number combo unique\n\t\t\t\t\t * if vendor hasnt changed and bill number hasnt chngd - no prob\n\t\t\t\t\t * if vendor/bill number has chngd do check\n\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\t// front end list cant be null\n\t\t\t\t\tList<OrderDetails> invoiceDetails = entity.getInvoiceDetails();\n\n\t\t\t\t\tfor(OrderDetails details : invoiceDetails)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//check tax exists, if not deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//check tax exists, if deleted\n\t\t\t\t\t\tif(details.getTax().getId() != null && details.getTax().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\ttaxOid = new ObjectId(details.getTax().getId().toString());\n\t\t\t\t\t\t\tQuery<Tax> taxquery = ds.createQuery(Tax.class).field(\"company\").equal(cmp).field(\"id\").equal(taxOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\ttax = taxquery.get();\n\t\t\t\t\t\t\tif(tax == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(513, \"tax not found\", null, null); //tax doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == false)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(false);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //has been deleted in due course\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(details.getProduct().isDeleted() == true)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tprodOid = new ObjectId(details.getProduct().getId().toString());\n\t\t\t\t\t\t\tQuery<Products> prodquery = ds.createQuery(Products.class).field(\"company\").equal(cmp).field(\"id\").equal(prodOid).field(\"isDeleted\").equal(true);\n\t\t\t\t\t\t\tprod = prodquery.get();\n\t\t\t\t\t\t\tif(prod == null)\n\t\t\t\t\t\t\t\tthrow new EntityException(514, \"product not found\", null, null); //product doesn't exists / may not be deleted\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tdetails.setId(new ObjectId());\n\t\t\t\t\t\tdetails.setTax(tax);\n\t\t\t\t\t\tdetails.setProduct(prod);\n\n\t\t\t\t\t\ttax = null;\n\t\t\t\t\t\ttaxOid = null;\n\t\t\t\t\t\tprod = null;\n\t\t\t\t\t\tprodOid = null;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(\"protax\");\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDetails(invoiceDetails);\n\t\t\t\t\tinvoice.setCompany(cmp);\n\t\t\t\t\tif(customerChange == true)\n\t\t\t\t\t\tinvoice.setCustomer(customer); //set only if vendor has changed\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDate(entity.getInvoiceDate());\n\t\t\t\t\tinvoice.setInvoiceDuedate(entity.getInvoiceDuedate());\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setInvoiceGrandtotal(entity.getInvoiceGrandtotal());\n\t\t\t\t\tinvoice.setInvoiceSubtotal(entity.getInvoiceSubtotal());\n\t\t\t\t\tinvoice.setInvoiceTaxtotal(entity.getInvoiceTaxtotal());\n\t\t\t\t\tjava.math.BigDecimal balance = invoice.getInvoiceGrandtotal().subtract(invoice.getInvoiceAdvancetotal()); //grand total is just set, read prev advance\n\t\t\t\t\tinvoice.setInvoiceBalance(balance);\n\n\t\t\t\t\tkey = ds.merge(invoice);\n\t\t\t\t\tif(key == null)\n\t\t\t\t\t\tthrow new EntityException(515, \"could not update\", null, null);\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(EntityException e)\n\t\t\t\t{\n\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tthrow new EntityException(500, null , e.getMessage(), null);\n\t\t\t\t}\n\n\t\t\t\treturn invoice;\n\t\t\t}", "Boolean updateList(List<Customer> list);", "@Test\r\n public void testupdateCustomer() throws Exception {\r\n System.out.println(\"updateCustomer\");\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n Server.Customer m = lesClients.get(2);\r\n DAOCustomer.updateCustomer(Con(),1, \"Costa\", \"Rui\",\"15 rue Paul\",\"77290\",\"Paris\",\"ruicosta@hotmail.fr\",\"M\");\r\n List<Server.Customer> results = DAOCustomer.loadCustomer(Con());\r\n Server.Customer r = results.get(2);\r\n assertFalse(m.getPrenom() == r.getPrenom());\r\n \r\n }", "public abstract CustomerOrder findOneForUpdate(Long id);", "@CrossOrigin\n @RequestMapping(method = PUT, path = \"/customer\", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<UpdateCustomerResponse> updateName(@RequestHeader(\"authorization\") final String authorization, @RequestBody UpdateCustomerRequest updateCustomerRequest) throws AuthorizationFailedException, UpdateCustomerException {\n String accessToken = utilityService.splitAuthorization(authorization);\n CustomerEntity customer = customerService.getCustomer(accessToken);\n String newFirstName = updateCustomerRequest.getFirstName();\n String newLastName = updateCustomerRequest.getLastName();\n // Check if the firstname entered is empty\n if (utilityService.isStringEmptyOrNull(newFirstName)) {\n throw new UpdateCustomerException(\"UCR-002\", \"First name field should not be empty\");\n } else {\n customer.setFirstName(newFirstName);\n customer.setLastName(newLastName);\n CustomerEntity updateCustomer = customerService.updateCustomer(customer);\n\n UpdateCustomerResponse response = new UpdateCustomerResponse();\n response.setId(updateCustomer.getUuid());\n response.setFirstName(updateCustomer.getFirstName());\n response.setLastName(updateCustomer.getLastName());\n response.setStatus(\"CUSTOMER DETAILS UPDATED SUCCESSFULLY\");\n return new ResponseEntity<UpdateCustomerResponse>(response, HttpStatus.OK);\n }\n\n }", "@Override\n\tpublic void updateProfile(CustomerUpdateVO customerVO) {\n\t\tCustomer customer = customerRepository.findById(customerVO.getCid()).get();\n\t\ttry {\n\t\t\tcustomer.setImage(customerVO.getPhoto().getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustomer.setName(customerVO.getName());\n\t\tcustomer.setMobile(customerVO.getMobile());\n\t\tcustomer.setDom(new Timestamp(new Date().getTime()));\n\t\t/// customerRepository.save(customer);\n\t}", "@GET\n\t@Path(\"UpdateCustomer\")\n\tpublic Reply UpdateCustomer(@QueryParam(\"id\") int id, @QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"user\") int user) {\n\t\treturn ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email,\n\t\t\t\tphone, user);\n\t}", "public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}", "@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}", "public CstCustomer toupdate(String custNo) {\n\t\tCstCustomer cstCustomer=cstCustomerDao.toupdate(custNo);\n\t\treturn cstCustomer;\n\t}", "@RequestMapping(value = \"/customerOrders\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> updateCustomerOrder(@Valid @RequestBody CustomerOrder customerOrder) throws URISyntaxException {\n log.debug(\"REST request to update CustomerOrder : {}\", customerOrder);\n if (customerOrder.getId() == null) {\n return createCustomerOrder(customerOrder);\n }\n CustomerOrder result = customerOrderRepository.save(customerOrder);\n customerOrderSearchRepository.save(result);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"customerOrder\", customerOrder.getId().toString()))\n .body(result);\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 }", "private void updateCustomerCredit(BusinessPartner businessPartner, BigDecimal amount, boolean add) {\n OBDal.getInstance().refresh(businessPartner);\n BigDecimal creditUsed = businessPartner.getCreditUsed();\n if (add) {\n creditUsed = creditUsed.add(amount);\n } else {\n creditUsed = creditUsed.subtract(amount);\n }\n businessPartner.setCreditUsed(creditUsed);\n OBDal.getInstance().save(businessPartner);\n OBDal.getInstance().flush();\n }", "protected void setCustomer(Customer customer) {\n this.customer = customer;\n }", "int updateByExample(@Param(\"record\") CCustomer record, @Param(\"example\") CCustomerExample example);", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public static boolean updateCustomer(String customerIdTextField, String customerName, String customerAddress, String customerPostalCode,\n String customerPhoneNumber, Integer divisionID)\n {\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String updateQuery = \"UPDATE customers SET Customer_Name='\" + customerName\n + \"', Address='\" + customerAddress\n + \"', Phone='\" + customerPhoneNumber\n + \"', Postal_Code='\" + customerPostalCode\n + \"', Division_ID='\" + divisionID\n + \"'WHERE Customer_ID=\" + customerIdTextField;\n statement.execute(updateQuery);\n if(statement.getUpdateCount() > 0)\n System.out.println(statement.getUpdateCount() + \" row(s) affected.\");\n else\n System.out.println(\"No changes were made.\");\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return false;\n }", "public void updateCustomer(String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward) throws SQLException {\n st.executeUpdate(\"UPDATE IOTBAY.CUSTOMER SET \"\n + \"NAME ='\" + name \n + \"DATEOFBIRTH ='\" + dob \n + \"GENDER ='\" + gender \n + \"CONTACTNUMBER ='\" + number \n + \"BILLINGADDRESS ='\" + address \n + \"PASSWORD ='\" + password \n + \"PROMOTIONALNEWSLETTER ='\" + promo \n + \"', REWARDPOINTS='\" + reward \n + \"' WHERE EMAIL='\" + email + \"'\" );\n\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 void updateSalerCustomer(SalerCustomer salerCustomer) {\n\t\tthis.salerCustomerMapper.updateSalerCustomer(salerCustomer);\n\t}", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "@Test\n public void updateCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Update the Customer in the database\n customer.setFirstName(\"Michael\");\n customer.setLastName(\"Stuckey\");\n customer.setEmail(\"michaelallenstuckey@gmail.com\");\n customer.setCompany(\"NuclearFuelServices\");\n customer.setPhone(\"222-222-2222\");\n service.updateCustomer(customer);\n\n // Test the updateCustomer() method\n verify(customerDao, times(1)).updateCustomer(customerArgumentCaptor.getValue());\n assertEquals(customer, customerArgumentCaptor.getValue());\n }", "CustDataNotesResponseDTO updateCustDataNotes(String id,CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;", "public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }" ]
[ "0.7688378", "0.7688378", "0.76761556", "0.76484114", "0.7512438", "0.74872863", "0.7432068", "0.7373564", "0.73472786", "0.719543", "0.7149953", "0.7083316", "0.706752", "0.7051556", "0.70248246", "0.69738495", "0.6966281", "0.6931656", "0.69076973", "0.6882889", "0.68687767", "0.6865569", "0.6856017", "0.6846418", "0.6823077", "0.6796804", "0.6779583", "0.6769068", "0.67681825", "0.6762314", "0.6706073", "0.66526574", "0.6640751", "0.6639494", "0.6633206", "0.6611898", "0.6611547", "0.6611411", "0.65818363", "0.6552143", "0.65399265", "0.6486102", "0.6439042", "0.63763374", "0.6375286", "0.6360462", "0.634222", "0.6324259", "0.63234127", "0.6307163", "0.6304827", "0.6297677", "0.6292138", "0.62865674", "0.6284993", "0.62832284", "0.6279054", "0.6275556", "0.62638277", "0.62528354", "0.62527794", "0.6198242", "0.6188036", "0.61880165", "0.6186041", "0.61804134", "0.6180305", "0.6163684", "0.61406475", "0.61379915", "0.61275417", "0.6117675", "0.6117603", "0.6114183", "0.6109869", "0.6105649", "0.61033463", "0.6096233", "0.60908073", "0.6073871", "0.605389", "0.60395336", "0.60317093", "0.6029437", "0.60214376", "0.60159934", "0.6005605", "0.60049057", "0.60040164", "0.6000673", "0.59858054", "0.5978249", "0.59761727", "0.5965331", "0.5955866", "0.5949458", "0.5944514", "0.59337777", "0.59231764", "0.59027356" ]
0.6465701
42
Method for deleting customer
@ApiOperation(value = "Delete a customer", notes = "") @DeleteMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) public void deleteCustomer(@PathVariable Long customerId) { customerService.deleteCustomerById(customerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteCustomerById(int customerId);", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "public boolean deleteCustomer(String custId);", "void delete(Customer customer);", "void deleteCustomerById(Long id);", "boolean delete(CustomerOrder customerOrder);", "public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }", "public void DeleteCust(String id);", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}", "@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }", "@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}", "void deleteCustomerDDPayById(int id);", "public abstract void delete(CustomerOrder customerOrder);", "@GetMapping(\"/delete\")\r\n\tpublic String deleteCustomer(@RequestParam(\"customerId\") int id){\n\t\tcustomerService.deleteCustomer(id);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}", "public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }", "@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}", "@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}", "@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}", "public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}", "public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}", "@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}", "@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}", "@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}", "@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}", "public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}", "@DeleteMapping(\"/{id}\")\n public Boolean deleteCustomer(@PathVariable(\"id\") Long customerId) {\n return true;\n }", "@DeleteMapping(\"/customers/{customerId}\")\n public String deleteCustomer(@PathVariable int customerId) {\n CustomerHibernate customerHibernate = customerService.findById(customerId);\n\n if (customerHibernate == null) {\n throw new RuntimeException(\"Customer id not found - \" + customerId);\n }\n customerService.deleteById(customerId);\n\n return String.format(\"Deleted customer id - %s \", customerId);\n }", "@DeleteMapping()\n public Customer deleteCustomer(@RequestBody Customer customer ) {\n customerRepository.delete(customer);\n return customerRepository.findById(customer.getId()).isPresent() ? customer : null;\n }", "@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}", "@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }", "void removeCustomer(Customer customer);", "@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}", "@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\n\t public ResponseEntity<?> deleteCustomer(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.deleteCustomer(id, customer);\n\t }", "BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);", "@Then(\"^user deletes customer \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void user_deletes_customer(String arg1) throws Throwable {\n\t DeleteCustomer delete=new DeleteCustomer();\r\n\t StripeCustomer.response=delete.deleteCustomer(new PropertFileReader().getTempData(arg1));\r\n\t}", "@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}", "@DeleteMapping(\"/customers/{customer_id}\")\n\tpublic String deletecustomer(@PathVariable(\"customer_id\") int customerid ) {\n\t\t\n\t\t//first check if there is a customer with that id, if not there then throw our exception to be handled by @ControllerAdvice\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t//if it is happy path(customer found) then go ahead and delete the customer\n\t\tthecustomerService.deleteCustomer(customerid);\n\t\treturn \"Deleted Customer with id: \"+customerid;\n\t}", "@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}", "private void deleteCustomerById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int idCustomer = Integer.parseInt(request.getParameter(\"id\"));\n CustomerDao.deleteCustomer(idCustomer);\n response.sendRedirect(\"/\");\n }", "@Override\r\n\tpublic void delete(String cust_ID) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(DELETE);\r\n\r\n\t\t\tpstmt.setString(1, cust_ID);\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured.\" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@GET\n\t@Path(\"DeleteCustomer\")\n\tpublic Reply deleteCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().deleteCustomer(id);\n\t}", "@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }", "public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }", "public void deleteCustomer(Customer customer) {\n\n\t\tcustomers.remove(customer);\n\n\t\tString sql = \"UPDATE customer SET active = 0 WHERE customerId = ?\";\n\n\t\ttry ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD);\n\t\t\t\tPreparedStatement prepstmt = conn.prepareStatement(sql); ) {\n\n\t\t\tint customerId = Customer.getCustomerId(customer);\n\t\t\tprepstmt.setInt(1, customerId);\n\t\t\tprepstmt.executeUpdate();\n\n\t\t} catch (SQLException e){\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}", "void deleteAccountByCustomer(String customerId, String accountNumber) throws AccountException, CustomerException;", "@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tcustomerDAO.deleteById(id);\n\t}", "public void delete(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM customer WHERE customer_key = ?\");\n ppst.setInt(1, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "private void deletePurchase(CustomerService customerService) throws DBOperationException\n\t{\n\t\tSystem.out.println(\"To delete coupon purchase enter coupon ID\");\n\t\tString idStr = scanner.nextLine();\n\t\tint id;\n\t\ttry\n\t\t{\n\t\t\tid=Integer.parseInt(idStr);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid id\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// retrieve all coupons of this customer\n\t\tList<Coupon> coupons = customerService.getCustomerCoupons();\n\t\tCoupon coupon = null;\n\t\t\n\t\t// find coupon whose purchase to be deleted\n\t\tfor(Coupon tempCoupon : coupons)\n\t\t\tif(tempCoupon.getId() == id)\n\t\t\t{\n\t\t\t\tcoupon = tempCoupon;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t// delete purchase of the coupon\n\t\tif(coupon != null)\n\t\t{\n\t\t\tcustomerService.deletePurchase(coupon);\n\t\t\tSystem.out.println(customerService.getClientMsg());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Customer dors not have coupon with this id\");\n\t}", "@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerOrder : {}\", id);\n customerOrderRepository.delete(id);\n customerOrderSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerOrder\", id.toString())).build();\n }", "@GetMapping(\"/cancel/{custId}\")\n\tpublic String customerDelete(@PathVariable Integer custId) {\n\t\tCustomer cust = customerService.getCustomer(custId);\n\t\tSimpleMailMessage mailMessage = new SimpleMailMessage();\n\t\tmailMessage.setTo(cust.getCustomerEmail());\n\t\tmailMessage.setSubject(\"Account Denied\");\n\t\tmailMessage.setFrom(\"balumathi333.com\");\n\t\tmailMessage.setText(\"Document that have submitted is not valid!!!Please try to register with valid Document\");\n\t\temailSenderService.sendEmail(mailMessage);\n\t\tCustomer customer = customerService.deleteCustomer(custId);\n\t\treturn \"redirect:/verifycustomer\";\n\t}", "@Nullable\n public DelegatedAdminCustomer delete() throws ClientException {\n return send(HttpMethod.DELETE, null);\n }", "@Override\n\tpublic void deleteOne(Customer c) {\n\t\tthis.getHibernateTemplate().delete(c);\n\t}", "@Override\n\tpublic void removeCustomer(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Customers here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input customer id\n\t\t\tSystem.out.print(\"Enter Customer Id to delete the customer: \");\n\t\t\tint customerId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeCustomer(session,customerId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}", "@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}", "@Override\n\tpublic Item delete() {\n\t\treadAll();\n\t\tLOGGER.info(\"\\n\");\n\t\t//user can select either to delete a customer from system with either their id or name\n\t\tLOGGER.info(\"Do you want to delete record by Item ID\");\n\t\tlong id = util.getLong();\n\t\titemDAO.deleteById(id);\n\t\t\t\t\n\t\t\t\t\n\t\treturn null;\n\t}", "public boolean deleteCustomer(int id, int customerID)\n throws RemoteException, DeadlockException;", "public void deleteCustomer(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query for deleting the account\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\t\"delete from Customer where customerId=:id\",Customer.class);\n\t\tquery.setParameter(id, id);\n\t\tquery.executeUpdate();\n\t}", "@DeleteMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> deleteCustomerDetails(@PathVariable(\"id\") long id) {\n\t\tcustomerService.deleteCustomerDetails(id);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is deleted\");\n\n\t}", "public static int deleteCustomer(long custID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = pool.getConnection();\n\t\t\tStatement stmt = con.createStatement();\n\t\t\treturn stmt.executeUpdate(\"DELETE FROM customersCoupons WHERE customerID=\" + custID);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CouponSystemException(\"Customer Not Deleted\");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}", "@Test\n public void deleteCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Delete the Customer from the database\n service.removeCustomer(customer.getCustomerId());\n\n // Test the deleteCustomer() method\n verify(customerDao, times(1)).deleteCustomer(integerArgumentCaptor.getValue());\n assertEquals(customer.getCustomerId(), integerArgumentCaptor.getValue().intValue());\n }", "@Test\n\t// @Disabled\n\tvoid testDeleteCustomer() {\n\t\tCustomer customer = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tcustRep.deleteById(1);\n\t\tCustomer persistedCust = custService.deleteCustomerbyId(1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"tommy\", persistedCust.getFirstName());\n\n\t}", "public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}", "public void removeCustomer(){\n String message = \"Choose one of the Customer to remove it\";\n if (printData.checkAndPrintCustomer(message)){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfCustomer());\n if (subChoice!=0){\n data.removeCustomer(data.getCustomer(subChoice-1),data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has removed Successfully!\");\n }\n }\n }", "public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }", "@DeleteMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Map<String, Boolean>> deleteCustomer(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\n\t\tcustomerRepository.delete(customer);\n\t\tMap<String, Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}", "@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void deleteCustomer(Connection connection, int CID) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"CUSTOMER\", null);\n\n if (rs.next()){\n\n String sql = \"DELETE FROM Customer WHERE c_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCID(CID);\n pStmt.setInt(1, getCID());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }", "@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = DELETE, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<?>> deleteCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\tfinal Mono<ResponseEntity<?>> noContent = Mono.just(noContent().build());\n\n\t\treturn repo.existsById(id)\n\t\t\t.filter(Boolean::valueOf) // Delete only if customer exists\n\t\t\t.flatMap(exists -> repo.deleteById(id).then(noContent))\n\t\t\t.switchIfEmpty(noContent);\n\t}", "@Override\r\n\tpublic boolean deletePostPaidAccount(int customerID, long mobileNo) {\n\t\treturn false;\r\n\t}", "public void deleteCustomer(String id) {\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\ttry {\n\t\t\tStatement deleteStatement = connection.createStatement();\n\t\t\t\n\t\t\tString deleteQuery = \"DELETE FROM Customer WHERE CustomerID='\"+id+\"')\";\n\t\t\tdeleteStatement.executeUpdate(deleteQuery);\t\n\t\t\t\n\t\t\t//TODO delete all DB table entries related to this entry:\n\t\t\t//address\n\t\t\t//credit card\n\t\t\t//All the orders?\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\n\t}", "public static void deleteCustomer(int customerID) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String deleteStatement = \"DELETE from customers WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, deleteStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.setInt(1,customerID);\r\n ps.execute();\r\n\r\n if (ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n } else {\r\n System.out.println(\"no change\");\r\n }\r\n }", "public void removeUser(Customer user) {}", "public void Delete(int id) {\n\t\tString sql4 = \"DELETE FROM customers where customer_id= \" + id;\n\t\ttry {\n\t\t\tstmt.executeUpdate(sql4);\n\t\t\tSystem.out.println(\"Deleted\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@GetMapping(\"/carsAndCustomers/customer/delete/{id}\")\n public String deleteCustomerModal(@PathVariable(\"id\") Integer id, Model model) {\n model.addAttribute(\"customer\", customerRepository.findById(id));\n return \"fragments/deleteConfirmationCustomer :: deleteConfirmationCustomer\";\n\n }", "private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }", "public int deleteUser(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t\n\t\t}", "public void deleteSalerCustomer(int uid) {\n\t\tthis.salerCustomerMapper.deleteSalerCustomer(uid);\n\t}", "public void delete(Customer customer) throws CustomerNotFoundException {\r\n customer = this.entityManager.merge(customer);\r\n this.entityManager.remove(customer);\r\n }", "void deleteCustomerOrderBroadbandASIDById(int id);", "public boolean removeCustomer(int deleteId) {\n\t\tCallableStatement stmt = null;\n\t\tboolean flag = true;\n\t\tCustomer ck= findCustomer(deleteId);\n\t\tif(ck==null){\n\t\t\tSystem.out.println(\"Cutomer ID not present in inventory.\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\telse\n\t\t{\n\t\t\tString query = \"{call deleteCustomer(?)}\";\n\t\t\ttry {\n\t\t\t\tstmt = con.prepareCall(query);\n\t\t\t\tstmt.setInt(1, deleteId);\n\t\t\t\tflag=stmt.execute();\n\t\t\t\t//System.out.println(flag);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error in database operation. Try agian!!\");\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn flag;\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Atomic\n public void deleteAdhocCustomer(AdhocCustomer adhocCustomer) {\n }", "@Override\n\tpublic Uni<Boolean> deleteCustomerById(Long cid) {\n\t\treturn repo.deleteById(cid).chain(repo::flush).onItem().transform(ignore ->true);\n\t}", "@Override\n\tpublic void delete(Long ID) {\n\t\tCustRepo.delete(ID);\n\t}", "void removeCustomer(String code) throws CustomerCodeNotExistsException;", "public Boolean removeCustomer() {\r\n boolean ok = false;\r\n\t\t//Input customer phone.\r\n\t\tString phone = readString(\"Input the customer phone: \");\r\n\t\tCustomer f = my.findByPhone(phone);\r\n\t\tif (f != null) {\r\n ok = my.remove(f);\r\n\t\t\t\r\n\t\t}\r\n\t\telse alert(\"Customer not found\\n\");\t\r\n return ok;\r\n\t}", "public void deleteOneForCustomer(Customer customer, int todoListNum) {\n TodoList todoList = todoListDao.findByCustomerAndNum(customer, todoListNum);\n todoListDao.deleteById(todoList.getId());\n computeTodoListNum(customer);\n }", "@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }", "@Override\r\n\tpublic Customer removeCustomer(String custId) {\r\n\r\n\t\tOptional<Customer> optionalCustomer = customerRepository.findById(custId);\r\n\t\tCustomer customer = null;\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\tcustomerRepository.deleteById(custId);\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityDeletionException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public void onRemoveRequest(CustomerRequest request);", "public void delete(Privilege pri) throws Exception {\n\t\tCommandUpdatePrivilege com=new CommandUpdatePrivilege(AuthModel.getInstance().getUser(),pri);\r\n\t\tClient.getInstance().write(com);\r\n\t\tObject obj=Client.getInstance().read();\r\n\t\tif(obj instanceof Command){\r\n\t\t\tdirty=true;\r\n\t\t\tlist=this.get(cond);\r\n\t\t\tthis.fireModelChange(list);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tthrow new Exception(\"Delete Customer failed...\"+list);\r\n\t}", "@Override\n\tpublic boolean deleteCustomer(Integer id) {\n\n\t\tboolean isDeleted = false;\n\n\t\tfor (Customer customer : customers) {\n\t\t\tif (customer.getId() == id) {\n\t\t\t\tcustomers.remove(customer);\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is deleted from the list\");\n\t\t\t\tisDeleted = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Delete done : deleteCustomer.isDeleted = \" + isDeleted);\n\t\treturn isDeleted;\n\t}", "@Override\n\tpublic boolean deleteRecord(Customer record) {\n\t\tfinal int res = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\"Are you sure you want to delete the selected customer?\", \"Delete Record\",\n\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\t\tif (res == JOptionPane.YES_OPTION) {\n\t\t\t// Remove customer from model\n\t\t\tsynchronized (model.customers) {\n\t\t\t\tmodel.customers.remove(record.getLogin());\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public int removeCustomer(long id) {\n return model.deleteCustomer(id);\n }", "void removeAuthorisationsOfCustomer(CustomerModel customer);" ]
[ "0.84013003", "0.8387055", "0.8387055", "0.83765763", "0.83436453", "0.8227435", "0.805324", "0.79400575", "0.78755504", "0.7845096", "0.7829302", "0.7775088", "0.7767667", "0.77298963", "0.77280587", "0.77126", "0.76576877", "0.7656186", "0.7619352", "0.76142055", "0.75903046", "0.7580917", "0.7580011", "0.75763077", "0.75624645", "0.75479454", "0.75472945", "0.75276524", "0.74617404", "0.74569046", "0.74220234", "0.74114245", "0.7407688", "0.73892003", "0.73743075", "0.7346283", "0.7346113", "0.73394173", "0.7332068", "0.73265326", "0.73039436", "0.72817653", "0.72639054", "0.72617114", "0.7232171", "0.72194374", "0.7216623", "0.720977", "0.7208035", "0.7174735", "0.7165351", "0.7163175", "0.71557826", "0.71209455", "0.7110073", "0.7077488", "0.70669854", "0.7058846", "0.70515823", "0.7015457", "0.6995981", "0.6970908", "0.69677454", "0.6960157", "0.6937721", "0.69357944", "0.687648", "0.68718857", "0.68656063", "0.6846036", "0.6841526", "0.68369204", "0.67792016", "0.6767823", "0.67561424", "0.6729372", "0.6725303", "0.6698823", "0.6690327", "0.66406476", "0.6639307", "0.66210455", "0.6619973", "0.6611249", "0.66095346", "0.6606655", "0.65996295", "0.6589487", "0.6566948", "0.6564013", "0.65574145", "0.65568686", "0.65543216", "0.65363765", "0.65072644", "0.6503551", "0.6498537", "0.6491034", "0.6489228", "0.64830273" ]
0.7333065
38
this should record state
public void turnOn( ) { System.out.println("Light is on "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void storeCurrentValues() {\n }", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "@Override\n protected void incrementStates() {\n\n }", "public void saveState() { }", "protected S state() {\n return state;\n }", "public void getState();", "@Override\n\tpublic int getState() {\n\t\treturn 0;\n\t}", "public int getState() {return state;}", "public int getState() {return state;}", "private SyncState() {}", "public State getState(){return this.state;}", "public void recordState() {\n this.event = null;\n flowContextInfo.setWaitingNode(currentNode);\n }", "protected abstract int newState();", "public void info() {\n\t\tstate.info();\n\t}", "@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }", "@Override\n public int getState() {\n return myState;\n }", "public boolean getState( ) { return state; }", "@Override\n public Map<String, Object> currentState() {\n\n return new HashMap<>();\n }", "OperationalState operationalState();", "OperationalState operationalState();", "private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}", "void printstate()\n\t{\n\t\toperation.printstate();\n\t}", "private void getStatus() {\n\t\t\n\t}", "private Object getState() {\n\treturn null;\r\n}", "@Override\n public String getState()\n {\n return state;\n }", "Object getState();", "public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }", "protected void aktualisieren() {\r\n\r\n\t}", "public int getState(){\n return state;\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "@Override\n int getStateToVisible() {\n return 2;\n }", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "void beforeState();", "private SavedState(Parcel parcel) {\n super(parcel);\n boolean bl2 = parcel.readInt() != 0;\n this.isOpen = bl2;\n }", "@Override\n public String toString()\n {\n return state.toString();\n }", "abstract public void updateState();", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onRestate() {\n }", "private void addStateLog(){\n int state = GUIState.getState();\n if(state == 1){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n addText(\"Choose which card this card will affect!\");\n } if(state == 2){\n if(GUIState.command.equals(\"Summon\") || GUIState.command.equals(\"Defense\")){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n }\n addText(\"Choose where to put this card!\");\n }\n }", "public void initialState() {\n\t\t//empty\n\t}", "public DBState() {\n\t\t\tthis.expandedElements=treeViewer.getExpandedElements();\n\t\t\tthis.treeSelection=treeViewer.getSelection();\n\t\t\tthis.tableSelection=txTableViewer.getSelection();\n\t\t}", "public State state();", "public void enterHatchingState() {\n\n\t}", "public String getState() { return state; }", "void state_REQState(){\r\n eccState = INDEX_REQState;\r\n alg_REQAlg();\r\n CNF.serviceEvent(this);\r\n state_START();\r\n}", "public abstract String getState();", "@Override\n\tpublic void setLastState(STATE state) {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "private StateUtils() {}", "public abstract String[] exportState();", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "public int getState(){\n\t\treturn state;\n\t}", "@Override\n public float getState() {\n return state;\n }", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public ExecuteState() {\r\n PrevPC = 0;\r\n ChangedLoc = -1;\r\n OldInst = new CodeBlueInstruction();\r\n }", "private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }", "public boolean nextState() {\n\t\treturn false;\n\t}", "@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}", "public int getState() {\n \t\treturn state;\n \t}", "@Override\r\n public void stateChanged(ChangeEvent e) {\n }", "public State GetState()\n {\n return this.state;\n }", "String getContentState();", "long getStateChange();", "public LateComingRecord() {\n\t\t}", "void currentStateChanged();", "private State getState()\n {\n return state;\n }", "protected String getStatus()\n { return call_state; \n }", "@Override\n public boolean isStateful() {\n return true;\n }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t}", "protected void checkpoint(S state) {\n checkpoint();\n state(state);\n }", "void storeFormState();", "@Override\n public void updateState(Perception p) {\n \n //TODO: Complete Method\n }", "public void updateState();", "private State5() {\n\t}", "@Override\r\n\tpublic boolean getState() {\n\t\treturn activated;\r\n\t}", "private void dumpState() {\n try {\n if (cpeFactory.getCPEConfig() != null\n && cpeFactory.getCPEConfig().getDeployment().equalsIgnoreCase(SINGLE_THREADED_MODE)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cr_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(readerState) });\n\n for (int i = 0; processingUnits != null && i < processingUnits.length; i++) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_pu_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(i),\n String.valueOf(processingUnits[i].threadState) });\n }\n if (casConsumerPU != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cc_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(casConsumerPU.threadState) });\n }\n\n } else {\n if (producer != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cr_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(producer.threadState) });\n }\n for (int i = 0; processingUnits != null && i < processingUnits.length; i++) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_pu_state__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(i),\n String.valueOf(processingUnits[i].threadState) });\n }\n if (casConsumerPU != null) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_show_cc_state__INFO\",\n new Object[] { Thread.currentThread().getName(),\n String.valueOf(casConsumerPU.threadState) });\n }\n }\n } catch (Exception e) { // ignore. This is called on stop()\n }\n\n }", "public TransactionState state();", "java.lang.String getState();", "private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected String doVerifyState() {\n\t\treturn null;\n\t}", "public void record(){\n\t}", "public State state() {\n return _state;\n }", "public NewTransitionRecord(){\r\n fromstate = 0;\r\n tostate = 0;\r\n rate = 0.0;\r\n }", "void nextState();", "protected synchronized void setChanged() {\n changed = true;\n }", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }", "public String getState()\n {\n \treturn state;\n }" ]
[ "0.67175335", "0.66460145", "0.66298324", "0.6595664", "0.6569283", "0.6546335", "0.6541719", "0.6505443", "0.64684176", "0.64490455", "0.6415957", "0.64067334", "0.64067334", "0.6372395", "0.6316121", "0.62841475", "0.626142", "0.62589836", "0.6218416", "0.6213672", "0.6191067", "0.61462367", "0.611466", "0.611466", "0.61081916", "0.60965645", "0.6075471", "0.6054596", "0.59985083", "0.5985714", "0.59754413", "0.5973637", "0.5950721", "0.59374475", "0.5915694", "0.5915694", "0.58989745", "0.58973", "0.5896074", "0.5895881", "0.5892487", "0.5868994", "0.5859835", "0.5839258", "0.5838928", "0.5832539", "0.58236784", "0.5816921", "0.5803264", "0.5786062", "0.57770973", "0.57680464", "0.5765911", "0.5753632", "0.5735058", "0.5723948", "0.57211083", "0.5713283", "0.5703887", "0.56991273", "0.56865966", "0.5685131", "0.568163", "0.56807387", "0.56710494", "0.56708026", "0.5670136", "0.56678355", "0.5667733", "0.5663714", "0.5662698", "0.56620896", "0.5661581", "0.5654483", "0.5648836", "0.5646834", "0.5646043", "0.5641667", "0.56385505", "0.56344444", "0.56337386", "0.5629976", "0.56286615", "0.5624849", "0.562439", "0.5622568", "0.56213945", "0.56165755", "0.5615922", "0.5613018", "0.5598234", "0.55933493", "0.55929047", "0.558619", "0.558619", "0.558619", "0.558619", "0.558619", "0.558619", "0.55831105", "0.55800813" ]
0.0
-1
invoker calls back concrete Command, which executes the Command on the receiver
void flipUp( ) { UpCommand . execute ( ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }", "@Override\r\n public void execute(Command command) {\n\r\n }", "public abstract void execute(CommandSender sender, String[] args);", "private interface Command {\n public void execute();\n }", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "WrappedAnswer execute(WrappedCommand aWrappedCommand);", "public interface Command{\n public void execute();\n\n}", "public abstract void doCommand(String command);", "public interface Command {\n\n void executer(Tondeuse tondeuse);\n\n}", "Command handleExecute(CommandExecute commandExecute);", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "interface Command\n{\n\tpublic void execute();\n}", "public interface Command {\n\tvoid execute();\n}", "public interface Command {\r\n\r\n\tpublic void execute();\r\n\r\n}", "<T extends Command> T execute(T command);", "@Override\n public void execute(final Runnable command) {\n WorkerThread actorThread = startActorThread();\n WorkerRef<Runnable> actor = actorThread.bindActor(Runnable.class, command);\n actor.tell().run();\n actorThread.stop();\n }", "interface Command {\n void execute();\n}", "public interface ICommand {\n /**\n * The action each implementation of ICommand will execute when called\n */\n void execute();\n}", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "public abstract void exec(CommandSender sender, String[] args);", "public interface Command {\n\n\n}", "public interface Command {\n\n /**\n * Encapsulate the actions and can be called to invoke the actions on the receiver object.\n */\n void execute();\n\n /**\n * Encapsulate the undo actions.\n */\n void unDo();\n}", "<C, R> void dispatch( CommandMessage<C> command, CommandCallback<? super C, ? super R> callback );", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "public interface iCommand {\n void execute(String peerId, JSONObject payload) throws JSONException;\n}", "public interface Command {\n\t\n\tint execute(int number);\n}", "public interface Command {\n public void execute(Integer value);\n}", "public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface CommandService {\n\n /**\n * Executes given command remotely and synchronously and returns the similar object as executed, but changed on the remote\n * side.\n */\n <T extends Command> T execute(T command);\n}", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\n\tpublic CommandProxy execute() {\n\t\tCommandProxy proxy = build();\n\t\tproxy.execute();\n\t\treturn proxy;\n\t}", "public interface Command {\r\n public void execute(Long id);\r\n}", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public interface Command {\n\t/**\n\t * Executes the logic for this command\n\t * @return an Object to be cast to the desired return object\n\t * @throws ServerException \n\t */\n\tpublic void execute() throws ServerException;\n}", "public interface Command {\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes by a player.</p>\n *\n * @param player Player executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes in the console.</p>\n *\n * @param console Console sender executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command were executed by a player.</p>\n *\n * @param player Player executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onTab(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command was executed in the console.</p>\n *\n * @param console Console sender executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onConsoleTab(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Returns parent {@link Command} of this command.\n *\n * @return Parent of this command\n * @deprecated Rename to {@link #getRoot()}\n */\n @Deprecated\n @Nullable\n Command getParent();\n\n /**\n * Returns root {@link Command} of this command.\n *\n * @return Root of this command\n */\n @Nullable\n Command getRoot();\n\n /**\n * Returns the name of this command.\n *\n * @return Name of this command\n */\n @NotNull\n String getName();\n\n /**\n * Returns the {@link PermissionWrapper} of this command\n *\n * @return The permission wrapper of this command\n */\n @NotNull\n PermissionWrapper getPermission();\n\n /**\n * Get the syntax or example usage of this command.\n *\n * @return Syntax of this command\n */\n @NotNull\n String getSyntax();\n\n /**\n * Gets a brief description of this command\n *\n * @return Description of this command\n */\n @NotNull\n String getDescription();\n\n /**\n * Returns a list of active aliases of this command, include value of {@link #getName()} method.\n *\n * @return List of aliases\n */\n @NotNull\n List<String> getAliases();\n\n String toString();\n}", "public interface Command {\n void execute();\n\n void printCommandInfo();\n}", "@Override\n public void Execute() {\n\n }", "public interface CommandSender \n{\n /**\n * Handle a respond from the robot.\n * @param result The result.\n * @param originalCommand The command which was sent to the robot.\n */\n public void handleResponse(byte[] result, Command originalCommand);\n \n /**\n * Handle an error that occured when communicating to the robot.\n * @param code The error code that was sent by the robot.\n */\n public void handleError(int code);\n \n /**\n * Needed when sending a command repetitively to the robot.\n * @return The command string that should be used.\n */\n public Command getCurrentCommand();\n \n}", "public void execute(Command command, T component);", "public interface ServerCommand {\n\t\n\t/**\n\t * Command wird ausgef&uuml;hrt.\n\t * \n\t * @param m Member, welcher den Command ausgef&uuml;hrt hat.\n\t * @param c TextChannel, in dem der Command ausgef&uuml;hrt wurde.\n\t * @param msg Message, in der der Command steht.\n\t */\n public abstract void performCommand(Member m, TextChannel c, Message msg);\n}", "@Override\n public void execute() {\n if(state.getState()!=1) {\n client.printParseMessage();\n return;\n } else if(inputArgs.length < 1) {\n System.out.println(client.strings.getString(\"manage_command_message\"));\n return;\n }\n try {\n client.setDraftTag(inputArgs[0]);\n channel.send(new ReadRequest(client.getDraftTag()));\n ReadReply reply = (ReadReply) channel.receive();\n if(!reply.lines.isEmpty()) {\n String replyLine = reply.lines.get(reply.lines.size() - 1);\n if(Push.CLOSE_LINE.equals(replyLine)) {\n System.out.println(client.strings.getString(\"manage_close_command_message\"));\n return;\n }\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(ReadCommand.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n state.setState(2);\n }", "public interface GameCommand\r\n{\r\n void execute(Game game);\r\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "public abstract void onInvoked(CommandSender sender, String[] args);", "public interface Command\n{\n void doCommand(List<String> args) throws Exception;\n}", "public interface BehaviorCommand extends Command {\n\n void executeBehavior(ShellData shellData);\n\n}", "public void handleCommand(String command);", "public void commandAction(Command cmd, Displayable displayable) {\r\n\t\t\tAbstractCommand myCommand = (AbstractCommand) cmd;\r\n\t\t\tmyCommand.execute();\r\n\t\t}", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "public interface OtoCommand<R> {\r\n void execute();\r\n void execute(IContext context);\r\n\r\n void execute(IContext context, Handler<R> resultHandler);\r\n void executeFuture(CommandContext context, Future<R> future);\r\n}", "public void execute(Command command){\n command.run(field);\n }", "void execute(final AbstractInteractor interactor);", "public interface ICommand {\n\tpublic abstract void execute(Rover roverInMovement, Plateau currentPlateauState) throws RoverOutOfPlateauException, GridBusyByOtherRoverException;\n}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "public void Execute() {\n\n }", "Result command(@NotNull CommandSender sender, List<String> args);", "public ConcreteCommandA(ReceiverA empfaengerA) {\n\t\tthis.empfaengerA = empfaengerA;\n\t}", "public interface Command {\n void execute(final View view, CommandListener listener);\n}", "public static void main(String[] args) {\n Receiver receiver = new Receiver();\n\n // Calling the concrete commands\n UndoCommand undoCommand = new UndoCommand(receiver);\n RedoCommand redoCommand = new RedoCommand(receiver);\n\n // Initiates the invoker class\n Invoker invoker = new Invoker();\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n //invoker.addCommand(undoCommand); // undo -> can still undo even if the is nothing to undo :(\n //invoker.addCommand(undoCommand); // undo\n //invoker.addCommand(undoCommand); // undo\n\n invoker.executeUndoCommand(); // Execute undo actions\n invoker.executeRedoCommand(); // Execute redo actions\n }", "Result invoke(Invoker<?> invoker, Invocation invocation);", "@Override\n public void onExecute(GenericExecutor sender, String[] args) {\n if (sender.getOriginal() instanceof ProxiedPlayer) {\n ProxiedPlayer player = (ProxiedPlayer) sender.getOriginal();\n\n CommandProxyPayload payload = new CommandProxyPayload();\n payload.setExecutor(player.getUniqueId());\n payload.setArgs(args);\n payload.setCommandProxy(CommandProxy.SHOW);\n\n OpenAudioMcBungee.getInstance().getNodeManager().getPacketManager().sendPacket(new PacketPlayer(player), new CommandProxyPacket(payload));\n }\n }", "public interface Command\n{\n public void execute();\n public void undo();\n}", "public interface Command {\n void execute();\n void unexecute();\n Boolean isExecuted();\n}", "public interface Commander {\r\n\t\r\n\t/**\r\n\t * This will issue a command. It returns a receipt for the issuance, not for the other all interaction.\r\n\t * @param commandToIssue The command to issue.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic Receipt issueCommand(Command\t\tcommandToIssue) throws SystemException;\r\n\t\r\n\t/**\r\n\t * Query the reponse progress a command. It is up to the implementation as to when responses are handled. If they\r\n\t * are not handled in a separate thread, it is possible this call with take time to handle responses. The implementation will\r\n\t * make a best-effort to keep InterruptedExceptions from fouling the process. If it successful, the interruption will propagate\r\n\t * as a simple WARNING level SystemException. If not, you could see anything up to a PANIC.\r\n\t * @param commandReceipt The issuance receipt. \r\n\t * @return A response object.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic CommandResponse queryResponse(Receipt\tcommandReceipt) throws SystemException;\r\n\t\r\n\t\r\n\t/**\r\n\t * Allow the disposal procecure to run. It is safe to call this any time. It will sweep any DISPOSED responses\r\n\t * from the system, which may build up over time. The CommandResponse implementations may or may not call it.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic void disposal() throws SystemException;\r\n\t\r\n}", "protected void execute()\n {\n }", "@Override\n public void run(ControllerInfo controller) throws RemoteException {\n Bundle bundle = new Bundle();\n bundle.putBundle(ARGUMENT_CUSTOM_COMMAND, command.toBundle());\n bundle.putBundle(ARGUMENT_ARGUMENTS, args);\n bundle.putParcelable(ARGUMENT_RESULT_RECEIVER, receiver);\n controller.getControllerBinder().onEvent(SESSION_EVENT_SEND_CUSTOM_COMMAND, bundle);\n }", "public void sendCommand(Command cmd);", "private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }", "@Override\n\tpublic boolean execute(RPGEssentials plugin, CommandSender sender, String... args) {\n String base = (args.length > 0 ? args[0] : \"\");\n String last = (args.length > 0 ? args[args.length - 1] : \"\");\n \n // If there's no base argument, show a helpful message.\n if (base.equals(\"\")) {\n Messenger.sendMessage(sender, \"/karma help|?\");\n return true;\n }\n \n // The help command is a little special\n if (base.equals(\"?\") || base.equalsIgnoreCase(\"help\")) {\n showHelp(sender);\n return true;\n }\n \n // Get all commands that match the base.\n List<Command> matches = getMatchingCommands(base);\n \n // If there's more than one match, display them.\n if (matches.size() > 1) {\n Messenger.sendMessage(sender, \"Multiple command matches\");\n for (Command cmd : matches) {\n showUsage(cmd, sender, false);\n }\n return true;\n }\n \n // If there are no matches at all, notify.\n if (matches.size() == 0 && args.length > 0) {\n \tif(sender instanceof Player) {\n \t\tplugin.getKarma();\n\t\t\t\tMessenger.sendMessage(sender, ChatColor.GRAY+\"Karma von \"+sender.getName()+\": \"+ChatColor.WHITE+Karma.getPlayerHandler().getKarma(sender.getName()));\n \t} else\n \t\tMessenger.sendMessage(sender, \"Command not found\");\n \treturn true;\n }\n \n // Grab the only match.\n Command command = matches.get(0);\n CommandInfo info = command.getClass().getAnnotation(CommandInfo.class);\n \n // First check if the sender has permission.\n if (!PermHandler.hasPerm(sender, info.permission())) {\n \tMessenger.sendMessage(sender, \"No Permission\");\n return true;\n }\n \n // Check if the last argument is a ?, in which case, display usage and description\n if (last.equals(\"?\") || last.equals(\"help\")) {\n showUsage(command, sender, true);\n return true;\n }\n \n // Otherwise, execute the command!\n String[] params = trimFirstArg(args);\n if (!command.execute(plugin, sender, params)) {\n showUsage(command, sender, true);\n }\n return true;\n }", "public interface Command {\n\n void execute();\n void undo();\n}", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "protected void execute() {\r\n }", "public abstract Menu execute(String commandKey);", "public interface ICmd {\n void execute(Object... params);\n}", "interface CommandBase {}", "public interface Command {\n\t\t\n\t/**\n\t * Executes the command.\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @return the value the command evaluates to\n\t * @throws InvalidCommandException\n\t */\n\tabstract public double execute(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Executes the command and replaces it with a constant command if the command is not a turtle command\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @throws InvalidCommandException\n\t */\n\tabstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Checks if the command is a turtle command\n\t * @return true iff the command is a turtle command\n\t */\n\tabstract public boolean isTurtleCommand();\n\t\n\t/**\n\t * Checks if the command is a variable command\n\t * @return true iff the command is a variable command\n\t */\n\tabstract public boolean isVariableCommand();\n\t\n\t/**\n\t * Adds a command to this commands list of children/arguments\n\t * @param cmd\n\t */\n\tabstract public void addChild(Command cmd);\n\t\n\t/**\n\t * Replaces this command with another, by making the replacement the parent's child instead of this.\n\t * @param replacement\n\t */\n\tabstract public void selfReplace(Command replacement);\n\t\n\t/**\n\t * Checks if the command needs more arguments\n\t * @return true iff command can hold more arguments\n\t */\n\tabstract public boolean argsNotFull();\n\t\n\t/**\n\t * Gets the maximum arguments the command can hold\n\t * @return maximum arguments\n\t */\n\tabstract public int maxArgs();\n\t\n\t/**\n\t * Gets string representation of the command. Mostly used for debugging.\n\t * @return string representation\n\t */\n\tabstract public String toString();\n\t\n\t/**\n\t * Gets the command's name \n\t * @return the command's name\n\t */\n\tabstract public String getName();\n\t\n\t/**\n\t * Gets the commands children\n\t * @return the list of children\n\t */\n\tabstract public List<Command> getChildren();\n\t\n\t/**\n\t * Gets child index\n\t * @param index\n\t * @return the child at index index\n\t */\n\tabstract public Command getChild(int index);\n\t\n\t/**\n\t * Gets the command's parent\n\t * @return parent\n\t */\n\tabstract public Command getParent();\n\t\n\t/**\n\t * Sets the command's parent to cmd\n\t * @param cmd\n\t */\n\tabstract public void setParent(Command cmd);\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to t\n\t * @param t\n\t */\n\tabstract public void setTurtle(TurtleModel t);\n\t\n\t/**\n\t * Gets the TurtleModel used for execution\n\t * @return the TurtleModel used for execution\n\t */\n\tabstract public TurtleModel getTurtle();\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to value, and calls setTurtleRecursive(value)\n\t * on this turtle's parent\n\t * @param value\n\t */\n\tpublic abstract void setTurtleRecursive(TurtleModel value);\n}", "@Override\n\tpublic boolean execute(CommandSender sender, String[] args, Object... objects) {\n\t\tif(args.length < 2) { \n\t\t\tMessenger.send(sender, \"&cPlease specify a type name.\");\n\t\t\treturn false;\n\t\t}\n\t\tCommandPackage child = BrCommandHandler.getChildPackage(this.getClass(), args[0]);\n\t\tif(child == null) {\n\t\t\tMessenger.send(sender, \"&7\"+args[0]+\" &cis not a valid info type.\");\n\t\t\treturn false;\n\t\t}\n\t\tCommandHandler.grabInstance().handleCommand(sender, child.command(), args);\n\t\treturn true;\n\t}", "@Override\n public void execute() {\n this.context.setToken(new Token(context.getLexemeType(), context.getLexemeBuffer().toString()));\n this.context.getLexemeBuffer().setLength(0);\n if (command != null) {\n command.execute();\n }\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn \"send\";\n\t}", "interface OneArgCommand {\n void doCommand(String a);\n }", "public interface ICommand {\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return long description of the command\r\n\t */\r\n\tString description();\r\n\r\n\t/**\r\n\t * \r\n\t * @return name of the command\r\n\t */\r\n\tString name();\r\n\r\n\t/**\r\n\t * Get called when the comma\r\n\t * @param console callback for output\r\n\t * @param options of the command invocation\r\n\t */\r\n\tvoid exec(ICommandConsole console, List<String> options);\r\n\r\n\t/**\r\n\t * \r\n\t * @return usage of the command\r\n\t */\r\n\tString usage();\r\n}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "@Override\n\t\t\tpublic void Execute()\n\t\t\t{\n\t\t\tSquare square = (Square) receiver;\n\t\t\t// The args for SpawnBuildingCommand are the X,Y coordinate for the Building used by the factory, \n\t\t\tIAsteroidGameFactory factory = GameBoard.Instance().GetFactory();\n\t\t\tSystem.out.println(\"Spawning Building at (\" + args[0] + \",\" + args[1] + \")\");\n\t\t\tsquare.Add(factory.MakeBuilding());\n\t\t\tGameBoard.Instance().IncrementBuildingCount();\n\t\t}", "public abstract void execute(Player p);" ]
[ "0.7327477", "0.70088875", "0.69731516", "0.6931772", "0.6734653", "0.66347116", "0.65902", "0.6581827", "0.6551817", "0.6550323", "0.65483654", "0.65331066", "0.65331066", "0.65331066", "0.65217525", "0.65217525", "0.65217525", "0.6516743", "0.6509607", "0.64916927", "0.6489288", "0.6475665", "0.64661795", "0.6453589", "0.64485437", "0.64434606", "0.6413369", "0.63515335", "0.6350382", "0.63332593", "0.6331849", "0.63280296", "0.62731624", "0.62601215", "0.625841", "0.6255664", "0.6225438", "0.621721", "0.6215802", "0.6205299", "0.6179416", "0.6171496", "0.615591", "0.6154578", "0.6147681", "0.61388355", "0.61224216", "0.6119838", "0.61153895", "0.6101999", "0.609778", "0.6094517", "0.608712", "0.60783386", "0.6056857", "0.6019962", "0.6004752", "0.59991825", "0.59811795", "0.5969274", "0.596803", "0.5964091", "0.59606934", "0.59572345", "0.5953374", "0.5953132", "0.5926737", "0.5920047", "0.5888656", "0.5886016", "0.5885671", "0.58807874", "0.58805525", "0.5880352", "0.58800036", "0.58759975", "0.58748233", "0.5866907", "0.5858673", "0.58584905", "0.585349", "0.58532536", "0.58469754", "0.58438164", "0.5843501", "0.58391285", "0.5838799", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.5838365", "0.58382636", "0.58339053" ]
0.0
-1
Created by Administrator on 2016/9/21.
public interface CityOnItemClickListener { void onItemClickListener(View v,int position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\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 dormir() {\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\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 anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n protected void initialize() {\n\n \n }", "private static void cajas() {\n\t\t\n\t}", "public void mo4359a() {\n }", "public final void mo51373a() {\n }", "@Override\n public void memoria() {\n \n }", "public void designBasement() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void gored() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "Petunia() {\r\n\t\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "private TMCourse() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo55254a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void create() {\n\t\t\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo12930a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void create() {\n\n\t}" ]
[ "0.626636", "0.6162385", "0.6062402", "0.60438097", "0.59888417", "0.5973482", "0.5969236", "0.5909406", "0.5874125", "0.58629006", "0.58629006", "0.584724", "0.584724", "0.58342296", "0.5816661", "0.579875", "0.57987237", "0.5786426", "0.57545584", "0.5753643", "0.57510966", "0.57321763", "0.572877", "0.5721337", "0.5674797", "0.5656452", "0.5656141", "0.56523526", "0.56407917", "0.5631494", "0.56297594", "0.56264377", "0.56251144", "0.56114167", "0.56082845", "0.5601605", "0.5601605", "0.5601605", "0.5601605", "0.5601605", "0.5601605", "0.5601605", "0.5599849", "0.5585865", "0.55782634", "0.55763483", "0.5575355", "0.55613756", "0.5548017", "0.5548017", "0.55479425", "0.554512", "0.5542042", "0.5542042", "0.5542042", "0.5542042", "0.5542042", "0.55376524", "0.5533299", "0.5529675", "0.5529675", "0.5529675", "0.5529675", "0.5529675", "0.5529675", "0.5523002", "0.5521675", "0.5517865", "0.55082357", "0.5504658", "0.5503334", "0.5503334", "0.5503334", "0.5492439", "0.54894465", "0.5489274", "0.54884505", "0.5477769", "0.5476365", "0.5476256", "0.54723483", "0.54723483", "0.54719245", "0.54700637", "0.54700637", "0.5468015", "0.54630786", "0.5462602", "0.5462602", "0.5462602", "0.54585886", "0.5452025", "0.5439052", "0.543607", "0.543607", "0.543607", "0.54272676", "0.54229516", "0.542169", "0.54153174", "0.54087144" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("회원정보 CRUD::ISUD 테스트 >>> : "); Scanner sc = new Scanner(System.in); while (true) { System.out.println("\n회원정보 전체조회:1, 조건조회:2, 등록:3, 수정:4, 삭제:5, 종료:0"); int isud = sc.nextInt(); if (0 == isud) break; switch(isud) { case 1: try { HbeMemberScr.hmemSelectAll(); }catch(Exception e) { } break; case 2: break; case 3: break; case 4: break; case 5: break; } } }
{ "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
/ renamed from: a
public final void mo16520a(C5298a aVar) { ((C5032i5) this.receiver).mo16575a(aVar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
Method returns whether the string is a palindrome
public static boolean IsPalindrome(String string){ string = string.replace(" ", ""); String reverseString = new StringBuilder(string).reverse().toString(); return reverseString.equalsIgnoreCase(string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPalindrome(String s){ \n if(palindromes.containsKey(s))\n return (palindromes.get(s)).booleanValue();\n int m=0;\n int n=s.length()-1;\n while(m<n){\n if(s.charAt(m++)!=s.charAt(n--)){\n palindromes.put(s,new Boolean(false));\n return false;\n }\n }\n palindromes.put(s,new Boolean(true));\n return true;\n }", "static boolean isPalindrome(String str){\n\t\tString a = str.replaceAll(\"\\\\s+\",\"\");\n\t\tString b = new StringBuilder(a).reverse().toString();\n\t\treturn a.equalsIgnoreCase(b);\n\t}", "public static boolean isPalindrome(String a)\n { \n boolean flag = true; \n //Iterate the string forward and backward and compare one character at a time \n //till middle of the string is reached \n for(int i = 0; i < a.length()/2; i++)\n { \n if(a.charAt(i) != a.charAt(a.length()-i-1))\n { \n flag = false; \n break; \n } \n } \n return flag; \n }", "private boolean isPalindrome(String s) {\r\n int l = 0, r = s.length() - 1;\r\n while (l <= r && s.charAt(l) == s.charAt(r)) {\r\n l++;\r\n r--;\r\n }\r\n return l >= r;\r\n }", "public boolean isPalindrome(String s) {\n if (s == null || s.length() == 0) return true;\n s = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n int left = 0;\n int right = s.length() - 1;\n while (left < right) {\n if (s.charAt(left++) != s.charAt(right--)) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPalindrome(String input){\n String backwards = \"\";\n int i = input.length();\n while (i > 0) { // creates a backwards string of input\n backwards = backwards + input.substring(i - 1, i);\n i--;\n }\n return (backwards.equals(input)); //returns true if backwards string is same as input\n }", "public boolean isPalindrome(String str) {\n\t\t//index of first element of the string\n\t\tint i = 0;\n\t\t//index of last element of the string\t\n\t\tint j = str.length() - 1;\t\n\t\t\n\t\t//iterate through the string\n\t\twhile (i < j) {\n\t\t\t//if a mismatch is found, return false\n\t\t\tif (str.charAt(i) != str.charAt(j)) \n return false;\n\t\t\t//if no mismatch is found at current stage, keep checking\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\t//string is confirmed to be a palindrome, return true\n\t\treturn true;\n\t}", "static boolean isPalindrome(String s) {\n\t\tint i = 0, j = s.length() - 1;\n\t\twhile (i < j) {\n\t\t\tif (s.charAt(i) != s.charAt(j))\n\t\t\t\treturn false;\n\t\t\t++i;\n\t\t\t--j;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean checkPalindrome(String s){\n\t\t\n\t\tfor(int i=0;i<(s.length()/2);i++ ){\n\t\t\t\n\t\t\tif(s.charAt(i)!=s.charAt(s.length()-1-i)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean isPalindrome(String s) {\n s = s.toLowerCase();\n // Store all letters and digits in new string. We don't care about space and special characters etc.\n StringBuilder builder = new StringBuilder();\n for (char ch : s.toCharArray()) {\n if (Character.isLetterOrDigit(ch)) {\n builder.append(Character.toLowerCase(ch));\n }\n }\n String s1 = builder.toString();\n boolean palindrome = true;\n int length = s1.length();\n int frontIndex = 0;\n int backIndex = length - 1;\n // Two indexes, one that points to the first index and one to the last index\n while (frontIndex < backIndex) {\n char c1 = s1.charAt(frontIndex);\n char c2 = s1.charAt(backIndex);\n if (c1 != c2) {\n palindrome = false;\n break;\n }\n frontIndex += 1;\n backIndex -= 1;\n }\n return palindrome;\n }", "public static boolean isPalindrome(String s) {\n\t\t// base case\n\t\tif (s.length() < 2) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// compare first and last\n\t\tif (s.charAt(0) != s.charAt(s.length()-1)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// recursive case\n\t\tisPalindrome(s.substring(1, s.length()-1));\n\t\t\n\t\treturn true;\n\t}", "public static boolean isPalindrome_v2(String s)\n { \n return isPalindrome(s, 0, s.length()-1);\n }", "public boolean validPalindrome(String s) {\n int start = 0;\n int end = s.length() - 1;\n return validPalindrom(s, start, end, true);\n }", "static boolean isRealPalindrome(String s) {\n return s.chars().distinct().count() > 1 // Contains more\n // than one letter\n && s.equals(new StringBuilder(s).reverse().toString()); // Is a palindrome\n }", "private static boolean isItPalindrome(String s) {\n\t\t\n\t\ts = s.toLowerCase();\n\t\t\n\t\tint i = 0, j = s.length()-1;\n\t\t\n\t\twhile(i < j) {\t\t\t\t\t\t\n\t\t\t\n\t\t\t// Both i and j skips the non-alphanumerics.\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(i)) && i < j) { ++i; }\n\t\t\t\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(j)) && j > i) { --j; }\n\t\t\t\n\t\t\tif(s.charAt(i++) != s.charAt(j--))\n\t\t\t\treturn false;\t\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isPalindrome(String str) {\n\r\n StringBuilder reversedString = new StringBuilder();\r\n for (int i = str.length() - 1; i >= 0; i--) {\r\n reversedString.append(str.charAt(i));\r\n }\r\n\r\n return str.equals(reversedString.toString());\r\n }", "private static boolean isPalindrome(String s) {\n\t\t\n\t\tString newS = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n\t\tSystem.out.println(newS);\n\t\t\n\t\treturn new StringBuilder(newS).reverse().toString().equals(newS);\n\t}", "public static boolean isPalindrome(String str) {\n StringBuilder reverse = new StringBuilder();\n String clean = str.toLowerCase();\n char[] plain = clean.toCharArray();\n for (int i = plain.length - 1; i >= 0; i--) {\n reverse.append(plain[i]);\n }\n return (reverse.toString()).equals(clean);\n\n }", "public static boolean palindrome(String s){\n \ts=helpPalindrome(s);\n \tif(s.length()>1){\n \t\tif(s.charAt(0)==s.charAt(s.length()-1)){\n \t\t\tpalindrome(s.substring(1,s.length()-1));\n \t\t} else\n \t\t\treturn false;\n \t}\n \t\n \tif(s.length()<2||s.length()>-1)\n \t\treturn true;\n \t\n \treturn false;\n }", "public static boolean isPalindrome2(String s) {\n List<Character> list = new ArrayList<>();\n for (int i = 0; i < s.length(); i++) {\n char c = Character.toLowerCase(s.charAt(i));\n if (c >= 'a' && c <= 'z' || c >= '0' && c <='9')\n list.add(c);\n }\n for (int i = 0; i < list.size() / 2; i++)\n if (list.get(i) != list.get(list.size() - i - 1))\n return false;\n return true;\n }", "static boolean is_palindrome(String s) {\n /* using iteration */\n for (int i = 0; i < Math.floor(s.length() / 2); i++) {\n int lastindex = s.length() - 1 - i;\n String endchar = s.substring(lastindex, lastindex + 1);\n String startchar = s.substring(i, i + 1);\n if (!startchar.equals(endchar)) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPalindrome(String inputString) {\n\t\tchar ar[] = inputString.toCharArray();\n\t\tfor (int i = 0, j = ar.length - 1; i < (ar.length / 2); i++, j--) {\n\t\t\tif (ar[i] != ar[j])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean findStringPalindrome(String str) {\r\n\t\tString rev = \"\";\r\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\r\n\t\t\trev = rev + str.charAt(i);\r\n\t\t}\r\n\t\tif (str != rev) {\r\n\t\t\treturn false;\r\n\t\t} else\r\n\t\t\treturn true;\r\n\t}", "public boolean isPalindrome(String s) {\n s = s.toLowerCase();\n int start = 0;\n int end = s.length() - 1;\n char sc;\n char ec;\n boolean pass;\n while (end > start) {\n sc = s.charAt(start);\n ec = s.charAt(end);\n pass = false;\n if ((sc < 'a' || sc > 'z') && (sc < '0' || sc > '9')) {\n start++;\n pass = true;\n }\n if ((ec < 'a' || ec > 'z') && (ec < '0' || ec > '9')) {\n end--;\n pass = true;\n }\n if (pass) continue;\n if (s.charAt(start++) != s.charAt(end--)) return false;\n }\n return true;\n }", "public final boolean isPalindrome(String stringToCheck){\n return stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase().equals(\n new StringBuilder(stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase()).reverse().toString());\n }", "public static boolean IsPalindrome(String str) {\n\t\tint maxIndex = str.length() - 1;\n\t\tif (str.length() <= 1)\n\t\t\treturn true;\n\t\tfor (int i = 0; i < str.length() / 2; i++) {\n\t\t\tif (str.charAt(i) != str.charAt(maxIndex - i))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isPalindrome(String str)\n {\n String str2 = \"\";\n str = str.toLowerCase();\n for(int i = str.length() - 1; i > -1; i--)\n {\n str2 += str.substring(i, i + 1);\n }\n if (str.equals(str2))\n return true;\n return false;\n }", "public boolean isPalindrome22(String s) {\n s = s.toLowerCase().replaceAll(\"[^a-z0-9]\", \"\");\n return new StringBuilder(s).reverse().toString().equals(s);\n }", "private boolean isPalindrome(String str){\n for(int i=0, j=str.length()-1; i<j; i++,j--){\n if(str.charAt(i) != str.charAt(j)){\n return false;\n }\n }\n return true;\n }", "public static boolean isPalindrome(String str) {\n\n String newstring = \"\";\n for (int i = str.length()-1; i >=0; i=i-1) {\n newstring = newstring + str.charAt(i);\n }\n if(str.equals(newstring)){\n return true;\n }\n else{\n return false;\n }\n\n }", "public static boolean isPalindrome(String s) {\n int head = 0, tail = s.length() - 1;\n while (head < tail) {\n char cl = 0, cr = 0;\n while (!Character.isLetterOrDigit(cl) && head < s.length())\n cl = s.charAt(head++);\n while (!Character.isLetterOrDigit(cr) && tail >= 0)\n cr = s.charAt(tail--);\n if (head < s.length() && Character.toLowerCase(cl) != Character.toLowerCase(cr))\n return false;\n }\n return true;\n }", "private boolean isPalindrome(String s) {\n if (!this.Memoize.containsKey(s)) {\n if (s.length() < 2) {\n this.Memoize.put(s, true);\n } else {\n String sub = s.substring(1, s.length() - 1);\n // check the recursed results\n this.Memoize.put(s, this.isPalindrome(sub) && s.charAt(0) == s.charAt(s.length() - 1));\n }\n }\n return this.Memoize.get(s);\n }", "public boolean validPalindrome(String s) {\n\t\tif (s.length() <= 1)\n\t\t\treturn true;\n\n\t\tint l = 0;\n\t\tint r = s.length() - 1;\n\t\twhile (l <= r) {\n\t\t\tif (s.charAt(l) == s.charAt(r)) {\n\t\t\t\tl++;\n\t\t\t\tr--;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn pali(s, l, r - 1) || pali(s, l + 1, r);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}", "public static boolean isPallindrome(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn StringUtils.reverse(s).equals(s);\n\t}", "static boolean isPalindrome(String str) {\n\n if (str.length() <= 1) return true;\n\n return str.charAt(0) != str.charAt(str.length()-1) ? false : isPalindrome(str.substring(1, str.length()-1));\n }", "public static boolean isPalindrome(String s) {\n if(s ==null||s.length()<=0)\n return true;\n int frontIndex=0;\n int backIndex = s.length()-1;\n \n char[] strChar = s.toCharArray();\n \n while(frontIndex < backIndex){\n while(!Character.isLetterOrDigit(strChar[frontIndex])&&frontIndex<s.length()-1)\n frontIndex++;\n while(!Character.isLetterOrDigit(strChar[backIndex])&&backIndex>0)\n backIndex--;\n if(Character.isUpperCase(strChar[frontIndex]))\n strChar[frontIndex] = Character.toLowerCase(strChar[frontIndex]);\n if(Character.isUpperCase(strChar[backIndex]))\n strChar[backIndex] = Character.toLowerCase(strChar[backIndex]);\n if(strChar[frontIndex]!=strChar[backIndex]&&(Character.isLetterOrDigit(strChar[frontIndex])&&Character.isLetterOrDigit(strChar[backIndex]))){\n return false;\n }else{\n frontIndex++;\n backIndex--;\n \n }\n }\n return true;\n \n \n }", "static boolean isPalindrome(char []str) \n{ \n\tint len = str.length; \n\n\t// single character is always palindrome \n\tif (len == 1) \n\t\treturn true; \n\n\t// pointing to first character \n\tchar ptr1 = str[0]; \n\n\t// pointing to last character \n\tchar ptr2 = str[len-1]; \n\n\twhile (ptr2 > ptr1) \n\t{ \n\t\tif (ptr1 != ptr2) \n\t\t\treturn false; \n\t\tptr1++; \n\t\tptr2--; \n\t} \n\n\treturn true; \n}", "public boolean isPalindrome(String input){\n\t\t\n\t\t//if the input string is null, then return false\n\t\tif(input == null )\n\t\t\treturn false;\n\t\t\n\t\t//strip the input of all whitespaces\n\t\tinput = input.trim();\n\t\t\n\t\t//if what remains is of length 0 or 1, return true\n\t\tif(input.length()==0||input.length()==1)\n\t\t\treturn true;\n\t\telse\n\t\t{\n\t\t\t//set up two counters, one at the starting and one at the ending.\n\t\t\tint i = 0;\n\t\t\tint j = input.length() - 1;\n\t\t\t\n\t\t\t//while they don't cross paths, compare the characters at the counters and move them in opposite directions\n\t\t\t//return false if the characters don't match.\n\t\t\twhile(i < j)\n\t\t\t{\n\t\t\t\tif(input.charAt(i)!=input.charAt(j))\n\t\t\t\t\treturn false;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\n\t\t\n\t}", "public boolean isPalindrome(String s) {\n int i = 0, j = s.length() - 1;\n while (i < j) {\n while (i < s.length() && !Character.isLetterOrDigit(s.charAt(i))) {\n i++;\n }\n\n while (j >= 0 && !Character.isLetterOrDigit(s.charAt(j))) {\n j--;\n }\n\n if (i < j && Character.toLowerCase(s.charAt(i++)) != Character.toLowerCase(s.charAt(j--))) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPalindrome(String s) {\n if(s==null){\n return false;\n }\n\n s = s.toLowerCase();\n\n int i=0;\n int j=s.length()-1;\n\n while(i<j){\n while(i<j && !((s.charAt(i)>='a' && s.charAt(i)<='z')\n || (s.charAt(i)>='0'&&s.charAt(i)<='9'))){\n i++;\n }\n\n while(i<j && !((s.charAt(j)>='a' && s.charAt(j)<='z')\n || (s.charAt(j)>='0'&&s.charAt(j)<='9'))){\n j--;\n }\n\n if(s.charAt(i) != s.charAt(j)){\n return false;\n }\n\n i++;\n j--;\n }\n\n return true;\n }", "private static boolean isPalindromic(String str) {\n if (str.length() < 3)\n return false;\n\n // Check to see if the word is a palindrome\n // From the first character to the midpoint...\n for (int i = 0; i <= str.length() / 2; i++) {\n // From the last chracter to the midpoint...\n for (int j = str.length() - 1; j >= str.length() / 2; j--) {\n // If the end characters are not equal, it's not a palindrome\n // Otherwise, assume it is until proven otherwise\n if (i >= j) {\n return true;\n }\n else if (str.charAt(i) != str.charAt(j)) {\n return false;\n }\n else\n i++;\n }\n }\n // If it is never disproved, it's probably a palindrome\n return true;\n }", "private static boolean is_palindrome(String test) {\n\t\t\n\t\treturn false;\n\t}", "public static boolean palindrome(String s) {\n\t\tString uncluttered=new String();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tif(Character.isLetter(s.charAt(i))==true) {\n\t\t\tuncluttered=uncluttered+s.charAt(i);\n\t\t}\n\t\tuncluttered=uncluttered.toLowerCase();\n\t\t}\n\t\tfor(int i=0; i<uncluttered.length()/2; i++) {\n\t\t\tif(uncluttered.charAt(i)==uncluttered.charAt(uncluttered.length()-(i+1))) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean containsPalindrome(String str) {\n String[] words = str.split(\"\\\\s+\");\n int count = 0;\n for (String word : words) {\n if (isPalindromic(word))\n count++;\n }\n\n // Remove spaces to check entire sentence\n str = str.replaceAll(\"\\\\s\", \"\");\n\n return (count > 1) || isPalindromic(str);\n }", "public static boolean palindrome(String s) {\n \tString x = \"\";\n \tfor(int i = 0; i<s.length(); i++) {\n \t\tif(Character.isLetter(s.charAt(i))) {\n \t\t\tx += s.substring(i, i + 1);\n \t\t}\n \t}\n \tString other = \"\";\n \tfor(int i = x.length() - 1; i>=0; i--) {\n \t\tother += x.substring(i, i + 1);\n \t}\n return other.compareToIgnoreCase(x) == 0;\n }", "public static boolean isPalindrome( String s ) {\n// two indexes --> front and back to move toowards each other\n if (s.length() == 0 || s.length() == 1)\n return false;\n int i = 0;\n int j = s.length() - 1;\n while (i != j && i < j ) {\n if (s.charAt(i) == s.charAt(j)) {\n i++; j--;\n }\n else\n return false;\n }\n return true;\n }", "public boolean isPalindrome2(String s) {\n int start = 0;\n int end = s.length() - 1;\n while(start <= end) {\n while(start <= end && !Character.isLetterOrDigit(s.charAt(start))) {\n start++;\n }\n while(start <= end && !Character.isLetterOrDigit(s.charAt(end))) {\n end--;\n }\n if(start <= end && Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))) {\n return false;\n }\n start++;\n end--;\n }\n return true;\n }", "public boolean isPalindromeNotWorking(String s) {\n\t\t\n if(s.isEmpty()) {\n \treturn true;\n }\n s = s.toLowerCase();\n int length = s.length();\n boolean ispalindrome = true;\n for(int i=0,j=length-1;i<j;) {\n \tint left = (int)s.charAt(i);\n \tint right = (int)s.charAt(j);\n \tboolean isleftAlphabet = isAlphabet(left);\n \tboolean isrightAlphabet = isAlphabet(right);\n \tif(!isleftAlphabet) {\n \t\ti++;\n \t}\n \tif(!isrightAlphabet) {\n \t\tj--;\n \t}\n \tif(isleftAlphabet && isrightAlphabet) {\n \t\tif(s.charAt(i) != s.charAt(j)) {\n \t\tispalindrome = false;\n \t\tbreak;\n \t}else {\n \t\ti++;\n \t\tj--;\n \t}\n \t}\n \t\n }\n return ispalindrome; \n }", "public boolean testPalindromicity(String s) {\n s = s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n char[] sArr = s.toCharArray();\n\n int i=0;\n while (i < sArr.length-1-i) {\n if (sArr[i] != sArr[sArr.length-1-i])\n return false;\n i++;\n }\n return true;\n }", "public static boolean isPalindrome(String s) {\n\t\tif (s == null || s.trim().isEmpty())\n\t\t\treturn true;\n\t\tif (s.length() == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tchar[] charArray = s.toLowerCase().toCharArray();\n\t\tint start = 0;\n\t\tint end = charArray.length - 1;\n\t\twhile (start < end) {\n\t\t\twhile (start < charArray.length\n\t\t\t\t\t&& !isAlphanumeric(charArray[start]))\n\t\t\t\tstart++;\n\t\t\twhile (end >= 0 && !isAlphanumeric(charArray[end]))\n\t\t\t\tend--;\n\n\t\t\tif (start >= charArray.length || end < 0)\n\t\t\t\treturn true;\n\n\t\t\tif (charArray[start] != charArray[end])\n\t\t\t\treturn false;\n\t\t\tstart++;\n\t\t\tend--;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean palindrome(String s) {\n\t\tString str = s.replaceAll(\" \", \"\");\n\n\t\t//str.replace(\"?\", \"\");\n\t\tString newStr = \"\";\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(str);\n\t\tif(sb.charAt(sb.length()-1) == '?') {\n\t\t\tsb.deleteCharAt(sb.length()-1);\n\t\t}\n\t\tfor (int i = 0; i < sb.length(); i++) {\n\t\t\ttry {\n\t\t\t\tif(sb.charAt(i) == '?') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == ',') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == '.') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == ':') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t}catch(Exception e) {}\n\t\t}\n\t\tnewStr = sb.toString();\n\t\tsb.reverse();\n\t\t//System.out.println(sb.toString());\n\t\t\n\t\t\n\n//\t\tfor (int i = str.length(); i > 0; i--) {\n//\t\t\tnewStr = newStr + str.charAt(i-1);\n//\t\t}\n\t\t\n\t\t//System.out.println(newStr + \" \" + str);\n\t\tif(newStr.equalsIgnoreCase(sb.toString()))\n\t\treturn true;\n\t\telse\n\t\treturn false;\n\t}", "public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }", "public boolean isPalindrome(String word) {\n if (word == null) {\n /** Unsure about this. Need to verify. */\n return false;\n }\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n StringBuilder reverse = new StringBuilder(word).reverse();\n return word.equals(reverse.toString());\n }", "public static void checkPalindrome(String str) {\n\n\t\tString reverse = new StringBuffer(str).reverse().toString();\n\n\t\t// check whether the string is palindrome or not\n\t\tif (str.equalsIgnoreCase(reverse)) {\n\n\t\t\tSystem.out.println(\"Given string is Palindrome\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Given string is Not Palindrome\");\n\t\t}\n\t}", "public static boolean isPallindrome(String st) {\n\t\t\n\t\tif(st==null || st==\"\") {\n\t\t\treturn true;\n\t\t}\n\t\tint first =0;\n\t\tint last = st.length()-1;\n\t\twhile(first <last) {\n\t\t\tif(st.charAt(first) != st.charAt(last)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfirst++;\n\t\t\tlast--;\n\t\t}\n\t\treturn true;\n\t}", "public static void isPalindromeString(String palindrome){\n String result =\"\";\n for(int i = palindrome.length()-1; i>=0; i--){\n result += palindrome.charAt(i);\n }\n System.out.println(\"The reversed string is: \" + result);\n\n if(palindrome.equalsIgnoreCase(result)){\n System.out.println(result + \" IS a palindrome\");\n }else {\n System.out.println(result + \" is NOT a palindrome!\");\n }\n }", "public static boolean isPalindrome(String s, int length){\n if(length <= 1){\r\n return true;\r\n }\r\n // create a new string for the first letter\r\n String first = s.substring(0,1);\r\n \r\n //create a new string for the last letter\r\n String last = s.substring(s.length() - 1, s.length());\r\n \r\n //create an if statement if the first and the last letter equal together\r\n if(first.equals(last)){\r\n //use a subtring to seperate the letters\r\n return isPalindrome(s.substring(1, length - 1), length - 2); \r\n } else {\r\n //return false if the letters are not the same\r\n return false;\r\n }\r\n }", "public boolean validPalindrome(String s) {\n char[] chars = s.toCharArray();\n\n int i = 0;\n int j = s.length() - 1;\n\n int count = 1;\n boolean result = true;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的i\n i++;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n result = false;\n }\n i++;\n j--;\n }\n\n if (result) {\n return true;\n }\n\n i = 0;\n j = s.length() - 1;\n\n count = 1;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的j\n j--;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n return false;\n }\n i++;\n j--;\n }\n\n\n return true;\n }", "public boolean isPalindrome(String input) {\n\t\t\n\t\tif(input == \"\") {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//strip out all spaces\n\t\tinput.replaceAll(\"\\\\s\", \"\");\n\t\tint i = 0; \n\t\tint j = input.length() - 1;\n\t\t\n\t\twhile(i < j) {\n\t\t\tif(Character.toLowerCase(input.charAt(i)) != Character.toLowerCase(input.charAt(j))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }", "public final boolean isPalindromeEfficient(String stringToCheck){\n stringToCheck = stringToCheck.replaceAll(\"[^A-Za-z0-9]\", \"\").toLowerCase();\n int n = stringToCheck.length();\n stringToCheck = stringToCheck.toLowerCase();\n int limitSuperior = n-1;\n int stopCondition = (n / 2) + 1;\n for (int i = 0; i < stopCondition; ++i) {\n if (stringToCheck.charAt(i) != stringToCheck.charAt(limitSuperior - i)) {\n return false;\n }\n }\n return true;\n }", "public boolean isPalindrome(String word) {\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n Deque<Character> L = wordToDeque(word);\n return isPalindrome(L);\n }", "public static boolean isPal(String s)\n {\n if(s.length() == 0 || s.length() == 1){\n return true; \n }\n //recursive call\n if(s.charAt(0) == s.charAt(s.length()-1))\n /* check for first and last char of String:\n * if they are same then do the same thing for a substring\n * with first and last char removed. and carry on this\n * until you string completes or condition fails\n * Function calling itself: Recursion\n */\n {\n return isPal(s.substring(1, s.length()-1));\n }\n /* If program control reaches to this statement it means\n * the String is not palindrome hence return false.\n */\n return false;\n }", "public boolean hasPalindromeRemaining(String s, int i) {\n int p1 = i;\n int p2 = s.length() - 1;\n while (p1 < p2) {\n if (s.charAt(p1) != s.charAt(p2)) return false;\n p1++; p2--;\n }\n return true;\n }", "public static boolean isPalindrome(String s, int start, int last)\r\n\t{\r\n\t\tif(s.charAt(start) != s.charAt(last-1)) return false;\r\n\t\tif(start >= last) return true;\r\n\t\treturn isPalindrome(s, start+1, last-1);\r\n\t}", "include<stdio.h>\nint main()\n{\n char t[1000]; \n scanf(\"%s\",t); \n \n int i,j,len; \n len=strlen(t); \n i=0; \n j=len-1; \n while(i<=j)\n {\n if(t[i]!=t[j])\n { break; } \n j--; i++;\n } \n \n if(i<j)\n printf(\"%s is not a palindrome\",t); \n else\n printf(\"%s is a palindrome\",t); \n \n return 0;\n}", "public boolean validPalindrome(String s) {\n int start = 0, end = s.length() - 1;\n int[] delete = new int[3];\n while (start < end) {\n char a = s.charAt(start);\n char b = s.charAt(end);\n \n if (a != b) {\n if (delete[0] == 2) {\n return false;\n }\n if (delete[0] == 1) {\n delete[0] = 2;\n start = delete[1];\n end = delete[2];\n end += 1;\n } else {\n delete[0] = 1;\n delete[1] = start;\n delete[2] = end;\n start -= 1;\n }\n }\n start += 1;\n end -= 1;\n }\n return true;\n }", "public static boolean isPalindrome(String word) {\n String palindrome = new StringBuilder(word).reverse().toString();\n \n if(word.compareToIgnoreCase(palindrome) == 0) return true;\n else return false;\n }", "public static Boolean isPalindrome(String s, int start, int end) {\n\t\tif(start < 0 || end < 0) return false;\n\t\t\n\t\twhile(start < end) {\n\t\t\tif(s.charAt(start) != s.charAt(end)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tstart++;\n\t\t\tend--;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean DaLiJePalindrom(String s)\n\t{\n\t\tint i=0, j=0, brojac=0;\n\t\twhile(s.length()-1-j>=0)\n\t\t\t{\n\t\t\tif(s.charAt(s.length()-1-j)== s.charAt(i)) brojac++;\n\t\t\ti++;\n\t\t\tj++;\n\t\t\t}\n\t\tif(brojac==s.length())return true;\n\t\treturn false;\n\t}", "public boolean palindromeCheck(String number) {\n\t\tString reverse = \"\";\n\t\tfor (int i = number.length() - 1; i >= 0; i--) {\n\t\t\treverse = reverse + number.charAt(i);\n\t\t}\n\t\tif (number.equals(reverse)) {\n\t\t\tSystem.out.println(number);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isPalin(String s){\n int i = 0;\n boolean con = true;\n\n con = true;\n i = 0;\n while((i <= s.length()/2) && (con)){\n if(s.charAt(i) != s.charAt(s.length()-i-1))\n con = false;\n i++;\n }\n return con;\n }", "public boolean isPalindrome3(String s) {\n char[] c = s.toCharArray();\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i++]) != Character.toLowerCase(c[j--]))\n return false;\n }\n return true;\n }", "private static boolean isPalindrome(int num) {\n\t\t// Reversing a number\n\t\tint reverse = 0;\n\t\tfor (int i = num; i > 0; i /= 10)\n\t\t\treverse = reverse * 10 + i % 10;\n\n\t\t// If num and reverse are same, then num is palindrome\n\t\treturn num == reverse;\n\t}", "public static boolean isPalindrome_v1(String s)\n { // if length is 0 or 1 then String is palindrome\n System.out.println(s);\n if(s.length() == 0 || s.length() == 1)\n return true; \n \n if(s.charAt(0) == s.charAt(s.length()-1)) //base case\n /* check for first and last char of String:\n * if they are same then do the same thing for a substring\n * with first and last char removed. and carry on this\n * until you string completes or condition fails\n * Function calling itself: Recursion\n */\n \n return isPalindrome_v1(s.substring(1, s.length()-1));\n\n /* If program control reaches to this statement it means\n * the String is not palindrome hence return false.\n */\n return false;\n }", "public static boolean isPalindrome(String word){\r\n\t\tboolean palindrome = false;\r\n\t\tif(word.length()%2 == 1){\r\n\t\t\tfor(int a= 0; a<word.length()/2; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> word.length()/2; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\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\telse {\r\n\t\t\tfor(int a= 0; a<word.length()-1; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> 0; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\treturn palindrome;\r\n\r\n}", "public static boolean palindromeTest(int num) {\n\t\tString x = Integer.toString(num);\n\n\t\tif (x.charAt(0) == x.charAt(x.length() - 1)) {\n\t\t\tif (x.charAt(1) == x.charAt(x.length() - 2)) {\n\t\t\t\tif (x.charAt(2) == x.charAt(x.length() - 3)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}", "public static boolean isPalindrome(int number) {\n \n return number == reverse(number) ? true : false; \n \n }", "public boolean isPalindrome(String s, CharacterComparator comp) {\n if (s.length() == 0 || s.length() == 1) {\n return true;\n }\n String revS = new StringBuilder(s).reverse().toString();\n for (int i = 0; i < s.length(); i++) {\n if (!comp.equalChars(s.charAt(i), revS.charAt(i))\n && i != Math.floorDiv(s.length(), 2)) {\n return false;\n }\n }\n return true;\n }", "public boolean isPalindrom(String word) {\n boolean palindrom = false;\n int middle = word.length() / 2;\n\n for (int i = 0; i < middle; i++) {\n for (int j = word.length() - i - 1; j >= middle; j--) {\n if (word.charAt(i) == word.charAt(j)) {\n palindrom = true;\n break;\n } else {\n return false;\n }\n }\n }\n\n return palindrom;\n }", "public boolean IsPalindrome() {\n return IsPalindrome(head, head).isPalindrome;\n }", "public static boolean isPalindrome(int number){\n return reverse(number) == number;\n }", "public static boolean palindrome(String word) {\n\t\t\r\n\t\tint equalsCounter=0;\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++) {\r\n\t\t\t\r\n\t\tif(word.contains(\" \")) {\r\n\t\t\t\r\n\t\t\tword=word.replace(\" \",\"\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t if(word.charAt(i)==word.charAt(word.length()-(i+1))){\r\n\t\t\t\t\r\n\t\t\t\tequalsCounter++;\r\n\t\t\t\t\r\n\t\t\t\tif(equalsCounter==word.length()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\t\r\n\t}", "public static PerformOperation isPalindrome() {\n return (num) -> {\n String number = Integer.toString(num);\n String reversed = new StringBuilder(number).reverse().toString();\n return number.equals(reversed);\n };\n }", "public static boolean canFormPalindrome(String str) {\n\t\n\t// Create a count array and initialize all\n\t// values as 0\n\tint count[] = new int[NO_OF_CHARS];\n\tArrays.fill(count, 0);\n\n\t// For each character in input strings,\n\t// increment count in the corresponding\n\t// count array\n\tfor (int i = 0; i < str.length(); i++)\n\tcount[(int)(str.charAt(i))]++;\n\n\t// Count odd occurring characters\n\tint odd = 0;\n\tfor (int i = 0; i < NO_OF_CHARS; i++) \n\t{\n\tif ((count[i] & 1) == 1)\n\t\todd++;\n\n\tif (odd > 1)\n\t\treturn false;\n\t}\n\n\t// Return true if odd count is 0 or 1,\n\treturn true;\n}", "public static void main(String[] args) {\n String s = \"MOM\";\n String reverse = \"\";\n String d = \"IMTIAZ\";\n String back = \"\";\n char[] word = s.toLowerCase().toCharArray();\n for (int i = s.length() - 1; i >= 0; i--) {\n reverse = reverse + s.charAt(i);\n for (int j = d.length() - 1; j >= 0; j--) {\n back = back + d.charAt(j);\n }\n\n }\n if (s.equals(reverse)) {\n System.out.println(s + \"--word is a palindron\");\n\n } else {\n System.out.println(s + \"--word is not a palindron\");\n }\n if (d.equals(back))\n System.out.println(d + \"--word is a palindron\");\n else\n System.out.println(d + \"--word is not a palindron\");\n\n\n\n isPalindrome(\"MADAM\");\n isPalindrome(\"IMTIAZ\");\n isPalindrome(\"AHMED\");\n isPalindrome(\"MOM\");\n }", "static boolean checkPalin(String word) {\n\t\tint n = word.length();\n\n\t\t// making the check case\n\t\t// case insensitive\n\t\tword = word.toLowerCase();\n\n\t\t// loop to check palindrome\n\t\tfor (int i = 0; i < n; i++, n--)\n\t\t\tif (word.charAt(i) != word.charAt(n - 1))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "private boolean isPalindrome(String s) {\r\n\r\n if (s == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n // Implement this method body using your ArrayListStack. Be mindful of your algorithm!\r\n boolean isPal = true;\r\n String newString1 = s.toLowerCase().trim(); //Test if lower case trim off any spaces\r\n String newString2 = \"\";\r\n\r\n System.out.println(\"original \" + s);\r\n System.out.println(\"lower trimmed \" + newString1);\r\n\r\n //Removes any white spaces \r\n for (int i = 0; i < newString1.length(); i++) {\r\n if (Character.isWhitespace(newString1.charAt(i))) {\r\n continue;\r\n } else {\r\n newString2 += Character.toString(newString1.charAt(i));\r\n }\r\n }\r\n System.out.println(\"final \" + newString2); //Print the final string after we have cleaned it up\r\n\r\n ArrayListStack<Character> one; //Puts the string into an array list stack\r\n one = new ArrayListStack<>();\r\n\r\n for (int i = 0; i < newString2.length(); i++) {\r\n one.push(newString2.charAt(i)); //pushing each char into array list \"one\"\r\n }\r\n\r\n ArrayListStack<Character> two;\r\n two = new ArrayListStack<>();\r\n\r\n int len = newString2.length(); //put half on to array list \"two\"\r\n if (len % 2 == 0) {\r\n for (int i = 0; i < (len / 2); i++) {\r\n two.push(one.pop()); \r\n }\r\n } else {\r\n for (int i = 0; i <= (len / 2); i++) {\r\n if (i < (len - 1) / 2) {\r\n two.push(one.pop());\r\n } else {\r\n one.pop();\r\n }\r\n }\r\n }\r\n\r\n for (int i = 0; i < (len / 2); i++) { //This compares each of the slices\r\n if (!(one.pop().equals(two.pop()))) {\r\n isPal = false;\r\n break;\r\n }\r\n }\r\n System.out.println(\"palindrome? \" + isPal);\r\n return isPal;\r\n\r\n }", "public static void main(String[] args) {\n String string1 = new String(\"abcd\");\n if(isPisPalindrome(string1) == true){\n System.out.println(\"true\");\n }else{\n System.out.println(\"false\");\n }\n }", "private static boolean isPalindrome(String text, int left, int right)\n {\n\n if (right - left <= 0)\n return true;\n else if (text.charAt(left) != text.charAt(right))\n return false;\n else\n return isPalindrome(text, left + 1, right - 1);\n\n // do as homework the version that ignores non-alphabetic symbols\n }", "private static boolean validPalindrome(String s, int head, int tail) {\n\t\tif (tail - head == 0) return true;\n\t\tint left = head, right = tail;\n\t\twhile (left <= right) {\n\t\t\tif (s.charAt(left) != s.charAt(right)) return false;\n\t\t\tleft ++;\n\t\t\tright --;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean ifPalindrome(char[] input, int start, int end){\r\n\t\t//the idea is to scan from 1st to the mid point to see the reverse side char same as the picked one and return\r\n\t\tfor(int i=start;i<=(start+end)/2;i++){ //notice that we use <= other than<\r\n\t\t\tif(input[i] ==input[start+end-i]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we come here that means it is a palindrome for selected start/end\r\n\t\treturn true;\r\n\t}", "boolean checkPalindrome() {\n\t\t\n\t\tNode slow=head;\n\t\tNode fast=head;\n\t\t\n\t\tStack<Node> s= new Stack<Node>();\n\t\ts.push(slow);\n\t\t\n\t\twhile(fast.next!=null && fast.next.next!=null) {\n\t\t\t\n\t\t\tslow= slow.next;\n\t\t\tfast=fast.next.next;\n\t\t\ts.push(slow);\n\t\t}\n\t\t\n\t\tif(fast.next==null) //means ll has odd elements\n\t\t\ts.pop();\n\t\t\n\t\n\t\tNode secondhalf =slow.next;\n\t\twhile(secondhalf!=null) {\n\t\t\tif(s.pop().data!=secondhalf.data) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tsecondhalf=secondhalf.next;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static String isPalindrome(String str) {\n\t\tchar ch[] = new char[(str.length())];\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tfor (int i = str.length()-1; i>=0; i--) {\r\n\t\t\tch[i] = str.charAt(i);\r\n\t\t\t// System.out.println(ch[i]);\r\n\t\t\tsb.append(ch[i]);\r\n\t\t}\r\n\t\t// System.out.println(sb);\r\n\t\tString rev = sb.toString();\r\n\t\treturn rev;\r\n\t\t}", "public boolean isPalindrome(String s) throws InterruptedException{\n\t\tint l=s.length();\r\n\t\tSystem.out.println(l);\r\n\t\t\r\n\t\tfor (int i =0;i<1000 ;i++){\r\n\t\t\tSystem.out.println(\"Hello\");\r\n\t\t\tThread.sleep(20000);\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i=0; i==l/2;i++){\r\n\t\t\tThread.sleep(20000);\r\n\t\t\tif (s.charAt(i) != (s.charAt(l-i-1)))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not palindrom\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t}\r\n\t\tSystem.out.println(\"palindrome\");\r\n\t\treturn true;\r\n\t}", "public static boolean isPalindrome(int number) {\r\n\t\t\r\n\t\t// Get the number, put it in another variable\r\n\t\t//Reverse it, compare both of them\r\n\t\t// if same palindrome, if not NOT a palindrom\r\n\t int numHolder = number;\r\n\t int reverse = 0;\r\n\r\n\t while (numHolder != 0) {\r\n\t int remainder = numHolder % 10;\r\n\t reverse = reverse * 10 + remainder;\r\n\t numHolder = numHolder / 10;\r\n\t }\r\n\r\n\t // Compare input integer with reversed one, if equal PALINDROME\r\n\t return number == reverse; \r\n\t}", "public static boolean isPalindrome(int x) {\r\n\t\treturn false;\r\n\t}", "public static boolean isPalindrome(int number) {\n\n\t\treturn (number == reverse(number))?true:false;\n\n\t}", "public boolean isPalindrome(long number) {\r\n\t\tif (reverse(number) == number) \r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t\t\r\n\t}", "static int is_palindrome(int num)\n {\n int n, k, rev = 0;\n n = num; //store orig number\n // compute reverse of a number and store in rev\n while (num != 0)\n {\n k = num % 10;\n rev = (rev * 10) + k;\n num = num / 10;\n }\n if (n == rev) // palindrome check - if original number is same as its reverse\n return 1;\n return 0;\n }" ]
[ "0.84326226", "0.83811265", "0.83697784", "0.8284689", "0.82795733", "0.8217246", "0.8193495", "0.81929606", "0.8162319", "0.8131772", "0.8117207", "0.8113742", "0.80990857", "0.80879873", "0.8087824", "0.80839837", "0.8078415", "0.8077951", "0.80776703", "0.8055455", "0.8041847", "0.80042624", "0.79957473", "0.7995557", "0.79944056", "0.79768735", "0.79670364", "0.79621655", "0.7922985", "0.79157865", "0.79118896", "0.7901906", "0.7893926", "0.78765273", "0.7872389", "0.78634936", "0.78389436", "0.78335196", "0.78267694", "0.7810277", "0.7750005", "0.7717469", "0.77173483", "0.771579", "0.7700336", "0.7687968", "0.7686328", "0.7680272", "0.767543", "0.76686025", "0.7643767", "0.7621986", "0.7595484", "0.7593602", "0.75708", "0.74949014", "0.74898195", "0.7480279", "0.7457631", "0.74236983", "0.74078524", "0.7386457", "0.73841", "0.7375146", "0.73674095", "0.73558205", "0.7339204", "0.7333094", "0.73315704", "0.7325047", "0.7320537", "0.72730017", "0.7252522", "0.7249416", "0.72491336", "0.7229336", "0.72190505", "0.7213505", "0.72021466", "0.71951175", "0.7177454", "0.717309", "0.7169889", "0.71626854", "0.71542263", "0.7041743", "0.70245427", "0.70218265", "0.70150566", "0.6990654", "0.6975161", "0.6972067", "0.6908663", "0.6903077", "0.6875121", "0.68613416", "0.6858471", "0.6857995", "0.68464345", "0.68342096" ]
0.85919243
0
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.uvm.wilkie.nlpminer.xgmml.bind
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "XUMLRTFactory getXUMLRTFactory();", "public interface DsmlprotoFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tDsmlprotoFactory eINSTANCE = svk.dsmlproto.profile.dsmlproto.impl.DsmlprotoFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Dsml Component</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dsml Component</em>'.\n\t * @generated\n\t */\n\tDsmlComponent createDsmlComponent();\n\n\t/**\n\t * Returns a new object of class '<em>Dsml Class</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dsml Class</em>'.\n\t * @generated\n\t */\n\tDsmlClass createDsmlClass();\n\n\t/**\n\t * Returns a new object of class '<em>Dsml Non UML</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dsml Non UML</em>'.\n\t * @generated\n\t */\n\tDsmlNonUML createDsmlNonUML();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tDsmlprotoPackage getDsmlprotoPackage();\n\n}", "public ObjectFactory() {\n super(grammarInfo);\n }", "public interface MystFactory extends EFactory\r\n{\r\n /**\r\n * The singleton instance of the factory.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n MystFactory eINSTANCE = org.xtext.example.mydsl.myst.impl.MystFactoryImpl.init();\r\n\r\n /**\r\n * Returns a new object of class '<em>Program</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Program</em>'.\r\n * @generated\r\n */\r\n Program createProgram();\r\n\r\n /**\r\n * Returns a new object of class '<em>CSV</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>CSV</em>'.\r\n * @generated\r\n */\r\n CSV createCSV();\r\n\r\n /**\r\n * Returns a new object of class '<em>Parse</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Parse</em>'.\r\n * @generated\r\n */\r\n Parse createParse();\r\n\r\n /**\r\n * Returns a new object of class '<em>Calcul</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Calcul</em>'.\r\n * @generated\r\n */\r\n Calcul createCalcul();\r\n\r\n /**\r\n * Returns a new object of class '<em>Strategy</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Strategy</em>'.\r\n * @generated\r\n */\r\n Strategy createStrategy();\r\n\r\n /**\r\n * Returns a new object of class '<em>Cross Validation</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Cross Validation</em>'.\r\n * @generated\r\n */\r\n CrossValidation createCrossValidation();\r\n\r\n /**\r\n * Returns a new object of class '<em>Training Test</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Training Test</em>'.\r\n * @generated\r\n */\r\n TrainingTest createTrainingTest();\r\n\r\n /**\r\n * Returns the package supported by this factory.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the package supported by this factory.\r\n * @generated\r\n */\r\n MystPackage getMystPackage();\r\n\r\n}", "public interface RelationalFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRelationalFactory eINSTANCE = fr.obeo.training.relational.impl.RelationalFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Data Base</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Base</em>'.\n\t * @generated\n\t */\n\tDataBase createDataBase();\n\n\t/**\n\t * Returns a new object of class '<em>Schema</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Schema</em>'.\n\t * @generated\n\t */\n\tSchema createSchema();\n\n\t/**\n\t * Returns a new object of class '<em>Table</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Table</em>'.\n\t * @generated\n\t */\n\tTable createTable();\n\n\t/**\n\t * Returns a new object of class '<em>Primary Key</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Primary Key</em>'.\n\t * @generated\n\t */\n\tPrimaryKey createPrimaryKey();\n\n\t/**\n\t * Returns a new object of class '<em>Foreign Key</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Foreign Key</em>'.\n\t * @generated\n\t */\n\tForeignKey createForeignKey();\n\n\t/**\n\t * Returns a new object of class '<em>Column</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Column</em>'.\n\t * @generated\n\t */\n\tColumn createColumn();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRelationalPackage getRelationalPackage();\n\n}", "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 }", "SchemaBuilder withFactory(String factoryClassName);", "protected MXBeanMappingFactory() {}", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\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 BuiltinFactoryImpl();\n\t}", "JDefinedClass objectFactory();", "public interface ThingMLFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tThingMLFactory eINSTANCE = thingML.impl.ThingMLFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Instance</em>'.\n\t * @generated\n\t */\n\tDynamicInstance createDynamicInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Null Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Null Value</em>'.\n\t * @generated\n\t */\n\tNullValue createNullValue();\n\n\t/**\n\t * Returns a new object of class '<em>Integer Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Integer Value</em>'.\n\t * @generated\n\t */\n\tIntegerValue createIntegerValue();\n\n\t/**\n\t * Returns a new object of class '<em>String Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>String Value</em>'.\n\t * @generated\n\t */\n\tStringValue createStringValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Value</em>'.\n\t * @generated\n\t */\n\tArrayValue createArrayValue();\n\n\t/**\n\t * Returns a new object of class '<em>Proxy Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Proxy Value</em>'.\n\t * @generated\n\t */\n\tProxyValue createProxyValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Proxy Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Proxy Value</em>'.\n\t * @generated\n\t */\n\tArrayProxyValue createArrayProxyValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Proxy Entry</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Proxy Entry</em>'.\n\t * @generated\n\t */\n\tArrayProxyEntry createArrayProxyEntry();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Composite State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Composite State</em>'.\n\t * @generated\n\t */\n\tDynamicCompositeState createDynamicCompositeState();\n\n\t/**\n\t * Returns a new object of class '<em>Frame</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Frame</em>'.\n\t * @generated\n\t */\n\tFrame createFrame();\n\n\t/**\n\t * Returns a new object of class '<em>Context</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Context</em>'.\n\t * @generated\n\t */\n\tContext createContext();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Variable</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Variable</em>'.\n\t * @generated\n\t */\n\tDynamicVariable createDynamicVariable();\n\n\t/**\n\t * Returns a new object of class '<em>Boolean Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Boolean Value</em>'.\n\t * @generated\n\t */\n\tBooleanValue createBooleanValue();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Port</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Port</em>'.\n\t * @generated\n\t */\n\tDynamicPort createDynamicPort();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Message</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Message</em>'.\n\t * @generated\n\t */\n\tDynamicMessage createDynamicMessage();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tThingMLPackage getThingMLPackage();\n\n}", "static public ContentHandleFactory newFactory(JAXBContext context, Class<?>... pojoClasses) {\n if (context == null || pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(context, pojoClasses);\n }", "public interface MyHdbtiFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n MyHdbtiFactory eINSTANCE = com.sap.xsk.models.hdbti.myHdbti.impl.MyHdbtiFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Hdbdti Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Hdbdti Model</em>'.\n * @generated\n */\n HdbdtiModel createHdbdtiModel();\n\n /**\n * Returns a new object of class '<em>Group Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Type</em>'.\n * @generated\n */\n GroupType createGroupType();\n\n /**\n * Returns a new object of class '<em>Import Config</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import Config</em>'.\n * @generated\n */\n ImportConfig createImportConfig();\n\n /**\n * Returns a new object of class '<em>Import</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import</em>'.\n * @generated\n */\n Import createImport();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n MyHdbtiPackage getMyHdbtiPackage();\n\n}", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public interface InstancesFactory extends EFactory\n{\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tInstancesFactory eINSTANCE = org.xtext.lwc.instances.instances.impl.InstancesFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Instance</em>'.\n\t * @generated\n\t */\n\tInstance createInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Import</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Import</em>'.\n\t * @generated\n\t */\n\tImport createImport();\n\n\t/**\n\t * Returns a new object of class '<em>Date Literal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Date Literal</em>'.\n\t * @generated\n\t */\n\tDateLiteral createDateLiteral();\n\n\t/**\n\t * Returns a new object of class '<em>Object Literal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Object Literal</em>'.\n\t * @generated\n\t */\n\tObjectLiteral createObjectLiteral();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tInstancesPackage getInstancesPackage();\n\n}", "public interface Xadlcore_3_0Factory extends EFactory {\n\t/**\n\t * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tXadlcore_3_0Factory eINSTANCE = org.archstudio.xadl3.xadlcore_3_0.impl.Xadlcore_3_0FactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Document Root</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Document Root</em>'.\n\t * @generated\n\t */\n\tDocumentRoot createDocumentRoot();\n\n\t/**\n\t * Returns a new object of class '<em>Simple Link</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Simple Link</em>'.\n\t * @generated\n\t */\n\tSimpleLink createSimpleLink();\n\n\t/**\n\t * Returns a new object of class '<em>XADL Type</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>XADL Type</em>'.\n\t * @generated\n\t */\n\tXADLType createXADLType();\n\n\t/**\n\t * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tXadlcore_3_0Package getXadlcore_3_0Package();\n\n}", "public static Factory factory() {\n return ext_dbf::new;\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 }", "public interface IoT_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tIoT_metamodelFactory eINSTANCE = ioT_metamodel.impl.IoT_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Thing</em>'.\n\t * @generated\n\t */\n\tThing createThing();\n\n\t/**\n\t * Returns a new object of class '<em>Virtual Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Virtual Thing</em>'.\n\t * @generated\n\t */\n\tVirtualThing createVirtualThing();\n\n\t/**\n\t * Returns a new object of class '<em>Physical Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Physical Thing</em>'.\n\t * @generated\n\t */\n\tPhysicalThing createPhysicalThing();\n\n\t/**\n\t * Returns a new object of class '<em>Fog</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog</em>'.\n\t * @generated\n\t */\n\tFog createFog();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Node</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Node</em>'.\n\t * @generated\n\t */\n\tFogNode createFogNode();\n\n\t/**\n\t * Returns a new object of class '<em>Device</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device</em>'.\n\t * @generated\n\t */\n\tDevice createDevice();\n\n\t/**\n\t * Returns a new object of class '<em>Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Actuator</em>'.\n\t * @generated\n\t */\n\tActuator createActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Tag</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Tag</em>'.\n\t * @generated\n\t */\n\tTag createTag();\n\n\t/**\n\t * Returns a new object of class '<em>Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rule</em>'.\n\t * @generated\n\t */\n\tRule createRule();\n\n\t/**\n\t * Returns a new object of class '<em>External Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Sensor</em>'.\n\t * @generated\n\t */\n\tExternalSensor createExternalSensor();\n\n\t/**\n\t * Returns a new object of class '<em>Device Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Actuator</em>'.\n\t * @generated\n\t */\n\tDeviceActuator createDeviceActuator();\n\n\t/**\n\t * Returns a new object of class '<em>External Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Actuator</em>'.\n\t * @generated\n\t */\n\tExternalActuator createExternalActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Action</em>'.\n\t * @generated\n\t */\n\tAction createAction();\n\n\t/**\n\t * Returns a new object of class '<em>Device State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device State</em>'.\n\t * @generated\n\t */\n\tDeviceState createDeviceState();\n\n\t/**\n\t * Returns a new object of class '<em>Composite State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Composite State</em>'.\n\t * @generated\n\t */\n\tCompositeState createCompositeState();\n\n\t/**\n\t * Returns a new object of class '<em>Transition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Transition</em>'.\n\t * @generated\n\t */\n\tTransition createTransition();\n\n\t/**\n\t * Returns a new object of class '<em>Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Digital Artifact</em>'.\n\t * @generated\n\t */\n\tDigital_Artifact createDigital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Active Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Active Digital Artifact</em>'.\n\t * @generated\n\t */\n\tActive_Digital_Artifact createActive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Passive Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Passive Digital Artifact</em>'.\n\t * @generated\n\t */\n\tPassive_Digital_Artifact createPassive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>User</em>'.\n\t * @generated\n\t */\n\tUser createUser();\n\n\t/**\n\t * Returns a new object of class '<em>Human User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Human User</em>'.\n\t * @generated\n\t */\n\tHuman_User createHuman_User();\n\n\t/**\n\t * Returns a new object of class '<em>Communicator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Communicator</em>'.\n\t * @generated\n\t */\n\tCommunicator createCommunicator();\n\n\t/**\n\t * Returns a new object of class '<em>Port</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Port</em>'.\n\t * @generated\n\t */\n\tPort createPort();\n\n\t/**\n\t * Returns a new object of class '<em>Information Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information Resource</em>'.\n\t * @generated\n\t */\n\tInformationResource createInformationResource();\n\n\t/**\n\t * Returns a new object of class '<em>On Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>On Device Resource</em>'.\n\t * @generated\n\t */\n\tOn_Device_Resource createOn_Device_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Network Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Network Resource</em>'.\n\t * @generated\n\t */\n\tNetwork_Resource createNetwork_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Resource</em>'.\n\t * @generated\n\t */\n\tDevice_Resource createDevice_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Service Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Resource</em>'.\n\t * @generated\n\t */\n\tService_Resource createService_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Property</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property</em>'.\n\t * @generated\n\t */\n\tProperty createProperty();\n\n\t/**\n\t * Returns a new object of class '<em>VM</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>VM</em>'.\n\t * @generated\n\t */\n\tVM createVM();\n\n\t/**\n\t * Returns a new object of class '<em>Container</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Container</em>'.\n\t * @generated\n\t */\n\tContainer createContainer();\n\n\t/**\n\t * Returns a new object of class '<em>Analytics Engine</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Analytics Engine</em>'.\n\t * @generated\n\t */\n\tAnalytics_Engine createAnalytics_Engine();\n\n\t/**\n\t * Returns a new object of class '<em>Cloud</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Cloud</em>'.\n\t * @generated\n\t */\n\tCloud createCloud();\n\n\t/**\n\t * Returns a new object of class '<em>Database</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Database</em>'.\n\t * @generated\n\t */\n\tDatabase createDatabase();\n\n\t/**\n\t * Returns a new object of class '<em>Policy Repository</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Policy Repository</em>'.\n\t * @generated\n\t */\n\tPolicy_Repository createPolicy_Repository();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Monitor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Reference Monitor</em>'.\n\t * @generated\n\t */\n\tReference_Monitor createReference_Monitor();\n\n\t/**\n\t * Returns a new object of class '<em>Authorizor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Authorizor</em>'.\n\t * @generated\n\t */\n\tAuthorizor createAuthorizor();\n\n\t/**\n\t * Returns a new object of class '<em>Information</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information</em>'.\n\t * @generated\n\t */\n\tInformation createInformation();\n\n\t/**\n\t * Returns a new object of class '<em>Data Streams</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Streams</em>'.\n\t * @generated\n\t */\n\tDataStreams createDataStreams();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data</em>'.\n\t * @generated\n\t */\n\tAtomicData createAtomicData();\n\n\t/**\n\t * Returns a new object of class '<em>Data Stream Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Stream Attributes</em>'.\n\t * @generated\n\t */\n\tDataStreamAttributes createDataStreamAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data Attributes</em>'.\n\t * @generated\n\t */\n\tAtomicDataAttributes createAtomicDataAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Services</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Services</em>'.\n\t * @generated\n\t */\n\tFog_Services createFog_Services();\n\n\t/**\n\t * Returns a new object of class '<em>Operations</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Operations</em>'.\n\t * @generated\n\t */\n\tOperations createOperations();\n\n\t/**\n\t * Returns a new object of class '<em>Java Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Java Evaluator</em>'.\n\t * @generated\n\t */\n\tJavaEvaluator createJavaEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Entity</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Entity</em>'.\n\t * @generated\n\t */\n\tEntity createEntity();\n\n\t/**\n\t * Returns a new object of class '<em>Script Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Script Evaluator</em>'.\n\t * @generated\n\t */\n\tScriptEvaluator createScriptEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Device Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Sensor</em>'.\n\t * @generated\n\t */\n\tDeviceSensor createDeviceSensor();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tIoT_metamodelPackage getIoT_metamodelPackage();\n\n}", "public interface BSQL2Java2Factory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n BSQL2Java2Factory eINSTANCE = bsql2java.bSQL2Java2.impl.BSQL2Java2FactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>BSQL2 Java2</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL2 Java2</em>'.\n * @generated\n */\n BSQL2Java2 createBSQL2Java2();\n\n /**\n * Returns a new object of class '<em>BSQL Machine</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL Machine</em>'.\n * @generated\n */\n BSQLMachine createBSQLMachine();\n\n /**\n * Returns a new object of class '<em>BOperation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BOperation</em>'.\n * @generated\n */\n BOperation createBOperation();\n\n /**\n * Returns a new object of class '<em>BTable</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BTable</em>'.\n * @generated\n */\n BTable createBTable();\n\n /**\n * Returns a new object of class '<em>Attribute</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Attribute</em>'.\n * @generated\n */\n Attribute createAttribute();\n\n /**\n * Returns a new object of class '<em>BType</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BType</em>'.\n * @generated\n */\n BType createBType();\n\n /**\n * Returns a new object of class '<em>Bool Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Bool Operation</em>'.\n * @generated\n */\n BoolOperation createBoolOperation();\n\n /**\n * Returns a new object of class '<em>BSub True</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub True</em>'.\n * @generated\n */\n BSubTrue createBSubTrue();\n\n /**\n * Returns a new object of class '<em>BSub False</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub False</em>'.\n * @generated\n */\n BSubFalse createBSubFalse();\n\n /**\n * Returns a new object of class '<em>String Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Operation</em>'.\n * @generated\n */\n StringOperation createStringOperation();\n\n /**\n * Returns a new object of class '<em>BAny Block</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BAny Block</em>'.\n * @generated\n */\n BAnyBlock createBAnyBlock();\n\n /**\n * Returns a new object of class '<em>Void Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Void Operation</em>'.\n * @generated\n */\n VoidOperation createVoidOperation();\n\n /**\n * Returns a new object of class '<em>BPredicate</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BPredicate</em>'.\n * @generated\n */\n BPredicate createBPredicate();\n\n /**\n * Returns a new object of class '<em>SQL Call</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>SQL Call</em>'.\n * @generated\n */\n SQLCall createSQLCall();\n\n /**\n * Returns a new object of class '<em>Table Instance</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Table Instance</em>'.\n * @generated\n */\n TableInstance createTableInstance();\n\n /**\n * Returns a new object of class '<em>TI Assignment</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>TI Assignment</em>'.\n * @generated\n */\n TIAssignment createTIAssignment();\n\n /**\n * Returns a new object of class '<em>BParameter Typing</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BParameter Typing</em>'.\n * @generated\n */\n BParameterTyping createBParameterTyping();\n\n /**\n * Returns a new object of class '<em>BSubstitution</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSubstitution</em>'.\n * @generated\n */\n BSubstitution createBSubstitution();\n\n /**\n * Returns a new object of class '<em>BUnion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BUnion</em>'.\n * @generated\n */\n BUnion createBUnion();\n\n /**\n * Returns a new object of class '<em>BElement Structure</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement Structure</em>'.\n * @generated\n */\n BElementStructure createBElementStructure();\n\n /**\n * Returns a new object of class '<em>BElement</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement</em>'.\n * @generated\n */\n BElement createBElement();\n\n /**\n * Returns a new object of class '<em>BSet</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSet</em>'.\n * @generated\n */\n BSet createBSet();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n BSQL2Java2Package getBSQL2Java2Package();\n\n}", "GamifiedmodellingobjectmodelFactory getGamifiedmodellingobjectmodelFactory();", "public ExpressionsAdapterFactory()\r\n {\r\n if (modelPackage == null)\r\n {\r\n modelPackage = ExpressionsPackage.eINSTANCE;\r\n }\r\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "@Override\n protected ObjectFactory initObjectFactory() {\n try {\n BeanManager bm = (BeanManager) new InitialContext().lookup(\"java:comp/BeanManager\");\n Set<Bean<?>> beans = bm.getBeans(CdiObjectFactory.class);\n Bean<CdiObjectFactory> beanType = (Bean<CdiObjectFactory>) beans.iterator().next();\n CreationalContext<CdiObjectFactory> ctx = bm.createCreationalContext(beanType);\n CdiObjectFactory objFactory = (CdiObjectFactory) bm.getReference(beanType, CdiObjectFactory.class, ctx);\n objFactory.init(this);\n return objFactory;\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n }", "public interface LtmlFactory extends EFactory\r\n{\r\n /**\r\n * The singleton instance of the factory.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @generated\r\n */\r\n LtmlFactory eINSTANCE = com.ino9dev.ltml.impl.LtmlFactoryImpl.init();\r\n\r\n /**\r\n * Returns a new object of class '<em>Model</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Model</em>'.\r\n * @generated\r\n */\r\n Model createModel();\r\n\r\n /**\r\n * Returns a new object of class '<em>Statement</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Statement</em>'.\r\n * @generated\r\n */\r\n Statement createStatement();\r\n\r\n /**\r\n * Returns a new object of class '<em>Manifest</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Manifest</em>'.\r\n * @generated\r\n */\r\n Manifest createManifest();\r\n\r\n /**\r\n * Returns a new object of class '<em>Load Test</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Load Test</em>'.\r\n * @generated\r\n */\r\n LoadTest createLoadTest();\r\n\r\n /**\r\n * Returns a new object of class '<em>Load Group</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Load Group</em>'.\r\n * @generated\r\n */\r\n LoadGroup createLoadGroup();\r\n\r\n /**\r\n * Returns a new object of class '<em>Load Generator</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Load Generator</em>'.\r\n * @generated\r\n */\r\n LoadGenerator createLoadGenerator();\r\n\r\n /**\r\n * Returns a new object of class '<em>Schedule</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Schedule</em>'.\r\n * @generated\r\n */\r\n Schedule createSchedule();\r\n\r\n /**\r\n * Returns a new object of class '<em>Script</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Script</em>'.\r\n * @generated\r\n */\r\n Script createScript();\r\n\r\n /**\r\n * Returns a new object of class '<em>Transaction</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Transaction</em>'.\r\n * @generated\r\n */\r\n Transaction createTransaction();\r\n\r\n /**\r\n * Returns a new object of class '<em>Response Handler</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Response Handler</em>'.\r\n * @generated\r\n */\r\n ResponseHandler createResponseHandler();\r\n\r\n /**\r\n * Returns a new object of class '<em>Data Table</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Data Table</em>'.\r\n * @generated\r\n */\r\n DataTable createDataTable();\r\n\r\n /**\r\n * Returns a new object of class '<em>Report</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Report</em>'.\r\n * @generated\r\n */\r\n Report createReport();\r\n\r\n /**\r\n * Returns a new object of class '<em>Param</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Param</em>'.\r\n * @generated\r\n */\r\n Param createParam();\r\n\r\n /**\r\n * Returns a new object of class '<em>Run</em>'.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return a new object of class '<em>Run</em>'.\r\n * @generated\r\n */\r\n Run createRun();\r\n\r\n /**\r\n * Returns the package supported by this factory.\r\n * <!-- begin-user-doc -->\r\n * <!-- end-user-doc -->\r\n * @return the package supported by this factory.\r\n * @generated\r\n */\r\n LtmlPackage getLtmlPackage();\r\n\r\n}", "public interface ExpressionsFactory {\n\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tExpressionsFactory INSTANCE = org.dresdenocl.essentialocl.expressions.impl.ExpressionsFactoryImpl.eINSTANCE;\n\n\t/**\n\t * Returns a new object of class '<em>Variable Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Variable Exp</em>'.\n\t * @generated\n\t */\n\tVariableExp createVariableExp();\n\n\t/**\n\t * Returns a new object of class '<em>Variable</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Variable</em>'.\n\t * @generated\n\t */\n\tVariable createVariable();\n\n\t/**\n\t * Returns a new object of class '<em>Unlimited Natural Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Unlimited Natural Exp</em>'.\n\t * @generated\n\t */\n\tUnlimitedNaturalExp createUnlimitedNaturalExp();\n\n\t/**\n\t * Returns a new object of class '<em>Type Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Type Literal Exp</em>'.\n\t * @generated\n\t */\n\tTypeLiteralExp createTypeLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Tuple Literal Part</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Tuple Literal Part</em>'.\n\t * @generated\n\t */\n\tTupleLiteralPart createTupleLiteralPart();\n\n\t/**\n\t * Returns a new object of class '<em>Tuple Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Tuple Literal Exp</em>'.\n\t * @generated\n\t */\n\tTupleLiteralExp createTupleLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>String Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>String Literal Exp</em>'.\n\t * @generated\n\t */\n\tStringLiteralExp createStringLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Real Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Real Literal Exp</em>'.\n\t * @generated\n\t */\n\tRealLiteralExp createRealLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Property Call Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property Call Exp</em>'.\n\t * @generated\n\t */\n\tPropertyCallExp createPropertyCallExp();\n\n\t/**\n\t * Returns a new object of class '<em>Operation Call Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Operation Call Exp</em>'.\n\t * @generated\n\t */\n\tOperationCallExp createOperationCallExp();\n\n\t/**\n\t * Returns a new object of class '<em>Undefined Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Undefined Literal Exp</em>'.\n\t * @generated\n\t */\n\tUndefinedLiteralExp createUndefinedLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Let Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Let Exp</em>'.\n\t * @generated\n\t */\n\tLetExp createLetExp();\n\n\t/**\n\t * Returns a new object of class '<em>Iterator Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Iterator Exp</em>'.\n\t * @generated\n\t */\n\tIteratorExp createIteratorExp();\n\n\t/**\n\t * Returns a new object of class '<em>Iterate Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Iterate Exp</em>'.\n\t * @generated\n\t */\n\tIterateExp createIterateExp();\n\n\t/**\n\t * Returns a new object of class '<em>Invalid Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Invalid Literal Exp</em>'.\n\t * @generated\n\t */\n\tInvalidLiteralExp createInvalidLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Integer Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Integer Literal Exp</em>'.\n\t * @generated\n\t */\n\tIntegerLiteralExp createIntegerLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>If Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>If Exp</em>'.\n\t * @generated\n\t */\n\tIfExp createIfExp();\n\n\t/**\n\t * Returns a new object of class '<em>Boolean Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Boolean Literal Exp</em>'.\n\t * @generated\n\t */\n\tBooleanLiteralExp createBooleanLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Item</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Collection Item</em>'.\n\t * @generated\n\t */\n\tCollectionItem createCollectionItem();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Collection Literal Exp</em>'.\n\t * @generated\n\t */\n\tCollectionLiteralExp createCollectionLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Range</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Collection Range</em>'.\n\t * @generated\n\t */\n\tCollectionRange createCollectionRange();\n\n\t/**\n\t * Returns a new object of class '<em>Enum Literal Exp</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Enum Literal Exp</em>'.\n\t * @generated\n\t */\n\tEnumLiteralExp createEnumLiteralExp();\n\n\t/**\n\t * Returns a new object of class '<em>Expression In Ocl</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Expression In Ocl</em>'.\n\t * @generated\n\t */\n\tExpressionInOcl createExpressionInOcl();\n\n}", "public interface GraphQLFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n GraphQLFactory eINSTANCE = io.github.katmatt.graphql.graphQL.impl.GraphQLFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Type System Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type System Definition</em>'.\n * @generated\n */\n TypeSystemDefinition createTypeSystemDefinition();\n\n /**\n * Returns a new object of class '<em>Schema Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Schema Definition</em>'.\n * @generated\n */\n SchemaDefinition createSchemaDefinition();\n\n /**\n * Returns a new object of class '<em>Root Operation Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Root Operation Type Definition</em>'.\n * @generated\n */\n RootOperationTypeDefinition createRootOperationTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Definition</em>'.\n * @generated\n */\n TypeDefinition createTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Scalar Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Scalar Type Definition</em>'.\n * @generated\n */\n ScalarTypeDefinition createScalarTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Type Definition</em>'.\n * @generated\n */\n ObjectTypeDefinition createObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Interface Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Interface Definition</em>'.\n * @generated\n */\n InterfaceDefinition createInterfaceDefinition();\n\n /**\n * Returns a new object of class '<em>Field Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Definition</em>'.\n * @generated\n */\n FieldDefinition createFieldDefinition();\n\n /**\n * Returns a new object of class '<em>Union Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Union Type Definition</em>'.\n * @generated\n */\n UnionTypeDefinition createUnionTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Type Definition</em>'.\n * @generated\n */\n EnumTypeDefinition createEnumTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value Definition</em>'.\n * @generated\n */\n EnumValueDefinition createEnumValueDefinition();\n\n /**\n * Returns a new object of class '<em>Input Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Object Type Definition</em>'.\n * @generated\n */\n InputObjectTypeDefinition createInputObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Input Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Value Definition</em>'.\n * @generated\n */\n InputValueDefinition createInputValueDefinition();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n Type createType();\n\n /**\n * Returns a new object of class '<em>Named Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Named Type</em>'.\n * @generated\n */\n NamedType createNamedType();\n\n /**\n * Returns a new object of class '<em>List Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Type</em>'.\n * @generated\n */\n ListType createListType();\n\n /**\n * Returns a new object of class '<em>Int Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Int Value</em>'.\n * @generated\n */\n IntValue createIntValue();\n\n /**\n * Returns a new object of class '<em>Float Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Float Value</em>'.\n * @generated\n */\n FloatValue createFloatValue();\n\n /**\n * Returns a new object of class '<em>Null Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Null Value</em>'.\n * @generated\n */\n NullValue createNullValue();\n\n /**\n * Returns a new object of class '<em>String Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Value</em>'.\n * @generated\n */\n StringValue createStringValue();\n\n /**\n * Returns a new object of class '<em>Boolean Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Boolean Value</em>'.\n * @generated\n */\n BooleanValue createBooleanValue();\n\n /**\n * Returns a new object of class '<em>Enum Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value</em>'.\n * @generated\n */\n EnumValue createEnumValue();\n\n /**\n * Returns a new object of class '<em>Object Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Value</em>'.\n * @generated\n */\n ObjectValue createObjectValue();\n\n /**\n * Returns a new object of class '<em>Object Field</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Field</em>'.\n * @generated\n */\n ObjectField createObjectField();\n\n /**\n * Returns a new object of class '<em>Const Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Const Value</em>'.\n * @generated\n */\n ConstValue createConstValue();\n\n /**\n * Returns a new object of class '<em>List Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Value</em>'.\n * @generated\n */\n ListValue createListValue();\n\n /**\n * Returns a new object of class '<em>Directive Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive Definition</em>'.\n * @generated\n */\n DirectiveDefinition createDirectiveDefinition();\n\n /**\n * Returns a new object of class '<em>Directive</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive</em>'.\n * @generated\n */\n Directive createDirective();\n\n /**\n * Returns a new object of class '<em>Argument</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Argument</em>'.\n * @generated\n */\n Argument createArgument();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n GraphQLPackage getGraphQLPackage();\n\n}", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\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 borFactoryImpl();\n\t}", "public ObjectFactory() {\n\t}", "public interface RapidmlFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tRapidmlFactory eINSTANCE = com.reprezen.rapidml.impl.RapidmlFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Method</em>'. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Method</em>'.\n\t * @generated\n\t */\n\tMethod createMethod();\n\n\t/**\n\t * Returns a new object of class '<em>REST Element</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>REST Element</em>'.\n\t * @generated\n\t */\n\tRESTElement createRESTElement();\n\n\t/**\n\t * Returns a new object of class '<em>Documentation</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Documentation</em>'.\n\t * @generated\n\t */\n\tDocumentation createDocumentation();\n\n\t/**\n\t * Returns a new object of class '<em>Documentable</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Documentable</em>'.\n\t * @generated\n\t */\n\tDocumentable createDocumentable();\n\n\t/**\n\t * Returns a new object of class '<em>Media Type</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Media Type</em>'.\n\t * @generated\n\t */\n\tMediaType createMediaType();\n\n\t/**\n\t * Returns a new object of class '<em>Typed Request</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Typed Request</em>'.\n\t * @generated\n\t */\n\tTypedRequest createTypedRequest();\n\n\t/**\n\t * Returns a new object of class '<em>Typed Response</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Typed Response</em>'.\n\t * @generated\n\t */\n\tTypedResponse createTypedResponse();\n\n\t/**\n\t * Returns a new object of class '<em>Matrix Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Matrix Parameter</em>'.\n\t * @generated\n\t */\n\tMatrixParameter createMatrixParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Template Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Template Parameter</em>'.\n\t * @generated\n\t */\n\tTemplateParameter createTemplateParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Resource</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Resource</em>'.\n\t * @generated\n\t */\n\tCollectionResource createCollectionResource();\n\n\t/**\n\t * Returns a new object of class '<em>Object Resource</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Object Resource</em>'.\n\t * @generated\n\t */\n\tObjectResource createObjectResource();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Parameter</em>'.\n\t * @generated\n\t */\n\tCollectionParameter createCollectionParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Property Reference</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Property Reference</em>'.\n\t * @generated\n\t */\n\tPropertyReference createPropertyReference();\n\n\t/**\n\t * Returns a new object of class '<em>Message Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Message Parameter</em>'.\n\t * @generated\n\t */\n\tMessageParameter createMessageParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Zen Model</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Zen Model</em>'.\n\t * @generated\n\t */\n\tZenModel createZenModel();\n\n\t/**\n\t * Returns a new object of class '<em>Resource API</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Resource API</em>'.\n\t * @generated\n\t */\n\tResourceAPI createResourceAPI();\n\n\t/**\n\t * Returns a new object of class '<em>Service Data Resource</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Service Data Resource</em>'.\n\t * @generated\n\t */\n\tServiceDataResource createServiceDataResource();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Treatment</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Treatment</em>'.\n\t * @generated\n\t */\n\tReferenceTreatment createReferenceTreatment();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Realization</em>'.\n\t * @generated\n\t */\n\tReferenceRealization createReferenceRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Link</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Link</em>'.\n\t * @generated\n\t */\n\tReferenceLink createReferenceLink();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Embed</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Embed</em>'.\n\t * @generated\n\t */\n\tReferenceEmbed createReferenceEmbed();\n\n\t/**\n\t * Returns a new object of class '<em>Named Link Descriptor</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Named Link Descriptor</em>'.\n\t * @generated\n\t */\n\tNamedLinkDescriptor createNamedLinkDescriptor();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Type Source Reference</em>'.\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Type Source Reference</em>'.\n\t * @generated\n\t */\n\tPrimitiveTypeSourceReference createPrimitiveTypeSourceReference();\n\n\t/**\n\t * Returns a new object of class '<em>URI</em>'. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI</em>'.\n\t * @generated\n\t */\n\tURI createURI();\n\n\t/**\n\t * Returns a new object of class '<em>URI Segment</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI Segment</em>'.\n\t * @generated\n\t */\n\tURISegment createURISegment();\n\n\t/**\n\t * Returns a new object of class '<em>URI Segment With Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>URI Segment With Parameter</em>'.\n\t * @generated\n\t */\n\tURISegmentWithParameter createURISegmentWithParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Property Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Property Realization</em>'.\n\t * @generated\n\t */\n\tPropertyRealization createPropertyRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Link Relation</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Link Relation</em>'.\n\t * @generated\n\t */\n\tLinkRelation createLinkRelation();\n\n\t/**\n\t * Returns a new object of class '<em>Inline Example</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Inline Example</em>'.\n\t * @generated\n\t */\n\tInlineExample createInlineExample();\n\n\t/**\n\t * Returns a new object of class '<em>External Example</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>External Example</em>'.\n\t * @generated\n\t */\n\tExternalExample createExternalExample();\n\n\t/**\n\t * Returns a new object of class '<em>Import Declaration</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Import Declaration</em>'.\n\t * @generated\n\t */\n\tImportDeclaration createImportDeclaration();\n\n\t/**\n\t * Returns a new object of class '<em>Object Realization</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Object Realization</em>'.\n\t * @generated\n\t */\n\tObjectRealization createObjectRealization();\n\n\t/**\n\t * Returns a new object of class '<em>Collection Reference Element</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Collection Reference Element</em>'.\n\t * @generated\n\t */\n\tCollectionReferenceElement createCollectionReferenceElement();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme</em>'.\n\t * @generated\n\t */\n\tSecurityScheme createSecurityScheme();\n\n\t/**\n\t * Returns a new object of class '<em>Authentication Method</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Authentication Method</em>'.\n\t * @generated\n\t */\n\tAuthenticationMethod createAuthenticationMethod();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scope</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scope</em>'.\n\t * @generated\n\t */\n\tSecurityScope createSecurityScope();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme Parameter</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme Parameter</em>'.\n\t * @generated\n\t */\n\tSecuritySchemeParameter createSecuritySchemeParameter();\n\n\t/**\n\t * Returns a new object of class '<em>Security Scheme Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Security Scheme Library</em>'.\n\t * @generated\n\t */\n\tSecuritySchemeLibrary createSecuritySchemeLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Extension</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Extension</em>'.\n\t * @generated\n\t */\n\tExtension createExtension();\n\n\t/**\n\t * Returns a new object of class '<em>Realization Model Location</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Realization Model Location</em>'.\n\t * @generated\n\t */\n\tRealizationModelLocation createRealizationModelLocation();\n\n\t/**\n\t * Returns a new object of class '<em>Operation</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Operation</em>'.\n\t * @generated\n\t */\n\tOperation createOperation();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Property</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reference Property</em>'.\n\t * @generated\n\t */\n\tReferenceProperty createReferenceProperty();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Property</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Property</em>'.\n\t * @generated\n\t */\n\tPrimitiveProperty createPrimitiveProperty();\n\n\t/**\n\t * Returns a new object of class '<em>Structure</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Structure</em>'.\n\t * @generated\n\t */\n\tStructure createStructure();\n\n\t/**\n\t * Returns a new object of class '<em>Data Model</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Data Model</em>'.\n\t * @generated\n\t */\n\tDataModel createDataModel();\n\n\t/**\n\t * Returns a new object of class '<em>Inline Data Example</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Inline Data Example</em>'.\n\t * @generated\n\t */\n\tInlineDataExample createInlineDataExample();\n\n\t/**\n\t * Returns a new object of class '<em>Enumeration</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Enumeration</em>'.\n\t * @generated\n\t */\n\tEnumeration createEnumeration();\n\n\t/**\n\t * Returns a new object of class '<em>Enum Constant</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Enum Constant</em>'.\n\t * @generated\n\t */\n\tEnumConstant createEnumConstant();\n\n\t/**\n\t * Returns a new object of class '<em>User Defined Type</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>User Defined Type</em>'.\n\t * @generated\n\t */\n\tUserDefinedType createUserDefinedType();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Type</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Type</em>'.\n\t * @generated\n\t */\n\tPrimitiveType createPrimitiveType();\n\n\t/**\n\t * Returns a new object of class '<em>Length Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Length Constraint</em>'.\n\t * @generated\n\t */\n\tLengthConstraint createLengthConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Reg Ex Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Reg Ex Constraint</em>'.\n\t * @generated\n\t */\n\tRegExConstraint createRegExConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Value Range Constraint</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Value Range Constraint</em>'.\n\t * @generated\n\t */\n\tValueRangeConstraint createValueRangeConstraint();\n\n\t/**\n\t * Returns a new object of class '<em>Media Types Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Media Types Library</em>'.\n\t * @generated\n\t */\n\tMediaTypesLibrary createMediaTypesLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Link Relations Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Link Relations Library</em>'.\n\t * @generated\n\t */\n\tLinkRelationsLibrary createLinkRelationsLibrary();\n\n\t/**\n\t * Returns a new object of class '<em>Primitive Types Library</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Primitive Types Library</em>'.\n\t * @generated\n\t */\n\tPrimitiveTypesLibrary createPrimitiveTypesLibrary();\n\n\t/**\n\t * Returns the package supported by this factory. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRapidmlPackage getRapidmlPackage();\n\n}", "public interface VmFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tVmFactory eINSTANCE = fr.inria.sed.logo.vm.model.vm.impl.VmFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Interpreter Runtime Context</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Interpreter Runtime Context</em>'.\n\t * @generated\n\t */\n\tInterpreterRuntimeContext createInterpreterRuntimeContext();\n\n\t/**\n\t * Returns a new object of class '<em>Turtle</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Turtle</em>'.\n\t * @generated\n\t */\n\tTurtle createTurtle();\n\n\t/**\n\t * Returns a new object of class '<em>Point</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Point</em>'.\n\t * @generated\n\t */\n\tPoint createPoint();\n\n\t/**\n\t * Returns a new object of class '<em>Segment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Segment</em>'.\n\t * @generated\n\t */\n\tSegment createSegment();\n\n\t/**\n\t * Returns a new object of class '<em>Param Map Entry</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Param Map Entry</em>'.\n\t * @generated\n\t */\n\tParamMapEntry createParamMapEntry();\n\n\t/**\n\t * Returns a new object of class '<em>Param Map</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Param Map</em>'.\n\t * @generated\n\t */\n\tParamMap createParamMap();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tVmPackage getVmPackage();\n\n}", "public interface CoreFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tCoreFactory eINSTANCE = IFML.Core.impl.CoreFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Interaction Flow Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Interaction Flow Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tInteractionFlowExpression createInteractionFlowExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>System Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>System Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tSystemEvent createSystemEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Binding</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Binding</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterBinding createParameterBinding();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Action Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Action Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tActionEvent createActionEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainModel createDomainModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Port Definition</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Port Definition</em>'.\r\n\t * @generated\r\n\t */\r\n\tPortDefinition createPortDefinition();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewElement createViewElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Dynamic Behavior</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Dynamic Behavior</em>'.\r\n\t * @generated\r\n\t */\r\n\tDynamicBehavior createDynamicBehavior();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Viewpoint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Viewpoint</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewpoint createViewpoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Flow</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Flow</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataFlow createDataFlow();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Component Part</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Component Part</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewComponentPart createViewComponentPart();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Container</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Container</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewContainer createViewContainer();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Activation Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Activation Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tActivationExpression createActivationExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Interaction Flow Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Interaction Flow Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tInteractionFlowModel createInteractionFlowModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context Dimension</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context Dimension</em>'.\r\n\t * @generated\r\n\t */\r\n\tContextDimension createContextDimension();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLModel createIFMLModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Module Definition</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Module Definition</em>'.\r\n\t * @generated\r\n\t */\r\n\tModuleDefinition createModuleDefinition();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Boolean Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Boolean Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tBooleanExpression createBooleanExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Action</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Action</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLAction createIFMLAction();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Navigation Flow</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Navigation Flow</em>'.\r\n\t * @generated\r\n\t */\r\n\tNavigationFlow createNavigationFlow();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Binding Group</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Binding Group</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterBindingGroup createParameterBindingGroup();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Constraint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Constraint</em>'.\r\n\t * @generated\r\n\t */\r\n\tConstraint createConstraint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Component</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Component</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewComponent createViewComponent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Parameter</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Parameter</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLParameter createIFMLParameter();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Binding</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Binding</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataBinding createDataBinding();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Conditional Expression</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Conditional Expression</em>'.\r\n\t * @generated\r\n\t */\r\n\tConditionalExpression createConditionalExpression();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context</em>'.\r\n\t * @generated\r\n\t */\r\n\tContext createContext();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Visualization Attribute</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Visualization Attribute</em>'.\r\n\t * @generated\r\n\t */\r\n\tVisualizationAttribute createVisualizationAttribute();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tEvent createEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>View Element Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>View Element Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tViewElementEvent createViewElementEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Annotation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Annotation</em>'.\r\n\t * @generated\r\n\t */\r\n\tAnnotation createAnnotation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Module Package</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Module Package</em>'.\r\n\t * @generated\r\n\t */\r\n\tModulePackage createModulePackage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Modularization Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Modularization Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tModularizationElement createModularizationElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Module</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Module</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLModule createIFMLModule();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Port</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Port</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLPort createIFMLPort();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Catching Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Catching Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tCatchingEvent createCatchingEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Throwing Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Throwing Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tThrowingEvent createThrowingEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>BPMN Activity Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>BPMN Activity Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBPMNActivityConcept createBPMNActivityConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tContextVariable createContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Simple Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Simple Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tSimpleContextVariable createSimpleContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Context Variable</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Context Variable</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataContextVariable createDataContextVariable();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainConcept createDomainConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Feature Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Feature Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tFeatureConcept createFeatureConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Behavior Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Behavior Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBehaviorConcept createBehaviorConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Behavioral Feature Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Behavioral Feature Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tBehavioralFeatureConcept createBehavioralFeatureConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Behavior</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Behavior</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLBehavior createUMLBehavior();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Behavioral Feature</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Behavioral Feature</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLBehavioralFeature createUMLBehavioralFeature();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Domain Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Domain Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLDomainConcept createUMLDomainConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>UML Structural Feature</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>UML Structural Feature</em>'.\r\n\t * @generated\r\n\t */\r\n\tUMLStructuralFeature createUMLStructuralFeature();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Activity Concept</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Activity Concept</em>'.\r\n\t * @generated\r\n\t */\r\n\tActivityConcept createActivityConcept();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Domain Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Domain Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tDomainElement createDomainElement();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>IFML Named Element</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>IFML Named Element</em>'.\r\n\t * @generated\r\n\t */\r\n\tIFMLNamedElement createIFMLNamedElement();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tCorePackage getCorePackage();\r\n\r\n}", "public ObjectFactory() {\r\n\t}", "public SiddhiAdapterFactory()\n {\n if (modelPackage == null)\n {\n modelPackage = SiddhiPackage.eINSTANCE;\n }\n }", "public KnowledgeBase newKnowledgeBase() {\n KnowledgeBuilder knowledgeBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();\n knowledgeBuilder.add(ResourceFactory.newClassPathResource(\"WidgetsAndGadgets.bpmn\"), ResourceType.BPMN2);\n\n KnowledgeBase knowledgeBase = knowledgeBuilder.newKnowledgeBase();\n return knowledgeBase;\n }", "public interface RmFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRmFactory eINSTANCE = ru.capralow.dt.conversion.plugin.core.rm.impl.RmFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Module</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Module</em>'.\n\t * @generated\n\t */\n\tRegistrationModule createRegistrationModule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Content</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Content</em>'.\n\t * @generated\n\t */\n\tExchangePlanContent createExchangePlanContent();\n\n\t/**\n\t * Returns a new object of class '<em>Registration Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Registration Rule</em>'.\n\t * @generated\n\t */\n\tRegistrationRule createRegistrationRule();\n\n\t/**\n\t * Returns a new object of class '<em>Object Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Object Selection Rule</em>'.\n\t * @generated\n\t */\n\tObjectSelectionRule createObjectSelectionRule();\n\n\t/**\n\t * Returns a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exchange Plan Selection Rule</em>'.\n\t * @generated\n\t */\n\tExchangePlanSelectionRule createExchangePlanSelectionRule();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRmPackage getRmPackage();\n\n}", "public static FeatureGroupMappingFactory init()\r\n {\r\n try\r\n {\r\n FeatureGroupMappingFactory theFeatureGroupMappingFactory = (FeatureGroupMappingFactory)EPackage.Registry.INSTANCE.getEFactory(FeatureGroupMappingPackage.eNS_URI);\r\n if (theFeatureGroupMappingFactory != null)\r\n {\r\n return theFeatureGroupMappingFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new FeatureGroupMappingFactoryImpl();\r\n }", "ObjectFactoryGenerator objectFactoryGenerator();", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "static public ContentHandleFactory newFactory(Class<?>... pojoClasses)\n throws JAXBException {\n if (pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(pojoClasses);\n }", "public TypesAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypesPackage.eINSTANCE;\n\t\t}\n\t}", "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}", "public MyDslAdapterFactory()\r\n {\r\n if (modelPackage == null)\r\n {\r\n modelPackage = MyDslPackage.eINSTANCE;\r\n }\r\n }", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public static JavafxTypesFactory init() {\n\t\ttry {\n\t\t\tJavafxTypesFactory theJavafxTypesFactory = (JavafxTypesFactory)EPackage.Registry.INSTANCE.getEFactory(JavafxTypesPackage.eNS_URI);\n\t\t\tif (theJavafxTypesFactory != null) {\n\t\t\t\treturn theJavafxTypesFactory;\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 JavafxTypesFactoryImpl();\n\t}", "public NgtAdapterFactory()\n {\n if (modelPackage == null)\n {\n modelPackage = NgtPackage.eINSTANCE;\n }\n }", "public interface OntoumlFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tOntoumlFactory eINSTANCE = net.menthor.onto2.ontouml.impl.OntoumlFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Comment</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Comment</em>'.\r\n\t * @generated\r\n\t */\r\n\tComment createComment();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tModel createModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Package</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Package</em>'.\r\n\t * @generated\r\n\t */\r\n\tPackage createPackage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Attribute</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Attribute</em>'.\r\n\t * @generated\r\n\t */\r\n\tAttribute createAttribute();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Constraint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Constraint</em>'.\r\n\t * @generated\r\n\t */\r\n\tConstraint createConstraint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Literal</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Literal</em>'.\r\n\t * @generated\r\n\t */\r\n\tLiteral createLiteral();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Type</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Type</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataType createDataType();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tClass createClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>End Point</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>End Point</em>'.\r\n\t * @generated\r\n\t */\r\n\tEndPoint createEndPoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Relationship</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Relationship</em>'.\r\n\t * @generated\r\n\t */\r\n\tRelationship createRelationship();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization Set</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization Set</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralizationSet createGeneralizationSet();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralization createGeneralization();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tOntoumlPackage getOntoumlPackage();\r\n\r\n}", "public OBStoreFactory getFactory();", "public interface NgtFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n NgtFactory eINSTANCE = org.opentestmodeling.vstep.ngt.impl.NgtFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Model</em>'.\n * @generated\n */\n Model createModel();\n\n /**\n * Returns a new object of class '<em>Top Level Import</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Top Level Import</em>'.\n * @generated\n */\n TopLevelImport createTopLevelImport();\n\n /**\n * Returns a new object of class '<em>Test Node</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Test Node</em>'.\n * @generated\n */\n TestNode createTestNode();\n\n /**\n * Returns a new object of class '<em>Test Target</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Test Target</em>'.\n * @generated\n */\n TestTarget createTestTarget();\n\n /**\n * Returns a new object of class '<em>Test Viewpoint</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Test Viewpoint</em>'.\n * @generated\n */\n TestViewpoint createTestViewpoint();\n\n /**\n * Returns a new object of class '<em>Node Connection</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Node Connection</em>'.\n * @generated\n */\n NodeConnection createNodeConnection();\n\n /**\n * Returns a new object of class '<em>Inheritance</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Inheritance</em>'.\n * @generated\n */\n Inheritance createInheritance();\n\n /**\n * Returns a new object of class '<em>Relation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Relation</em>'.\n * @generated\n */\n Relation createRelation();\n\n /**\n * Returns a new object of class '<em>Dependency</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Dependency</em>'.\n * @generated\n */\n Dependency createDependency();\n\n /**\n * Returns a new object of class '<em>Chain</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Chain</em>'.\n * @generated\n */\n Chain createChain();\n\n /**\n * Returns a new object of class '<em>Target Chain</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Target Chain</em>'.\n * @generated\n */\n TargetChain createTargetChain();\n\n /**\n * Returns a new object of class '<em>Node Chain</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Node Chain</em>'.\n * @generated\n */\n NodeChain createNodeChain();\n\n /**\n * Returns a new object of class '<em>String List</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String List</em>'.\n * @generated\n */\n StringList createStringList();\n\n /**\n * Returns a new object of class '<em>Quality Risk</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Quality Risk</em>'.\n * @generated\n */\n QualityRisk createQualityRisk();\n\n /**\n * Returns a new object of class '<em>Test Container</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Test Container</em>'.\n * @generated\n */\n TestContainer createTestContainer();\n\n /**\n * Returns a new object of class '<em>Data Package</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Data Package</em>'.\n * @generated\n */\n DataPackage createDataPackage();\n\n /**\n * Returns a new object of class '<em>Data Element</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Data Element</em>'.\n * @generated\n */\n DataElement createDataElement();\n\n /**\n * Returns a new object of class '<em>Type Import</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Import</em>'.\n * @generated\n */\n TypeImport createTypeImport();\n\n /**\n * Returns a new object of class '<em>Type Def</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Def</em>'.\n * @generated\n */\n TypeDef createTypeDef();\n\n /**\n * Returns a new object of class '<em>Type Interface</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Interface</em>'.\n * @generated\n */\n TypeInterface createTypeInterface();\n\n /**\n * Returns a new object of class '<em>Data Binding</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Data Binding</em>'.\n * @generated\n */\n DataBinding createDataBinding();\n\n /**\n * Returns a new object of class '<em>Data List</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Data List</em>'.\n * @generated\n */\n DataList createDataList();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n NgtPackage getNgtPackage();\n\n}" ]
[ "0.61873907", "0.6095994", "0.5921163", "0.5861917", "0.58508897", "0.5847453", "0.5838969", "0.58229166", "0.5794928", "0.5759806", "0.57345456", "0.5734294", "0.5712522", "0.5688289", "0.5677092", "0.5672994", "0.5664544", "0.5659413", "0.5652218", "0.5641779", "0.5635673", "0.56098694", "0.5608003", "0.5608003", "0.5608003", "0.56059235", "0.5595579", "0.5581865", "0.55614156", "0.5555375", "0.5538148", "0.5524479", "0.5518575", "0.5518059", "0.551167", "0.5491233", "0.5462842", "0.5451626", "0.54392326", "0.5438675", "0.54364663", "0.5424734", "0.54199666", "0.5418651", "0.5406712", "0.53958243", "0.5395564", "0.5392747", "0.53890085", "0.53873104", "0.5384428", "0.5384381" ]
0.0
-1
Created by CodeGenerator on 2017/10/11.
public interface DataAcquisitionService extends Service<DataAcquisition> { //首页查询问卷使用信息 List<DataAcquisition> questionnaireUseInfoListByPage(); //根据日期查询来访者使用的问卷 List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition); //查询活动的填报人数 Integer findCountByActivityId(String activityId); List<DataAcquisition> findMyQuestionnaireListByPage(Map<String,Object> map); //查询来访者填写问卷的总数 int getDataAcquisitionTotal(String userId); //填写问卷类别总数 List<DataAcquisition> getQuestionnaireTypeTotal(String userId); //查询来访者的填写结果 List<DataAcquisition> findDataAcquistionForVisitor(DataAcquisition dataAcquisition); //来访者的问卷统计分析 Result getDataAcquisitionForVisitingCount(String userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo38117a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void anularFact() {\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 sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {}", "Consumable() {\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\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void init() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private TMCourse() {\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 void mo4359a() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void kk12() {\n\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void jugar() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21785J() {\n }", "public void mo12930a() {\n }" ]
[ "0.6196498", "0.6194012", "0.61794245", "0.61300135", "0.61300135", "0.60163194", "0.5979503", "0.5924845", "0.5902496", "0.5900442", "0.58977926", "0.5885422", "0.58806425", "0.5834065", "0.5834065", "0.5834065", "0.5834065", "0.5834065", "0.5834065", "0.5824932", "0.58249044", "0.58182126", "0.5810799", "0.5797103", "0.5790629", "0.5789496", "0.57852596", "0.5780759", "0.57793534", "0.5776807", "0.5776737", "0.57744944", "0.57647306", "0.57647306", "0.57643783", "0.57504666", "0.5749549", "0.5745199", "0.5745199", "0.5745199", "0.5745199", "0.5745199", "0.57259375", "0.57259375", "0.5713892", "0.5710784", "0.57024276", "0.5700288", "0.56937605", "0.5690488", "0.5674945", "0.5674945", "0.5665802", "0.56629276", "0.56561553", "0.5655417", "0.56528294", "0.56478596", "0.56478596", "0.56478596", "0.56449425", "0.5643574", "0.5643574", "0.5643574", "0.5640739", "0.5640739", "0.5640739", "0.5639144", "0.5635934", "0.5624197", "0.5624197", "0.5624197", "0.56196386", "0.56185377", "0.56078", "0.55956554", "0.5589405", "0.5588085", "0.5584669", "0.5580758", "0.55800754", "0.5576916", "0.5576915", "0.5573545", "0.5573545", "0.55658734", "0.5563885", "0.55619806", "0.5554235", "0.555194", "0.555194", "0.55518323", "0.5550435", "0.5550435", "0.5550435", "0.5550435", "0.5550435", "0.5550435", "0.5550435", "0.5545276", "0.5544237" ]
0.0
-1
Create a new org.javaexpress.Student object.
public Student(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Student createStudent();", "private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }", "public Student(){}", "public Student() {\n \n }", "public Student() {\r\n }", "public Student() {\n }", "public Student() {\n }", "public Student() {\n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }", "public void createStudent(String name, String ID){}", "void create(Student entity);", "public StudentRecord() {}", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "Student(int i, String n) {\n id = i;\n name = n;\n }", "public Student( String name ) {\n sname=name;\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student(String name) {\n\n this.name = name;\n }", "public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "Student(String name){\n this.name = name;\n }", "public Student(String studentId){\n id = studentId;\n }", "public Student insertStudent() {\n\t\tSystem.out.print(\"\\n--- 학생 정보 등록 ---\\n\");\n\t\tSystem.out.print(\"학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\tSystem.out.print(\"학생 나이 입력 \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"학생 주소 입력 \");\n\t\tString addr= sc.next();\n\t\tStudent st = new Student(name, age, addr);\n\t\treturn st;\n\t}", "public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}", "public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "Student4(int i, String n) {\n id = i;\n name = n;\n\n }", "public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}", "public Student(String name, String gender,String rollNumber,String mobileNumber){\n this.name = name;\n this.gender = gender;\n this.rollNumber = rollNumber;\n this.mobileNumber = mobileNumber;\n }", "public Student(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public Student(int studentId, String studentName, String studentMajor) \r\n {\r\n\r\n setId(studentId);\r\n setName(studentName);\r\n setMajor(studentMajor);\r\n\r\n }", "public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "Student(String name, double cgpa, int token){\n this.name=name;\n this.cgpa=cgpa;\n this.token=token;\n }", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public Student(String name, String gender, String email){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = new Course();\n this.course2 = new Course();\n this.course3 = new Course();\n }", "public Student(String nm, int day, int month, int year){\r\n\t\tthis.name = nm;\r\n//\t\tthis.username = createUsername(nm); //creates unique username from Student's name\r\n\r\n\t dateofbirth = LocalDate.of(year, month, day);\r\n\t\tthis.age = getAge();\r\n\t\tStudent.userID = userID++; //ID increments for each new User\r\n\t\t\r\n\t\tthis.username = getUsername();\r\n\t}", "public Student(\n int userId, String firstName, String lastName, String email, String password, int\n schoolId,\n double gpa)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n this.setGpa(gpa);\n }", "public Student(String name, int studentId) {\n this.name = name;\n this.studentId = studentId;\n this.numberOfCredits = 0;\n this.gpa = 0.0;\n }", "public Student(int userId, String firstName, String lastName, String email, String password, int schoolId)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n }", "public Student() { //Default Constructor\n\t\tthis.roll_no=0;\n\t\tthis.full_name=\"\";\n\t\tthis.grade=\"\";\n\t}", "Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }", "Student(String firstName, String lastName, int grade) {\n // Standard constructor assignments\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public static void creaStudente(Student stud) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.STUDENT;\n\t\t\trp.parameters = new Object[] { stud };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public Student (String first, String last, String id)\r\n\t{\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.studentId = id;\r\n\t}", "public Student( String name , String address ){//constructor with arguments \r\n \tID_COUNTER++;\r\n \tstudentNum = ID_COUNTER;\r\n getFirstAndLastName( name );\r\n this.address = address ;\r\n loginID = makeLoginID() ;\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}", "@Override\n\tpublic void createStudent(Student student) {\n\t\tem.persist(student);\n\t}", "public static final Account createDefaultStudentAccount() {\n Name name = new Name(\"Bob\");\n Credential credential = new Credential(\"student\", \"student\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(1);\n Account student = new Account(name, credential, matricNumber, privilegeLevel);\n return student;\n }", "public Student(String firstName, String lastName, int age, double gpa, String major, String department, List<Course> courses) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.gpa = gpa;\n this.major = major;\n this.department = department;\n this.courses = courses;\n }", "public Student(String firstName, String familyName, int identityNumber) {\r\n this.Student = new StudentInfo (firstName, familyName, identityNumber, 120);\r\n }", "public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public static void createRecord() throws IOException {\r\n\t\tstudRecs.add(new Student());\r\n\t\tint i = studRecs.size() - 1;\r\n\t\tStudent tempRecord = studRecs.get(i);\r\n\t\tSystem.out.println(\"Creating Student \" + i + \" (\" + tempRecord.getStudentID() + \")\");\r\n\t\ttempRecord.setFirstName(StudentInput.firstName());\r\n\t\ttempRecord.setLastName(StudentInput.lastName());\r\n\t\ttempRecord.setStreetAddress(StudentInput.streetAddress());\r\n\t\ttempRecord.setCity(StudentInput.city());\r\n\t\ttempRecord.setProvince(StudentInput.province());\r\n\t\ttempRecord.setPostalCode(StudentInput.postalCode());\r\n\t\ttempRecord.setPhoneNumber(StudentInput.phoneNumber());\r\n\t\ttempRecord.setBirthDate(StudentInput.birthDate());\r\n\t\tSystem.out.println(\"Student \" + i + \" (\" + tempRecord.getStudentID() + \")\" + \" Created!\");\r\n\t}", "public Student(int studentID, String firstName, String lastName) {\n this.studentID = studentID;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public Student(String firstName, String lastName, String email) {\r\n\t\tthis.firstName = firstName;\r\n\t\tthis.lastName = lastName;\r\n\t\tthis.email = email;\r\n\t}", "public Student(int id) {\n\t\tthis.id = id;\n\t}", "public Student(String id, String fname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "StudentRecord createStudentRecord(String firstName, String lastName,\n\t\t\tList<CourseType> coursesRegistered, StudentStatus status, String statusDate,\n\t\t\tString clientId) throws Exception;", "Student(String name) {\n\t\tthis.name = name;\n\t\tregisteredCourses = new Course[30];\n\t}", "public Student(String id, String firstName, String lastName, String email, String username, String password) {\n super(id, firstName, lastName, email, username, password, \"student\");\n }", "public Student(String studentID, String passwordHash, String name, String matricNum, String nationality,\r\n\t\t\tchar gender, ArrayList<String> school, ArrayList<String> courseList, ArrayList<Integer> indexGroupList,\r\n\t\t\tArrayList<String> exemptionCoursesList, ArrayList<String> completedCoursesList,\r\n\t\t\tArrayList<Integer> waitListIDList, Schedule schedule, Calendar startTime, Calendar endTime, String email,\r\n\t\t\tString mobileNum, String notifMode) {\r\n\t\tthis.studentID = studentID;\r\n\t\tthis.passwordHash = passwordHash;\r\n\t\tthis.name = name;\r\n\t\tthis.matricNum = matricNum;\r\n\t\tthis.nationality = nationality;\r\n\t\tthis.gender = gender;\r\n\t\tthis.school = school;\r\n\t\tthis.courseList = courseList;\r\n\t\tthis.indexGroupList = indexGroupList;\r\n\t\tthis.exemptionCoursesList = exemptionCoursesList;\r\n\t\tthis.completedCoursesList = completedCoursesList;\r\n\t\tthis.waitListIDList = waitListIDList;\r\n\t\tthis.schedule = schedule;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.email = email;\r\n\t\tthis.mobileNum = mobileNum;\r\n\t\tthis.notifMode = notifMode;\r\n\t}", "Student(int id, String name, int grade){\r\n\t\tthis.id=id;\r\n\t\tthis.studentName=name;\r\n\t\tthis.studentGrade=grade;\r\n\t\tthis.feesPaid=0;\r\n\t\tthis.feesTotal=30000;\t\r\n\t\t\r\n\t}", "public Student(String id, String fname, String mname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, mname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(String nume, int varsta) {\n\t\tthis.nume = nume;\n\t\tthis.varsta = varsta;\n\t}", "private Student addStudent(String name, ArrayList<String> studentBranch) {\n\t\treturn new Student(name, studentBranch);\n\t}", "public Student() {\r\n\t\t\r\n\t\t//populating country options\r\n\t\t//can also be done using a properties file\r\n\t\t\r\n\t\t/*\r\n\t\t * countryOptions = new LinkedHashMap<String, String>();\r\n\t\t * \r\n\t\t * countryOptions.put(\"BR\", \"Brazil\"); countryOptions.put(\"IN\", \"India\");\r\n\t\t * countryOptions.put(\"US\", \"United States\"); countryOptions.put(\"CA\",\r\n\t\t * \"Canada\");\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Student student = Student.createInstanceByIdAndFirstName(10 , \"Jhn\");\n Student student1 = Student.createInstanceByIdAndLastName(11, \"Smith\");\n }", "private static Student newUser(ArrayList<Student> students){\n\t\tStudent newStudent = new Student();\n\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter first name:\");\n\t\t\t\tnewStudent.setFirstName(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getFirstName() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter last name:\");\n\t\t\t\tnewStudent.setLastName(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getLastName() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter age:\");\n\t\t\t\tnewStudent.setAge(Integer.parseInt(input.nextLine()));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getAge() == -1);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter gender(M/F):\");\n\t\t\t\tnewStudent.setGender(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getGender() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter SSN:\");\n\t\t\t\tnewStudent.setSSN(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getSSN() == null);\n\t\t \n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter address:\");\n\t\t\t\tnewStudent.setAddress(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getAddress() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter city:\");\n\t\t\t\tnewStudent.setCity(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getCity() == null);\t\t\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter state(two character abbreviation):\");\n\t\t\t\tnewStudent.setState(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getState() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter zip:\");\n\t\t\t\tnewStudent.setZip(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getZip() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter email:\");\n\t\t\t\tnewStudent.setEmail(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getEmail() == null);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter phone:\");\n\t\t\t\tString temp = input.nextLine();\n\t\t\t\t// remove all non-numeric characters\n\t\t\t\ttemp = temp.replaceAll(\"[^\\\\d.]\", \"\");\n\t\t\t\tnewStudent.setPhone(temp);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getPhone() == null);\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter ID (Numeric):\");\n\t\t\t\tnewStudent.setID(Integer.parseInt(input.nextLine()));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getID() == -1);\n\t\t\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter college:\");\n\t\t\t\tnewStudent.setCollege(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getCollege() == null);\n\n\t\tString usr = null;\n\t\tboolean failUsrCheck = false;\n\t\t\n\t\tdo{\n\n\t\t\tSystem.out.println(\"Enter user name:\");\n\t\t\tusr = input.nextLine(); \n\t\t\tfor(Student studentI : students) {\n\t\t\t\tif(usr.equals(studentI.getUsername().replace(\"\\r\",\"\"))){\n\t\t\t\t\tfailUsrCheck = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(failUsrCheck){\n\t\t\t\tSystem.out.println(\"User name already used.\");\n\t\t\t}\n\t\t}while (failUsrCheck);\n\t\tnewStudent.setUsername(usr);\n\n\t\t// Display the block of text with the password requirements\n\t\tSystem.out.println(newStudent.PASSWORD_REQUIREMENTS);\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"Enter password:\");\n\t\t\t\tnewStudent.setPassword(input.nextLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} while(newStudent.getPassword() == null);\n\t\t\n\t\treturn newStudent;\n\t}", "public Student build() { \n\t return new Student(this); \n\t }", "public Student(int id, String name, String course) {\n this.id = id;\n this.name = name;\n this.course = course;\n }", "public Student(String firstName, String lastName, int grade) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade; \n studentNumber = totalStudents++; // the new student's number is equal the total number of students, therefore, each student number will be unique\n }", "public Optional<DbStudentEntity> create(\n final Id id,\n final String name,\n final String address,\n final String rollNo,\n final String collegeCode,\n final String courseCode);", "public Student ( int rollno, String name, String course ) {\n\t\tthis.rollno = rollno;\n\t\tthis.name = name;\n\t\tthis.course = course;\n\t}", "@Override\n public StudentDTO createNewStudent(StudentDTO studentDTO) {\n studentRepository.save(studentMapper.studentDTOToStudent(studentDTO));\n log.info(\"Student with id: \" + studentDTO.getId() + \" successfully saved\");\n return studentDTO;\n }", "public Student(int id, String firstName, String middleName, String lastName, String email, String ssn, int age,\n\t\t\tString major) {\n\n\t\tsuper(id, firstName, middleName, lastName, email, ssn, age);\n\t\tthis.major = major;\n\t}", "NominatedStudentDto create(NominatedStudentDto nominatedStudent, int userId, String userRole);", "public Student(String name, String emailAddress, String matriculationNumber) {\n this.name = name;\n this.emailAddress = emailAddress;\n this.matriculationNumber = matriculationNumber;\n }", "public Student(String name, String gender, String email, Course course1, \n Course course2, Course course3){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = course1;\n this.course2 = course2;\n this.course3 = course3;\n }", "public Student(String name) {\n this.nameProp.set(name);\n }", "@Override\r\n\t@Transactional\r\n\tpublic void createStudent(Bookmodel s1) {\n\t\tdao.createStudent(s1);\r\n\t}", "@Override\n\tpublic void create(Student student) {\n\t\tString query=\"insert into student values('\"+student.getId()+\"','\"+student.getName()+\"','\"+student.getAge()+\"')\";\n\t//\tjdbcTemplate.update(query);\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\"Record Inserted\");\n\t}", "public void addStudent(Student student);", "@Test\n public void testStudentsCreateStudentAccount() {\n // If the normal token is used for this test - then it causes problems\n // for other tests. If the student account is added via the admin\n // method, then no problem occurs, but via the student method... no so\n // much luck!\n final AuthenticationToken myToken = login(\"spain@iaeste.es\", \"spain\");\n final Students students = new StudentClient();\n // Create the new User Request Object\n final String username = \"student@flopflip.net\";\n final String password = \"myPassword\";\n final CreateUserRequest createUserRequest = new CreateUserRequest(username, password, \"Student\", \"Graduate\");\n\n final FetchStudentsRequest fetchStudentsRequest = new FetchStudentsRequest();\n final FetchStudentsResponse beforeStudentsResponse = students.fetchStudents(myToken, fetchStudentsRequest);\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final CreateUserResponse created = students.createStudent(myToken, createUserRequest);\n assertThat(created.isOk(), is(true));\n\n // Verify that the Students exists\n final FetchStudentsResponse afterFetchStudentsResponse = students.fetchStudents(myToken, fetchStudentsRequest);\n assertThat(afterFetchStudentsResponse.isOk(), is(true));\n assertThat(afterFetchStudentsResponse.getStudents().size(), is(beforeStudentsResponse.getStudents().size() + 1));\n logout(myToken);\n }", "public Student(int sem, double gpa, String firstName, String lastName) {\n super(firstName, lastName);\n this.sem = sem;\n this.gpa = gpa;\n }", "@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}", "public void addStudent(Student student) {\n\t\t\r\n\t}", "public void testAddMinimalStudent()\r\n throws Exception\r\n {\r\n Student student1 = new Student();\r\n student1.setGender( Gender.MALE );\r\n studentId1 = StudentIdGen.getInstance().nextStudentId();\r\n student1.setId( studentId1 );\r\n\r\n try\r\n {\r\n Session session = SessionUtil.begin();\r\n session.save( student1 );\r\n SessionUtil.end();\r\n }\r\n catch ( Exception e )\r\n {\r\n SessionUtil.rollback( e );\r\n }\r\n }", "public JStudentInfoRecord() {\n super(JStudentInfo.STUDENT_INFO);\n }", "public Student(String name, Integer age) {\n\n this.name = name;\n this.age = age;\n }", "public StudentFee() {\n }", "public Student(String name, int age, char gender, int year, String course) {\r\n\t\tthis.name = name;\r\n\t\tthis.age = age;\r\n\t\tthis.gender = gender;\r\n\t\tthis.year = year;\r\n\t\tthis.course = course;\r\n\t}", "@Override\n public void createStudent(Student student) throws ClassRosterDuplicateIdException, ClassRosterDataValidationException, ClassRosterPersistenceException {\n if (dao.getStudent(student.getStudentId()) != null) {\n throw new ClassRosterDuplicateIdException(\"ERROR: Could not create student. Student Id \" + student.getStudentId() + \" already exists\");\n }\n \n // RULE TWO: is the student valid\n validateStudentData(student);\n \n // RULE THREE: Pass data to DAO\n dao.addStudent(student.getStudentId(), student);\n auditDao.writeAuditEntry(\"Student \" + student.getStudentId() + \" CREATED.\");\n }", "@PostMapping(\"student-create\")\n\tpublic String createStudentDetails(@RequestBody Student student) throws SQLException {\n\n\t\treturn studentSerivce.createStudentDetails(student);\n\t}", "@Override\n\t\t\tpublic Student executor(Object... parameters) {\n\t\t\t\tStudent s=new Student();\n\t\t\t\ts.setId(Integer.parseInt(parameters[0].toString()));\n\t\t\t\ts.setName(parameters[1].toString());\n\t\t\t\treturn s;\n\t\t\t}", "static void initializeStudentSystem() {\r\n\r\n Course math = new Course(\"1000\", \"Mathematics\", \"College of Science\");\r\n Course computing = new Course(\"1001\", \"Computing\", \"College of Engineering\");\r\n Course english = new Course(\"1002\", \"English\", \"College of Liberal Arts\");\r\n Course history = new Course(\"1003\", \"History\", \"College of Liberal Arts\");\r\n Course biology = new Course(\"1004\", \"Biology\", \"College of Science\");\r\n courses.put(math.getCRN(), math);\r\n courses.put(computing.getCRN(), computing);\r\n courses.put(english.getCRN(), english);\r\n courses.put(history.getCRN(), history);\r\n courses.put(biology.getCRN(), biology);\r\n //\r\n User admin = new User();\r\n admin.setUsername(\"admin\");\r\n admin.setPassword(\"admin\");\r\n admin.setAccountType(4);\r\n accounts.put(admin.getUsername(), admin);\r\n //\r\n Student defaultStudent = new Student();\r\n defaultStudent.setName(\"Jose Cabrera\");\r\n defaultStudent.setUsername(\"John1\");\r\n defaultStudent.setPassword(\"123\");\r\n defaultStudent.setId(\"80539934\");\r\n defaultStudent.setMajor(\"CS\");\r\n defaultStudent.setAccountType(1);\r\n defaultStudent.setGraduationStatus(21);\r\n accounts.put(\"John1\", defaultStudent);\r\n //\r\n Student defaultStudent2 = new Student();\r\n defaultStudent2.setName(\"Raul Hinostroza\");\r\n defaultStudent2.setUsername(\"John2\");\r\n defaultStudent2.setPassword(\"123\");\r\n defaultStudent2.setId(\"805393\");\r\n defaultStudent2.setMajor(\"CS\");\r\n defaultStudent2.setAccountType(1);\r\n accounts.put(\"John2\", defaultStudent2);\r\n //\r\n Student defaultStudent3 = new Student();\r\n defaultStudent3.setName(\"Max Morales\");\r\n defaultStudent3.setUsername(\"John3\");\r\n defaultStudent3.setPassword(\"123\");\r\n defaultStudent3.setId(\"8053923\");\r\n defaultStudent3.setMajor(\"CS\");\r\n defaultStudent3.setAccountType(1);\r\n accounts.put(\"John3\", defaultStudent3);\r\n defaultStudent.addCourses(\"1000\");\r\n defaultStudent2.addCourses(\"1000\");\r\n defaultStudent3.addCourses(\"1000\");\r\n //\r\n Faculty defaultFaculty = new Faculty();\r\n defaultFaculty.setAccountType(2);\r\n defaultFaculty.setName(\"Smith\");\r\n defaultFaculty.setUsername(\"Smith1\");\r\n defaultFaculty.setPassword(\"123\");\r\n accounts.put(defaultFaculty.getUsername(), defaultFaculty);\r\n //\r\n Staff defaultStaff = new Staff();\r\n defaultStaff.setAccountType(3);\r\n defaultStaff.setName(\"Smith\");\r\n defaultStaff.setUsername(\"Smith2\");\r\n defaultStaff.setPassword(\"123\");\r\n accounts.put(defaultStaff.getUsername(), defaultStaff);\r\n }", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException, CloneNotSupportedException {\n\t\tStudent st = new Student();\n\t\tst.setName(\"Madan\");\n\t\t\n\t\t//2 Using new instance method of class\n\t\tStudent st1 = (Student) Class.forName(\"com.home.Student\").newInstance();\n\t\tst1.setName(\"Mohan\");\n\t\t\n\t\t\n\t\t//3 using new instance of constructor\n\t\tConstructor<Student> cs = Student.class.getConstructor();\t\t\n\t\tStudent st2 = cs.newInstance();\n\t\tst2.setName(\"Nautiyal\");\n\t\t\n\t\t//4 using clone method\n\t\tStudent st3 = (Student) st.clone();\n\t\t\n\t\t\n\t\tSystem.out.println(\"Object 1 \" + st.getName());\n\t\tSystem.out.println(\"Object 2 \"+ st1.getName());\n\t\tSystem.out.println(\"Object 3 \"+st2.getName());\n\t\tSystem.out.println(\"Object 4 \"+st3.getName());\n\n\t\t\n\t}" ]
[ "0.8421047", "0.77433187", "0.7698441", "0.7571628", "0.75565064", "0.75242966", "0.75242966", "0.75242966", "0.74497", "0.72694874", "0.7269131", "0.7207016", "0.720428", "0.7131511", "0.7116238", "0.70697564", "0.7065754", "0.70593727", "0.7006932", "0.6964567", "0.6945775", "0.69253683", "0.6924718", "0.6911666", "0.6901267", "0.68697065", "0.68540853", "0.6849606", "0.6818952", "0.6817315", "0.6812564", "0.68120015", "0.68036985", "0.6766656", "0.6729251", "0.672764", "0.6724949", "0.6719804", "0.6652518", "0.6624559", "0.66123945", "0.66085047", "0.66065997", "0.6606372", "0.6587615", "0.6585162", "0.65748423", "0.65507245", "0.65483415", "0.65452665", "0.65433556", "0.6541859", "0.6536405", "0.65310484", "0.65163445", "0.6511796", "0.6502954", "0.6465799", "0.64596915", "0.645711", "0.6448831", "0.64233536", "0.6421951", "0.64091706", "0.63903356", "0.638306", "0.6373815", "0.63645035", "0.6361573", "0.636002", "0.63542145", "0.63526803", "0.63417536", "0.6330966", "0.632504", "0.63247836", "0.6304646", "0.62948936", "0.6276445", "0.62666196", "0.6251513", "0.623265", "0.62202126", "0.6210938", "0.62071323", "0.62026113", "0.61993766", "0.6187309", "0.61871934", "0.6176084", "0.6173032", "0.6151992", "0.615045", "0.6146447", "0.6132184", "0.612353", "0.61190647", "0.6117975", "0.6112328", "0.61114174" ]
0.703695
18
Get the student name.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getStudent_name() {\n\t\treturn _primarySchoolStudent.getStudent_name();\n\t}", "public String getName() \r\n {\r\n return studentName;\r\n }", "public String getStudentName() {\r\n\t\treturn studentName;\r\n\t}", "@AutoEscape\n\tpublic String getStudentName();", "public String getStudentName() {\n\t\treturn studentName;\n\t}", "public String getStudentName() {\n return studentName;\n }", "public String getStudentName() {\n return studentName;\n }", "public static String getStudentName(int rollNum) {\r\n\t\tMap<Integer,Student> map = getStudentMap();\r\n\t\tif(map.containsKey(rollNum)) { \r\n\t\t\tStudent st = map.get(rollNum);\r\n\t\t\treturn st.getName();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getName(){\r\n\t\tString s=\"\";\r\n\r\n\t\tif(getPersonId() != null && getPersonId().length() != 0)\r\n\t\t\ts += \" \" + getPersonId();\r\n\t\t\r\n\t\tif(getStudySubjectId() != null && getStudySubjectId().length() != 0)\r\n\t\t\ts += \" \" + getStudySubjectId();\r\n\r\n\t\tif(getSecondaryId() != null && getSecondaryId().length() != 0)\r\n\t\t\ts += \" \" + getSecondaryId();\r\n\r\n\t\treturn s;\r\n\t}", "java.lang.String getSchoolName();", "public String getName (){\r\n return firstName + \" \" + lastName;\r\n }", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "public String getName() {\r\n\t\treturn firstName + \" \" + lastName;\r\n\t}", "public String getName() {\n return firstName + \" \" + lastName;\n }", "public String getName(){\n\t\treturn this.firstName + \" \" + this.surname;\r\n\t}", "java.lang.String getCourseName();", "public String getName()\n {\n return foreName + \" \" + lastName;\n }", "public java.lang.String getStudent_schoolName() {\n\t\treturn _primarySchoolStudent.getStudent_schoolName();\n\t}", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getName() {\n return sname;\n }", "public java.lang.String getStudent_contactName() {\n\t\treturn _primarySchoolStudent.getStudent_contactName();\n\t}", "public String getSname() {\n return sname;\n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getsName() {\n return sName;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getName() {\n return stid.trim() + std2.trim();\n }", "public String getName() {\n return lastname + \", \" + firstname;\n }", "public String getStudentName() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// getter method initialized\r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter the Student Name : \");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// This will print the argument at the end of the line\r\n try{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// Try Block Started\r\n studentName= scanner.nextLine();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// Read String input from the User\r\n }catch (InputMismatchException e) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// Try block closed and catch statement started for InputMismatchException\r\n System.out.println(\"Invalid Format - Please enter the Student Name again\");}\t\t\t\t\t\t\t \t// This will print the argument at the end of the line\r\n return studentName;}", "java.lang.String getEmployeeName();", "public String getTheName() {\n\t\treturn name.getText();\n\t}", "public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }", "public java.lang.String getName();", "public String getName() {\n return name + \"\";\n }", "public void getStudentNameStudentDsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_list_studname_dsc = db.getStudentNameAllEnquiryStudentDsc();\n\t\tIterator itr = student_name_list_studname_dsc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}", "public String getStudentName(){\n return studentName.getText().trim();\n }", "private String getName() {\n System.out.println(\"Enter contact name\");\n return scannerForAddressBook.scannerProvider().nextLine();\n }", "public static String findStudentname(String student_id) throws SQLException\n\t{\n\t\tResultSet student;\n\t\tString full_name;\n\t\tList<String> first_name;\n\t\tList<String> middle_name;\n\t\tList<String> last_name;\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tfirst_name = test.writeResultSet(student, \"First_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tmiddle_name = test.writeResultSet(student, \"Middle_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\t\t\n\t\tlast_name = test.writeResultSet(student, \"Last_name\");\n\t\t//System.out.println(first_name);\n\t\tfull_name = last_name.get(0) +\", \"+ first_name.get(0) + \" \" + middle_name.get(0);\n\t\treturn full_name;\n\t}", "public java.lang.String getSchoolName() {\n java.lang.Object ref = schoolName_;\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 schoolName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getNameAsString()\n {\n return getName().toString();\n }", "public String getName() {\n return String.format(\"%s %s\", getFirst(), getLast());\n }", "String fullName();", "public static String getFirstName() {\n String firstName = \"George\";\n String lastName = \"Washington\";\n return lastName;\n }", "public java.lang.CharSequence getName() {\n return name;\n }", "@NonNull\n String getName();", "public java.lang.CharSequence getName() {\n return name;\n }", "public String getSchoolName() {\r\n return tfSchoolName.getText().trim();\r\n }", "public java.lang.String getSchoolName() {\n java.lang.Object ref = schoolName_;\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 schoolName_ = s;\n return s;\n }\n }", "String getFirstName();", "String getFirstName();" ]
[ "0.83438647", "0.8224323", "0.80595875", "0.8053583", "0.79939073", "0.77743596", "0.77743596", "0.74504644", "0.7395612", "0.7380758", "0.7289177", "0.72328514", "0.7221249", "0.71994704", "0.71676385", "0.7123197", "0.7098305", "0.7089956", "0.7081266", "0.7070321", "0.704899", "0.7035092", "0.70213085", "0.70213085", "0.7000748", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6990946", "0.6988404", "0.696377", "0.69522256", "0.694651", "0.69163746", "0.68826944", "0.68538815", "0.6835055", "0.6833716", "0.6829022", "0.6827632", "0.6816463", "0.6797261", "0.67917097", "0.67825204", "0.67752516", "0.67730373", "0.6760424", "0.67580485", "0.674362", "0.6740436", "0.6729716", "0.6723282", "0.6723282" ]
0.0
-1
Add a class to the student class list.
public void addClass(String className) { classes.add(className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addClass(Class c) { // adding a single class\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_ID, c.getID());\n\t\tvalues.put(KEY_TAKENIN, c.getTakenIn());\n\n\t\t/*\n\t\t * values.put(KEY_ID, 1234567890); values.put(KEY_MAJORN, \"123\");\n\t\t * values.put(KEY_CLASSN, \"123\"); values.put(KEY_TITLE, \"123\");\n\t\t * values.put(KEY_UNITS, 123); values.put(KEY_DESCRIPTION, \"123\");\n\t\t * values.put(KEY_FALL, 1); values.put(KEY_SPRING, 0);\n\t\t */\n\t\t// Inserting Row\n\t\tdb.insert(TABLE_USERCLASSES, null, values);\n\t\tdb.close(); // Closing database connection\n\t}", "public void addClassItem(WjrClassItem classItem) {\r\n checkNotNull(classItem, \"The classItem parameter is null.\");\r\n\r\n String className = classItem.getClassName();\r\n checkState(\r\n !classItems.containsKey(className),\r\n \"The %s has already existed.\",\r\n className);\r\n\r\n classItems.put(className, classItem);\r\n }", "public void addClass(String classId) {\n\t\t\r\n\t}", "public boolean addClass(String cls) {\n\t\tContentValues newClass = new ContentValues();\n\t\tnewClass.put(DbContract.Classes.ATTRIBUTE_NAME, cls);\n\t\t\n\t\ttry {\n\t\t\ttheDb.insertOrThrow(DbContract.Classes.TABLE_NAME, null, newClass);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t\treturn false;\n\t\t}\n\t\t//Successful (supposedly)\n\t\tSystem.out.println(cls + \" added to Class table.\");\n\t\treturn true;\n\t}", "@Override\n public boolean studentAddClass(Token token, int courseID, String grading, String courseTerm) {\n // TODO Auto-generated method stub\n Student student = new Student();\n return student.studentAddClass(token, courseID, grading, courseTerm);\n\n }", "public static void addNewClass(Class c, int userId)\n\t{\n\t\tString classCode = c.getClassCode();\n\t\tString className = c.getClassName();\n\t\tString sql = \"INSERT INTO Class (classCode, className, instructorID) \"\n\t\t\t\t+ \"VALUES (?, ?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, classCode);\n\t\t\tps.setString(2, className);\n\t\t\tps.setInt(3, userId);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void add(Student s)\r\n {\r\n students.add(s);\r\n }", "public void addClass(ClassItem _classItem) {\n\t\tclassItem.add(_classItem);\n\t\t_classItem.parentTable=this;\n\t}", "public static void register(Class<?> c) {\r\n\t\tassert c != null;\t\t\r\n\t\tclasses.add(c);\t//appends c to the end of the list\r\n\t}", "public void addStudent(Student x) {\n\t\tif (studlist.size() < maxstudents) {\n\t\t\tstudlist.add(x);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Class is full.\");\n\t\t}\n\t}", "@FXML\r\n\tpublic void addClass(ActionEvent event) {\r\n\t\ttry {\r\n\t\t\tclasses.insert(Integer.parseInt(currentUser[0]), newclass.getText(), Integer.parseInt(credit.getText()),\r\n\t\t\t\t\tgrade.getText());\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void addTitleToChosenClassList(String classTitle) {\n if (!mChosenClassesList.contains(classTitle)) {\n mChosenClassesList.add(classTitle);\n String classList = TextUtils.join(\", \", mChosenClassesList);\n mStudentClassesTextView.setVisibility(View.VISIBLE);\n mStudentClassesTextView.setText(classList);\n }\n }", "@RequestMapping(method = RequestMethod.PUT, value = \"/{classId}/assignStudent/{studentId}\")\n\tpublic ResponseEntity<?> addStudentToClass(@PathVariable Integer classId, \n\t\t\t@PathVariable Integer studentId) {\t\t\n\t\t\n\t\tif (classRepository.existsById(classId) && studentRepository.existsById(studentId)) {\n\t\t\tif (!(studentRepository.existsClass(classId, studentId) >= 1)) {\n\t\t\t\tClassEntity classs= classRepository.findById(classId).get();\n\t\t\t\tStudentEntity student = studentRepository.findById(studentId).get();\n\t\t\t\tList<StudentEntity> students = new ArrayList<>();\n\t\t\t\tstudent.setClasss(classs);\n\t\t\t\tstudents.add(student);\n\t\t\t\tclasss.setStudents(students);\n\t\t\t\tclassRepository.save(classs);\n\t\t\t\tstudentRepository.save(student);\n\t\t\t\tlogger.info(\"Student with id number \" + studentId + \" added to class with id number \" + classId);\n\t\t\t\treturn new ResponseEntity<ClassEntity>(classs, HttpStatus.OK);\n\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(HttpStatus.BAD_REQUEST.value(),\n\t\t\t\t\t\t\"Student with id number \" + studentId + \" is already assigned to class with id number \" + classId), HttpStatus.BAD_REQUEST);\n\t\t\t}\n\t\t} else {\n\t\t\tif (!classRepository.existsById(classId)) {\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(HttpStatus.NOT_FOUND.value(), \"Class with id number \" + classId+ \" not found\"), HttpStatus.NOT_FOUND);\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(HttpStatus.NOT_FOUND.value(), \"Student with id number \" + studentId + \" not found\"), HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}\n\t}", "public void add(ClassFile classFile) {\n throwIfClassNameDoesNotMatch(classFile, classFilePath);\n list.add(classFile);\n }", "public void add(Student student) {\n\t\tstudentList.add(student);\n\t}", "public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}", "public void addStudent(Student student) {\n students.add(student);\n }", "public void addAuxClasss(Collection auxClasss);", "protected void addStudentClass(ActionEvent ae) {\n\t\tAddStudentClassFrm sca = new AddStudentClassFrm();\n\t\tsca.setVisible(true);\n\t\tdesktopPane.add(sca);\n\t}", "@Override\n\tpublic void addClazz(Clazz clazz) {\n\t\tclazzDao.addClazz(clazz);\n\t}", "public void addClass(SassyClass myClass) {\n\t\tif(!this.classMap.containsKey(myClass.getClassName())) {\n\t\t\tthis.classMap.put(myClass.getClassName(), myClass);\n\t\t}\n\t}", "private void addStudents() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"u\");\n String className = SchoolClassHandler.getTimetable().getClassName(new Integer(sdf.format(new Date())), new Date());\n\n addButton(className);\n }", "public void add(Student s1){\r\n // add student object to list\r\n this.studentList.add(s1);\r\n // then sort list\r\n Collections.sort(this.studentList);\r\n }", "void addClasses(String... classNames) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException;", "protected void addClass ( Class<? extends Object> c ) {\n if ( log.isDebugEnabled() ) {\n log.debug(\"Adding class: \" + c.getName()); //$NON-NLS-1$\n }\n synchronized ( this.dynamicEntityClasses ) {\n this.dynamicEntityClasses.add(c);\n }\n\n }", "public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}", "public void addClassToTeacher(Classes teacher_class) {\n db.addClassToTeacher(teacher_class);\n }", "void registerInstantiating (ClassType c) {\r\n if (instantiating_classes == null) \r\n instantiating_classes = new ClassList ();\r\n else if (instantiating_classes.contains (c)) \r\n return;\r\n\r\n instantiating_classes.add (c);\r\n }", "public void addClass(String className){\n getElement().addClassName(className);\n }", "public static void addStudentToClass(String classCode, int userId)\n\t{\n\t\tString sql = \"INSERT INTO ClassMember (studentID, classcode) \"\n\t\t\t\t+ \"VALUES (?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, userId);\n\t\t\tps.setString(2, classCode);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void addAnnotatedClass( Class clazz );", "@Override\n public void addStudent(Student student) {}", "@Override\n public boolean adminAddClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int courseCapacity, String term, int instructorID, String firstDay, String lastDay, String classBeginTime,\n String classEndTime, String weekDays, String location, String type, String prerequisite, String description,\n String department) {\n\n try {\n return adminAddClass1(token, courseID, courseName, courseCredits, courseCapacity, term, instructorID,\n firstDay, lastDay, classBeginTime, classEndTime, weekDays, location, type, prerequisite,\n description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n\n return false;\n\n }\n }", "public void addStudent(Student student) {\n\t\t\r\n\t}", "public void addClass(String className) \n\t{\n\t\tstoreViewState();\n\t\tproject.addClass(className);\n\t\tcheckStatus();\n\t}", "public static ArrayList<Class> getClassesFromStudent(Student s)\n\t{\n\t\tint studentId = s.getUserId();\n\t\tString sql = \"SELECT c.classcode, c.classname, i.* FROM UserInfo i, ClassMember cm, Class c \"\n\t\t\t\t+ \"WHERE cm.studentID = ? \"\n\t\t\t\t+ \"AND cm.classcode = c.classcode AND c.instructorID = i.userID\";\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, studentId);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tString className = rs.getString(\"classname\");\n\t\t\t\tString classCode = rs.getString(\"classcode\");\n\t\t\t\tString name = rs.getString(\"firstname\") + \" \" + rs.getString(\"lastname\");\n\t\t\t\tString email = rs.getString(\"email\");\n\t\t\t\tint userId = rs.getInt(\"userID\");\n\t\t\t\tInstructor i = new Instructor(name, email, userId);\n\t\t\t\tClass c = new Class(i, className, classCode);\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn classes;\n\t}", "public void addMainClass(MainClassItem classItem) {\n\t\tmainClassItem=classItem;\n\t\tclassItem.parentTable=this;\n\t}", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "void addClass(ClassDefinition cd) throws ResultException, DmcValueException {\n\n// if (checkAndAdd(cd.getObjectName(),cd,classDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(cd.getObjectName(),cd,classDefs,\"class names\"));\n// \tthrow(ex);\n// }\n \n classDefinitions.add(cd);\n \n // This name is used to identify references to the class\n DotName refName \t= new DotName((DotName) cd.getDotName().getParentName(),\"ClassDefinitionREF\");\n \n if (debugClassAdditions)\n \tDebugInfo.debug(\"Adding class: \" + cd.getDotName() + \" \" + refName);\n \n if (checkAndAddDOT(cd.getDotName(),cd,globallyUniqueMAP,refName) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(cd.getObjectName(),cd,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n\n // TODO: revisit abbreviations - this was originally required for LDAP naming, which, if\n // it's ever done, should be handled in the LDAP mechanisms.\n// if (cd.getAbbrev() != null){\n// // We have an abbreviation - so it must also be unique and\n// // added to the appropriate maps\n// \tDefinitionName abbrevName = new DefinitionName(cd.getAbbrev());\n// if (checkAndAdd(abbrevName,cd,classDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(abbrevName,cd,classDefs,\"class abbreviations\"));\n// \tthrow(ex);\n// }\n// \n// DotName dotAbbrevName = new DotName(cd.getDefinedIn().getName() + \".\" + cd.getAbbrev());\n// \n// if (checkAndAddDOT(dotAbbrevName,cd,globallyUniqueMAP,null) == false){\n// DefinitionName errName = new DefinitionName(cd.getDefinedIn().getName() + \".\" + cd.getAbbrev());\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsgDOT(errName,cd,globallyUniqueMAP,\"definition names\"));\n// throw(ex);\n// }\n// \n// classAbbrevs.put(abbrevName,cd);\n// }\n \n ///////////////////////////////////////////////////////////////////////\n \n if (cd.getDmdID() == null){\n \tResultException ex = new ResultException(\"Missing dmdID for class: \" + cd.getName());\n \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n \tthrow(ex);\n }\n\n if (cd.getDefinedIn() == null){\n \tResultException ex = new ResultException(\"definedIn missing for class: \" + cd.getName());\n \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n \tthrow(ex);\n }\n else{\n \tif (performIDChecks){\n\t \tif ( (cd.getDefinedIn().getSchemaBaseID() == null) ||\n\t \t\t (cd.getDefinedIn().getSchemaIDRange() == null) ){\n\t \tResultException ex = new ResultException(\"schemaBaseID or schemaIDRange missing for schema: \" + cd.getDefinedIn().getName());\n\t \tthrow(ex);\n\t \t}\n \t}\n \t\n }\n \n if (performIDChecks){\n\t // Bump up the DMD ID by the amount of schemaBaseID\n\t int base = cd.getDefinedIn().getSchemaBaseID();\n\t int range = cd.getDefinedIn().getSchemaIDRange();\n\t int current = base + cd.getDmdID();\n\t \n\t if (current > (base+range)){\n\t \tResultException ex = new ResultException(\"Number of classes exceeds schema ID range: \" + cd.getName());\n\t \tex.moreMessages(\"The dmdID must be less than \" + range);\n\t \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n\t \tthrow(ex); \t\n\t }\t \t\n\n\t cd.setDmdID(base + current);\n }\n \n if (classesByID.get(cd.getDmdID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(cd.getDmdID(),cd,classesByID,\"dmdID\"));\n \tthrow(ex);\n }\n classesByID.put(cd.getDmdID(), cd);\n \n ///////////////////////////////////////////////////////////////////////\n\n if (cd.getObjectName().getNameString().length() > longestClassName)\n longestClassName = cd.getObjectName().getNameString().length();\n\n // Another bit of trickiness here. We don't resolve references for the entire schema\n // until we've loaded the whole thing, but, in this case, we need to pre-resolve\n // the ClassDefinition - which should be okay, because classes are the last things\n // that're loaded.\n try {\n\t\t\tcd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\t\t\t\n\t\t\tResultException ex = new ResultException();\n\t\t\tex.addError(\"Unresolved references in ClassDefinition: \" + cd.getName());\n\t\t\tex.addError(cd.toOIF());\n\t\t\t\n\t\t\tfor(DmcValueException dve : e.getExceptions()){\n\t\t\t\tex.moreMessages(dve.getMessage());\n\t\t\t}\n\t\t\tthrow(ex);\n\t\t}\n \n if (cd.getDerivedFrom() != null){\n cd.getDerivedFrom().updateDerived(cd);\n }\n \n cd.setDmoImport(cd.getDefinedIn().getSchemaPackage() + \".generated.dmo.\" + cd.getName() + \"DMO\");\n cd.setDmoClass(cd.getName() + \"DMO\");\n \n cd.setDmwImport(cd.getDefinedIn().getDmwPackage() + \".generated.dmw.\" + cd.getName() + \"DMW\");\n cd.setDmwClass(cd.getName() + \"DMW\");\n \n cd.setDmwIteratorImport(cd.getDefinedIn().getDmwPackage() + \".generated.dmw.\" + cd.getName() + \"IterableDMW\");\n cd.setDmwIteratorClass(cd.getName() + \"IterableDMW\");\n \n cd.setDmtImport(cd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + cd.getName() + \"REF\");\n cd.setDmtREFImport(cd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + cd.getName() + \"REF\");\n cd.setDmtClass(cd.getName() + \"REF\");\n \n if (cd.getUseWrapperType() == WrapperTypeEnum.EXTENDED){\n \tif (cd.getSubpackage() == null)\n \tcd.setDmeImport(cd.getDefinedIn().getDmwPackage() + \".extended.\" + cd.getName()); \t\t\n \telse\n \tcd.setDmeImport(cd.getDefinedIn().getDmwPackage() + \".extended.\" + cd.getSubpackage() + \".\" + cd.getName());\n cd.setDmeClass(cd.getName());\n }\n else{\n cd.setDmeImport(\"THE WRAPPER FOR \" + cd.getName() + \" ISN'T EXTENDED - YOU'VE GOT A CODE GENERATION ERROR! DWEEB!\"); \t\t\n cd.setDmeClass(\"THE WRAPPER FOR \" + cd.getName() + \" ISN'T EXTENDED - YOU'VE GOT A CODE GENERATION ERROR! DWEEB!\");\n }\n \n if (cd.getClassType() == ClassTypeEnum.AUXILIARY){\n \tcd.setDmoAuxClass(cd.getName() + \"DMO\");\n \tcd.setDmoAuxClassImport(cd.getDefinedIn().getSchemaPackage() + \".generated.auxw.\" + cd.getName() + \"DMO\");\n \t\n \tif (cd.getDefinedIn().getDmwPackage() != null){\n \tcd.setDmwAuxClass(cd.getName());\n \tcd.setDmwAuxClassImport(cd.getDefinedIn().getDmwPackage() + \".generated.auxw.\" + cd.getName());\n \t}\n }\n \n // And now, set the java class that will be used with the DmwObjectFactory\n if (cd.getJavaClass() == null){\n \tif (cd.getUseWrapperType() == WrapperTypeEnum.BASE)\n \t\tcd.setJavaClass(cd.getDmwImport());\n \telse if (cd.getUseWrapperType() == WrapperTypeEnum.EXTENDED){\n \t\tcd.setJavaClass(cd.getDmeImport());\n \t}\n }\n \n // Add the class to our java class to class definition map\n classesByJavaClass.put(cd.getJavaClass(), cd);\n \n Iterator<AttributeDefinition> adit = null;\n if ( (adit = cd.getMay()) != null){\n while(adit.hasNext()){\n AttributeDefinition ad = adit.next();\n ad.addUsingClass(cd);\n }\n }\n\n if ( (adit = cd.getMust()) != null){\n while(adit.hasNext()){\n AttributeDefinition ad = adit.next();\n ad.addUsingClass(cd);\n }\n }\n \n Iterator<ActionDefinition> acdit = null;\n if ( (acdit = cd.getActions()) != null){\n while(acdit.hasNext()){\n ActionDefinition ad = acdit.next();\n ad.addUsingClass(cd);\n }\n }\n \n \t////////////////////////////////////////////////////////////////////////////////\n \t// CREATE INTERNAL TYPE FOR REFERENCES\n \n if (cd.getClassType() != ClassTypeEnum.AUXILIARY){\n\t // Things get a little tricky here - we want to be able to refer to objects without\n\t // having to manually define wrapper types for them, so we create internal TypeDefinitions\n\t // for them. The internal type is DmcType<classname>REF.\n\t \n\t TypeDefinition td = new TypeDefinition();\n\t \n\t td.setInternallyGenerated(true);\n\t td.setName(cd.getName());\n\t \n\t // The name of a class definition is schema.class.ClassDefinition\n\t // For the associated type, it will be schema.class.TypeDefinition\n\t DotName typeName \t= new DotName((DotName) cd.getDotName().getParentName(),\"TypeDefinition\");\n//\t DotName nameAndTypeName \t= new DotName(td.getName() + \".TypeDefinition\");\n\t \n\t td.setDotName(typeName);\n//\t td.setNameAndTypeName(nameAndTypeName);\n\t \n\t td.addDescription(\"This is an internally generated type to allow references to \" + cd.getName() + \" values.\");\n\t td.setIsEnumType(false);\n\t td.setIsRefType(true);\n\t \n\t if (cd.getIsNamedBy() != null){\n\t \t// We only need a helper class when we have named objects - regular old object references\n\t \t// can get by without this\n\t \ttd.setHelperClassName(cd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + cd.getName() + \"REF\");\n\t \t\n\t \t// TODO: MAKE THIS A RULE\n\t \tif (cd.getIsNamedBy().getValueType() != ValueTypeEnum.SINGLE){\n\t \t\tResultException ex = new ResultException();\n\t \t\tex.addError(\"The naming attribute: \" + cd.getIsNamedBy().getName() + \" for class: \" + cd.getName() + \" must be valueType SINGLE\");\n\t \t\tex.result.lastResult().fileName(cd.getIsNamedBy().getFile());\n\t \t\tex.result.lastResult().lineNumber(cd.getIsNamedBy().getLineNumber());\n\t \t\tthrow(ex);\n\t \t}\n\t }\n\t \n\t td.setTypeClassName(cd.getDmtImport());\n\t td.setPrimitiveType(cd.getDmoImport());\n\t td.setDefinedIn(cd.getDefinedIn());\n\t \n\t if (cd.getJavaClass() != null){\n\t \t// Tricky stuff needed for code generation. If the ClassDefinition has a javaClass specified,\n\t \t// it means that the object is wrapped and we need this javaClass to know what the auxHolder\n\t \t// type should be in the generated wrapper class.\n\t \ttd.setAuxHolderImport(cd.getJavaClass());\n\t }\n\t \n\t td.setDmwIteratorClass(cd.getDmwIteratorClass());\n\t td.setDmwIteratorImport(cd.getDmwIteratorImport());\n\t \n\t // Set a reference to the original class so that we can get any of its info\n\t // if required.\n\t td.setOriginalClass(cd);\n\n\t // Set the class's internally generated type so that we can resolve references\n\t // to the class used as a type\n\t cd.setInternalTypeRef(td);\n\t \n\t // We add the new type to the schema's list of internally generated types\n\t cd.getDefinedIn().addInternalTypeDefList(td);\n\t \n\t internalTypeDefs.put(td.getName(), td);\n\t \n\t if (checkAndAddDOT(td.getDotName(),td,globallyUniqueMAP,null) == false){\n\t \tResultException ex = new ResultException();\n\t \tex.addError(clashMsgDOT(td.getObjectName(),td,globallyUniqueMAP,\"definition names\"));\n\t \tthrow(ex);\n\t }\n\n }\n\n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addClass(cd);\n \t}\n }\n\n }", "void registerAsUsed (ClassType c, int pos) {\r\n if (used_classes == null) {\r\n used_classes = new java.util.Vector ();\r\n used_class_offsets = new java.util.Vector ();\r\n }\r\n used_classes.addElement (c);\r\n used_class_offsets.addElement (new Integer (pos));\r\n }", "@Override\n\tpublic void gstudentAdd(Gstudent gstudent) {\n\t\tGstudentMapper.gstudentAdd(gstudent);\n\t}", "public void processAdding() {\n\t\t\n\t\tString iD = idIn.getText();\n\t\tString clName = classIn.getText();\n\t\tString tutName = tutorIn.getText();\n\n\t\tif (tutName.isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a tutor name\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\telse if (clName.isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a class name\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\telse {\n\n\t\t\tint full = fitnessProg.getFirstAvailableClassTime();\n\n\t\t\tif (full == 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"There are no available class times\",\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\n\t\t\telse {\n\n\t\t\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\n\n\t\t\t\tif (fc == null){\n\n\t\t\t\t\tint availableTime = fitnessProg.getFirstAvailableClassTime();\n\t\t\t\t\tFitnessClass newFC = new FitnessClass();\n\t\t\t\t\tnewFC.setClassID(iD);\n\t\t\t\t\tnewFC.setClassName(clName);\n\t\t\t\t\tnewFC.setStartTime(availableTime);\n\t\t\t\t\tnewFC.setTutorName(tutName);\n\t\t\t\t\tint [] newAttRecords = {0,0,0,0,0};\n\t\t\t\t\tnewFC.setAttendanceRecords(newAttRecords);\n\t\t\t\t\tfitnessProg.addFitnessClass(newFC);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"There is already a class scheduled with this ID\",\n\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addStudent(Student student);", "public void addStudent(String key, Student stu) {\n\t\tthis.list.put(key, stu);\n\t}", "public void addGraphicalClass(A_Class c) {\r\n\r\n\t\t//update ui\r\n\t\tG_Class frame1 = new G_Class(c, this);\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tListenerGclass listener = new ListenerGclass(frame1, this);\r\n\t\t\r\n\t\tlistClasses.put(c, frame1);\r\n\t\tthis.add(frame1);\r\n\t\t\r\n\t\tthis.repaint();\r\n\t\tSystem.out.println(diagram.display());\r\n\t}", "public void addClass();", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "public void setStudentList(DatabaseStudent student){\n this.studentSet.add(student);\n }", "private void processClassParentNode(Element node) {\n ClassDataItem cls = new ClassDataItem(node.attributeValue(\"name\"), node.attributeValue(DESCRIPTION_ATTRIBUTE));\n\n Iterator childNodes = node.elementIterator();\n\n while (childNodes.hasNext()) {\n cls.addChildNode(((Element) childNodes.next()).attributeValue(\"name\"));\n }\n\n classes.add(cls);\n }", "public void classify(Sample sample, String classificationName) {\n classifiedSamples.add(sample);\n SampleClassification classification = getClassification(classificationName);\n sampleClassificationMap.put(sample, classification);\n }", "public void inProcess(Class<?> cls) {\n inProcess.add(cls);\n }", "@Override\n public void addStudent(String firstName, String lastName, int age, Set<Course> courses) {}", "public void addAuxClass(IJavaClassFile newAuxClass);", "@Override\n public boolean adminAddStudentToClass(Token token, int studentID, int courseID, String grading, String courseTerm) {\n try {\n adminAddStudentToClass1(token, studentID, courseID, grading, courseTerm);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "public void addStudent(Student newStudent) {\n if (studentCount >= MAXSTUDENT) {\n throw new IllegalArgumentException(\"There are too many students in \"\n + \"the course!\");\n } else {\n studentList.add(newStudent);\n studentCount++;\n }\n }", "void registerReferencing (ClassType c) {\r\n if (referencing_classes == null) \r\n referencing_classes = new ClassList ();\r\n else if (referencing_classes.contains (c)) \r\n return;\r\n\r\n referencing_classes.add (c);\r\n }", "public void onClick(View arg0) {\n Intent nextScreen = new Intent(NewClass.this, ListClass.class);\r\n\r\n String name = inputName.getText().toString();\r\n String num = inputNum.getText().toString();\r\n int newNum = Integer.parseInt(num);\r\n ListClass.items.add(new Class(name,newNum));\r\n Log.i(TAG, \"Before startActivity\");\r\n // starting new activity\r\n startActivity(nextScreen);\r\n Log.i(TAG, \"After startActivity\");\r\n\r\n }", "private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}", "public static void addStudent(ArrayList<Student> sList,int x){\n\t\tfor(int i=0;i<x;i++){\n\t\t\tsList.add(new Student());\n\t\t}\n\t}", "void initClasses() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all classes\n\t\tList<BdsNode> cdecls = BdsNodeWalker.findNodes(programUnit, ClassDeclaration.class, true, true);\n\t\tfor (BdsNode n : cdecls) {\n\t\t\tClassDeclaration cd = (ClassDeclaration) n;\n\t\t\tbdsvm.addType(cd.getType());\n\t\t}\n\t}", "public boolean addNew(Student st){\n for(Student stItem : listStudents){\r\n // check for duplicate id\r\n if(stItem.getId() == st.getId()) return false;\r\n \r\n// if(checkRule(stItem, st)) break;\r\n// else return false;\r\n \r\n }\r\n this.listStudents.add(st);\r\n return true;\r\n }", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "@Override\n\tpublic void addClasse(Classe m) {\n\t\tclasseRepo.save(m);\n\t}", "public void setClass_(String newValue);", "public void addStudent(String theStudent) {\n\t\tstudents[numberOfStudents] = theStudent;\n\t\tnumberOfStudents++; // Upadate the total number of students\n\t}", "public void insertStudent(Student newStudent)\n\t{\n\t\tif (numStudents < students.length) {\n\t\t\tstudents[numStudents] = newStudent;\n\t\t\tnumStudents++;\n\t\t}\n\t}", "void replaceClasses(Class current, Class replacement);", "void setClassType(String classType);", "void addClass(String className, ItemStack[] items, ItemStack offHand, ItemStack[] armors);", "private static void addClasses(\n @NotNull CompletionParameters parameters,\n @NotNull final CompletionResultSet result,\n @NotNull final CompletionSession session\n ) {\n JetClassCompletionContributor.addClasses(parameters, result, new Consumer<LookupElement>() {\n @Override\n public void consume(@NotNull LookupElement element) {\n addCompletionToResult(result, element, session);\n }\n });\n }", "private void addSuperClasses(Integer directSuperClass,\n\t\t\tClassRecord subClassRecord) {\n\t\tif (subClassRecord.superClasses.contains(directSuperClass)) {\n\t\t\treturn;\n\t\t}\n\t\tsubClassRecord.superClasses.add(directSuperClass);\n\t\tClassRecord superClassRecord = getClassRecord(directSuperClass);\n\t\tif (superClassRecord == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Integer superClass : superClassRecord.directSuperClasses) {\n\t\t\taddSuperClasses(superClass, subClassRecord);\n\t\t}\n\t}", "public void register(Course crs)\r\n {\r\n crs.addProf(this);\r\n }", "@Override\r\n\tpublic void add(Student student, int index) {\n\r\n\t\tif (student == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Null student object detected\");\r\n\r\n\t\tif (index > this.students.length - 1)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid array index\");\r\n\r\n\t\tthis.students[index] = student;\r\n\t}", "public void updateClasses(int newClass){\n ans = newClass;\n //paraQueries.setText(ans);\n Log.d(\"Testing for newclass\", \"This is newClass\" + newClass);\n //System.out.println(ans);\n //Message.message(getActivity(), \"This is newClass \");\n /*if (newClass == 1){\n strAdapter2 = new ArrayAdapter<>(Objects.requireNonNull(getContext()), android.R.layout.simple_list_item_1, pathClasses);\n }else{\n strAdapter2 = new ArrayAdapter<>(Objects.requireNonNull(getContext()), android.R.layout.simple_list_item_1, classes);\n }*/\n }", "public void setClasses(final Collection<Class> classes) {\n this.classes = classes;\n }", "public void addClassifier(String name, Classifier cl)\n {\n\t\tif (m_ClassifierTypes.containsKey(name) || m_Classifiers.containsKey(name))\n\t\t\tthrow new IllegalArgumentException(\"A classifier named \"+name+\" already added.\");\n m_Classifiers.put(name, cl);\n }", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "public void addStudents(Student theStudent) {\n\t\tConnection myConn=null;\n\t\tPreparedStatement myStmt=null;\n\t\ttry\n\t\t{\n\t\t//get db connection\n\t\tmyConn=dataSource.getConnection();\n\t\t\n\t\t// create sql for insert\n\t\tString sql=\"insert into student \"+\"(first_name, last_name, email) \"+\"values(?,?,?)\";\n\t\tmyStmt=myConn.prepareStatement(sql);\n\t\t\n\t\t//set the param values for the student\n\t\tmyStmt.setString(1, theStudent.getFirstName());\n\t\tmyStmt.setString(2, theStudent.getLastName());\n\t\tmyStmt.setString(3, theStudent.getEmail());\n\t\t\n\t\t//execute sql insert\n\t\tmyStmt.execute();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(myConn,myStmt,null);\n\t\t}\n\t}", "private void verifyClassName() {\n\t\t\n\t\tif (classNameTF.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Class Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tClass newClass = new Class(classNameTF.getText());\n\t\t\tteacher.addClass(newClass);\n\t\t\ttAddClassWindow.dispose();\n\t\t\ttPortalWindow.dispose();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t}", "public void addHome( Class<?> homeClass, Home<?> home )\n {\n homes.put( homeClass, home );\n }", "public void addStudent(Student student){\n if (students.size() >=0 && students.size() <=5)\n students.add(student);\n else throw new ArrayIndexOutOfBoundsException();\n }", "List<StudentClass> findClassesBySchoolId(int id) throws TechnicalException;", "@Override\r\n\tpublic void insert(List<Student> list, Scanner sc) {\n\t\tStudent s=new Student();\r\n\t\tSystem.out.println(\"增加学生比如:张三,男,19,北京\");\r\n\t\tString str=sc.next();\r\n\t\tString[] arr=str.split(\",\");\r\n\t\ts.setName(arr[0]);\r\n\t\ts.setSex(arr[1].charAt(0));\r\n\t\ts.setAge(Integer.parseInt(arr[2]));\r\n\t\ts.setAddress(arr[3]);\t\t\t\r\n\t\tlist.add(s);\r\n\t\tSystem.out.println(\"添加完成!\");\t\r\n\t\t\r\n\t}", "public void addCourse(Course c) {\n if (this.contains(c) != true) { // checking if the course is in the courseList or not\n courseList.add(c);\n numOfCourses++;\n } else {\n // message if the course is already in the courseList\n System.out.println(\"The course is already in the list of courses.\");\n }\n }", "public void visit(ClassDeclSimple node) {\n\t Symbol key = Symbol.symbol(node.name.s);\n\t ClassInfo data = new ClassInfo(key);\n\n\t // Chama o firstPass() para as variaveis\n\t VarDeclListHandler.firstPass(env, data, node.varList);\n\n\t // Chama o firstPass() para os metodos\n\t MethodDeclListHandler.firstPass(env, data, node.methodList);\n\n\t // Insere a classe na tabela\n\t if (!env.classes.put(key, data)) {\n\t env.err.Error(node, new Object[] {\"Nome de classe redefinido: \" + key});\n\t }\n\t }", "public static void addClassifiedFeature(Classification classification, ClassifiedFeature classifiedFeature) {\n Feature feature = classifiedFeature.getFeature();\n boolean containedInView = ClassificationCache.getInstance().isFeatureContainedInView(classification, feature);\n if (containedInView) {\n classification.getClassifiedFeatures().add(classifiedFeature);\n } else {\n classification.getAutoCompleteFeatures().add(classifiedFeature);\n }\n }", "public void setClassName(String className) { this.className=className; }", "public abstract void addFeatureClasses(FeatureClassContainer container);", "public void classListChanged();", "private Student addStudent(String name, ArrayList<String> studentBranch) {\n\t\treturn new Student(name, studentBranch);\n\t}", "public void addCourse(Course c) {\n\t\tcourseList.add(c);\n\t}", "public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }", "@Override\n public void storeClass(final JavaClass clazz) {\n loadedClasses.put(clazz.getClassName(), new SoftReference<>(clazz));\n clazz.setRepository(this);\n }", "private void loadClasses() {\r\n Log.d(\"\",\"Load classes\");\r\n Cursor c = DBOpenHelper.runSQL(\"select CLASSES.*, COUNT(DISTINCT STUDENTS.ZID) as 'TOTAL', \" +\r\n \"AVG(STUDENT_TUTORIALS.MARK) AS 'AVGMARK', AVG(STUDENT_TUTORIALS.PARTICIPATION)\" +\r\n \" AS 'PART' from CLASSES LEFT OUTER JOIN STUDENTS\" +\r\n \" ON (CLASSES.CLASS_ID = STUDENTS.CLASS) LEFT OUTER JOIN STUDENT_TUTORIALS ON \" +\r\n \"(STUDENTS.ZID = STUDENT_TUTORIALS.ZID) GROUP BY CLASSES.CLASS_ID\", null);\r\n\r\n classes.clear();\r\n while (c!= null && c.moveToNext()) {\r\n Log.d(\"\",\"Getting class from database\");\r\n classes.add(new Class(c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_CLASS_ID)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_DAY)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_STARTTIME)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_ENDTIME)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_TUTOR)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_LOCATION)),\r\n c.getInt(c.getColumnIndex(\"TOTAL\")),\r\n c.getDouble(c.getColumnIndex(\"AVGMARK\")),\r\n c.getDouble(c.getColumnIndex(\"PART\"))));\r\n }\r\n\r\n\r\n\r\n classesListView.setEmptyView(findViewById(R.id.emptyView));\r\n\r\n // Fill list\r\n ClassAdapter adapter = new ClassAdapter(this, classes);\r\n classesListView.setAdapter(adapter);\r\n }", "public void addClassesCounts(String[] classes){\n\n\t\tfor(String singleClass : classes){\n\n\t\t\t//if there is no entry at feature count level for this class add an empty entry\n\t\t\tif(featureCountTotalsPerClass.get(singleClass) == null){\n\t\t\t\tfeatureCountTotalsPerClass.put(singleClass, new LinkedHashMap<Integer, Integer>());\n\t\t\t}\n\n\t\t\t//same for the class counts (initialise to 1)\n\t\t\tif(classTotalCounts.get(singleClass) == null){\n\t\t\t\tclassTotalCounts.put(singleClass, 1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//just add the count\n\t\t\t\tclassTotalCounts.put(singleClass, classTotalCounts.get(singleClass) + 1);\n\t\t\t}\n\n\t\t}\n\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public void addStudent(User user) {\n\t\t\r\n\t}", "public final native void classFollows(String name, Element newNode, Element oldNode) /*-{ this.classFollows(name, newNode, oldNode); }-*/;", "ClassBody addMember(ClassMember member);", "public JsStatement addClass(String className)\n\t{\n\t\tchain(AttributesHelper.addClass(className));\n\t\treturn this;\n\t}" ]
[ "0.703148", "0.65519583", "0.6541326", "0.6495688", "0.6440078", "0.6397573", "0.6334041", "0.6273632", "0.6244152", "0.6237732", "0.62133753", "0.61329764", "0.61225754", "0.6099747", "0.6097218", "0.6067842", "0.6043461", "0.60123307", "0.5982077", "0.5981596", "0.5974656", "0.59691525", "0.59288764", "0.59266615", "0.5920563", "0.59031934", "0.5892788", "0.58205587", "0.5818412", "0.5795473", "0.5794444", "0.579111", "0.57473457", "0.5738863", "0.5658441", "0.56548697", "0.56348664", "0.5629764", "0.56225914", "0.55869645", "0.55758244", "0.5537751", "0.55327296", "0.5511241", "0.5506512", "0.5504846", "0.5494599", "0.5475948", "0.54654306", "0.5455621", "0.5452205", "0.54266375", "0.54100686", "0.54095924", "0.5400709", "0.53847617", "0.537114", "0.53585804", "0.5352938", "0.53270847", "0.5313945", "0.52934974", "0.5279146", "0.5279107", "0.52767", "0.5275668", "0.5262504", "0.5258175", "0.5253973", "0.52538025", "0.5245687", "0.5241398", "0.52401173", "0.5231018", "0.5216552", "0.5214247", "0.5211125", "0.52016497", "0.5197354", "0.51957947", "0.5193385", "0.5178772", "0.51777476", "0.51765466", "0.5174156", "0.51668084", "0.5165404", "0.51602834", "0.5143323", "0.5135686", "0.5134212", "0.51294845", "0.51145834", "0.5104377", "0.5094504", "0.5090029", "0.50887376", "0.50877565", "0.5087724", "0.5087255" ]
0.6653816
1
Get the student classes.
public String getClasses() { String classesString = ""; for (String className : classes) { classesString += (className + "\n"); } return classesString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Class> getClassesFromStudent(Student s)\n\t{\n\t\tint studentId = s.getUserId();\n\t\tString sql = \"SELECT c.classcode, c.classname, i.* FROM UserInfo i, ClassMember cm, Class c \"\n\t\t\t\t+ \"WHERE cm.studentID = ? \"\n\t\t\t\t+ \"AND cm.classcode = c.classcode AND c.instructorID = i.userID\";\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, studentId);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tString className = rs.getString(\"classname\");\n\t\t\t\tString classCode = rs.getString(\"classcode\");\n\t\t\t\tString name = rs.getString(\"firstname\") + \" \" + rs.getString(\"lastname\");\n\t\t\t\tString email = rs.getString(\"email\");\n\t\t\t\tint userId = rs.getInt(\"userID\");\n\t\t\t\tInstructor i = new Instructor(name, email, userId);\n\t\t\t\tClass c = new Class(i, className, classCode);\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn classes;\n\t}", "List<StudentClass> findClassesBySchoolId(int id) throws TechnicalException;", "public AssignmentClasses[] getClasses()\n\t{\n\t\treturn classes;\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepo.findAll();\n\t}", "public int getClasses(){\r\n\t\treturn this.classes;\r\n\t}", "@NotNull\n List<? extends ClassInfo> getClasses();", "public List<Models.Class> showClasses() {\n // Get from all levels\n List<Models.Class> results = em.createNativeQuery(\"select c.* from class c, classparticipant cpa, participant p where c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ?\", Models.Class.class).setParameter(1, user.getUserid()).getResultList();\n\n // Display the output\n String output = \"\";\n\n output = addChat(results.size() + \" classes were found.\");\n\n for (Models.Class classroom : results) {\n output += \"<div class='result display' onclick=\\\"window.location.href='Class?id=\" + classroom.getClassid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>CLASS</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + classroom.getClassid() + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n return results;\n }", "public List<String> getClassesList() {\n\t\tCursor c = theDb.rawQuery(\"SELECT * \" +\n\t\t\t\t\t\t\t\t \"FROM \" + DbContract.Classes.TABLE_NAME, null);\n\t\t\n\t\t//Read cursor into an ArrayList\n\t\tList<String> classesList = new ArrayList<String>();\n\t\tclassesList.add( context.getString(R.string.all_classes) );\t\t\t//Add \"All classes\"\n\t\t\n\t\twhile (c.moveToNext()) {\n\t\t\tclassesList.add( c.getString( c.getColumnIndex(DbContract.Classes.ATTRIBUTE_NAME)));\n\t\t}\n\t\t\n\t\treturn classesList;\n\t}", "Integer[] getClasses() {\n\t\tArrayList<Integer> uniqueClasses = new ArrayList<Integer>();\n\t\tfor(ClassInfo c : preferences) {\n\t\t\tif (uniqueClasses.contains(c.getCourseID()) == false){\n\t\t\t\tuniqueClasses.add(c.getCourseID());\n\t\t\t}\n\t\t}\n\t\treturn uniqueClasses.toArray(new Integer[0]);\n\t}", "public List<ClassId> getThirdClasses() {\n\t\tList<ClassId> classes = new ArrayList<>();\r\n\r\n\t\t/*\r\n\t\t * classes.add(ClassId.EVAS_SAINT); classes.add(ClassId.SHILLIEN_TEMPLAR);\r\n\t\t * classes.add(ClassId.SPECTRAL_DANCER); classes.add(ClassId.GHOST_HUNTER);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DREADNOUGHT); classes.add(ClassId.PHOENIX_KNIGHT);\r\n\t\t * classes.add(ClassId.HELL_KNIGHT);\r\n\t\t * \r\n\t\t * classes.add(ClassId.HIEROPHANT); classes.add(ClassId.EVAS_TEMPLAR);\r\n\t\t * classes.add(ClassId.SWORD_MUSE);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DOOMCRYER); classes.add(ClassId.FORTUNE_SEEKER);\r\n\t\t * classes.add(ClassId.MAESTRO);\r\n\t\t */\r\n\r\n\t\t// classes.add(ClassId.ARCANA_LORD);\r\n\t\t// classes.add(ClassId.ELEMENTAL_MASTER);\r\n\t\t// classes.add(ClassId.SPECTRAL_MASTER);\r\n\t\t// classes.add(ClassId.SHILLIEN_SAINT);\r\n\r\n\t\tclasses.add(ClassId.SAGGITARIUS);\r\n\t\tclasses.add(ClassId.ARCHMAGE);\r\n\t\tclasses.add(ClassId.SOULTAKER);\r\n\t\tclasses.add(ClassId.MYSTIC_MUSE);\r\n\t\tclasses.add(ClassId.STORM_SCREAMER);\r\n\t\tclasses.add(ClassId.MOONLIGHT_SENTINEL);\r\n\t\tclasses.add(ClassId.GHOST_SENTINEL);\r\n\t\tclasses.add(ClassId.ADVENTURER);\r\n\t\tclasses.add(ClassId.WIND_RIDER);\r\n\t\tclasses.add(ClassId.DOMINATOR);\r\n\t\tclasses.add(ClassId.TITAN);\r\n\t\tclasses.add(ClassId.CARDINAL);\r\n\t\tclasses.add(ClassId.DUELIST);\r\n\r\n\t\tclasses.add(ClassId.GRAND_KHAVATARI);\r\n\r\n\t\treturn classes;\r\n\t}", "public ClassInfo[] getClasses() {\r\n return classes.toArray(new ClassInfo[classes.size()]);\r\n }", "public static ArrayList<Class> getClassesFromInstructor(Instructor i)\n\t{\n\t\tint instructorId = i.getUserId();\n\t\tString sql = \"SELECT c.* FROM UserInfo i, Class c WHERE c.instructorID = ? AND i.userID = ?\";\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, instructorId);\n\t\t\tps.setInt(2, instructorId);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tString name = rs.getString(\"classname\");\n\t\t\t\tString classcode = rs.getString(\"classcode\");\n\t\t\t\tClass c = new Class(i, name, classcode);\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn classes;\n\t}", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "public List<Classs> getClasss(String lessonId) {\n\t\treturn cla.getClasss(lessonId);\n\t}", "public ClassDoc[] specifiedClasses() {\n // System.out.println(\"RootDoc.specifiedClasses() called.\");\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // index.html lists classes returned from specifiedClasses; return the\n // set of classes in specClasses that are\n // included as per access mod filter\n return classes();\n }", "@ApiModelProperty(example = \"null\", value = \"Set of possible classes identified by the classifier\")\n public java.util.List<VbClass> getClasses() {\n return classes;\n }", "List<StudentClass> findClassesBySchoolName(String schoolName)\r\n\t\t\tthrows TechnicalException;", "@Override\n\tpublic List<Classes> findAllClasses() {\n\t\tString sql = \"select * from classes\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tList<Classes> classesList = (List<Classes>) querys.getResultList();\n\t\treturn classesList;\n\t}", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "public List<String> getClassList() {\n return classlist;\n }", "@OneToMany(mappedBy=\"classRoom\")\n @OrderBy(\"className ASC\")\n public Collection<Class> getClasses() {\n return classes;\n }", "public String[] getStudents() {\n\t\treturn students;\n\t}", "static List<Student> getStudents() {\n return students;\n }", "public ClassDoc[] classes() {\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // return the set of classes in specClasses that are \"included\"\n // according to the access modifier filter\n if (includedClasses != null) {\n // System.out.println(\"RootDoc.classes() called.\");\n return includedClasses;\n }\n int size = 0;\n Collection<X10ClassDoc> classes = specClasses.values();\n for (ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n size++;\n }\n }\n includedClasses = new X10ClassDoc[size];\n int i = 0;\n for (X10ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n includedClasses[i++] = cd;\n }\n }\n Comparator<X10ClassDoc> cmp = new Comparator<X10ClassDoc>() {\n public int compare(X10ClassDoc first, X10ClassDoc second) {\n return first.name().compareTo(second.name());\n }\n\n public boolean equals(Object other) {\n return false;\n }\n };\n Arrays.sort(includedClasses, cmp);\n // System.out.println(\"RootDoc.classes() called. result = \" +\n // Arrays.toString(includedClasses));\n return includedClasses;\n }", "public String getStudents(){\n\t\treturn this.students;\n\t}", "Student[] getStudents(){\n\t\treturn enrolled.toArray(new Student[enrolled.size()]);\n\t}", "@Override\n\tpublic JSONObject selectClassifyStudents(Student student) throws Exception {\n\t\t\n\t\tJSONObject retObject = new JSONObject() ;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tstudent.setClassify(\"cs\") ;\n\t\n\t\t\tList<Student> lst_cs = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_cs\", JSONArray.fromObject(lst_cs)) ;\n\t\t\t\n\t\t\tstudent.setClassify(\"sh\") ;\n\t\t\tList<Student> lst_sh = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_sh\", JSONArray.fromObject(lst_sh)) ;\n\t\t\t\n\t\t\tstudent.setClassify(\"yjf\") ;\n\t\t\tList<Student> lst_yjf = registerMapper.selectClassifyStudents(student) ;\n\t\t\tretObject.put(\"students_yjf\", JSONArray.fromObject(lst_yjf)) ;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t\treturn retObject ;\n\t}", "Collection<String> getRequiredClasses( String id );", "public abstract Class<?>[] getCoClasses();", "public Student getStudents() {\n\t\treturn this.student;\n\t}", "private Set<String> classSet(String whichClass) {\n return subclasses.get(whichClass);\n }", "public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}", "@Override\n\tpublic Classes findClasses(String cls_id) {\n\t\tString sql = \"select * from classes where cls_id='\" + cls_id + \"'\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tClasses classes = querys.getBean();\n\t\treturn classes;\n\t}", "public List<String> getStudents();", "@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}", "public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}", "@Override\r\n\tpublic List<StudentBean> getStudentsByClassId(String classId) {\n\t\treturn studentDAO.getStudentsByClassId(classId);\r\n\t}", "public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }", "public ArrayList<String> getStudentsByClass(String stud_info) {\n\n ArrayList<String> arrayList = new ArrayList<>();\n Cursor cursor;\n try {\n cursor = liteDatabase.rawQuery(\"SELECT s.stud_name FROM student_data s, class_data c WHERE \" +\n \" s.ssg = c.ssg_id AND s.ssg ='\" + stud_info + \"'\",null);\n if (cursor != null) {\n cursor.moveToFirst();\n while (cursor.isAfterLast() == false) {\n arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_NAME)));\n //arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_ROLL)));\n cursor.moveToNext();\n }\n }\n }catch (Exception e){\n Toast.makeText(this, \"\"+e, Toast.LENGTH_SHORT).show();\n }\n return arrayList;\n }", "public Set<Student> getStudents() {\n return students;\n }", "public int getNumberOfClasses() {\n return 200;\n }", "@GetMapping()\n @ApiOperation(value = \"Get all study classes\")\n public List<StudyClassDTO> findAll() {\n return studyClassService.findAll();\n }", "public int getNumOfClasses();", "public Iterator<String> listAllClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "List<Student> getStudent();", "java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();", "@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}", "public String[] readClasses();", "public List <Student> getAllStudents();", "final Class<?>[] classes() {\n if (classes instanceof Class[]) {\n return (Class[]) classes;\n } else {\n return new Class[] { (Class) classes };\n }\n }", "public ArrayList<OWLClass> getClasses(OWLOntology ontology){\n\t\t\n\t\tArrayList<OWLClass> classes = new ArrayList<OWLClass>();\n\t\tfor (OWLClass cls : ontology.getClassesInSignature())\n\t\t\tclasses.add(cls);\n\t\treturn classes;\n\t}", "List<Student> getAllStudents();", "public Map getStandardClasses() {\n return standardClasses;\n }", "public List<Models.Class> showClasses(String from) {\n // Get from all levels\n List<Models.Class> fromInstitution = em.createNativeQuery(\"select c.* from class c, course cr, programme pg, institution i, institutionparticipant ipa, participant p where c.coursecode = cr.coursecode and cr.programmecode = pg.programmecode and pg.institutioncode = i.institutioncode and ipa.institutioncode = i.institutioncode and ipa.participantid = p.participantid and p.userid = ? and i.institutioncode = ?\", Models.Class.class).setParameter(1, user.getUserid()).setParameter(2, from).getResultList();\n List<Models.Class> fromProgramme = em.createNativeQuery(\"select c.* from class c, course cr, programme pg,programmeparticipant ppa, participant p where c.coursecode = cr.coursecode and cr.programmecode = pg.programmecode and ppa.programmecode = pg.programmecode and ppa.participantid = p.participantid and p.userid = ? and pg.programmecode = ?\", Models.Class.class).setParameter(1, user.getUserid()).setParameter(2, from).getResultList();\n List<Models.Class> fromCourse = em.createNativeQuery(\"select c.* from class c, course cr, courseparticipant cpa, participant p where c.coursecode = cr.coursecode and cpa.coursecode = cr.coursecode and cpa.participantid = p.participantid and p.userid = ? and cpa.coursecode = ?\", Models.Class.class).setParameter(1, user.getUserid()).setParameter(2, from).getResultList();\n\n // Combine the results\n List<Models.Class> results = new ArrayList<Models.Class>();\n results.addAll(fromInstitution);\n results.addAll(fromProgramme);\n results.addAll(fromCourse);\n\n // Display the output\n String output = \"\";\n\n output = addChat(results.size() + \" classes were found.\");\n\n for (Models.Class classroom : results) {\n output += \"<div class='result display' onclick=\\\"window.location.href='Class?id=\" + classroom.getClassid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>CLASS</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + classroom.getClassid() + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n\n return results;\n }", "public HashMap<Integer,Category_components> get_classes(){\n return game_classes;\n }", "public void printRegisteredClasses(String user) {\n\t\tfor (int i = 0; i < CourseManager.students.size(); i++) {\n\t\t\tif (CourseManager.students.get(i).getUsername().equals(user)) {\n\t\t\t\tfor (int j = 0; j < CourseManager.courses.size(); j++) {\n\t\t\t\t\tfor (int k = 0; k < CourseManager.courses.get(j).getStudlist().size(); k++) {\n\t\t\t\t\t\tif (CourseManager.courses.get(j).getStudlist().get(k).getUsername().equals(user)) {\n\t\t\t\t\t\t\tSystem.out.println(CourseManager.courses.get(j).getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static ArrayList<Student> getStudentsFromClass(String classCode)\n\t{\n\t\tString sql = \"SELECT s.* FROM UserInfo s, ClassMember c WHERE c.classcode = ? AND c.studentID = s.userID\";\n\t\tArrayList<Student> students = new ArrayList<Student>();\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, classCode);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tString name = rs.getString(\"firstname\") + \" \" + rs.getString(\"lastname\");\n\t\t\t\tString email = rs.getString(\"email\");\n\t\t\t\tint id = rs.getInt(\"userID\");\n\t\t\t\tStudent s = new Student(name, email, id);\n\t\t\t\tstudents.add(s);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn students;\n\t}", "public ArrayList<String> getNamesOfClasses(OWLOntology ontology){\n\t\t\n\t\tArrayList<String> classes = new ArrayList<String>();\n\t\tfor (OWLClass cls : ontology.getClassesInSignature())\n\t\t\tclasses.add( cls.getIRI().getFragment() );\n\t\t\t\n\t\treturn classes;\n\t}", "public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }", "public List<? extends BaseClassInfo> getClasses(HasMetricsFilter filter) {\n if (classLookup == null) {\n buildClassLookupMap();\n }\n List<BaseClassInfo> result = newArrayList();\n for (BaseClassInfo classInfo : classLookup.values()) {\n if (filter.accept(classInfo)) {\n result.add(classInfo);\n }\n }\n return result;\n }", "@Override\n public List<Classroom> getClassesByKinderg(int id) {\n\t\t\t\t\tKinderGarten k = kindergartenRepo.findById(id).get();\n\t\t\t\t\tList<Classroom> c=k.getClassrooms();\n\t\t\t\t\treturn c;\n\t\t\n\t\t\t\t }", "@Override\n\tpublic List<Student> selectStudent(int classId) {\n\t\t\n\t\tString sql=\"select t2.stu_id,t2.stu_name,t2.stu_no ,t1.score_jilv,t1.score_jishu,t1.score_zhiye from \"\n\t\t\t\t+ \"(select stu_id,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=1 THEN score_value END )score_jilv,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=2 THEN score_value END )score_jishu,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=3 THEN score_value END )score_zhiye \"\n\t\t\t\t+ \"from tb_score where class_id=? GROUP BY stu_id)t1,\"\n\t\t\t\t+ \"tb_student t2 WHERE t1.stu_id=t2.stu_id\";\n\t\tObject[] classid={classId};\n\t\t\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\t\n\t\treturn stu;\n\t}", "public ArrayList getStudents();", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "public Collection<ConceptClass> getConceptClasses(int limit) throws OEClientException {\r\n\t\tlogger.info(\"getConceptClasses entry\");\r\n\r\n\t\tMap<String, String> queryParameters = new HashMap<String, String>();\r\n\t\tqueryParameters.put(\"properties\", \"rdfs:label,rdfs:subClassOf\");\r\n\t\tqueryParameters.put(\"limit\", Integer.toString(limit));\r\n\t\tInvocation.Builder invocationBuilder = getInvocationBuilder(getModelURL() + \"/skos:Concept/meta:transitiveSubClass\", queryParameters);\r\n\r\n\t\tDate startDate = new Date();\r\n\t\tlogger.info(\"getConceptClasses making call : {}\", startDate.getTime());\r\n\t\tResponse response = invocationBuilder.get();\r\n\t\tlogger.info(\"getConceptClasses call complete: {}\", startDate.getTime());\r\n\r\n\t\tlogger.info(\"getConceptClasses - status: {}\", response.getStatus());\r\n\t\tif (response.getStatus() == 200) {\r\n\t\t\tString stringResponse = response.readEntity(String.class);\r\n\t\t\tif (logger.isInfoEnabled()) logger.info(\"getConceptClasses: jsonResponse {}\", stringResponse);\r\n\t\t\tJsonObject jsonResponse = JSON.parse(stringResponse);\r\n\t\t\tJsonArray jsonArray = jsonResponse.get(\"@graph\").getAsArray();\r\n\t\t\tCollection<ConceptClass> conceptClasses = new HashSet<ConceptClass>();\r\n\t\t\tIterator<JsonValue> jsonValueIterator = jsonArray.iterator();\r\n\t\t\twhile (jsonValueIterator.hasNext()) {\r\n\t\t\t\tconceptClasses.add(new ConceptClass(this, jsonValueIterator.next().getAsObject()));\r\n\t\t\t}\r\n\t\t\treturn conceptClasses;\r\n\t\t} else {\r\n\t\t\tthrow new OEClientException(String.format(\"Error(%d) %s from server\", response.getStatus(), response.getStatusInfo().toString()));\r\n\t\t}\r\n\t}", "@RequestMapping( value = \"/\", method = RequestMethod.GET )\n public Iterable<ClassesDTO> list(){\n return classService.list();\n }", "public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}", "public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}", "public ArrayList<Student> getStudents() {\r\n\t\treturn this.students;\r\n\t}", "public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}", "public String getClassList(String semester, int year) {\n String str=String.format(\" %s %d\\n\", semester, year);\n for (TranscriptEntry en : transcripts) {\n if (en == null) break;\n else if ((en.getSemester().equalsIgnoreCase(semester)) && \n (en.getYear()==year))\n str += en.toString() + \"\\n\";\n } \n return str;\n }", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public static ArrayList<Classification> getLastClassifications() {\n\t\tString path = LAST_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}", "@Test\n public void testGetClassAssociatedStudent() {\n System.out.println(\"getClassAssociatedStudent\");\n School instance = new School();\n instance.setStudents(students);\n instance.setStudentClass(studentClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedStudent(student1));\n assertEquals(classes, instance.getClassAssociatedStudent(student2));\n System.out.println(\"PASS with associated student\");\n\n assertEquals(0, instance.getClassAssociatedStudent(student3).size());\n System.out.println(\"PASS with unassociated student\");\n\n System.out.println(\"PASS ALL\");\n }", "public Set<String> getClassKeys();", "public String getStudentsInCourse() {\n String output = \"\"; \n for (Student student : students) { // enhanced for\n output += student.toString() + \"\\n\";\n } // end for\n return output;\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();", "@Override\n\tpublic List<Student> geStudents() {\n\t\treturn null;\n\t}", "private void loadClasses() {\r\n Log.d(\"\",\"Load classes\");\r\n Cursor c = DBOpenHelper.runSQL(\"select CLASSES.*, COUNT(DISTINCT STUDENTS.ZID) as 'TOTAL', \" +\r\n \"AVG(STUDENT_TUTORIALS.MARK) AS 'AVGMARK', AVG(STUDENT_TUTORIALS.PARTICIPATION)\" +\r\n \" AS 'PART' from CLASSES LEFT OUTER JOIN STUDENTS\" +\r\n \" ON (CLASSES.CLASS_ID = STUDENTS.CLASS) LEFT OUTER JOIN STUDENT_TUTORIALS ON \" +\r\n \"(STUDENTS.ZID = STUDENT_TUTORIALS.ZID) GROUP BY CLASSES.CLASS_ID\", null);\r\n\r\n classes.clear();\r\n while (c!= null && c.moveToNext()) {\r\n Log.d(\"\",\"Getting class from database\");\r\n classes.add(new Class(c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_CLASS_ID)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_DAY)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_STARTTIME)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_ENDTIME)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_TUTOR)),\r\n c.getString(c.getColumnIndex(DBOpenHelper.CLASSES_LOCATION)),\r\n c.getInt(c.getColumnIndex(\"TOTAL\")),\r\n c.getDouble(c.getColumnIndex(\"AVGMARK\")),\r\n c.getDouble(c.getColumnIndex(\"PART\"))));\r\n }\r\n\r\n\r\n\r\n classesListView.setEmptyView(findViewById(R.id.emptyView));\r\n\r\n // Fill list\r\n ClassAdapter adapter = new ClassAdapter(this, classes);\r\n classesListView.setAdapter(adapter);\r\n }", "public ArrayList<Student> getStudents()\n {\n return students;\n }", "public ArrayList<Student> getStudents() {\r\n\t\treturn students;\r\n\t}", "@Override\n\tpublic List<Student> getById(int class0) {\n\t\tString aql = \"select * from tstudent where class=?\";\n\t\tList<Student> studentlist = new ArrayList<Student>();\n\t\tList<Map<String, Object>> maplist = DBUtils2.query(aql, new Integer(class0));\n\t\tfor (Map<String, Object> map : maplist) {\n\t\t\tStudent student = new Student();\n\t\t\tstudent.setId((Integer) (map.get(\"id\")));\n\t\t\tstudent.setName((String) (map.get(\"name\")));\n\t\t\tstudent.setClass1((Integer) (map.get(\"class\")));\n\t\t\tstudent.setStudynum((Integer) (map.get(\"studynum\")));\n\n\t\t\tstudentlist.add(student);\n\t\t}\n\t\treturn studentlist;\n\t}", "public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "public List<com.platform.chorus.db.tables.pojos.ClassModel> fetchByScope(String... values) {\n return fetch(ClassModel.CLASS_MODEL.SCOPE, values);\n }", "public List<String> getHierarchicalClass() {\r\n \t\treturn hierarchicalClass;\r\n \t}", "public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}", "public HashMap<Integer, Student> getStudents() {\n return _students;\n }", "@Override\n\tpublic List<TClassInfo> getClazzs(String hql) {\n\t\tSession session=HibernateSessionFactory.getSession();\n\t\tTransaction transaction=session.beginTransaction();\n\t\tQuery query=session.createQuery(hql);\n\t\tList<TClassInfo> clazzs=new ArrayList<TClassInfo>();\n\t\tclazzs=query.list();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\treturn clazzs;\n\t}", "public List<String> getSubClasses(String className, boolean direct) {\n IRI clsIRI = IRI.create(ontologyNamespace + className);\n System.out.println(\"Searching for IRI: \" + clsIRI);\n if (!ontology.containsClassInSignature(clsIRI)) {\n \tSystem.out.println(\"Tag is not present in ontology:\" + className);\n \treturn Collections.EMPTY_LIST;\n }\n // Létrehozzuk az osztály egy példányát és lekérdezzük a leszármazottait.\n OWLClass cls = factory.getOWLClass(clsIRI);\n NodeSet<OWLClass> subClss;\n\t\ttry {\n\t\t\tsubClss = reasoner.getSubClasses(cls, direct);\n\t\t} catch (OWLReasonerRuntimeException e) {\n\t\t\tSystem.err.println(\"Hiba az alosztályok következtetése közben: \" + e.getMessage());\n\t\t\treturn Collections.EMPTY_LIST;\n\t\t}\n List<String> result = new ArrayList<>();\n for(OWLClass i : subClss.getFlattened()) {\n \tif(!i.isBuiltIn())\n \t\tresult.add(i.getIRI().getFragment());\n }\n return result;\n }", "public static List<Student> getStudents() {\n\t\tList<Student> students = new ArrayList<>();\n\t\t\n\t\t// add sample data\n\t\tstudents.add(new Student(\"James\", \"Richt\", \"jr22@email.com\"));\n\t\tstudents.add(new Student(\"Kelly\", \"Lou\", \"kl86@email.com\"));\n\t\tstudents.add(new Student(\"Lin\", \"Howe\", \"lh77@email.com\"));\n\t\t\n\t\t// return the list\n\t\treturn students;\n\t}", "public static Set<Classification> getClassifications() throws Exception {\r\n String xmlRequest = \"<request><request-header><protocol-version>2</protocol-version></request-header></request>\";\r\n try {\r\n String responseXML = FSHelperLibrary.sendRequest(null, RequestType.RT_GET_CLASSIFICATIONS, xmlRequest);\r\n LoggerUtil.logDebug(\"Get Classificatios Response XML: \" + responseXML);\r\n\r\n Node rootNode = XMLUtil.getRootNode(responseXML);\r\n Node requestStatusNode = XMLUtil.parseNode(\"request-status\", rootNode);\r\n String returnValue = XMLUtil.parseString(\"return-value\", requestStatusNode);\r\n\r\n if (!\"1\".equals(returnValue)) {\r\n LoggerUtil.logError(\"Get Classificatios Response XML: \" + responseXML);\r\n String errorMsg = XMLUtil.parseString(\"error-message\", requestStatusNode);\r\n String dispMsg = XMLUtil.parseString(\"display-message\", requestStatusNode);\r\n if (dispMsg == null || dispMsg.trim().isEmpty()) {\r\n dispMsg = errorMsg;\r\n }\r\n throw new Exception(dispMsg);\r\n }\r\n\r\n NodeList lNodeList = XMLUtil.parseNodeList(\"classifications/classification\", rootNode);\r\n if (lNodeList != null && lNodeList.getLength() > 0) {\r\n Set<Classification> lClassifications = new LinkedHashSet<Classification>();\r\n for (int i = 0; i < lNodeList.getLength(); i++) {\r\n Node lNode = lNodeList.item(i);\r\n String lstrClassId = XMLUtil.parseString(\"id\", lNode);\r\n String lstrClassName = XMLUtil.parseString(\"name\", lNode);\r\n String lstrClassDesc = XMLUtil.parseString(\"description\", lNode);\r\n String lstrStatus = XMLUtil.parseString(\"status\", lNode);\r\n // Take only active classification\r\n if (\"1\".equals(lstrStatus)) {\r\n Classification lClassification = new Classification();\r\n lClassification.setId(lstrClassId);\r\n lClassification.setName(lstrClassName);\r\n lClassification.setDescription(lstrClassDesc);\r\n lClassifications.add(lClassification);\r\n }\r\n }\r\n XMLDBService.updateClassifications(lClassifications);\r\n return lClassifications;\r\n }\r\n } catch (FSHelperException e) {\r\n throw e;\r\n }\r\n return null;\r\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public ArrayList<String> getClassesToClassify(Instance instanceSelected, InfModel infModel) {\n\t\tArrayList<String> listClassesMembersTmpWithoutRepeat = new ArrayList<String>();\r\n\t\tfor (DtoCompleteClass dto : instanceSelected.ListCompleteClasses) {\r\n\t\t\tfor (String clsComplete : dto.Members) {\r\n\t\t\t\tif(! listClassesMembersTmpWithoutRepeat.contains(clsComplete))\r\n\t\t\t\t{\r\n\t\t\t\t\tlistClassesMembersTmpWithoutRepeat.add(clsComplete);\t\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Remove disjoint subclasses from some super class\r\n\t\tArrayList<String> listClassesMembersTmp = new ArrayList<String>();\r\n\t\tfor (DtoCompleteClass dto : instanceSelected.ListCompleteClasses) \r\n\t\t{\r\n\t\t\tArrayList<String> listDisjoint = search.GetDisjointClassesOf(dto.CompleteClass, infModel);\r\n\t\t\tfor (String clc : listClassesMembersTmpWithoutRepeat) \r\n\t\t\t{\r\n\t\t\t\tif(! listDisjoint.contains(clc))\r\n\t\t\t\t{\r\n\t\t\t\t\tlistClassesMembersTmp.add(clc);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn listClassesMembersTmp;\r\n\t}", "public double[] ClassVect() {\n\t\treturn class_vect;\n\t}", "public String getStudentnames() {\r\n return studentnames;\r\n }", "List<CabinClassModel> findCabinClasses();", "public ArrayList<String[]> getClassList(String grp, String key);" ]
[ "0.76394814", "0.67394257", "0.65759015", "0.657506", "0.6571162", "0.65699905", "0.6478944", "0.64407325", "0.6414358", "0.6387987", "0.63138485", "0.62667483", "0.6232342", "0.62235165", "0.62233233", "0.6131899", "0.6125884", "0.61228776", "0.6104599", "0.5992359", "0.5965429", "0.5935742", "0.5930343", "0.59233314", "0.5913929", "0.5906526", "0.5885569", "0.58757013", "0.58725065", "0.58648694", "0.5844145", "0.5804526", "0.5802858", "0.57909584", "0.57887036", "0.57853985", "0.57751065", "0.5773252", "0.5765397", "0.57430273", "0.57347226", "0.5709374", "0.56841487", "0.5677284", "0.56627464", "0.5649632", "0.56481075", "0.5643496", "0.5635686", "0.5633739", "0.5630269", "0.5625644", "0.56147945", "0.56142265", "0.56095093", "0.5580504", "0.5579371", "0.55782086", "0.55767214", "0.55658114", "0.55634135", "0.55524516", "0.5548534", "0.55451584", "0.5528012", "0.550036", "0.5500219", "0.54877055", "0.5486811", "0.5483453", "0.5480542", "0.54782194", "0.5472807", "0.547121", "0.5470609", "0.5469049", "0.54686475", "0.5460039", "0.54563874", "0.5452665", "0.5448446", "0.5447249", "0.54415876", "0.54273444", "0.54217356", "0.5421316", "0.5415625", "0.54119325", "0.5405304", "0.5403569", "0.53989553", "0.5389444", "0.538465", "0.5384126", "0.53818285", "0.5381539", "0.5370399", "0.5368942", "0.53534114", "0.5350321" ]
0.62141174
15
Decode some data to a tensor
public static Tensor decode(Optional<TensorType> type, GrowableByteBuffer buffer) { int formatType = buffer.getInt1_4Bytes(); switch (formatType) { case MIXED_BINARY_FORMAT_TYPE: return new MixedBinaryFormat().decode(type, buffer); case SPARSE_BINARY_FORMAT_TYPE: return new SparseBinaryFormat().decode(type, buffer); case DENSE_BINARY_FORMAT_TYPE: return new DenseBinaryFormat().decode(type, buffer); default: throw new IllegalArgumentException("Binary format type " + formatType + " is unknown"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T decode1(DataBuffer buffer);", "void decodeNetwork(double[] data);", "void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ;\n }\n //System.out.println (m_size);\n if (m_size > 0) {\n m_node = new Node [m_size];\n for (int i = 0; i < m_size; i++) {\n m_node[i] = Node.decode (dis, table, decoder);\n }\n }\n //System.out.println (\"decoding MFNode done\");\n }", "static Nda<Byte> of( byte... value ) { return Tensor.of( Byte.class, Shape.of( value.length ), value ); }", "double[] decode(T solution);", "static Nda<Byte> of( Shape shape, byte... values ) { return Tensor.ofAny( Byte.class, shape, values ); }", "void decode2(DataBuffer buffer, T object);", "private ArrayList<Tensor<?>> Funcionar_salida_Ant_umbral(float location, float email, float imei, float device, float serialnumber, float macaddress, float advertiser) {\n float n_epochs = 1;\n\n float output = 0; //y\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input_location = Tensor.create(location);\n Tensor input_email = Tensor.create(email);\n Tensor input_imei = Tensor.create(imei);\n Tensor input_device = Tensor.create(device);\n Tensor input_serialnumber = Tensor.create(serialnumber);\n Tensor input_macaddress = Tensor.create(macaddress);\n Tensor input_advertiser = Tensor.create(advertiser);\n\n Tensor input_umbral_verde = Tensor.create(umbral_verde);\n Tensor input_umbral_naranja = Tensor.create(umbral_naranja);\n Tensor input_umbral_rojo = Tensor.create(umbral_rojo);\n\n Tensor input_Plocation = Tensor.create(Plocation);\n Tensor input_Pemail = Tensor.create(Pemail);\n Tensor input_Pdevice = Tensor.create(Pdevice);\n Tensor input_Pimei = Tensor.create(Pimei);\n Tensor input_Pserialnumber = Tensor.create(Pserialnumber);\n Tensor input_Pmacaddress = Tensor.create(Pmacaddress);\n Tensor input_Padvertiser = Tensor.create(Padvertiser);\n\n\n\n ArrayList<Tensor<?>> list_op_tensor = new ArrayList<Tensor<?>>();\n\n String location_filtrado = \"NO\";\n String email_filtrado = \"NO\";\n String imei_filtrado = \"NO\";\n String device_filtrado = \"NO\";\n String serialnumber_filtrado = \"NO\";\n String macaddress_filtrado = \"NO\";\n String advertiser_filtrado = \"NO\";\n\n String filtraciones_aplicacion = \"\";\n\n if (location == 1){\n location_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Location\" + \"\\n\";\n }\n if (email == 1){\n email_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Email\" + \"\\n\";\n }\n if (device == 1){\n device_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -DeviceID\" + \"\\n\";\n }\n if (imei == 1){\n imei_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Imei\" + \"\\n\";\n\n }\n if (serialnumber == 1){\n serialnumber_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -SerialNumber\" + \"\\n\";\n\n }\n if (macaddress == 1){\n macaddress_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -MacAddress\" + \"\\n\";\n\n }\n if (advertiser == 1){\n advertiser_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -AdvertiserID\" + \"\\n\";\n\n }\n\n //Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral_green\n Tensor op_tensor_verde = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"umbral\",input_umbral_verde).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral Naranja\n Tensor op_tensor_naranja = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"umbral\",input_umbral_naranja).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral rojo\n Tensor op_tensor_rojo =sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"umbral\",input_umbral_rojo).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n\n list_op_tensor.add(op_tensor_verde);\n list_op_tensor.add(op_tensor_naranja);\n list_op_tensor.add(op_tensor_rojo);\n\n //para escribir en la app en W y B test\n // LO COMENTO 12/02/2021\n // ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n //CREAR UN TEXTO PARA ESCRIBIR EL OUTPUT PREDECIDO: Out\n\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada X=1\");\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada email,...\");\n\n String recomendacion = \"No hacer nada\";\n String Nivel = \" Bajo\";\n int Nivel_color = 0; //0 es verde, 1 naranja, 2 rojo\n if (op_tensor_verde.floatValue() == 1) {\n if(op_tensor_naranja.floatValue() == 1 ){\n if(op_tensor_rojo.floatValue() == 1 ){\n Nivel = \" Alto\";\n Nivel_color = 2;\n }\n else {\n Nivel = \" Medio\";\n Nivel_color = 1;\n }\n }\n else {\n Nivel = \" Bajo\";\n Nivel_color = 0;\n }\n }\n\n /// test.setBackgroundResource(R.color.holo_green_light);\n\n\n // resumen_app.setText(\"Resumen App analizada: \"+ \"\\n\" + \"Nota: Si una app tiene una filtración, se marcará dicho valor con un 'SI'\"+ \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado + \"\\n\" +\n // \"Recomendación: \" + recomendacion);\n subtitulo.setText(\"Nivel: \" );\n titulo.setText(Nivel );\n // titulo.setTextColor(android.R.color.background_dark);\n\n // resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado );\n resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion );\n\n //mirar bien codigo:\n if ( Nivel_color == 0) {\n // resumen_app.setBackgroundResource(R.color.verde);\n nivel_color = 0;\n resumen_app.setBackgroundResource(R.drawable.stilo_borde_textview);\n }\n if ( Nivel_color == 1) {\n // resumen_app.setBackgroundResource(R.color.naranja);\n nivel_color = 1;\n resumen_app.setBackgroundResource(R.drawable.stilo_borde_naranja);\n }\n if ( Nivel_color == 2) {\n // resumen_app.setBackgroundResource(R.color.rojo);\n nivel_color = 2;\n resumen_app.setBackgroundResource(R.drawable.stilo_borde_rojo);\n }\n\n /* ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"Plocation/read\").fetch(\"Pemail/read\").fetch(\"Pdevice/read\").fetch(\"Pimei/read\").run();\n\n // y_mejoras_location.add(((values.get(0).floatValue())));\n y_mejoras_location.add(Plocation);\n x_mejoras_location.add(\"\" + (0 + num_epoch*num));\n\n // y_mejoras_email.add(((values.get(1).floatValue())));\n y_mejoras_email.add(Pemail);\n x_mejoras_email.add(\"\" + (0 + num_epoch*num));\n\n // y_mejoras_device.add(((values.get(2).floatValue())));\n y_mejoras_device.add(Pdevice);\n x_mejoras_device.add(\"\" + (0 + num_epoch*num));\n\n //y_mejoras_imei.add(((values.get(3).floatValue())));\n y_mejoras_imei.add(Pimei);\n x_mejoras_imei.add(\"\" + (0 + num_epoch*num));\n\n\n */\n\n ///\n\n // Y.setText(Float.toString(values.get(1).floatValue()));\n\n return list_op_tensor;\n }", "private float predictPrueba(float features) {\n float n_epochs = num_epoch;\n float num1 = (float) Math.random();\n float output = 0; //y\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input = Tensor.create(features);\n Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //para escribir en la app en W y B test\n ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n Wtest.setText(\"W_inicial: \"+(Float.toString(values.get(0).floatValue())));\n Btest.setText(\"b_inicial: \"+Float.toString(values.get(1).floatValue()));\n y_mejoras_w.add(((values.get(0).floatValue())));\n x_mejoras_w.add( \"\"+(0+ num_epoch*num));\n\n y_mejoras_b.add(((values.get(1).floatValue())));\n x_mejoras_b.add( \"\"+(0+ num_epoch*num));\n\n ///\n\n // Y.setText(Float.toString(values.get(1).floatValue()));\n\n return output; ///mal\n }", "private String Funcionar_salida_Ant_umbral_lista_Dentro(float location, float email, float imei, float device, float serialnumber, float macaddress, float advertiser) {\n float n_epochs = 1;\n\n float output = 0; //y\n String op_string;\n\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input_location = Tensor.create(location);\n Tensor input_email = Tensor.create(email);\n Tensor input_imei = Tensor.create(imei);\n Tensor input_device = Tensor.create(device);\n Tensor input_serialnumber = Tensor.create(serialnumber);\n Tensor input_macaddress = Tensor.create(macaddress);\n Tensor input_advertiser = Tensor.create(advertiser);\n\n Tensor input_umbral_verde = Tensor.create(umbral_verde);\n Tensor input_umbral_naranja = Tensor.create(umbral_naranja);\n Tensor input_umbral_rojo = Tensor.create(umbral_rojo);\n\n Tensor input_Plocation = Tensor.create(Plocation);\n Tensor input_Pemail = Tensor.create(Pemail);\n Tensor input_Pdevice = Tensor.create(Pdevice);\n Tensor input_Pimei = Tensor.create(Pimei);\n Tensor input_Pserialnumber = Tensor.create(Pserialnumber);\n Tensor input_Pmacaddress = Tensor.create(Pmacaddress);\n Tensor input_Padvertiser = Tensor.create(Padvertiser);\n\n\n\n ArrayList<Tensor<?>> list_op_tensor = new ArrayList<Tensor<?>>();\n\n String location_filtrado = \"NO\";\n String email_filtrado = \"NO\";\n String imei_filtrado = \"NO\";\n String device_filtrado = \"NO\";\n String serialnumber_filtrado = \"NO\";\n String macaddress_filtrado = \"NO\";\n String advertiser_filtrado = \"NO\";\n\n String filtraciones_aplicacion = \"\";\n\n if (location == 1){\n location_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Location\" + \"\\n\";\n }\n if (email == 1){\n email_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Email\" + \"\\n\";\n }\n if (device == 1){\n device_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -DeviceID\" + \"\\n\";\n }\n if (imei == 1){\n imei_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Imei\" + \"\\n\";\n\n }\n if (serialnumber == 1){\n serialnumber_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -SerialNumber\" + \"\\n\";\n\n }\n if (macaddress == 1){\n macaddress_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -MacAddress\" + \"\\n\";\n\n }\n if (advertiser == 1){\n advertiser_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -AdvertiserID\" + \"\\n\";\n\n }\n\n\n //Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral_green\n Tensor op_tensor_verde = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_verde).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral Naranja\n Tensor op_tensor_naranja = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_naranja).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral rojo\n Tensor op_tensor_rojo =sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_rojo).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n\n list_op_tensor.add(op_tensor_verde);\n list_op_tensor.add(op_tensor_naranja);\n list_op_tensor.add(op_tensor_rojo);\n\n //para escribir en la app en W y B test\n // LO COMENTO 12/02/2021\n // ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n //CREAR UN TEXTO PARA ESCRIBIR EL OUTPUT PREDECIDO: Out\n\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada X=1\");\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada email,...\");\n\n String recomendacion = \"No hacer nada\";\n String Nivel = \" Bajo\";\n int Nivel_color = 0; //0 es verde, 1 naranja, 2 rojo\n if (op_tensor_verde.floatValue() == 1) {\n if(op_tensor_naranja.floatValue() == 1 ){\n if(op_tensor_rojo.floatValue() == 1 ){\n Nivel = \" Alto\";\n Nivel_color = 2;\n }\n else {\n Nivel = \" Medio\";\n Nivel_color = 1;\n }\n }\n else {\n Nivel = \" Bajo\";\n Nivel_color = 0;\n }\n }\n\n /// test.setBackgroundResource(R.color.holo_green_light);\n\n\n // resumen_app.setText(\"Resumen App analizada: \"+ \"\\n\" + \"Nota: Si una app tiene una filtración, se marcará dicho valor con un 'SI'\"+ \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado + \"\\n\" +\n // \"Recomendación: \" + recomendacion);\n\n // ************************* COMENTADO*********18/02\n\n // subtitulo.setText(\"Nivel: \" );\n // titulo.setText(Nivel );\n // titulo.setTextColor(android.R.color.background_dark);\n\n // resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado );\n // **********************\n // resumen_app.setText(\"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion );\n op_string = \"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion;\n\n //mirar bien codigo:\n if ( Nivel_color == 0) {\n // resumen_app.setBackgroundResource(R.color.verde);\n nivel_color = 0;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_textview);\n }\n if ( Nivel_color == 1) {\n // resumen_app.setBackgroundResource(R.color.naranja);\n nivel_color = 1;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_naranja);\n }\n if ( Nivel_color == 2) {\n // resumen_app.setBackgroundResource(R.color.rojo);\n nivel_color = 2;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_rojo);\n }\n\n\n\n\n return op_string;\n }", "public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i<nums.length;++i) System.out.print(nums[i]);\n return deserialize(new DataIterator(nums), false, 0);\n }", "private int Funcionar_salida_Ant_umbral_Color(float location, float email, float imei, float device, float serialnumber, float macaddress, float advertiser) {\n float n_epochs = 1;\n\n float output = 0; //y\n String op_string;\n\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input_location = Tensor.create(location);\n Tensor input_email = Tensor.create(email);\n Tensor input_imei = Tensor.create(imei);\n Tensor input_device = Tensor.create(device);\n Tensor input_serialnumber = Tensor.create(serialnumber);\n Tensor input_macaddress = Tensor.create(macaddress);\n Tensor input_advertiser = Tensor.create(advertiser);\n\n Tensor input_umbral_verde = Tensor.create(umbral_verde);\n Tensor input_umbral_naranja = Tensor.create(umbral_naranja);\n Tensor input_umbral_rojo = Tensor.create(umbral_rojo);\n\n Tensor input_Plocation = Tensor.create(Plocation);\n Tensor input_Pemail = Tensor.create(Pemail);\n Tensor input_Pdevice = Tensor.create(Pdevice);\n Tensor input_Pimei = Tensor.create(Pimei);\n Tensor input_Pserialnumber = Tensor.create(Pserialnumber);\n Tensor input_Pmacaddress = Tensor.create(Pmacaddress);\n Tensor input_Padvertiser = Tensor.create(Padvertiser);\n\n\n\n ArrayList<Tensor<?>> list_op_tensor = new ArrayList<Tensor<?>>();\n\n String location_filtrado = \"NO\";\n String email_filtrado = \"NO\";\n String imei_filtrado = \"NO\";\n String device_filtrado = \"NO\";\n String serialnumber_filtrado = \"NO\";\n String macaddress_filtrado = \"NO\";\n String advertiser_filtrado = \"NO\";\n String filtraciones_aplicacion = \"\";\n\n if (location == 1){\n location_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Location\" + \"\\n\";\n }\n if (email == 1){\n email_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Email\" + \"\\n\";\n }\n if (device == 1){\n device_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -DeviceID\" + \"\\n\";\n }\n if (imei == 1){\n imei_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Imei\" + \"\\n\";\n\n }\n if (serialnumber == 1){\n serialnumber_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -SerialNumber\" + \"\\n\";\n\n }\n if (macaddress == 1){\n macaddress_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -MacAddress\" + \"\\n\";\n\n }\n if (advertiser == 1){\n advertiser_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -AdvertiserID\" + \"\\n\";\n\n }\n\n\n //Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral_green\n //umbral_green\n Tensor op_tensor_verde = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_verde).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral Naranja\n Tensor op_tensor_naranja = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_naranja).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral rojo\n Tensor op_tensor_rojo =sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_rojo).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n\n list_op_tensor.add(op_tensor_verde);\n list_op_tensor.add(op_tensor_naranja);\n list_op_tensor.add(op_tensor_rojo);\n\n //para escribir en la app en W y B test\n // LO COMENTO 12/02/2021\n // ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n //CREAR UN TEXTO PARA ESCRIBIR EL OUTPUT PREDECIDO: Out\n\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada X=1\");\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada email,...\");\n\n String recomendacion = \"No hacer nada\";\n String Nivel = \" Bajo\";\n int Nivel_color = 0; //0 es verde, 1 naranja, 2 rojo\n if (op_tensor_verde.floatValue() == 1) {\n if(op_tensor_naranja.floatValue() == 1 ){\n if(op_tensor_rojo.floatValue() == 1 ){\n Nivel = \" Alto\";\n Nivel_color = 2;\n }\n else {\n Nivel = \" Medio\";\n Nivel_color = 1;\n }\n }\n else {\n Nivel = \" Bajo\";\n Nivel_color = 0;\n }\n }\n\n /// test.setBackgroundResource(R.color.holo_green_light);\n\n\n // resumen_app.setText(\"Resumen App analizada: \"+ \"\\n\" + \"Nota: Si una app tiene una filtración, se marcará dicho valor con un 'SI'\"+ \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado + \"\\n\" +\n // \"Recomendación: \" + recomendacion);\n // subtitulo.setText(\"Nivel: \" );\n // titulo.setText(Nivel );\n // titulo.setTextColor(android.R.color.background_dark);\n\n // resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado );\n // resumen_app.setText(\"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion );\n op_string = \"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion;\n\n //mirar bien codigo:\n if ( Nivel_color == 0) {\n // resumen_app.setBackgroundResource(R.color.verde);\n nivel_color = 0;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_textview);\n }\n if ( Nivel_color == 1) {\n // resumen_app.setBackgroundResource(R.color.naranja);\n nivel_color = 1;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_naranja);\n }\n if ( Nivel_color == 2) {\n // resumen_app.setBackgroundResource(R.color.rojo);\n nivel_color = 2;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_rojo);\n }\n\n\n\n return nivel_color;\n }", "public interface IDecoder<T> {\n\n\t/**\n\t * Decode the solution and return a new field of doubles.\n\t * \n\t * @param solution\n\t * @return\n\t */\n\tdouble[] decode(T solution);\n\t\n\t/**\n\t * Decode the given solution into the T solution object.\n\t * \n\t * @param solution\n\t * @param decodedSolution\n\t */\n\tvoid decode(T solution, double[] values);\n}", "private float predict(float[][] features) {\n Tensor input = Tensor.create(features);\n float[][] output = new float[1][1];\n Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n Log.i(\"Tensor Shape\", op_tensor.shape()[0] + \", \" + op_tensor.shape()[1]);\n op_tensor.copyTo(output);\n return output[0][0];\n }", "T getData();", "public abstract int decode(ByteBuffer buffer, int offset);", "void decode(T solution, double[] values);", "public byte[] decode(byte[] data) throws DecodingException {\n\t\tif (data == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint length = data.length;\n\t\tif (length % 8 != 0) {\n\t\t\tthrow new DecodingException(\"Data must be divisible by 8.\");\n\t\t}\n\t\t\n\t\tint c, cursor = 0;\n\t\tint noPadding = 0;\n\t\twhile (data[length - noPadding - 1] == PADDING) {\n\t\t\tnoPadding++;\n\t\t}\n\t\t\n\t\tif (noPadding > 6) {\n\t\t\tthrow new DecodingException(\"Inconsistent padding found (padding length = \" + noPadding + \").\");\n\t\t}\n\t\t\n\t\tbyte[] result = new byte[(length - noPadding) * 5 / 8];\n\t\t\n\t\tint maxGrouping = (length - noPadding)/8;\n\t\tfor (c = 0; c < (maxGrouping * 8); c+= 8) {\n\t\t\twhile (BASE_32_DECODE_TABLE[data[c]] == -1) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 6]] << 5) | BASE_32_DECODE_TABLE[data[c + 7]]);\n\t\t}\n\t\t\n\t\tif (noPadding > 0) {\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\t\n\t\t\tif (noPadding == 4) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1));\n\t\t\t} else if (noPadding <= 3) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\t\t\n\t\t\t\tif (noPadding == 1) {\n\t\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tpublic MapDataMessage decode(ChannelBuffer buffer) {\n\t\tint constant = buffer.readShort();\n\t\tint id = buffer.readShort();\n\t\tint length = buffer.readUnsignedByte();\n\t\tbyte[] data = new byte[length];\n\t\tbuffer.readBytes(data);\n\t\treturn new MapDataMessage(id, data);\n\t}", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "@Override\n\tpublic BinaryWord decode(BinaryWord input) {\n\t\tif (input.getLength() != this.parameterN)\n\t\t\treturn null;\n\n\t\tBinaryWord decoded = new BinaryWord(this.parameterL);\n\t\tfor (int i = 1; i <= this.parameterL; ++i) {\n\t\t\tdecoded.setElement(i, input.getElement(i));\n\t\t}\n\n\t\treturn decoded;\n\t}", "Nda<V> transpose( int dim1, int dim2 );", "private static int [] yy_unpack() {\n int [] trans = new int[8174];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }", "@Override\n public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception {\n int len = in.limit(); \n \tbyte [] dst=new byte [len]; \n \tin.get(dst); \n ByteArrayInputStream is = new ByteArrayInputStream(dst);\n HessianInput hi = new HessianInput(is);\n Object entity= hi.readObject();\n out.write(entity);\n }", "public CArray data() {\n return CArray.frompointer(TH.THTensor_(data)(this));\n }", "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "static Nda<Integer> of( int... value ) { return Tensor.of( Integer.class, Shape.of( value.length ), value ); }", "public final NDArray[] decompose(NDArray input) {\n if (input.shape().order() < 3) {\n return onMatrix(input);\n }\n NDArray[][] results = new NDArray[components][input.shape().sliceLength];\n for (int i = 0; i < input.shape().sliceLength; i++) {\n NDArray[] slice = onMatrix(input.slice(i));\n for (int j = 0; j < components; j++) {\n results[j][i] = slice[j];\n }\n }\n NDArray[] out = new NDArray[components];\n for (int j = 0; j < components; j++) {\n out[j] = new Tensor(input.kernels(), input.channels(), results[j]);\n }\n return out;\n }", "private static int [] yy_unpack() {\n int [] trans = new int[5476];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }", "public abstract Object decode(InputStream is) ;", "public TargetType deserialize(BufferView data) throws IOException {\n return deserialize(data.getReader());\n }", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "protected abstract <T> T decode(Class<T> clazz, byte[] bytes) throws EncoderException;", "float predict();", "@Override\r\n\tpublic FloatMat data() { return this.data; }", "private float[] predict(float[] input) {\n float thisOutput[] = new float[1];\n\n // feed network with input of shape (1,input.length) = (1,2)\n inferenceInterface.feed(\"dense_1_input\", input, 1, input.length);\n inferenceInterface.run(new String[]{\"dense_2/Relu\"});\n inferenceInterface.fetch(\"dense_2/Relu\", thisOutput);\n\n // return prediction\n return thisOutput;\n }", "public E decode(ArrayList<Integer> individual);", "static Nda<Float> of( float... value ) { return Tensor.of( Float.class, Shape.of( value.length ), value ); }", "@Test\n public void initializeTensorsWithZeros() {\n T tensor = allocateTensor(Shape.of(2, 3, 2));\n\n assertEquals(3, tensor.rank());\n assertEquals(12, tensor.size());\n NdArray<U> data = (NdArray<U>)tensor;\n\n try (EagerSession session = EagerSession.create()) {\n Ops tf = Ops.create(session);\n\n // Initialize tensor memory with zeros and take a snapshot\n data.scalars().forEach(scalar -> ((NdArray<U>)scalar).setObject(valueOf(0)));\n Constant<T> x = tf.constantOf(tensor);\n\n // Initialize the same tensor memory with ones and take a snapshot\n data.scalars().forEach(scalar -> ((NdArray<U>)scalar).setObject(valueOf(1)));\n Constant<T> y = tf.constantOf(tensor);\n\n // Subtract y from x and validate the result\n Sub<T> sub = tf.math.sub(x, y);\n ((NdArray<U>)sub.asTensor()).scalars().forEach(scalar ->\n assertEquals(valueOf(-1), scalar.getObject())\n );\n }\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "Object decode(String encoded);", "static Nda<Integer> of( Shape shape, int... values ) { return Tensor.ofAny( Integer.class, shape, values ); }", "void loadNodeData(byte[] data) throws Exception;", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public FeatureData read(Reader r) throws IOException, DataFormatException;", "private void loadInterpreter() throws IOException {\n tflite = new Interpreter(loadModelFile(activity));\n\n labelList = loadLabelList(activity);\n // the image as ByteBuffer\n imgData = ByteBuffer.allocateDirect((int)(4 *\n parameter.get(\"dimBatchSize\") *\n parameter.get(\"tensorImageWidth\") *\n parameter.get(\"tensorImageHeight\") *\n parameter.get(\"dimPixelSize\")));\n imgData.order(ByteOrder.nativeOrder());\n labelProbArray = new float[1][labelList.size()];\n filterLabelProbArray = new float[Math.round(parameter.get(\"filterStages\"))][labelList.size()];\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "public void decodev_set(float[] out, int offset, OggReader read, int n) {\n for( int i = 0; i < n; ) {\n int entry = decode_packed_entry_number(read);\n//\t System.out.println( \"decodec_set \" + entry );\n int t = entry * dim;\n for ( int j = 0; j < dim; j++ ) {\n out[ offset + (i++) ]=valuelist[ t + j ];\n//System.out.println( (int)(valuelist[t+j]*1000) );\n }\n }\n }", "void decodeObjectArray();", "@Override\n public Value64 read() {\n int s = input0.read().intValue();\n int t = input1.read().intValue();\n long d = 0;\n switch (mduOp.read().byteValue()) {\n case AluOp.Multiply:\n d = s * t;\n break;\n case AluOp.Divide:\n d = s / t;\n break;\n }\n return new Value64(d);\n }", "static Nda<Long> of( Shape shape, long... values ) { return Tensor.ofAny( Long.class, shape, values ); }", "private native void convertToLum( short[] data, int w, int h );", "IMessage decode(byte[] data) throws InvalidMessageException;", "static Nda<Float> of( Shape shape, float... values ) { return Tensor.ofAny( Float.class, shape, values ); }", "byte[] inflate(byte[] data) throws IOException;", "public Instruction decode() {\n String type = nullIsIllegal(json.get(InstructionCodec.TYPE),\n InstructionCodec.TYPE + InstructionCodec.ERROR_MESSAGE).asText();\n\n if (type.equals(Instruction.Type.OUTPUT.name())) {\n return Instructions.createOutput(getPortNumber(json));\n } else if (type.equals(Instruction.Type.NOACTION.name())) {\n return Instructions.createNoAction();\n } else if (type.equals(Instruction.Type.TABLE.name())) {\n return Instructions.transition(nullIsIllegal(json.get(InstructionCodec.TABLE_ID),\n InstructionCodec.TABLE_ID + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n } else if (type.equals(Instruction.Type.GROUP.name())) {\n GroupId groupId = new GroupId(nullIsIllegal(json.get(InstructionCodec.GROUP_ID),\n InstructionCodec.GROUP_ID + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt());\n return Instructions.createGroup(groupId);\n } else if (type.equals(Instruction.Type.METER.name())) {\n MeterId meterId = MeterId.meterId(nullIsIllegal(json.get(InstructionCodec.METER_ID),\n InstructionCodec.METER_ID + InstructionCodec.MISSING_MEMBER_MESSAGE).asLong());\n return Instructions.meterTraffic(meterId);\n } else if (type.equals(Instruction.Type.QUEUE.name())) {\n long queueId = nullIsIllegal(json.get(InstructionCodec.QUEUE_ID),\n InstructionCodec.QUEUE_ID + InstructionCodec.MISSING_MEMBER_MESSAGE).asLong();\n if (json.get(InstructionCodec.PORT) == null ||\n json.get(InstructionCodec.PORT).isNull()) {\n return Instructions.setQueue(queueId, null);\n } else {\n return Instructions.setQueue(queueId, getPortNumber(json));\n }\n } else if (type.equals(Instruction.Type.L0MODIFICATION.name())) {\n return decodeL0();\n } else if (type.equals(Instruction.Type.L1MODIFICATION.name())) {\n return decodeL1();\n } else if (type.equals(Instruction.Type.L2MODIFICATION.name())) {\n return decodeL2();\n } else if (type.equals(Instruction.Type.L3MODIFICATION.name())) {\n return decodeL3();\n } else if (type.equals(Instruction.Type.L4MODIFICATION.name())) {\n return decodeL4();\n } else if (type.equals(Instruction.Type.EXTENSION.name())) {\n return decodeExtension();\n } else if (type.equals(Instruction.Type.POFINSTRUCTION.name())) {\n return decodePof();\n }\n throw new IllegalArgumentException(\"Instruction type \"\n + type + \" is not supported\");\n }", "public void read(ArrayDataInput in) throws FitsException, IOException;", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T convertData(Data data, Class<T> targetClass) {\n\t\tif (data.getType().getName().equals(\"string\")) {\n\t\t\tString string;\n\t\t\ttry {\n\t\t\t\tstring = new DataInputStream(data.getValue()).readUTF();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) string;\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(string);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(string);\n\t\t\t}\n\t\t} else if (data.getType().getName().equals(\"int32\")) {\n\t\t\tint integer;\n\t\t\ttry {\n\t\t\t\tinteger = new DataInputStream(data.getValue()).readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) String.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(integer);\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Conversion for \" + data.getType().getName() + \" to \" + targetClass\n\t\t\t\t+ \" not implemented yet\");\n\t}", "public Object bytesToValue(byte[] data, int requestOffset) {\n // Determined the offset normalized to the response data.\n int nOffset = offset - requestOffset;\n \n // If this is a coil or input, convert to boolean.\n if (slaveAndRange.getRange() == RegisterRange.COIL_STATUS || \n slaveAndRange.getRange() == RegisterRange.INPUT_STATUS)\n return new Boolean((((data[nOffset/8] & 0xff) >> (nOffset%8)) & 0x1) == 1);\n \n // For the rest of the types, we double the normalized offset to account for short to byte.\n nOffset *= 2;\n\n // We could still be asking for a binary if it's a bit in a register.\n if (dataType == DataType.BINARY)\n return new Boolean((((data[nOffset + 1 - bit/8] & 0xff) >> (bit%8)) & 0x1) == 1);\n \n // Handle the numeric types.\n // 2 bytes\n if (dataType == DataType.TWO_BYTE_INT_UNSIGNED)\n return new Integer(((data[nOffset] & 0xff) << 8) | (data[nOffset+1] & 0xff));\n \n if (dataType == DataType.TWO_BYTE_INT_SIGNED)\n return new Short((short)(((data[nOffset] & 0xff) << 8) | (data[nOffset+1] & 0xff)));\n \n if (dataType == DataType.TWO_BYTE_BCD) {\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<2; i++) {\n sb.append(bcdNibbleToInt(data[nOffset+i], true));\n sb.append(bcdNibbleToInt(data[nOffset+i], false));\n }\n return Short.parseShort(sb.toString());\n }\n \n // 4 bytes\n if (dataType == DataType.FOUR_BYTE_INT_UNSIGNED)\n return new Long(\n ((long)((data[nOffset] & 0xff)) << 24) | ((long)((data[nOffset+1] & 0xff)) << 16) | \n ((long)((data[nOffset+2] & 0xff)) << 8) | ((data[nOffset+3] & 0xff)));\n \n if (dataType == DataType.FOUR_BYTE_INT_SIGNED)\n return new Integer(\n ((data[nOffset] & 0xff) << 24) | ((data[nOffset+1] & 0xff) << 16) | \n ((data[nOffset+2] & 0xff) << 8) | (data[nOffset+3] & 0xff));\n \n if (dataType == DataType.FOUR_BYTE_INT_UNSIGNED_SWAPPED)\n return new Long(\n ((long)((data[nOffset+2] & 0xff)) << 24) | ((long)((data[nOffset+3] & 0xff)) << 16) | \n ((long)((data[nOffset] & 0xff)) << 8) | ((data[nOffset+1] & 0xff)));\n \n if (dataType == DataType.FOUR_BYTE_INT_SIGNED_SWAPPED)\n return new Integer(\n ((data[nOffset+2] & 0xff) << 24) | ((data[nOffset+3] & 0xff) << 16) | \n ((data[nOffset] & 0xff) << 8) | (data[nOffset+1] & 0xff));\n \n if (dataType == DataType.FOUR_BYTE_FLOAT)\n return Float.intBitsToFloat(\n ((data[nOffset] & 0xff) << 24) | ((data[nOffset+1] & 0xff) << 16) | \n ((data[nOffset+2] & 0xff) << 8) | (data[nOffset+3] & 0xff));\n \n if (dataType == DataType.FOUR_BYTE_FLOAT_SWAPPED)\n return Float.intBitsToFloat(\n ((data[nOffset+2] & 0xff) << 24) | ((data[nOffset+3] & 0xff) << 16) | \n ((data[nOffset] & 0xff) << 8) | (data[nOffset+1] & 0xff));\n \n if (dataType == DataType.FOUR_BYTE_BCD) {\n StringBuilder sb = new StringBuilder();\n for (int i=0; i<4; i++) {\n sb.append(bcdNibbleToInt(data[nOffset+i], true));\n sb.append(bcdNibbleToInt(data[nOffset+i], false));\n }\n return Integer.parseInt(sb.toString());\n }\n \n // 8 bytes\n if (dataType == DataType.EIGHT_BYTE_INT_UNSIGNED) {\n byte[] b9 = new byte[9];\n System.arraycopy(data, nOffset, b9, 1, 8);\n return new BigInteger(b9);\n }\n \n if (dataType == DataType.EIGHT_BYTE_INT_SIGNED)\n return new Long(\n ((long)((data[nOffset] & 0xff)) << 56) | ((long)((data[nOffset+1] & 0xff)) << 48) | \n ((long)((data[nOffset+2] & 0xff)) << 40) | ((long)((data[nOffset+3] & 0xff)) << 32) |\n ((long)((data[nOffset+4] & 0xff)) << 24) | ((long)((data[nOffset+5] & 0xff)) << 16) | \n ((long)((data[nOffset+6] & 0xff)) << 8) | ((data[nOffset+7] & 0xff)));\n \n if (dataType == DataType.EIGHT_BYTE_INT_UNSIGNED_SWAPPED) {\n byte[] b9 = new byte[9];\n b9[1] = data[nOffset+6];\n b9[2] = data[nOffset+7];\n b9[3] = data[nOffset+4];\n b9[4] = data[nOffset+5];\n b9[5] = data[nOffset+2];\n b9[6] = data[nOffset+3];\n b9[7] = data[nOffset];\n b9[8] = data[nOffset+1];\n return new BigInteger(b9);\n }\n \n if (dataType == DataType.EIGHT_BYTE_INT_SIGNED_SWAPPED)\n return new Long(\n ((long)((data[nOffset+6] & 0xff)) << 56) | ((long)((data[nOffset+7] & 0xff)) << 48) | \n ((long)((data[nOffset+4] & 0xff)) << 40) | ((long)((data[nOffset+5] & 0xff)) << 32) |\n ((long)((data[nOffset+2] & 0xff)) << 24) | ((long)((data[nOffset+3] & 0xff)) << 16) | \n ((long)((data[nOffset] & 0xff)) << 8) | ((data[nOffset+1] & 0xff)));\n \n if (dataType == DataType.EIGHT_BYTE_FLOAT)\n return Double.longBitsToDouble(\n ((long)((data[nOffset] & 0xff)) << 56) | ((long)((data[nOffset+1] & 0xff)) << 48) | \n ((long)((data[nOffset+2] & 0xff)) << 40) | ((long)((data[nOffset+3] & 0xff)) << 32) | \n ((long)((data[nOffset+4] & 0xff)) << 24) | ((long)((data[nOffset+5] & 0xff)) << 16) | \n ((long)((data[nOffset+6] & 0xff)) << 8) | ((data[nOffset+7] & 0xff)));\n \n if (dataType == DataType.EIGHT_BYTE_FLOAT_SWAPPED)\n return Double.longBitsToDouble(\n ((long)((data[nOffset+6] & 0xff)) << 56) | ((long)((data[nOffset+7] & 0xff)) << 48) | \n ((long)((data[nOffset+4] & 0xff)) << 40) | ((long)((data[nOffset+5] & 0xff)) << 32) | \n ((long)((data[nOffset+2] & 0xff)) << 24) | ((long)((data[nOffset+3] & 0xff)) << 16) | \n ((long)((data[nOffset] & 0xff)) << 8) | ((data[nOffset+1] & 0xff)));\n \n throw new RuntimeException(\"Unsupported data type: \"+ dataType);\n }", "T deserializeData(R r) throws SQLException;", "abstract Vec predict(Vec in);", "org.tensorflow.example.VarLenFeatureProto getVarLenFeature();", "@Override\n public Order deserialize(String topic, byte[] data) {\n ObjectMapper objectMapper = new ObjectMapper();\n Order order = null;\n try {\n // Deserialize the byte array into an Order object using Jackson\n order = objectMapper.readValue(data, Order.class);\n } catch (IOException e) {\n // Handle any deserialization errors and print the stack trace\n e.printStackTrace();\n }\n return order;\n }", "public PointData translate(PointData data) {\n return data;\n }", "static <T> Nda<T> of( Iterable<T> values ) { return Tensor.of(values); }", "static Nda<Long> of( long... value ) { return Tensor.of( Long.class, Shape.of( value.length ), value ); }", "public kNNNode(double[] data){\n this.data = data;\n this.id = count;\n count += 1;\n }", "Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);", "public abstract void load(IntFloatsCol col, DataInputStream output) throws IOException;", "protected Object decode(ChannelHandlerContext ctx, ByteBuf in)\r\n/* 30: */ throws Exception\r\n/* 31: */ {\r\n/* 32:74 */ if (in.readableBytes() < this.frameLength) {\r\n/* 33:75 */ return null;\r\n/* 34: */ }\r\n/* 35:77 */ return in.readRetainedSlice(this.frameLength);\r\n/* 36: */ }", "T convert(F experimenterMessageCase, D data) throws ConversionException;", "public Table<Integer, Integer, String> getData();", "private byte[] decode(ByteBuffer bytes) {\n \treturn bytes.array();\r\n }", "Object getRawData();", "@Override\n public TensorBuffer getTensorBuffer(DataType dataType) {\n return buffer.getDataType() == dataType ? buffer\n : TensorBuffer.createFrom(buffer, dataType);\n }", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }", "private Object readResolve() throws ObjectStreamException {\r\n if (this.equals(DatasetRenderingOrder.FORWARD)) {\r\n return DatasetRenderingOrder.FORWARD;\r\n }\r\n else if (this.equals(DatasetRenderingOrder.REVERSE)) {\r\n return DatasetRenderingOrder.REVERSE;\r\n }\r\n return null;\r\n }", "byte[] decodeBytes();", "public void decode(byte[] data)\n\t{\n\t\ttry\n\t\t{\n\n\t\t\tByteArrayInputStream bstream = new ByteArrayInputStream(data);\n\t\t\tDataInputStream istream = new DataInputStream(bstream);\n\t\t\tlevel = istream.readInt();\n\t\t\thp = istream.readInt();\n\t\t\tattack = istream.readInt();\n\t\t\tdefend = istream.readInt();\n\t\t\tmoney = istream.readInt();\n\t\t\texperience = istream.readInt();\n\t\t\tyellowKey = istream.readInt();\n\t\t\tblueKey = istream.readInt();\n\t\t\tredKey = istream.readInt();\n\t\t\tint can = istream.readInt();\n\t\t\t// canlookup\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanLookup = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanLookup = true;\n\t\t\t}\n\t\t\tcan = istream.readInt();\n\t\t\t// canjump\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanJump = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanJump = true;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"decode error::\" + e);\n\t\t}\n\t}", "private void read(double[][][] data) {\n // Verifies consistency of row lengths\n for (int i = 1; i < data.length; ++i) {\n if (data[i].length != data[i - 1].length) {\n throw new IllegalArgumentException(\"rows of data must be of same length\");\n }\n }\n\n width = data[0].length;\n height = data.length;\n // Extends width/height to the lowest multiple of 8 <= width/height\n int extWidth = width + Math.floorMod(8 - width, 8);\n int extHeight = height + Math.floorMod(8 - height, 8);\n\n alphaChannel = new int[extHeight][extWidth];\n double[][] yPlane = new double[extHeight][extWidth];\n double[][] cBPlane = new double[extHeight][extWidth];\n double[][] cRPlane = new double[extHeight][extWidth];\n\n // Fills in channels with values for data or values for a black pixel in yCbCr\n for (int x = 0; x < extHeight; ++x) {\n for (int y = 0; y < extWidth; ++y) {\n if (x < height && y < width) {\n alphaChannel[x][y] = (int) data[x][y][0];\n yPlane[x][y] = data[x][y][1];\n cBPlane[x][y] = data[x][y][2];\n cRPlane[x][y] = data[x][y][3];\n }\n else {\n // Default values if x and y are not in bounds of data\n alphaChannel[x][y] = 0xFF;\n yPlane[x][y] = 0x10;\n cBPlane[x][y] = 0x80;\n cRPlane[x][y] = 0x80;\n }\n }\n }\n\n // Downsamples chrominance channels and compresses both chrominance and luminance\n yChannel = compress(yPlane);\n cBChannel = compress(downsample(cBPlane));\n cRChannel = compress(downsample(cRPlane));\n }", "public static FullPositionVector decodeValue(PerCoder coder, InputBitStream source, FullPositionVector data)\n\t throws IOException, DecoderException, DecodeFailedException\n {\n\tboolean _has_extensions0 = source.readBit();\n\tint len0 = 0;\n\tInputBitStream bitstream0 = null;\n\n\tboolean has_utcTime0 = source.readBit();\n\tboolean has_elevation0 = source.readBit();\n\tboolean has_heading0 = source.readBit();\n\tboolean has_speed0 = source.readBit();\n\tboolean has_posAccuracy0 = source.readBit();\n\tboolean has_timeConfidence0 = source.readBit();\n\tboolean has_posConfidence0 = source.readBit();\n\tboolean has_speedConfidence0 = source.readBit();\n /** Decode root fields **/\n\tif (has_utcTime0) {\n\t // Decode field 'utcTime'\n\t try {\n\t\tif (data.utcTime == null)\n\t\t data.utcTime = new DDateTime();\n\t\tdata.utcTime.decodeValue(coder, source, data.utcTime);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.utcTime = null;\n\t}\n\t// Decode field 'long'\n\ttry {\n\t long temp1;\n\n\t if (data._long == null)\n\t\tdata._long = new Longitude();\n\t temp1 = coder.decodeConstrainedWholeNumber(source, -1800000000, 1800000001);\n\t if (temp1 > 1800000001)\n\t\tthrow new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t data._long.setValue(temp1);\n\t} catch (Exception e) {\n\t DecoderException de = DecoderException.wrapException(e);\n\t de.appendFieldContext(\"long\", \"Longitude\");\n\t throw de;\n\t}\n\t// Decode field 'lat'\n\ttry {\n\t long temp1;\n\n\t if (data.lat == null)\n\t\tdata.lat = new Latitude();\n\t temp1 = coder.decodeConstrainedWholeNumber(source, -900000000, 900000001);\n\t if (temp1 > 900000001)\n\t\tthrow new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t data.lat.setValue(temp1);\n\t} catch (Exception e) {\n\t DecoderException de = DecoderException.wrapException(e);\n\t de.appendFieldContext(\"lat\", \"Latitude\");\n\t throw de;\n\t}\n\tif (has_elevation0) {\n\t // Decode field 'elevation'\n\t try {\n\t\tdata.elevation = new Elevation(com.oss.coders.per.PerOctets.decode(coder, source, 2, 2));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"elevation\", \"Elevation\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.elevation = null;\n\t}\n\tif (has_heading0) {\n\t // Decode field 'heading'\n\t try {\n\t\tlong temp1;\n\n\t\tif (data.heading == null)\n\t\t data.heading = new Heading();\n\t\ttemp1 = coder.decodeConstrainedWholeNumber(source, 0, 28800);\n\t\tif (temp1 > 28800)\n\t\t throw new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t\tdata.heading.setValue(temp1);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"heading\", \"Heading\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.heading = null;\n\t}\n\tif (has_speed0) {\n\t // Decode field 'speed'\n\t try {\n\t\tdata.speed = new TransmissionAndSpeed(com.oss.coders.per.PerOctets.decode(coder, source, 2, 2));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.speed = null;\n\t}\n\tif (has_posAccuracy0) {\n\t // Decode field 'posAccuracy'\n\t try {\n\t\tdata.posAccuracy = new PositionalAccuracy(com.oss.coders.per.PerOctets.decode(coder, source, 4, 4));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.posAccuracy = null;\n\t}\n\tif (has_timeConfidence0) {\n\t // Decode field 'timeConfidence'\n\t try {\n\t\tint idx1;\n\n\t\tidx1 = (int)coder.decodeConstrainedWholeNumber(source, 0, 39);\n\t\tif (idx1 < 0 || idx1 > 39)\n\t\t throw new DecoderException(ExceptionDescriptor._not_enumerated, null, \"index = \" + idx1);\n\t\tdata.timeConfidence = TimeConfidence.valueAt(idx1);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.timeConfidence = null;\n\t}\n\tif (has_posConfidence0) {\n\t // Decode field 'posConfidence'\n\t try {\n\t\tdata.posConfidence = new PositionConfidenceSet(com.oss.coders.per.PerOctets.decode(coder, source, 1, 1));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.posConfidence = null;\n\t}\n\tif (has_speedConfidence0) {\n\t // Decode field 'speedConfidence'\n\t try {\n\t\tdata.speedConfidence = new SpeedandHeadingandThrottleConfidence(com.oss.coders.per.PerOctets.decode(coder, source, 1, 1));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.speedConfidence = null;\n\t}\n /** Decode extensions **/\n\tif (!_has_extensions0) {\n\t return data;\n\t}\n\tlen0 = coder.decodeNormallySmallLength(source);\n\tif (coder.moreFragments())\n\t throw new DecoderException(com.oss.util.ExceptionDescriptor._too_many_ext_additions, null, \"16384 or more\");\n\tint unknown_exts0 = 0;\n\tif (len0 > 0)\n\t for (int idx0 = 0; idx0 < len0 - 0; idx0++) {\n\t\tif (source.readBit())\n\t\t ++unknown_exts0;\n\t }\n /** Decode extension fields **/\n\tbitstream0 = source;\n\tsource = coder.createNestedStream(bitstream0);\n\ttry {\n\t} finally {\n\t source.close();\n\t}\n\tsource = bitstream0;\n\tfor (int idx0 = 0; idx0 < unknown_exts0; idx0++) {\n\t try {\n\t\tcom.oss.coders.per.PerOctets.skip(coder, source);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendExtensionContext(null, idx0);\n\t\tthrow de;\n\t }\n\t}\n\treturn data;\n }", "private byte[] decode(Node root) {\n BitSet dataInBits = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, buffer.capacity()));\n int bitIndex = 0;\n\n ByteBuffer result = ByteBuffer.allocate(inputFileSize);\n\n for (int i = 0; i < inputFileSize; i++) {\n Node node = root;\n while (!node.hasValue() && i < inputFileSize) {\n boolean bit = dataInBits.get(bitIndex);\n bitIndex += 1;\n if (bit) node = node.getRightChild();\n else node = node.getLeftChild();\n }\n if (node.hasValue()) {\n result.put(node.getValue());\n }\n }\n\n // preparing byte buffer for converting to byte array\n int pos = result.position();\n result.flip();\n byte[] resultArray = new byte[pos];\n result.get(resultArray);\n return resultArray;\n }", "static Nda<Short> of( short... value ) { return Tensor.of( Short.class, Shape.of( value.length ), value ); }", "static Nda<Short> of( Shape shape, short... values ) { return Tensor.ofAny( Short.class, shape, values ); }", "Object convert(Object source, TypeToken<?> targetTypeToken);", "private RealDecisionTree deserialize(byte[] bytes){\n try {\n ObjectInputStream stream = new ObjectInputStream(new ByteArrayInputStream(bytes));\n RealDecisionTree tree = (RealDecisionTree)stream.readObject();\n return tree;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public interface Transformer<T> extends Serializable{\n\n\t/**\n\t * Transform an input dataset into an output dataset (for example by adding an additional prediction attribute)\n\t */\n\tIStreamList<T> transform(IStreamList<T> dataset);\n\t\n}", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "org.tensorflow.example.FixedLenFeatureProto getFixedLenFeature();", "public static void ulawToLinear(byte[] ulawData, int ulawOffset, int length,\n int[] linearData) {\n\n int inIx = ulawOffset;\n\n for (int i = 0; i < length; i++) {\n linearData[i] = ulawToLinearTable[ulawData[inIx] + 128];\n inIx++;\n }\n }", "public PlanarYUVLuminanceSource buildLuminanceSource(byte[] data,\n\t\t\tint width, int height) throws IllegalArgumentException\n\t{\n\t\tRect rect = computeFramingRectInPreview();\n\t\tif (rect == null) {\n\t\t\trect = new Rect(0,0,width,height);\n\t\t}\n\t\tPoint cameraResolution = new Point(width, height);\n\t\t\n//\t\tLog.d(TAG, \"test : \" + ninetydegreesFromCamera + \",\" + needsFlip);\n \twasFlipped = false;\n\t if (ninetydegreesFromCamera && (needsFlip || onlyOneDimension))\n\t\t{\n\t \twasFlipped = true;\n//\t\t\tLog.d(TAG, \"needs rotation: \" + currentImageRotation);\n//\t\t\tint rotation = (360 - currentImageRotation) % 360;\n\t\t\tif (mirrored)\n\t\t\t\tcurrentFlippedRotation = (currentImageRotation == 90)?0:180;\n\t\t\telse\n\t\t\t\tcurrentFlippedRotation = (currentImageRotation == 90)?180:0;\n\n\t\t\trect = rotateRect(rect, cameraResolution, 90);\n\t\t\trect.intersect(0,0,height, width);\n//\t\t\tLog.d(TAG, \"rotation new rect: \" + rect);\n//\t\t\tif (currentImageRotation == 270)\n//\t\t\t{\n//\t\t\t\tcurrentFlippedRotation = 180;\n//\t\t\t\tLog.d(TAG, \"algo1: \");\n\t\t\t\tbyte[] rotatedData = new byte[data.length];\n\t\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\t\tfor (int x = 0; x < width; x++)\n\t\t\t\t\t\trotatedData[x * height + height - y - 1] = data[x + y * width];\n\t\t\t\t}\n\t\t\t int tmp = width; // Here we are swapping, that's the difference to #11\n\t\t\t width = height;\n\t\t\t height = tmp;\n\t\t\t data = rotatedData;\n//\t\t\t}\n//\t\t\telse\n//\t\t\t{\n//\t\t\t\tcurrentFlippedRotation = 0;\n//\t\t\t\t//NOT WORKING!\n//\t\t\t\t// HACK: the frame sent by the camera is rotated, we need to rotate it before we continue.\n//\t\t\t\tLog.d(TAG, \"algo2: \");\n//\t\t\t\tbyte[] rotatedData = new byte[data.length];\n//\t\t\t\tfor (int y = 0; y < height; y++) {\n//\t\t\t\t\tfor (int x = 0; x < width; x++)\n//\t\t\t\t\t\trotatedData[x * height + height - y - 1] = data[x + y * width];\n//\t\t\t\t}\n//\t\t\t int tmp = width; // Here we are swapping, that's the difference to #11\n//\t\t\t width = height;\n//\t\t\t height = tmp;\n//\t\t\t data = rotatedData;\n//\t\t\t}\n\t\t}\n\t else\n\t {\n\t \tcurrentFlippedRotation = currentImageRotation;\n\t }\n\n\t\t// Go ahead and assume it's YUV rather than die.\n\t\treturn new PlanarYUVLuminanceSource(data, width, height, rect.left,\n\t\t\t\trect.top, rect.width(), rect.height(), false);\n\t}", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public Bitmap stylizeImage(TensorFlowInferenceInterface inferenceInterface, Bitmap bitmap) {\n bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n for (int i = 0; i < intValues.length; ++i) {\n final int val = intValues[i];\n floatValues[i * 3 + 0] = ((val >> 16) & 0xFF) * 1.0f;\n floatValues[i * 3 + 1] = ((val >> 8) & 0xFF) * 1.0f;\n floatValues[i * 3 + 2] = (val & 0xFF) * 1.0f;\n }\n\n Trace.beginSection(\"feed\");\n inferenceInterface.feed(INPUT_NAME, floatValues, INPUT_SIZE, INPUT_SIZE, 3);\n Trace.endSection();\n\n Trace.beginSection(\"run\");\n inferenceInterface.run(new String[]{OUTPUT_NAME});\n Trace.endSection();\n\n Trace.beginSection(\"fetch\");\n inferenceInterface.fetch(OUTPUT_NAME, floatValues);\n Trace.endSection();\n\n for (int i = 0; i < intValues.length; ++i) {\n intValues[i] =\n 0xFF000000\n | (((int) (floatValues[i * 3 + 0])) << 16)\n | (((int) (floatValues[i * 3 + 1])) << 8)\n | ((int) (floatValues[i * 3 + 2]));\n }\n bitmap.setPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n return bitmap;\n }", "public interface Decoder<InBuffer> {\n\n Class<?> getDefaultClass();\n\n Object decode(Context context, Type type, Short typeLength, Integer typeModifier, InBuffer buffer, Class<?> targetClass, Object targetContext) throws IOException;\n\n }", "private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }", "@SafeVarargs\n static <T> Nda<T> of( T... values ) { return Tensor.of(values); }", "Object deserialize(Writable blob) throws SerDeException;", "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n String st = BinaryStdIn.readString();\n char[] t1 = st.toCharArray();\n int length = t1.length;\n\n int[] count = new int[R + 1];\n int[] next = new int[length];\n\n for (int i = 0; i < length; i++)\n count[t1[i] + 1]++;\n for (int r = 0; r < R; r++)\n count[r + 1] += count[r];\n for (int i = 0; i < length; i++)\n next[count[t1[i]]++] = i;\n\n\n for (int i = 0; i < length; i++) {\n first = next[first];\n BinaryStdOut.write(t1[first]);\n\n }\n BinaryStdOut.close();\n }" ]
[ "0.5683125", "0.55445176", "0.5479837", "0.51887816", "0.5188482", "0.5157029", "0.51329815", "0.509994", "0.5090933", "0.50558645", "0.50093836", "0.50061625", "0.49957013", "0.49410608", "0.48669353", "0.48322028", "0.47335756", "0.47123072", "0.46438247", "0.46265718", "0.4609641", "0.4608669", "0.46031326", "0.46027952", "0.46009907", "0.4579519", "0.45771357", "0.45513725", "0.45511356", "0.45505956", "0.45480335", "0.4547709", "0.4531597", "0.4525666", "0.45223087", "0.45174292", "0.4506976", "0.450578", "0.45015875", "0.44933403", "0.44633326", "0.4458299", "0.44534773", "0.44387013", "0.44273254", "0.4412223", "0.44077116", "0.44030985", "0.44015574", "0.4397563", "0.4384446", "0.43481162", "0.43377018", "0.4337328", "0.43346462", "0.43339327", "0.43206635", "0.4318536", "0.4316609", "0.4312959", "0.4299873", "0.4298396", "0.42922035", "0.42798373", "0.4279005", "0.42775568", "0.4273747", "0.42679155", "0.42651302", "0.4262176", "0.4257793", "0.4253062", "0.42504516", "0.42481905", "0.42397866", "0.42329797", "0.42322698", "0.42304456", "0.4228318", "0.42218032", "0.42100322", "0.42016283", "0.4196654", "0.4194477", "0.41916165", "0.41906306", "0.418008", "0.4177036", "0.4176345", "0.4170768", "0.41620028", "0.41600528", "0.41527468", "0.41496035", "0.41477922", "0.41471773", "0.41467148", "0.41462559", "0.4145185", "0.41429234" ]
0.5199091
3
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
public void b(android.database.sqlite.SQLiteDatabase r12) { /* r11 = this; r6 = 0; r9 = 20; r7 = 1; r1 = 0; r4 = 0; r0 = "select id, value from runtime order by id"; r2 = 0; r0 = r12.rawQuery(r0, r2); Catch:{ Exception -> 0x02e8, all -> 0x02e5 } if (r0 == 0) goto L_0x02d6; L_0x0010: r2 = r0.moveToNext(); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r2 == 0) goto L_0x02d6; L_0x0016: r2 = 0; r3 = 1; r8 = r0.getInt(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r8 == r7) goto L_0x0028; L_0x001e: r2 = 14; if (r8 == r2) goto L_0x0028; L_0x0022: r2 = 19; if (r8 == r2) goto L_0x0028; L_0x0026: if (r8 != r9) goto L_0x0174; L_0x0028: r2 = r0.getBlob(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = r2; r2 = r1; L_0x002e: switch(r8) { case 1: goto L_0x0032; case 2: goto L_0x019d; case 3: goto L_0x0204; case 4: goto L_0x0181; case 5: goto L_0x0031; case 6: goto L_0x01ce; case 7: goto L_0x01bc; case 8: goto L_0x01aa; case 9: goto L_0x01e0; case 10: goto L_0x01f2; case 11: goto L_0x0211; case 12: goto L_0x0223; case 13: goto L_0x0235; case 14: goto L_0x0242; case 15: goto L_0x0283; case 16: goto L_0x0293; case 17: goto L_0x02a5; case 18: goto L_0x02b2; case 19: goto L_0x0251; case 20: goto L_0x0269; case 21: goto L_0x02c4; default: goto L_0x0031; }; Catch:{ Exception -> 0x0051, all -> 0x018e } L_0x0031: goto L_0x0010; L_0x0032: r2 = new java.lang.String; Catch:{ Exception -> 0x0051, all -> 0x018e } r8 = com.igexin.push.core.g.B; Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = com.igexin.a.a.a.a.a(r3, r8); Catch:{ Exception -> 0x0051, all -> 0x018e } r2.<init>(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r2 == 0) goto L_0x0047; L_0x003f: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x004b, all -> 0x018e } if (r3 == 0) goto L_0x017b; L_0x0047: r2 = r4; L_0x0048: com.igexin.push.core.g.r = r2; Catch:{ Exception -> 0x004b, all -> 0x018e } goto L_0x0010; L_0x004b: r2 = move-exception; r2 = 0; com.igexin.push.core.g.r = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0051: r2 = move-exception; L_0x0052: if (r0 == 0) goto L_0x0057; L_0x0054: r0.close(); L_0x0057: r2 = com.igexin.push.core.g.r; r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1)); if (r0 != 0) goto L_0x0076; L_0x005d: r2 = com.igexin.push.f.b.d(); r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1)); if (r0 == 0) goto L_0x0076; L_0x0065: com.igexin.push.core.g.r = r2; r0 = java.lang.String.valueOf(r2); r0 = r0.getBytes(); r0 = com.igexin.push.f.d.a(r0); r11.a(r12, r7, r0); L_0x0076: r0 = com.igexin.push.core.g.s; if (r0 != 0) goto L_0x0095; L_0x007a: r0 = com.igexin.push.f.b.b(); if (r0 == 0) goto L_0x0095; L_0x0080: com.igexin.push.core.g.t = r0; com.igexin.push.core.g.s = r0; r0 = com.igexin.push.core.g.s; r0 = java.lang.String.valueOf(r0); r0 = r0.getBytes(); r0 = com.igexin.push.f.d.a(r0); r11.a(r12, r9, r0); L_0x0095: r0 = com.igexin.push.core.g.s; if (r0 != 0) goto L_0x00c1; L_0x0099: r2 = com.igexin.push.core.g.r; r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1)); if (r0 == 0) goto L_0x00c1; L_0x009f: r2 = com.igexin.push.core.g.r; r0 = java.lang.String.valueOf(r2); r0 = com.igexin.a.b.a.a(r0); com.igexin.push.core.g.t = r0; r2 = com.igexin.push.core.g.r; com.igexin.push.core.g.a(r2); r0 = com.igexin.push.core.g.s; r0 = java.lang.String.valueOf(r0); r0 = r0.getBytes(); r0 = com.igexin.push.f.d.a(r0); r11.a(r12, r9, r0); L_0x00c1: r0 = "cfcd208495d565ef66e7dff9f98764da"; r2 = com.igexin.push.core.g.s; r0 = r0.equals(r2); if (r0 == 0) goto L_0x00e1; L_0x00cb: r2 = com.igexin.push.core.g.r; r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1)); if (r0 == 0) goto L_0x02dd; L_0x00d1: r0 = a(); r2 = com.igexin.push.core.g.r; r0.a(r2); r0 = com.igexin.push.core.g.s; com.igexin.push.core.g.t = r0; com.igexin.push.f.b.f(); L_0x00e1: r0 = com.igexin.push.core.g.au; r0 = android.text.TextUtils.isEmpty(r0); if (r0 != 0) goto L_0x00f3; L_0x00e9: r0 = "null"; r1 = com.igexin.push.core.g.au; r0 = r0.equals(r1); if (r0 == 0) goto L_0x010a; L_0x00f3: r0 = 32; r0 = com.igexin.a.b.a.a(r0); com.igexin.push.core.g.au = r0; r0 = 14; r1 = com.igexin.push.core.g.au; r1 = r1.getBytes(); r1 = com.igexin.push.f.d.a(r1); r11.a(r12, r0, r1); L_0x010a: r0 = com.igexin.push.f.b.c(); r1 = com.igexin.push.core.g.z; if (r1 != 0) goto L_0x0127; L_0x0112: if (r0 == 0) goto L_0x0127; L_0x0114: r1 = r0.length(); r2 = 5; if (r1 <= r2) goto L_0x0127; L_0x011b: com.igexin.push.core.g.z = r0; r0 = 2; r1 = com.igexin.push.core.g.z; r1 = java.lang.String.valueOf(r1); r11.a(r12, r0, r1); L_0x0127: r0 = com.igexin.push.core.g.A; if (r0 != 0) goto L_0x0173; L_0x012b: r0 = com.igexin.push.core.g.u; if (r0 != 0) goto L_0x0146; L_0x012f: r0 = new java.lang.StringBuilder; r0.<init>(); r1 = "V"; r0 = r0.append(r1); r1 = r11.g(); r0 = r0.append(r1); r0 = r0.toString(); L_0x0146: r1 = new java.lang.StringBuilder; r1.<init>(); r2 = "A-"; r1 = r1.append(r2); r0 = r1.append(r0); r1 = "-"; r0 = r0.append(r1); r2 = java.lang.System.currentTimeMillis(); r0 = r0.append(r2); r0 = r0.toString(); com.igexin.push.core.g.A = r0; r0 = 3; r1 = com.igexin.push.core.g.A; r1 = java.lang.String.valueOf(r1); r11.a(r12, r0, r1); L_0x0173: return; L_0x0174: r2 = r0.getString(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = r1; goto L_0x002e; L_0x017b: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x004b, all -> 0x018e } goto L_0x0048; L_0x0181: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x0198; L_0x0189: r2 = r7; L_0x018a: com.igexin.push.core.g.l = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x018e: r1 = move-exception; r10 = r1; r1 = r0; r0 = r10; L_0x0192: if (r1 == 0) goto L_0x0197; L_0x0194: r1.close(); L_0x0197: throw r0; L_0x0198: r2 = java.lang.Boolean.parseBoolean(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x018a; L_0x019d: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01a6; L_0x01a5: r2 = r1; L_0x01a6: com.igexin.push.core.g.z = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01aa: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01b7; L_0x01b2: r2 = r4; L_0x01b3: com.igexin.push.core.g.H = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01b7: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x01b3; L_0x01bc: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01c9; L_0x01c4: r2 = r4; L_0x01c5: com.igexin.push.core.g.G = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01c9: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x01c5; L_0x01ce: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01db; L_0x01d6: r2 = r4; L_0x01d7: com.igexin.push.core.g.F = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01db: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x01d7; L_0x01e0: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01ed; L_0x01e8: r2 = r4; L_0x01e9: com.igexin.push.core.g.P = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01ed: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x01e9; L_0x01f2: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x01ff; L_0x01fa: r2 = r4; L_0x01fb: com.igexin.push.core.g.Q = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x01ff: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x01fb; L_0x0204: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x020d; L_0x020c: r2 = r1; L_0x020d: com.igexin.push.core.g.A = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0211: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x021e; L_0x0219: r2 = r4; L_0x021a: com.igexin.push.core.g.K = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x021e: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x021a; L_0x0223: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x0230; L_0x022b: r2 = r4; L_0x022c: com.igexin.push.core.g.L = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0230: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x022c; L_0x0235: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x023e; L_0x023d: r2 = r1; L_0x023e: com.igexin.push.core.g.M = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0242: r2 = new java.lang.String; Catch:{ Exception -> 0x0051, all -> 0x018e } r8 = com.igexin.push.core.g.B; Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = com.igexin.a.a.a.a.a(r3, r8); Catch:{ Exception -> 0x0051, all -> 0x018e } r2.<init>(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } com.igexin.push.core.g.au = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0251: r2 = new java.lang.String; Catch:{ Exception -> 0x0051, all -> 0x018e } r8 = com.igexin.push.core.g.B; Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = com.igexin.a.a.a.a.a(r3, r8); Catch:{ Exception -> 0x0051, all -> 0x018e } r2.<init>(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x0265; L_0x0264: r2 = r1; L_0x0265: com.igexin.push.core.g.x = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0269: r2 = new java.lang.String; Catch:{ Exception -> 0x0051, all -> 0x018e } r8 = com.igexin.push.core.g.B; Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = com.igexin.a.a.a.a.a(r3, r8); Catch:{ Exception -> 0x0051, all -> 0x018e } r2.<init>(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x027d; L_0x027c: r2 = r1; L_0x027d: com.igexin.push.core.g.t = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } com.igexin.push.core.g.s = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0283: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 != 0) goto L_0x0010; L_0x028b: r2 = java.lang.Boolean.parseBoolean(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } com.igexin.push.core.g.N = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x0293: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x02a0; L_0x029b: r2 = r4; L_0x029c: com.igexin.push.core.g.O = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x02a0: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x029c; L_0x02a5: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x02ae; L_0x02ad: r2 = r1; L_0x02ae: com.igexin.push.core.g.S = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x02b2: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x02bf; L_0x02ba: r2 = r6; L_0x02bb: com.igexin.push.core.g.U = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x02bf: r2 = java.lang.Integer.parseInt(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x02bb; L_0x02c4: r3 = "null"; r3 = r2.equals(r3); Catch:{ Exception -> 0x0051, all -> 0x018e } if (r3 == 0) goto L_0x02d1; L_0x02cc: r2 = r4; L_0x02cd: com.igexin.push.core.g.aw = r2; Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x0010; L_0x02d1: r2 = java.lang.Long.parseLong(r2); Catch:{ Exception -> 0x0051, all -> 0x018e } goto L_0x02cd; L_0x02d6: if (r0 == 0) goto L_0x0057; L_0x02d8: r0.close(); goto L_0x0057; L_0x02dd: com.igexin.push.core.g.t = r1; com.igexin.push.core.g.s = r1; com.igexin.push.core.g.r = r4; goto L_0x00e1; L_0x02e5: r0 = move-exception; goto L_0x0192; L_0x02e8: r0 = move-exception; r0 = r1; goto L_0x0052; */ throw new UnsupportedOperationException("Method not decompiled: com.igexin.push.core.c.f.b(android.database.sqlite.SQLiteDatabase):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "private void m50366E() {\n }", "public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "void m5768b() throws C0841b;", "void m1864a() {\r\n }", "public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5770d() throws C0841b;", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public final void mo91715d() {\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public void method_4270() {}", "private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5769c() throws C0841b;", "void m5771e() throws C0841b;", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "public boolean method_2243() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "static void m7753b() {\n f8029a = false;\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void m9741j() throws cf {\r\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m50367F() {\n }", "public void mo21779D() {\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo115190b() {\n }", "public final void mo1285b() {\n }", "public void mo23813b() {\n }", "public boolean method_208() {\r\n return false;\r\n }", "public final void mo11687c() {\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "void mo72113b();", "public final void mo51373a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "public void mo21787L() {\n }", "private void kk12() {\n\n\t}", "void mo80457c();", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "public void m23075a() {\n }", "void mo80452a();", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "public void mo12628c() {\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "void mo41086b();", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }", "public void mo21785J() {\n }", "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "protected boolean func_70041_e_() { return false; }", "static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }" ]
[ "0.7617459", "0.7573662", "0.75262785", "0.74514425", "0.74513507", "0.74378777", "0.7382313", "0.7382313", "0.7367218", "0.73539925", "0.7342764", "0.73155916", "0.7308106", "0.7306313", "0.7273729", "0.7253095", "0.7222029", "0.7198275", "0.71782386", "0.7137191", "0.71069914", "0.70412654", "0.7024199", "0.70191395", "0.6991951", "0.69605696", "0.6940181", "0.6908158", "0.68895423", "0.6851979", "0.6828653", "0.6795663", "0.6784019", "0.6776832", "0.6773503", "0.6771713", "0.6768236", "0.6766716", "0.67434835", "0.6707098", "0.67010874", "0.66988426", "0.6698562", "0.66971993", "0.6669458", "0.66681474", "0.66557807", "0.66132605", "0.66122043", "0.66089827", "0.6593706", "0.65689075", "0.65661126", "0.6540056", "0.65149295", "0.6510485", "0.6509689", "0.6490285", "0.6436749", "0.64315236", "0.6430627", "0.6403832", "0.64016736", "0.63709044", "0.6369786", "0.6368996", "0.63577384", "0.6328949", "0.6326211", "0.6324593", "0.63172275", "0.630536", "0.6302606", "0.62977874", "0.6280651", "0.62796825", "0.6241391", "0.62274355", "0.62267166", "0.6226506", "0.62237626", "0.62184846", "0.6218196", "0.6204135", "0.6198653", "0.6194935", "0.6180341", "0.6171085", "0.6166941", "0.6164573", "0.6162351", "0.6161193", "0.6156632", "0.61554176", "0.61516356", "0.6140611", "0.6125962", "0.6115057", "0.61110014", "0.6102401", "0.60969245" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String path = "Test1.pdf"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Check for double profile
private boolean moreProfileExists(String name) { db = dbHelper.getReadableDatabase(); Cursor cursor = db.query(DbContract.MoreEntry.TN, DbContract.MoreEntry.allColumns, DbContract.MoreEntry.CN_NAME + " = '" + name + "'", null, null, null, null); cursor.moveToFirst(); if (cursor.getCount() == 0 || cursor.getString(1) == null){ cursor.close(); return false; } cursor.close(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifyProfile(Profile p) {\n // If the two profiles are exactly the same, they will obviously match each other\n if (this.equals(p)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(this.getImei() + \": Equal Profile.\");\n System.out.println(\"Equal profile.\");\n changedInformation = \"Nothing has changed.\";\n return true;\n }\n\n // Check static attributes, if something is different the profile is invalid\n if (!imei.equals(p.getImei()) | !macAddress.equals(p.getMacAddress()) | !screenResolution.equals(p.getScreenResolution())) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(this.getImei() + \": Static attribute changed.\");\n System.out.println(this.getImei() + \": Static attribute changed.\");\n changedInformation = \"Static Attributes changed.\";\n return false;\n }\n\n String logString = this.getImei() + \": \";\n // Comparing the number of changed attributes\n int changed = 0;\n\n if (!softwareVersion.equals(p.getSoftwareVersion())) {\n String message = \" Software Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperator.equals(p.getSimOperator())) {\n String message = \" SIM Operator changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperatorName.equals(p.getSimOperatorName())) {\n String message = \" SIM Operator Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simCountryIso.equals(p.getSimCountryIso())) {\n String message = \" SIM Country Iso changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!simSerialNumber.equals(p.getSimSerialNumber())) {\n String message = \" SIM Serial Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!imsiNumber.equals(p.getImsiNumber())) {\n String message = \" IMSI Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!ipAddress.equals(p.getIpAddress())) {\n String message = \" IP Address changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!osVersion.equals(p.getOsVersion())) {\n String message = \" OS Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!sdkVersion.equals(p.getSdkVersion())) {\n String message = \" SDK Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!deviceName.equals(p.getDeviceName())) {\n String message = \" Device Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!keyboardLanguage.equals(p.getKeyboardLanguage())) {\n String message = \" Keyboard Language changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!networksSSID.equals(p.getNetworksSSID())) {\n String message = \" Networks changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!googleAccounts.equals(p.getGoogleAccounts())) {\n String message = \" Google Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!memorizedAccounts.equals(p.getMemorizedAccounts())) {\n String message = \" Memorized Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!inputMethods.equals(p.getInputMethods())) {\n String message = \" Input Methods changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!installedApplications.equals(p.getInstalledApplications())) {\n String message = \" Installed Applications changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n // Dividing the number of changed attributes by the number of checked attributes\n double division = changed/ (double) 16;\n // If the division is greater than the threshold, the two profiles mismatch as they are not similar enough\n if (division >= (1 - ServerUtils.THRESHOLD)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(logString);\n System.out.println(\"ERROR: \" + logString);\n return false;\n }\n\n // Checks every list with the threshold\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(\"INFO: \" + logString);\n return compareLists(networksSSID, p.getNetworksSSID(), ServerUtils.THRESHOLD, \"NetworksSSID\", this.imei) &&\n compareLists(googleAccounts, p.getGoogleAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"GoogleAccounts\", this.imei) &&\n compareLists(memorizedAccounts, p.getMemorizedAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"Accounts\", this.imei) &&\n compareLists(inputMethods, p.getInputMethods(), ServerUtils.THRESHOLD, \"InputMethods\", this.imei) &&\n compareLists(installedApplications, p.getInstalledApplications(), ServerUtils.THRESHOLD, \"Applications\", this.imei);\n }", "boolean hasProfile();", "@java.lang.Override\n public boolean hasProfile() {\n return profile_ != null;\n }", "boolean hasHPPerSecond();", "public static boolean isProfileOutOfSync() {\n return profileOutOfSync || profile == null;\n }", "public abstract void calculateSufficientStatistics(File profiles);", "public boolean hasProfile() {\n return profileBuilder_ != null || profile_ != null;\n }", "public boolean hasProfile (Profile target){\n\t\t\n \tboolean in=false;\n\t\n\t if(getPerson1().getName().equals(target.getName())\n\t \t\t||getPerson2().getName() == target.getName()) {\n\t\t \n\t \tin = true;\n\t }\n\n \treturn in;\n }", "boolean hasMPPerSecond();", "public boolean verifyProfile(String pProfile) {\r\n return pProfile.contains(profile.toString());\r\n\t}", "public void take(Profile profile){\n\t\t//aaaand something else\n\t\ttimesTaken++;\n\t\t//haha nope...\n\t}", "boolean shouldReap() {\n String reap = System.getProperty(\"webdriver.reap_profile\", \"true\");\n return Boolean.parseBoolean(reap);\n }", "private void optimiseEVProfile()\n\t{\n\t}", "double getMissChance();", "boolean isDegraded();", "@Override\n public void checkProfileUserData() {\n mProfilePresenter.checkProfileUserData();\n }", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "private OwnedState calculateIsRunningOnManagedProfile(Context context) {\n long startTime = SystemClock.elapsedRealtime();\n boolean hasProfileOwnerApp = false;\n boolean hasDeviceOwnerApp = false;\n PackageManager packageManager = context.getPackageManager();\n DevicePolicyManager devicePolicyManager =\n (DevicePolicyManager) context.getSystemService(\n Context.DEVICE_POLICY_SERVICE);\n\n for (PackageInfo pkg : packageManager.getInstalledPackages(/* flags= */ 0)) {\n assert devicePolicyManager != null;\n if (devicePolicyManager.isProfileOwnerApp(pkg.packageName)) {\n hasProfileOwnerApp = true;\n }\n if (devicePolicyManager.isDeviceOwnerApp(pkg.packageName)) {\n hasDeviceOwnerApp = true;\n }\n if (hasProfileOwnerApp && hasDeviceOwnerApp) break;\n }\n\n long endTime = SystemClock.elapsedRealtime();\n RecordHistogram.recordTimesHistogram(\n \"EnterpriseCheck.IsRunningOnManagedProfileDuration\",\n endTime - startTime);\n\n return new OwnedState(hasDeviceOwnerApp, hasProfileOwnerApp);\n }", "public void checkPoint (String detail) {\n getProfiler().checkPoint (detail);\n }", "public void updateProfile(Profile newProfile) throws Exception {\n // If the two profiles are exactly the same, an update isn't required\n if (this.equals(newProfile))\n return;\n\n String logString = newProfile.getImei() + \": \";\n // Check all attributes, updating them whenever they differ\n if (!softwareVersion.equals(newProfile.getSoftwareVersion())) {\n ProfileDBManager.updateSoftwareVersion(this.imei, newProfile.getSoftwareVersion());\n logString = logString + \"Old SW Version - \" + softwareVersion + \" | New SW Version - \" + newProfile.getSoftwareVersion() + \".\";\n }\n\n if (!simOperator.equals(newProfile.getSimOperator())) {\n ProfileDBManager.updateSimOperator(this.imei, newProfile.getSimOperator());\n logString = logString + \"Old SIM Operator - \" + simOperator + \" | New SIM Operator - \" + newProfile.getSimOperator() + \".\";\n }\n\n if (!simOperatorName.equals(newProfile.getSimOperatorName())) {\n ProfileDBManager.updateSimOperatorName(this.imei, newProfile.getSimOperatorName());\n logString = logString + \"Old SIM Operator Name - \" + simOperatorName + \" | New SIM Operator Name - \" + newProfile.getSimOperatorName() + \".\";\n }\n\n if(!simSerialNumber.equals(newProfile.getSimSerialNumber())) {\n ProfileDBManager.updateSimSerialNumber(this.imei, newProfile.getSimSerialNumber());\n logString = logString + \"Old SIM Serial Number - \" + simSerialNumber + \" | New SIM Serial Number - \" + newProfile.getSimSerialNumber() + \".\";\n }\n\n if(!simCountryIso.equals(newProfile.getSimCountryIso())) {\n ProfileDBManager.updateSimCountryIso(this.imei, newProfile.getSimCountryIso());\n logString = logString + \"Old SIM Country ISO - \" + simCountryIso + \" | New SIM Country ISO - \" + newProfile.getSimCountryIso() + \".\";\n }\n\n if(!imsiNumber.equals(newProfile.getImsiNumber())) {\n ProfileDBManager.updateImsiNumber(this.imei, newProfile.getImsiNumber());\n logString = logString + \"Old IMSI Number - \" + imsiNumber + \" | New IMSI Number - \" + newProfile.getImsiNumber() + \".\";\n }\n\n if (!ipAddress.equals(newProfile.getIpAddress())) {\n ProfileDBManager.updateIpAddress(this.imei, newProfile.getIpAddress());\n logString = logString + \"Old IP Address Location - \" + ipAddress + \" | New IP Address Location - \" + newProfile.getIpAddress() + \".\";\n }\n\n if(!osVersion.equals(newProfile.getOsVersion())) {\n ProfileDBManager.updateOsVersion(this.imei, newProfile.getOsVersion());\n logString = logString + \"Old OS Version - \" + osVersion + \" | New OS Version - \" + newProfile.getOsVersion() + \".\";\n }\n\n if(!sdkVersion.equals(newProfile.getSdkVersion())) {\n ProfileDBManager.updateSdkVersion(this.imei, newProfile.getSdkVersion());\n logString = logString + \"Old SDK Version - \" + sdkVersion + \" | New SDK Version - \" + newProfile.getSdkVersion() + \".\";\n }\n\n if(!deviceName.equals(newProfile.getDeviceName())) {\n ProfileDBManager.updateDeviceName(this.imei, newProfile.getDeviceName());\n logString = logString + \"Old Device Name - \" + deviceName + \" | New Device Name - \" + newProfile.getDeviceName() + \".\";\n }\n\n if(!keyboardLanguage.equals(newProfile.getKeyboardLanguage())) {\n ProfileDBManager.updateKeyboardLanguage(this.imei, newProfile.getKeyboardLanguage());\n logString = logString + \"Old Keyboard Language - \" + keyboardLanguage + \" | New Keyboard Language - \" + newProfile.getKeyboardLanguage() + \".\";\n }\n\n if(!networksSSID.equals(newProfile.getNetworksSSID())) {\n ProfileDBManager.updateNetworksSSID(this.imei, newProfile.getNetworksSSID());\n logString = logString + \"Old Networks - \" + networksSSID.toString() + \" | New Networks - \" + newProfile.getNetworksSSID().toString() + \".\";\n }\n\n if(!googleAccounts.equals(newProfile.getGoogleAccounts())) {\n ProfileDBManager.updateGoogleAccounts(this.imei, newProfile.getGoogleAccounts());\n logString = logString + \"Old Google Accounts - \" + googleAccounts.toString() + \" | New Google Accounts - \" + newProfile.getGoogleAccounts().toString() + \".\";\n }\n\n if(!memorizedAccounts.equals(newProfile.getMemorizedAccounts())) {\n ProfileDBManager.updateMemorizedAccounts(this.imei, newProfile.getMemorizedAccounts());\n logString = logString + \"Old Accounts - \" + memorizedAccounts.toString() + \" | New Accounts - \" + newProfile.getMemorizedAccounts().toString() + \".\";\n }\n\n if(!inputMethods.equals(newProfile.getInputMethods())) {\n ProfileDBManager.updateInputMethods(this.imei, newProfile.getInputMethods());\n logString = logString + \"Old Input Methods - \" + inputMethods.toString() + \" | New Input Methods - \" + newProfile.getInputMethods().toString() + \".\";\n }\n\n if(!installedApplications.equals(newProfile.getInstalledApplications())) {\n ProfileDBManager.updateInstalledApplications(this.imei, newProfile.getInstalledApplications());\n logString = logString + \"Old Applications - \" + installedApplications.toString() + \" | New Applications - \" + newProfile.getInstalledApplications().toString() + \".\";\n }\n\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(logString);\n }", "boolean profilerEnabled();", "public void checkPrize()\n {\n for(PrizeMulti prize : prizes.getPrizes())\n {\n if(prize.isActive())\n {\n if (((locX - prize.getX()) * (locX - prize.getX()) + (locY - prize.getY()) * (locY - prize.getY())) <= 35 * 35) {\n if (prizeOwn == null)\n {\n status.setUsePrize(true);\n prize.deActive();\n prizeOwn = prize;\n if (prize.getType().equals(\"Health\")) {\n stamina += (stamina / 10);\n }\n if (prize.getType().equals(\"Power2\")) {\n canonPower *= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower *= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Laser\");\n }\n\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (true);\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n prizeOwn = null;\n if (prize.getType().equals(\"Power2\")) {\n canonPower /= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower /= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Normal\");\n }\n Thread.sleep (5000);\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (false);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n }\n }\n }\n }", "protected boolean isDiffUser() {\r\n\t\tString profileIdVap = \"\";\r\n\r\n\t\t// Retrieve current user and its profile ID from session\r\n\t\tUser currentUser = SessionUtils.getCurrentUser(request.getSession());\r\n\t\tif (currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID) != null) {\r\n\t\t\tprofileIdVap = (String)currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID);\r\n\r\n\t\t}\r\n\t\t// If profile ID is different, return true\r\n\t\tif (!profileIdVap.equals(userProfile.get(AuthenticationConsts.KEY_PROFILE_ID))) {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"profile_id_vap: %s; profileid: %s; userId: %s\",\r\n\t\t\t\t\t\t profileIdVap,\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_PROFILE_ID),\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"same user in session, profileid: %s; userid: %s\",\r\n\t\t\t\t\t\tprofileIdVap,\r\n\t\t\t\t\t\tuserProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void dataNotDouble() {\n MarketDataBundle marketDataBundle = new MapMarketDataBundle(\n new MarketDataEnvironmentBuilder()\n .add(SecurityId.of(SEC1.getExternalIdBundle()), \"not a double\")\n .add(SecurityId.of(SEC2.getExternalIdBundle()), 2.0)\n .valuationTime(ZonedDateTime.now())\n .build());\n MarketDataShock shock = MarketDataShock.relativeShift(0.5, MATCHER1);\n FilteredScenarioDefinition scenarioDef = new FilteredScenarioDefinition(shock);\n SimpleEnvironment env = new SimpleEnvironment(ZonedDateTime.now(), marketDataBundle, scenarioDef);\n\n assertFalse(FN.foo(env, SEC1).isSuccess());\n assertEquals(2d, FN.foo(env, SEC2).getValue(), DELTA);\n }", "@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}", "@Override\r\n\tint check_sweetness() {\n\t\treturn 30;\r\n\t}", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "private static boolean m2541g(Context context) {\n try {\n if (C0820dq.m2439m(context) != 1 || !f1840a || StatisticsManager.m2538d(context) < 100) {\n return false;\n }\n long f = StatisticsManager.m2540f(context);\n long time = new Date().getTime();\n if (time - f < 3600000) {\n return false;\n }\n StatisticsManager.m2533a(context, time);\n f1840a = false;\n return true;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"isUpdate\");\n return false;\n }\n }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "boolean hasMainUtteranceDynamicGain();", "private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }", "boolean hasDouble();", "boolean hasPercentage();", "public boolean activeHandCanDouble() {\n Seat s = this.getSeat(this.seatPlaying);\n if (s.hasPlayer()) {\n Human h = (Human) s.getPlayer();\n Hand hand = h.getHands().get(0);\n \n return h.canDouble() && hand.getCards().size() == 2;\n } else {\n return false;\n }\n }", "public Boolean getProfile()\n {\n return profile;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private void deleteProfileIfExists() throws Exception {\n String[] args = new String[] { \"-validateAndUpdateRegistry\" };\n executeCommand(serverInstallDir, \"manageprofiles\", args, serverInstallDir, \"\");\n args = new String[] { \"-listProfiles\" };\n String output = executeCommand(serverInstallDir, \"manageprofiles\", args, serverInstallDir, \"\");\n if (output.indexOf(instanceName) >= 0) {\n args = new String[] { \"-delete\", \"-profileName\", instanceName };\n executeCommand(serverInstallDir, \"manageprofiles\", args, serverInstallDir, \"Trying to clean up existing profile\");\n }\n }", "private void optimiseWetProfile(int timeStep)\n\t{\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"==OptimiseWetProfil for a \" + this.owner.getAgentID() + \"; timeStep: \" + timeStep);\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tWeakHashMap<String, double[]> wetApplianceProfiles = this.owner.getWetAppliancesProfiles();\n\t\tdouble[] washer_loads = wetApplianceProfiles.get(Consts.WET_APP_WASHER_ORIGINAL);\n\t\tdouble[] dryer_loads = wetApplianceProfiles.get(Consts.WET_APP_DRYER_ORIGINAL);\n\t\tdouble[] dishwasher_loads = wetApplianceProfiles.get(Consts.WET_APP_DISHWASHER_ORIGINAL);\n\n\t\tdouble[] washer_loads_day = Arrays.copyOfRange(washer_loads, (timeStep % washer_loads.length), (timeStep % washer_loads.length)\n\t\t\t\t+ this.ticksPerDay);\n\t\tdouble[] dryer_loads_day = Arrays.copyOfRange(dryer_loads, (timeStep % dryer_loads.length), (timeStep % dryer_loads.length)\n\t\t\t\t+ this.ticksPerDay);\n\t\tdouble[] dishwasher_loads_day = Arrays\n\t\t\t\t.copyOfRange(dishwasher_loads, (timeStep % dishwasher_loads.length), (timeStep % dishwasher_loads.length)\n\t\t\t\t\t\t+ this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE washer_loads_day: \" + Arrays.toString(washer_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE dryer_loads_day: \" + Arrays.toString(dryer_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE dishwasher_loads_day: \" + Arrays.toString(dishwasher_loads_day));\n\t\t}\n\n\t\t// Washer (washing machine)\n\t\tdouble[] currentWasherCostArr = ArrayUtils.mtimes(washer_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForWasher = ArrayUtils.indexOfMax(currentWasherCostArr);\n\t\tdouble maxValForWasher = washer_loads_day[maxIndexForWasher];\n\t\tdouble currentCostForWasher = currentWasherCostArr[maxIndexForWasher];\n\n\t\tif ((maxValForWasher > 0) && (maxIndexForWasher < washer_loads_day.length - 1))\n\t\t{\n\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"max index for Wahser: \" + maxIndexForWasher + \" val: \" + maxValForWasher + \" current cost: \"\n\t\t\t\t\t+ currentCostForWasher);\n}\n\t\t\tint newIndexForWasher = this.mainContext.coldAndWetApplTimeslotDelayRandDist\n\t\t\t\t\t.nextIntFromTo(maxIndexForWasher + 1, washer_loads_day.length - 1);\n\n\t\t\tdouble newCostForWasher = maxValForWasher * this.dayPredictedCostSignal[newIndexForWasher];\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForWasher (1st): \" + newIndexForWasher + \" new cost: \" + newCostForWasher);\n\t\t\t}\n\t\t\tif (this.dayPredictedCostSignal[maxIndexForWasher] != this.dayPredictedCostSignal[newIndexForWasher])\n\t\t\t{\nif (\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\tthis.mainContext.logger.trace(\"Signal: \" + this.dayPredictedCostSignal[maxIndexForWasher] + \" != (new) \"\n\t\t\t\t\t\t+ this.dayPredictedCostSignal[newIndexForWasher]);\n}\n\t\t\t}\n\n\t\t\tif (newCostForWasher < currentCostForWasher)\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForWahser < currentCostForWasher \");\n\t\t\t\t}\n\n\t\t\t\twasher_loads_day[maxIndexForWasher] = 0;\n\t\t\t\twasher_loads_day[newIndexForWasher] = washer_loads_day[newIndexForWasher] + maxValForWasher;\n\n\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_WASHER), washer_loads_day, timeStep % washer_loads.length);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForWahser !< currentCostForWasher \");\n\t\t\t\t}\n\n\t\t\t\tint iWasher = newIndexForWasher + 1;\n\t\t\t\tboolean lowerCostFound = false;\n\t\t\t\twhile ((iWasher < washer_loads_day.length) && (!lowerCostFound))\n\t\t\t\t{\n\t\t\t\t\tnewCostForWasher = maxValForWasher * this.dayPredictedCostSignal[iWasher];\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(iWasher + \" newCostForWahser to considered: \" + newCostForWasher + \" \"\n\t\t\t\t\t\t\t+ (newCostForWasher < currentCostForWasher));\n}\n\t\t\t\t\tif (this.dayPredictedCostSignal[maxIndexForWasher] != this.dayPredictedCostSignal[iWasher])\n\t\t\t\t\t{\nif (\t\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\t\tthis.mainContext.logger.trace(\"Signal: \" + this.dayPredictedCostSignal[maxIndexForWasher] + \" != (new) \"\n\t\t\t\t\t\t\t\t+ this.dayPredictedCostSignal[iWasher]);\n}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newCostForWasher < currentCostForWasher)\n\t\t\t\t\t{\n\t\t\t\t\t\tlowerCostFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tiWasher++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (lowerCostFound)\n\t\t\t\t{\n\t\t\t\t\twasher_loads_day[maxIndexForWasher] = 0;\n\t\t\t\t\twasher_loads_day[iWasher] = washer_loads_day[iWasher] + maxValForWasher;\n\n\t\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_WASHER), washer_loads_day, timeStep\n\t\t\t\t\t\t\t% washer_loads.length);\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(\"lowerCostFound: newIndexForWasher (2nd found): \" + iWasher + \" new cost (2): \"\n\t\t\t\t\t\t\t+ newCostForWasher);\n}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Dryer\n\t\tdouble[] currentDryerCostArr = ArrayUtils.mtimes(dryer_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForDryer = ArrayUtils.indexOfMax(currentDryerCostArr);\n\t\tdouble maxValForDryer = dryer_loads_day[maxIndexForDryer];\n\t\tdouble currentCostForDryer = currentDryerCostArr[maxIndexForDryer];\n\n\t\tif ((maxValForDryer > 0) && (maxIndexForDryer < dryer_loads_day.length - 1))\n\t\t{\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"max index for Dryer: \" + maxIndexForDryer + \" val: \" + maxValForDryer);\n\t\t\t}\n\t\t\tint newIndexForDryer = this.mainContext.coldAndWetApplTimeslotDelayRandDist\n\t\t\t\t\t.nextIntFromTo(maxIndexForDryer + 1, dryer_loads_day.length - 1);\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForDryer: \" + newIndexForDryer);\n\t\t\t}\n\t\t\tdouble newCostForDryer = maxValForDryer * this.dayPredictedCostSignal[newIndexForDryer];\n\n\t\t\tif (newCostForDryer < currentCostForDryer)\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForDryer < currentCostForDryer \");\n\t\t\t\t}\n\n\t\t\t\tdryer_loads_day[maxIndexForDryer] = 0;\n\t\t\t\tdryer_loads_day[maxIndexForDryer] = dryer_loads_day[maxIndexForDryer] + maxValForDryer;\n\n\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_DRYER), dryer_loads_day, timeStep % dryer_loads.length);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForDryer !< currentCostForDryer \");\n\t\t\t\t}\n\t\t\t\tint iDryer = newIndexForDryer + 1;\n\t\t\t\tboolean lowerCostFoundForDryer = false;\n\t\t\t\twhile ((iDryer < dryer_loads_day.length) && (!lowerCostFoundForDryer))\n\t\t\t\t{\n\t\t\t\t\tnewCostForDryer = maxValForDryer * this.dayPredictedCostSignal[iDryer];\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(iDryer + \" newCostForDryer to considered: \" + newCostForDryer + \" \"\n\t\t\t\t\t\t\t+ (newCostForDryer < currentCostForDryer));\n}\n\t\t\t\t\tif (this.dayPredictedCostSignal[maxIndexForDryer] != this.dayPredictedCostSignal[iDryer])\n\t\t\t\t\t{\nif (\t\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\t\tthis.mainContext.logger.trace(\"Signal: \" + this.dayPredictedCostSignal[maxIndexForDryer] + \" != (new) \"\n\t\t\t\t\t\t\t\t+ this.dayPredictedCostSignal[iDryer]);\n}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (newCostForDryer < currentCostForDryer)\n\t\t\t\t\t{\n\t\t\t\t\t\tlowerCostFoundForDryer = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tiDryer++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (lowerCostFoundForDryer)\n\t\t\t\t{\n\t\t\t\t\tdryer_loads_day[maxIndexForDryer] = 0;\n\t\t\t\t\tdryer_loads_day[iDryer] = dryer_loads_day[iDryer] + maxValForDryer;\n\n\t\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_DRYER), dryer_loads_day, timeStep % dryer_loads.length);\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(\"lowerCostFoundForDryer: newIndexForDryer (2nd found): \" + iDryer + \" new cost (2): \"\n\t\t\t\t\t\t\t+ newCostForDryer);\n}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Dishwasher\n\t\tdouble[] currentDishwasherCostArr = ArrayUtils.mtimes(dishwasher_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForDishwasher = ArrayUtils.indexOfMax(currentDishwasherCostArr);\n\t\tdouble maxValForDishwasher = dishwasher_loads_day[maxIndexForDishwasher];\n\t\tdouble currentCostForDishwasher = currentDishwasherCostArr[maxIndexForDishwasher];\n\n\t\tif ((maxValForDishwasher > 0) && (maxIndexForDishwasher < dishwasher_loads_day.length - 1))\n\t\t{\n\n\t\t\t// dishwasher_loads_day[maxIndexForDishwasher] = 0;\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"max index for Dishwasher: \" + maxIndexForDishwasher + \" val: \" + maxValForDishwasher);\n\t\t\t}\n\t\t\tint newIndexForDishwasher = this.mainContext.coldAndWetApplTimeslotDelayRandDist\n\t\t\t\t\t.nextIntFromTo(maxIndexForDishwasher + 1, dishwasher_loads_day.length - 1);\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForDishwasher: \" + newIndexForDishwasher);\n\t\t\t}\n\t\t\tdouble newCostForDishwasher = maxValForDishwasher * this.dayPredictedCostSignal[newIndexForDishwasher];\n\n\t\t\tif (newCostForDishwasher < currentCostForDishwasher)\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForDishwasher < currentCostForDishwasher \");\n\t\t\t\t}\n\n\t\t\t\tdishwasher_loads_day[maxIndexForDishwasher] = 0;\n\t\t\t\tdishwasher_loads_day[newIndexForDishwasher] = dishwasher_loads_day[newIndexForDishwasher] + maxValForDishwasher;\n\n\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_DISHWASHER), dishwasher_loads_day, timeStep\n\t\t\t\t\t\t% dishwasher_loads.length);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\" newCostForDishWahser !< currentCostForDishwasher \");\n\t\t\t\t}\n\t\t\t\tint iDish = newIndexForDishwasher + 1;\n\t\t\t\tboolean lowerCostFoundForDishwasher = false;\n\t\t\t\twhile ((iDish < dishwasher_loads_day.length) && (!lowerCostFoundForDishwasher))\n\t\t\t\t{\n\t\t\t\t\tnewCostForDishwasher = maxValForDishwasher * this.dayPredictedCostSignal[iDish];\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(iDish + \" newCostForDishwahser to considered: \" + newCostForDishwasher + \" \"\n\t\t\t\t\t\t\t+ (newCostForDishwasher < currentCostForDishwasher));\n}\n\t\t\t\t\tif (this.dayPredictedCostSignal[maxIndexForWasher] != this.dayPredictedCostSignal[iDish])\n\t\t\t\t\t{\nif (\t\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\t\tthis.mainContext.logger.trace(\"Signal: \" + this.dayPredictedCostSignal[maxIndexForDishwasher] + \" != (new) \"\n\t\t\t\t\t\t\t\t+ this.dayPredictedCostSignal[iDish]);\n}\n\t\t\t\t\t}\n\t\t\t\t\tif (newCostForDishwasher < currentCostForDishwasher)\n\t\t\t\t\t{\n\t\t\t\t\t\tlowerCostFoundForDishwasher = true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tiDish++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (lowerCostFoundForDishwasher)\n\t\t\t\t{\n\t\t\t\t\tdishwasher_loads_day[maxIndexForDishwasher] = 0;\n\t\t\t\t\tdishwasher_loads_day[iDish] = washer_loads_day[iDish] + maxValForDishwasher;\n\n\t\t\t\t\tArrayUtils.replaceRange(wetApplianceProfiles.get(Consts.WET_APP_DISHWASHER), dishwasher_loads_day, timeStep\n\t\t\t\t\t\t\t% dishwasher_loads.length);\nif (\t\t\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\t\t\tthis.mainContext.logger.trace(\"lowerCostFound: newIndexForDishwasher (2nd found): \" + iDish + \" new cost (2): \"\n\t\t\t\t\t\t\t+ newCostForDishwasher);\n}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.owner.setWetAppliancesProfiles(wetApplianceProfiles);\n\n\t}", "boolean hasPublicProfile();", "public void check_thresholds(long avg, long sum, BigInteger prod)\n {\n if(this.avg > avg)\n System.out.println(\"State detected from average\");\n if(this.sum > sum)\n System.out.println(\"State detected from sum\");\n if(this.prod.compareTo(prod) == 1)\n System.out.println(\"State detected from multiplication\");\n }", "private boolean isTimeToDumpAgain() {\n return (!getSettings().isSituationChangeOnly() || !isPreviousCheckFailed()) && (getLastThreadDumpTime() == 0 ||\n getLastThreadDumpTime() + TimeUnit.MINUTES.toMillis(getSettings().getMinutesBetweenThreadDumps()) <\n System.currentTimeMillis());\n }", "public static boolean goDoubleTeam(Team team) {\r\n\t\tint highest = -100;\r\n\t\tboolean allowed = false;\r\n\t\t\r\n\t\t//Find the highest score.\r\n\t\tif (Utils.stringToInt(Main.teamOne.score) > highest) \r\n\t\t\thighest = Utils.stringToInt(Main.teamOne.score);\r\n\t\tif (Utils.stringToInt(Main.teamTwo.score) > highest) \r\n\t\t\thighest = Utils.stringToInt(Main.teamTwo.score);\r\n\t\t\r\n\t\t//Compare highest with team to see if difference exceeds 200.\r\n\t\tif (Utils.stringToInt(team.score) + 200 <= highest)\r\n\t\t\tallowed = true;\r\n\t\r\n\t\treturn allowed;\r\n\t}", "private boolean checkIfProfileExists() {\n String profileCreatedKey = context.getString(R.string.app_name_key) + context.getString(R.string.created_profile_key);\n String profileCreated = sharedPref.getString(profileCreatedKey, \"false\");\n return Boolean.valueOf(profileCreated);\n }", "public boolean mo9207g() {\n return nativeHasOffTheRecordProfile(this.f2197b);\n }", "private static boolean isPerfect(AnalyzedTokenReadings[] tokens, int first, int second) {\n return tokens[first].hasPosTagStartingWith(\"VER:AUX:\") && tokens[second].matchesPosTagRegex(\"VER:.*(INF|PA2).*\");\n }", "@Test\n public void illegalProfile() {\n Properties props = new Properties();\n props.setProperty(DeploymentDescriptorConfiguration.MODULE_NAME, \"com.alipay.dal\");\n\n props.setProperty(DeploymentDescriptorConfiguration.MODULE_PROFILE, \"!\");\n assertThatThrownBy(() -> sofaModuleProfileChecker.acceptModule(SampleDeploymentDescriptor.create(props)))\n .isInstanceOf(IllegalArgumentException.class).hasMessageContaining(\"01-13001\");\n\n props.setProperty(DeploymentDescriptorConfiguration.MODULE_PROFILE, \"!!\");\n assertThatThrownBy(() -> sofaModuleProfileChecker.acceptModule(SampleDeploymentDescriptor.create(props)))\n .isInstanceOf(IllegalArgumentException.class).hasMessageContaining(\"01-13002\");\n }", "boolean isMismatch(double score);", "private boolean checkProfileNameUniquessLocal() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < parsedProfiles.size(); j++) {\r\n\t\t\t\tif (parsedProfiles.get(i).getName()\r\n\t\t\t\t\t\t.compareTo(parsedProfiles.get(j).getName()) == 0) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected boolean hasSafeWinner(double resultUtility) {\n return resultUtility <= utilMin || resultUtility >= utilMax;\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp\", line = 116,\n FQN=\"llvm::ProfileSummaryInfo::isHotCount\", NM=\"_ZN4llvm18ProfileSummaryInfo10isHotCountEy\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp -nm=_ZN4llvm18ProfileSummaryInfo10isHotCountEy\")\n //</editor-fold>\n public boolean isHotCount(long/*uint64_t*/ C) {\n if (!HotCountThreshold.$bool()) {\n computeThresholds();\n }\n return HotCountThreshold.$bool() && $greatereq_ulong_ullong(C, HotCountThreshold.getValue());\n }", "boolean isPerfect(double score);", "private boolean failInReporting() {\n\t\tboolean toForget = false;\n\t\t//synchronized (this) {\n\t\t\tif (++this.failureCount >= this.config.getNumOfFailuresBeforeForgetCollector()) {\n\t\t\t\ttoForget = true;\n\t\t\t\tthis.failureCount = 0;\n\t\t\t}\n\t\t//}\n\n\t\t// forget\n\t\tif (toForget) {\n\t\t\tlogger.log(Level.WARNING, \"Forget a stat collector.\");\n\n\t\t\tthis.provider.setMessagingCollectorAddress(null);\n\t\t}\n\n\t\treturn toForget;\n\t}", "public static boolean isDefaultsRGB(ICC_Profile profile) {\n/* 68 */ if (!(profile instanceof java.awt.color.ICC_ProfileRGB)) {\n/* 69 */ return false;\n/* */ }\n/* */ \n/* 72 */ ICC_Profile sRGBProfile = ICC_Profile.getInstance(1000);\n/* 73 */ if (profile.getProfileClass() != sRGBProfile.getProfileClass()) {\n/* 74 */ return false;\n/* */ }\n/* 76 */ if (profile.getMajorVersion() != sRGBProfile.getMajorVersion()) {\n/* 77 */ return false;\n/* */ }\n/* 79 */ if (profile.getMinorVersion() != sRGBProfile.getMinorVersion()) {\n/* 80 */ return false;\n/* */ }\n/* 82 */ if (!Arrays.equals(profile.getData(), sRGBProfile.getData())) {\n/* 83 */ return false;\n/* */ }\n/* 85 */ return true;\n/* */ }", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "boolean hasCurHP();", "private void selectRandomUnexploredProfile(GameObserver gameObs) {\n if (eGame.getTotalNumSamples() >= eGame.getNumProfiles() ||\n gameObs.numObsLeft() <= 0) return;\n\n eGame.getRandomProfile(currentOutcome);\n while (eGame.getNumSamples(currentOutcome) > 0) {\n eGame.getRandomProfile(currentOutcome);\n }\n\n sampleAndUpdate(currentOutcome, gameObs);\n }", "public void checkUpdates(int timePerStep){\r\n\t\tif(updateStatistics_ || statisticsCountdown_ == -1){\r\n\t\t\tstatisticsCountdown_ -= timePerStep;\r\n\t\t\tif(statisticsCountdown_ < 1){\r\n\t\t\t\tstatisticsCountdown_ += STATISTICS_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateStatistics();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(updateBeaconInfo_){\r\n\t\t\tbeaconInfoCountdown_ -= timePerStep;\r\n\t\t\tif(beaconInfoCountdown_ < 1){\r\n\t\t\t\tbeaconInfoCountdown_ += BEACONINFO_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateBeaconInfo();\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "private static void checkLastSampleTime() {\n double lastSampleTime = ((Double)state.get( \"lastSampleTime\" )).doubleValue();\n Double cTime = (Double)state.get( \"currentTime\" );\n double currentTime = cTime.doubleValue(); // just in case this is a ref\n\n if( lastSampleTime <= currentTime ){\n validity = false;\n out.println( \"<BR>Error: Last Sample Time is less than current time<BR>\" ); \n }\n }", "public Boolean isProfileRunning() {\n return this.isProfileRunning;\n }", "boolean hasStatistics();", "protected boolean isSignificantlyBetter(double newUtility, double utility) {\n return false;\n }", "@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }", "private void checkForInstability(boolean overshoot) { \n if (overshoot == true) {\n setUnstable();\n } else {\n setStable();\n }\n }", "@Given(\"^User should see profile page$\")\n\tpublic void user_should_see_profile_page() throws Throwable {\n\t\twait.WaitForElement(profileTestInsurancePage.gettestinsuranceheading(), 60);\n\t\tprofileTestInsurancePage.verifyprofileTestInsurancePage();\n\t}", "public void print_metrics(){\n\t\tHashMap<Integer, HashSet<Integer>> pairs=return_pairs();\n\t\tint total=gold.data.getTuples().size();\n\t\ttotal=total*(total-1)/2;\n\t\tSystem.out.println(\"Reduction Ratio is: \"+(1.0-(double) countHashMap(pairs)/total));\n\t\tint count=0;\n\t\tfor(int i:pairs.keySet())\n\t\t\tfor(int j:pairs.get(i))\n\t\t\tif(goldContains(i,j))\n\t\t\t\tcount++;\n\t\tSystem.out.println(\"Pairs Completeness is: \"+(double) count/gold.num_dups);\n\t}", "public boolean reproducirse() {\n r = new Random();\r\n return Float.compare(r.nextFloat(), probReproducirse) <= 0;\r\n }", "private boolean identify(BaseNumber randomDoubleNumber, BaseNumber userDoubleNumber) {\n\n int compare = randomDoubleNumber.compareTo(userDoubleNumber);\n\n switch (compare) {\n case -1:\n System.out.println(\"Your number is to high.\");\n return false;\n case 0:\n System.out.println(\"Winner\");\n return true;\n default:\n System.out.println(\"to small\");\n return false;\n }\n }", "private boolean checkProfileNameUniqueness(boolean userDialog) {\r\n\t\tboolean duplicateNameOccours = false;\r\n\t\t/**\r\n\t\t * Over the new imported profiles\r\n\t\t */\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tCurve p = parsedProfiles.get(i);\r\n\t\t\t/**\r\n\t\t\t * Handle the case that the profile name is not unique\r\n\t\t\t */\r\n\t\t\tif (!controller.isProfileNameGlobalUnique(p.getName())\r\n\t\t\t\t\t&& selectedProfiles.get(i)) {\r\n\t\t\t\t/**\r\n\t\t\t\t * Indicate duplicate profile names\r\n\t\t\t\t */\r\n\t\t\t\tduplicateNameOccours = true;\r\n\t\t\t\t/**\r\n\t\t\t\t * Provide a user interface to change the profile name\r\n\t\t\t\t */\r\n\t\t\t\tif (userDialog) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * In the other case ask the user for a different name\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString dialogTitle = \"Duplicate profile name\";\r\n\t\t\t\t\tString dialogMsg = \"The profile name \\\"\" + p.getName()\r\n\t\t\t\t\t\t\t+ \"\\\" already exists globally.\\n\"\r\n\t\t\t\t\t\t\t+ \"Please enter a globally unique\"\r\n\t\t\t\t\t\t\t+ \" profile name.\";\r\n\t\t\t\t\tString dialogRet = JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\tdialogMsg, dialogTitle, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Only store the new name if not empty\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (dialogRet != null) {\r\n\t\t\t\t\t\tif (!dialogRet.isEmpty()) {\r\n\t\t\t\t\t\t\tp.setName(dialogRet);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check also if there exists local uniqueness if the comparison against\r\n\t\t * the global names found no error.\r\n\t\t */\r\n\t\tif (duplicateNameOccours == false) {\r\n\t\t\tduplicateNameOccours = checkProfileNameUniquessLocal();\r\n\t\t}\r\n\r\n\t\treturn duplicateNameOccours;\r\n\t}", "@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}", "private void checkAssociatedProfilesForDupeNames(Command command) {\n List<DeviceProfile> profiles = profileDao.getAssociatedProfilesForCommand(command);\n profiles.forEach(p -> profileDao.checkCommandNames(p.getCommands(), command.getName()));\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp\", line = 122,\n FQN=\"llvm::ProfileSummaryInfo::isColdCount\", NM=\"_ZN4llvm18ProfileSummaryInfo11isColdCountEy\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp -nm=_ZN4llvm18ProfileSummaryInfo11isColdCountEy\")\n //</editor-fold>\n public boolean isColdCount(long/*uint64_t*/ C) {\n if (!ColdCountThreshold.$bool()) {\n computeThresholds();\n }\n return ColdCountThreshold.$bool() && $lesseq_ulong_ullong(C, ColdCountThreshold.getValue());\n }", "private void optimiseColdProfile(int timeStep)\n\t{\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"==OptimiseColdProfil for \" + this.owner.getAgentName() + \"; timeStep: \" + timeStep);\n\t\t}\n\n\t\tWeakHashMap<String, double[]> coldApplianceProfiles = this.owner.getColdAppliancesProfiles();\n\t\tdouble[] fridge_loads = coldApplianceProfiles.get(Consts.COLD_APP_FRIDGE_ORIGINAL);\n\t\tdouble[] freezer_loads = coldApplianceProfiles.get(Consts.COLD_APP_FREEZER_ORIGINAL);\n\t\tdouble[] fridge_freezer_loads = coldApplianceProfiles.get(Consts.COLD_APP_FRIDGEFREEZER_ORIGINAL);\n\n\t\tdouble[] fridge_loads_day = Arrays.copyOfRange(fridge_loads, (timeStep % fridge_loads.length), (timeStep % fridge_loads.length)\n\t\t\t\t+ this.ticksPerDay);\n\t\tdouble[] freezer_loads_day = Arrays.copyOfRange(freezer_loads, (timeStep % freezer_loads.length), (timeStep % freezer_loads.length)\n\t\t\t\t+ this.ticksPerDay);\n\t\tdouble[] fridge_freezer_loads_day = Arrays\n\t\t\t\t.copyOfRange(fridge_freezer_loads, (timeStep % fridge_freezer_loads.length), (timeStep % fridge_freezer_loads.length)\n\t\t\t\t\t\t+ this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE fridge_loads: \" + Arrays.toString(fridge_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE freezer_loads: \" + Arrays.toString(freezer_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"BEFORE fridge_freezer_loads: \" + Arrays.toString(fridge_freezer_loads_day));\n\t\t}\n\n\t\t/*\n\t\t * Currently all 3 cold appliances are shifted randomly (between 1-2\n\t\t * timeslots) with single drawn time shift value This can be changed if\n\t\t * we want to apply different 'tolerance', e.g. the load of fridge can\n\t\t * be shifted to longer hours comparing to say, a freezer.\n\t\t */\n\t\tint timeShift = this.mainContext.coldAndWetApplTimeslotDelayRandDist.nextIntFromTo(1, 2); // Shift\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// load\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// or\n\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t// timeslot\n\n\t\t// Fridge\n\t\tdouble[] currentFridgeCost = ArrayUtils.mtimes(fridge_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForFridge = ArrayUtils.indexOfMax(currentFridgeCost);\n\n\t\tdouble maxValForFridge = fridge_loads_day[maxIndexForFridge];\n\n\t\tif ((maxValForFridge > 0) && (maxIndexForFridge < fridge_loads_day.length - 1))\n\t\t{\n\n\t\t\tfridge_loads_day[maxIndexForFridge] = 0;\n\n\t\t\tint newIndexForFridge = maxIndexForFridge + timeShift;\n\n\t\t\tif (newIndexForFridge >= fridge_loads_day.length)\n\t\t\t{\n\t\t\t\tnewIndexForFridge = fridge_loads_day.length - 1;\n\t\t\t}\n\n\t\t\tfridge_loads_day[newIndexForFridge] = fridge_loads_day[newIndexForFridge] + maxValForFridge;\n\n\t\t\tArrayUtils.replaceRange(coldApplianceProfiles.get(Consts.COLD_APP_FRIDGE), fridge_loads_day, timeStep % fridge_loads.length);\n\t\t}\n\t\t// Freezer\n\t\tdouble[] currentFreezerCost = ArrayUtils.mtimes(freezer_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForFreezer = ArrayUtils.indexOfMax(currentFreezerCost);\n\n\t\tdouble maxValForFeezer = freezer_loads_day[maxIndexForFreezer];\n\n\t\tif ((maxValForFeezer > 0) && (maxIndexForFreezer < freezer_loads_day.length - 1))\n\t\t{\n\t\t\tfreezer_loads_day[maxIndexForFreezer] = 0;\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"max index for freezer: \" + maxIndexForFreezer + \" val: \" + maxValForFeezer);\n\t\t\t}\n\n\t\t\tint newIndexForFreezer = maxIndexForFreezer + timeShift;\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndex for Freezer before: \" + newIndexForFreezer);\n\t\t\t}\n\t\t\tif (newIndexForFreezer >= freezer_loads_day.length)\n\t\t\t{\n\t\t\t\tnewIndexForFreezer = freezer_loads_day.length - 1;\n\t\t\t}\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForFeezer after: \" + newIndexForFreezer);\n\t\t\t}\n\n\t\t\tfreezer_loads_day[newIndexForFreezer] = freezer_loads_day[newIndexForFreezer] + maxValForFeezer;\n\n\t\t\tArrayUtils.replaceRange(coldApplianceProfiles.get(Consts.COLD_APP_FREEZER), freezer_loads_day, timeStep % freezer_loads.length);\n\t\t}\n\t\t// FridgeFreezer\n\t\tdouble[] currentFridgeFreezerCost = ArrayUtils.mtimes(fridge_freezer_loads_day, this.dayPredictedCostSignal);\n\t\tint maxIndexForFridgeFreezer = ArrayUtils.indexOfMax(currentFridgeFreezerCost);\n\n\t\tdouble maxValForFridgeFeezer = fridge_freezer_loads_day[maxIndexForFridgeFreezer];\n\n\t\tif ((maxValForFridgeFeezer > 0) && (maxIndexForFridgeFreezer < fridge_freezer_loads_day.length - 1))\n\t\t{\n\n\t\t\tfridge_freezer_loads_day[maxIndexForFridgeFreezer] = 0;\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"max index for FridgeFreezer: \" + maxIndexForFridgeFreezer + \" val: \" + maxValForFridgeFeezer);\n\t\t\t}\n\n\t\t\tint newIndexForFridgeFreezer = maxIndexForFridgeFreezer + timeShift;\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForFridgeFreezer before: \" + newIndexForFridgeFreezer);\n\t\t\t}\n\t\t\tif (newIndexForFridgeFreezer >= fridge_freezer_loads_day.length)\n\t\t\t{\n\t\t\t\tnewIndexForFridgeFreezer = fridge_freezer_loads_day.length - 1;\n\t\t\t}\n\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"newIndexForFridgeFreezer after: \" + newIndexForFridgeFreezer);\n\t\t\t}\n\n\t\t\tfridge_freezer_loads_day[newIndexForFridgeFreezer] = fridge_freezer_loads_day[newIndexForFridgeFreezer] + maxValForFridgeFeezer;\n\n\t\t\tArrayUtils.replaceRange(coldApplianceProfiles.get(Consts.COLD_APP_FRIDGEFREEZER), fridge_freezer_loads_day, timeStep\n\t\t\t\t\t% fridge_freezer_loads.length);\n\t\t}\n\n\t\tthis.owner.setColdAppliancesProfiles(coldApplianceProfiles);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"AFTER fridge_loads: \" + Arrays.toString(fridge_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"AFTER freezer_loads: \" + Arrays.toString(freezer_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"AFTER fridge_freezer_loads: \" + Arrays.toString(fridge_freezer_loads_day));\n\t\t}\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"==END of OptimiseColdProfile === \");\n\t\t}\n\t}", "private void checkForCPUChance()\n\t\t\t{\n\t\t\t\tf12 = false;\n\t\t\t\tfor (m = 0; m < 8; ++m)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (lose[m] == 2 && win[m] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf12 = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f12 == false)\n\t\t\t\t\tm = 10;\n\n\t\t\t}", "public boolean isSpecial2() {\r\n return PaulMath.delta(46 / 360, hsvValues[0]) < 0.075f && PaulMath.delta(0.27f, hsvValues[1]) < 0.075f && PaulMath.delta(0.23f, hsvValues[2]) < 0.075f;\r\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFiPPPoE() {\n\t\tboolean flag = oTest.checkWiFiPPPoE();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test(priority=19)\n\tpublic void verifyRedirectionOfProfileAndLogoutOptions() throws Exception {\n\t\tOverviewTradusPROPage overviewPage= new OverviewTradusPROPage(driver);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.profileIconOnHeader);\n\t click(overviewPage.profileIconOnHeader);\n\t waitTill(1000);\n\t click(overviewPage.profileOptionInProfileIconDropdown);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.profilePageVerificationElement);\n\t waitTill(2000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/profile\"),\n\t \t\t\"Profile page is not displaying by clicking on profile option under profile icon dropdown list\");\n\t click(overviewPage.logoutOptionInProfileIconDropdown);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.LoginText);\n\t waitTill(2000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/login\"),\n\t \t\t\"User not logged out from account by cicking on logout option in dropdown\");\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.386 -0400\", hash_original_method = \"F3C876DD74F33E9CECF242C89ED82239\", hash_generated_method = \"3907ACD5B181E10767044019512143D3\")\n \n public static boolean stopSupplicant(){\n \t//Formerly a native method\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }", "public double getProfileLength()\n {\n\n return this.profileLength;\n }", "public DefaultProfileCompletenessRetriever() {\n }", "@Override\n protected boolean isFinished() {\n return drivetrain.isMotionProfileFinished();\n }", "@Test\n public void destiny2GetProfileTest() {\n Long destinyMembershipId = null;\n Integer membershipType = null;\n List<DestinyDestinyComponentType> components = null;\n InlineResponse20037 response = api.destiny2GetProfile(destinyMembershipId, membershipType, components);\n\n // TODO: test validations\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.382 -0400\", hash_original_method = \"65C602B599F92E5ADD878013A9F7BBB1\", hash_generated_method = \"5F9E494B1283DBF2B118508DCA034E91\")\n \n public static boolean startSupplicant(){\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }", "boolean hasHas_certainty();", "boolean isSneaking();", "@java.lang.Override\n public boolean hasProfilePictureUrl() {\n return profilePictureUrl_ != null;\n }", "boolean hasPass();", "boolean hasPass();", "@Test\n public void checkIfReturnsPassportWithHighConfidence() {\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 4, 190.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(4), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(190.00), resultTriplet.getMatchConfidence());\n }", "public static final kelondroProfile profileStats(String filename) {\n kelondroFlexTable theFlexTable = (kelondroFlexTable) tableTracker.get(filename);\r\n return theFlexTable.profile();\r\n }", "public void setProfileLength(double n)\n {\n\n this.profileLength = n;\n }", "protected boolean testPrecision ()\n {\n double precision = relativePrecision / (1.0 + relativePrecision);\n \n /******************************************************\n * Check the relative precision\n */\n double relPrecision = agentStat.confidence () / agentStat.mean ();\n\n trc.show (\"testPrecision\", \" precision = \" + precision +\n \" relPrecision = \" + relPrecision);\n\n if (numMeans < 2) {\n return false;\n } else { \n return relPrecision <= precision;\n } // if\n\n }", "@Override\r\n\tint check_sweetness() {\n\t\treturn 10;\r\n\t}", "@Override\n\tpublic WeakHashMap<String, double[]> getCurrentProfiles()\n\t{\n\t\tWeakHashMap<String, double[]> returnMap = new WeakHashMap<String, double[]>();\n\t\treturnMap.put(\"HeatPump\", this.optimisedSetPointProfile);\n\t\treturnMap.put(\"WaterHeat\", this.waterHeatDemandProfile);\n\t\treturn returnMap;\n\t}", "@Test\r\n\tpublic void calculMetricSuperiorTeacherBetterScoreButNoLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(25f, 1f), 12f, 11f), new Float(0));\r\n\t}", "public static boolean isCapureHitRatio() {\n\t\treturn WriteRetentionStore.captureHitRatio;\n\t}", "public static boolean isValidVpnProfile(@NonNull VpnProfile profile) {\n if (profile.server.isEmpty() || profile.ipsecIdentifier.isEmpty()) {\n return false;\n }\n\n switch (profile.type) {\n case TYPE_IKEV2_IPSEC_USER_PASS:\n if (profile.username.isEmpty() || profile.password.isEmpty()) {\n return false;\n }\n break;\n case TYPE_IKEV2_IPSEC_PSK:\n if (profile.ipsecSecret.isEmpty()) {\n return false;\n }\n break;\n case TYPE_IKEV2_IPSEC_RSA:\n if (profile.ipsecSecret.isEmpty() || profile.ipsecUserCert.isEmpty()) {\n return false;\n }\n break;\n default:\n return false;\n }\n\n return true;\n }", "public static boolean store(Profile profile) {\n return getService().store(profile);\n }" ]
[ "0.63370514", "0.6147558", "0.5860948", "0.5738779", "0.57004863", "0.5595095", "0.55246687", "0.54725975", "0.54567873", "0.5446779", "0.54360485", "0.5394472", "0.5376344", "0.53639984", "0.53363526", "0.53272134", "0.5327164", "0.53260744", "0.5283054", "0.52733576", "0.52338886", "0.52333134", "0.52256054", "0.5221919", "0.52155983", "0.52147806", "0.52010965", "0.5167493", "0.5124316", "0.5115853", "0.5102028", "0.50850856", "0.5082012", "0.50727355", "0.50688297", "0.50573474", "0.50385296", "0.5031601", "0.5031262", "0.50279087", "0.5016031", "0.5009184", "0.500508", "0.49986902", "0.49922392", "0.49895364", "0.498763", "0.49830097", "0.49752066", "0.49731427", "0.4962497", "0.49604952", "0.49499848", "0.49326372", "0.49326372", "0.49326372", "0.49326372", "0.49326372", "0.49326372", "0.49292594", "0.49190202", "0.49119157", "0.49118704", "0.48910525", "0.4888842", "0.48850045", "0.48799816", "0.48751694", "0.4868945", "0.4867179", "0.48666883", "0.48597264", "0.48551026", "0.48519537", "0.48351422", "0.48349792", "0.48342162", "0.4830307", "0.48291856", "0.48256296", "0.4823127", "0.48192993", "0.48138678", "0.48036265", "0.48018703", "0.4800347", "0.47997716", "0.47981656", "0.4794287", "0.4792376", "0.4792376", "0.4792353", "0.47813728", "0.47797394", "0.47789454", "0.47778976", "0.4775685", "0.47683606", "0.47646508", "0.47608513", "0.4759988" ]
0.0
-1
Store: Wenn vorhanden ersetzen, ansonsten anlegen.
public void storeMore(MoreEntity moreEntity) { boolean exists = moreProfileExists(moreEntity.getName()); if (exists){ updateMore(moreEntity); }else{ moreEntity.setId(0); createMore(moreEntity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleStore()\r\n {\r\n //\r\n }", "public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}", "public void store() throws PersistenceException {\n }", "public abstract boolean store();", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "protected void storeCurrentValues() {\n }", "private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic Store save(Store store) {\n\t\treturn storeRepository.save(store);\n\t}", "@Override\n\tpublic void store() {\n\n\t\tSystem.out.println(\"store() in Employee Dao\");\n\t}", "@Override\n public void saveValues() {\n \n }", "public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}", "public boolean isStore() { return _store; }", "@Override\r\n public void store(long key, O object) throws OBException {\n }", "@Override\n\tpublic void execute(Frame frame) {\n\t\tDSTORE._dstore(frame, 1);\n\t}", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "protected void setStore(String store) {\n this.store = store;\n }", "private void save(Store store) {\n if (saved) {\n return;\n }\n\n if (saves.isEmpty()) {\n saved = true;\n return;\n }\n\n store.save(saves);\n saved = true;\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public Store() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "public synchronized void writeStore() {\n FileOutputStream fileStream = null;\n\n try {\n File storeFile = new File(getStoreName());\n File oldStoreFile = new File(oldStoreName);\n\n if (oldStoreFile.exists()) {\n oldStoreFile.delete();\n }\n\n if (storeFile.exists()) {\n storeFile.renameTo(oldStoreFile);\n }\n\n File newStoreFile = new File(getStoreName());\n\n // Make sure the needed directories exists\n if (!newStoreFile.getParentFile().exists()) {\n newStoreFile.getParentFile().mkdirs();\n }\n\n fileStream = new FileOutputStream(newStoreFile);\n ObjectOutputStream outStream = new ObjectOutputStream(fileStream);\n outStream.writeObject(store);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n } finally {\n if (fileStream != null) {\n try {\n fileStream.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n }\n }\n }\n }", "private void saveData() {\n }", "public void onStore(boolean b);", "private Store() {\n\t}", "@Override\n public void save()\n {\n \n }", "@Override\n public void save() {\n \n }", "public void saveState() { }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\n public int insert(StorePickStatus arg0) {\n return 0;\n }", "@Override\n public void Save() {\n\t \n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void store() throws BackingStoreException {\n\t\tString timeText = time.getText();\n\t\tpreference.setDuration(timeText.isEmpty() ? 0 : Long.valueOf(time.getText()));\n\t\tpreference.setFails(fail.getSelection());\n\t\tpreference.store();\n\t}", "protected String getStore() {\n return store;\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public T getStore() {\r\n\t\treturn store;\r\n\t}", "@Override\n public void persist() {\n }", "public boolean save(Datastore store) {\n return save(store, false);\n }", "protected void doStore()\n\t{\n\t\tText text = getTextControl();\n\t\tif ( text != null )\n\t\t{\n\t\t\tDouble d = new Double( text.getText() );\n\t\t\tgetPreferenceStore().setValue( getPreferenceName(), d.doubleValue() );\n\t\t}\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "@Override\r\n\tpublic int changeStore(ProductRaw_Store store) {\n\t\tProductRaw_Store store2 = productRaw_StoreDao.getByPid(store.getProductRaw().getId());\r\n\t\tif(store2==null){\r\n\t\t\tstore.setStatus(0);\r\n\t\t\tproductRaw_StoreDao.insert(store);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tstore2.setCount(store.getCount());\r\n\t\t\tproductRaw_StoreDao.updateByPrimaryKey(store2);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "@Override\n Store apply(@Required Store store);", "@Override\n public void save() {\n\n }", "public void saveState() {\n table.saveState(store);\n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "protected void storeWithoutCommit(ExtObjectContainer db) {\n \ttry {\n \t\tcheckedActivate(3); // TODO: Figure out a suitable depth.\n \t\tthrowIfNotStored(mBoard);\n \t\tif(mMessage != null) throwIfNotStored(mMessage);\n \n \t\tcheckedStore();\n \t}\n \tcatch(RuntimeException e) {\n \t\tcheckedRollbackAndThrow(e);\n \t}\n }", "@Override\r\n\tpublic void saveAll(Store store) {\n\t\ttry {\r\n\t\t\tint size = store.getStoreSize();\r\n\t\t\tloader.setNumOfItems(size);\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tloader.setItem(i, store.getStoreItem(i));\r\n\t\t\t}\r\n\t\t\tloader.saveProperty();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "private void retrieve() {\r\n\t\ttry {\r\n\t\t\tif (store == null) {\r\n\t\t\t\tstore = Store.retrieve();\r\n\t\t\t\tif (store != null) {\r\n\t\t\t\t\tSystem.out.println(\" The store has been successfully retrieved from the file StoreData. \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstore = Store.instance();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception cnfe) {\r\n\t\t\tcnfe.printStackTrace();\r\n\t\t}\r\n\t}", "public void ejbStore() {\n }", "public void ejbStore() {\n }", "public interface Store {\n\n}", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "public void testStore() {\n\t\tSearchDocument sdocument = new SearchDocument();\r\n\t\tsdocument.setLuceneId(2);\r\n\t\t/**\r\n\t\t * Pay particular attenction: the property menuId is a foreign key. \r\n\t\t * FOREIGN KEY(co_menuid) REFERENCES co_menus(co_menuid)\r\n\t\t */\t\t\r\n\t\tsdocument.setMenuId(Menu.MENUID_PERSONAL);\r\n\t\tsdocument.setIndex(\"testIndex\");\r\n\t\tassertTrue(\"Unable to store\", dao.store(sdocument));\r\n\r\n\t\t// Check database status\r\n\t\tsdocument = dao.findByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertNotNull(sdocument);\r\n\t\tassertEquals(Menu.MENUID_PERSONAL, sdocument.getMenuId());\r\n\t}", "@Override\r\n\tpublic <S extends Estates> S save(S arg0) {\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic int store(MAgama data) {\n\t\treturn agamaDAO.AgamaStore(data);\n\t}", "public String saveStore() {\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\n\t\tMerchantStore store = null;\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tstore = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\t//validation\n/*\t\t\tif (StringUtils.isBlank(merchantProfile.getTemplateModule())) {\n\t\t\t\tsuper.setErrorMessage(\"errors.store.emptytemplate\");\n\t\t\t\treturn INPUT;\n\t\t\t} */\n\n\t\t\tif (store == null) {\n\t\t\t\tstore = new MerchantStore();\n\t\t\t\tstore.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\t\t\t}else {\n\t\t\t\tstore.setTemplateModule(merchantProfile.getTemplateModule());\n\t\t\t}\n\t\t\t\n\n\n\t\t\tjava.util.Date dt = new java.util.Date();\n\n\t\t\tStringBuffer languages = new StringBuffer();\n\t\t\tList langs = this.getSupportedLanguages();\n\t\t\tif (langs != null && langs.size() > 0) {\n\t\t\t\tint sz = 0;\n\t\t\t\tIterator i = langs.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tString lang = (String) i.next();\n\t\t\t\t\tlanguages.append(lang);\n\n\t\t\t\t\tif (sz < langs.size() - 1) {\n\t\t\t\t\t\tlanguages.append(\";\");\n\t\t\t\t\t}\n\t\t\t\t\tsz++;\n\n\t\t\t\t}\n\t\t\t\tstore.setSupportedlanguages(languages.toString());\n\t\t\t} else {\n\t\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(),\n\t\t\t\t\t\tLabelUtil.getInstance().getText(\n\t\t\t\t\t\t\t\t\"message.confirmation.languagerequired\"));\n\t\t\t\tstore.setSupportedlanguages(Constants.ENGLISH_CODE);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\tstore.setStorename(merchantProfile.getStorename());\n\t\t\tstore.setStoreemailaddress(merchantProfile.getStoreemailaddress());\n\t\t\tstore.setStoreaddress(merchantProfile.getStoreaddress());\n\t\t\tstore.setStorecity(merchantProfile.getStorecity());\n\t\t\tstore.setStorepostalcode(merchantProfile.getStorepostalcode());\n\t\t\tstore.setCountry(merchantProfile.getCountry());\n\t\t\tstore.setZone(merchantProfile.getZone());\n\t\t\tstore.setCurrency(merchantProfile.getCurrency());\n\t\t\t\n\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getWeightunitcode())) {\n\t\t\t\tstore.setWeightunitcode(merchantProfile.getWeightunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getSeizeunitcode())) {\n\t\t\t\tstore.setSeizeunitcode(merchantProfile.getSeizeunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tstore.setStorelogo(merchantProfile.getStorelogo());\n\t\t\tstore.setStorephone(merchantProfile.getStorephone());\n\t\t\tstore.setBgcolorcode(merchantProfile.getBgcolorcode());\n\t\t\tstore.setContinueshoppingurl(merchantProfile\n\t\t\t\t\t.getContinueshoppingurl());\n\t\t\tstore.setUseCache(merchantProfile.isUseCache());\n\t\t\tstore.setDomainName(merchantProfile.getDomainName());\n\n\t\t\tstore.setMerchantId(merchantid.intValue());\n\t\t\tstore.setLastModified(new java.util.Date(dt.getTime()));\n\n\t\t\tif (!StringUtils.isNumeric(merchantProfile.getZone())) {\n\t\t\t\tstore.setStorestateprovince(merchantProfile\n\t\t\t\t\t\t.getStorestateprovince());\n\t\t\t\tctx.setZoneid(0);\n\t\t\t} else {// get the value from zone\n\t\t\t\tctx.setZoneid(Integer.parseInt(merchantProfile.getZone()));\n\t\t\t\tMap zones = RefCache.getInstance().getAllZonesmap(\n\t\t\t\t\t\tLanguageUtil.getLanguageNumberCode(ctx.getLang()));\n\t\t\t\tZone z = (Zone) zones.get(Integer.parseInt(merchantProfile\n\t\t\t\t\t\t.getZone()));\n\t\t\t\tif (z != null) {\n\t\t\t\t\tstore.setStorestateprovince(z.getZoneName());// @todo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// localization\n\t\t\t\t} else {\n\t\t\t\t\tstore.setStorestateprovince(\"N/A\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!StringUtils.isBlank(this.getInBusinessSince())) {\n\t\t\t\tDate businessDate = DateUtil.getDate(this.getInBusinessSince());\n\t\t\t\tstore.setInBusinessSince(businessDate);\n\t\t\t}\n\n\t\t\tsuper.prepareSelections(store.getCountry());\n\t\t\tmservice.saveOrUpdateMerchantStore(store);\n\n\t\t\tsuper.getContext().setExistingStore(true);\n\n\t\t\t// refresh context\n\n\t\t\tctx.setCountryid(merchantProfile.getCountry());\n\t\t\tctx.setSizeunit(merchantProfile.getSeizeunitcode());\n\t\t\tctx.setWeightunit(merchantProfile.getWeightunitcode());\n\t\t\tLanguageHelper.setLanguages(languages.toString(), ctx);\n\t\t\tctx.setCurrency(merchantProfile.getCurrency());\n\n\t\t\t// refresh the locale\n\t\t\tMap countries = RefCache.getAllcountriesmap(LanguageUtil\n\t\t\t\t\t.getLanguageNumberCode(ctx.getLang()));\n\t\t\tCountry c = (Country) countries.get(merchantProfile.getCountry());\n\t\t\tLocale locale = new Locale(\"en\", c.getCountryIsoCode2());\n\t\t\tActionContext.getContext().setLocale(locale);\n\t\t\tMap sessions = ActionContext.getContext().getSession();\n\t\t\tsessions.put(\"WW_TRANS_I18N_LOCALE\", locale);\n\n\n\t\t\tMessageUtil.addMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"message.confirmation.success\"));\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t\tsuper.setTechnicalMessage();\n\t\t}\n\n\t\treturn SUCCESS;\n\n\t}", "public void save() {\n ProductData.saveData(tree);\n }", "protected void trunkStore() {\n LOG.info(\"Trunking state filestore: {}\", fileStore);\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(fileStore);\n for (Map.Entry<String, String> entry : cache.entrySet()) {\n fos.write(entry.getKey().getBytes());\n fos.write(KEY_VALUE_DELIMITER.getBytes());\n fos.write(entry.getValue().getBytes());\n fos.write(STORE_DELIMITER.getBytes());\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n } finally {\n IOHelper.close(fos, \"Trunking file state repository\", LOG);\n }\n }", "@Override\r\n\tpublic void persist(Seat seatHoldState, SeatState value) {\n\t\t\r\n\t}", "private void saveCurrentObject() {\n\t}", "public int save() {\n\t\treturn 0;\n\t}", "public Store() {\n\t\t//If unspecified then default to 1 register in the store\n\t\tthis(1);\n\t}", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "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}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "public final Long save() {\n\t\tid = Ollie.save(this);\n\t\tOllie.putEntity(this);\n\t\tnotifyChange();\n\t\treturn id;\n\t}", "public void save() {\n }", "public void StoreData(DataStore ds)\n {\n ((DataStore2)ds).setPin();\n\tSystem.out.println(\"Account 2:The set PIN is \" + ((DataStore2)ds).getPin() );\n ((DataStore2)ds).setUid();\n\tSystem.out.println(\"Account 2:The set User ID is \" + ((DataStore2)ds).getUid() );\n ((DataStore2)ds).setBalance();\n\tSystem.out.println(\"Account 2:The Balance is \" + ((DataStore2)ds).getBalance() );\n }", "@Override\n public boolean save()\n {\n return false;\n }", "public int getStoreID() { return storeID; }", "public void setAutoStore(boolean autoStore) {\n this.autoStore = autoStore;\n }", "void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }", "default void save() {\n throw new IllegalStateException(\"not implementation or not initialized.\");\n }", "public void setAfterStore(Integer afterStore) {\r\n this.afterStore = afterStore;\r\n }", "void store(InstanceProperties props) {\n props.putString(PROPERTY_NAME, name);\n props.putString(PROPERTY_HOST, host);\n props.putInt(PROPERTY_PORT, port);\n props.putString(PROPERTY_LOCAL_SERVER_ROOT,\n getLocalServer() != null\n ? getLocalServer().getServerRoot() : null);\n props.putString(PROPERTY_LOCAL_SERVER_HOME,\n getLocalServer() != null\n ? getLocalServer().getServerHome() : null);\n LOG.log(Level.FINER,\n \"Stored GlassFishCloudInstance({0}, {1}, {2})\",\n new Object[]{name, host, port});\n storeListeners.fireChange();\n\n }", "public void storeInObject() {\r\n lockValueStored = IN_OBJECT;\r\n }", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void store(Item item) {\n this.items.add(item);\n }", "DataStore getDataStore ();", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public void save() {\n\t\tList<EmbeddedEntity> embeddedEntities = new ArrayList<>();\n\t\tfor (FeedItem item : items)\n\t\t\tembeddedEntities.add(item.getEntity());\n\t\tEntity feed = new Entity(getKey());\n\t\tfeed.setUnindexedProperty(\"items\", embeddedEntities); //NOI18N\n\t\tdatastore.put(feed);\n\t}", "@Override\r\n public void set(E e) {\r\n if (lastRetrieved == null) {\r\n throw new IllegalStateException();\r\n }\r\n if (e == null) {\r\n throw new NullPointerException();\r\n }\r\n\r\n lastRetrieved.data = e;\r\n }", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "@Override\n\tpublic void storeProduct(StockedProduct productToStore) {\n\t\tproductsAtStore.put(productToStore.getProduct(), productToStore.getAvailability());\n\t}", "protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }" ]
[ "0.74852455", "0.7166507", "0.70723116", "0.7023662", "0.6998689", "0.6973745", "0.69087845", "0.6855835", "0.674862", "0.6719747", "0.67135996", "0.6681386", "0.6623781", "0.65670604", "0.65562403", "0.6552258", "0.65325016", "0.65307075", "0.6528883", "0.6528229", "0.6527007", "0.650627", "0.650627", "0.647668", "0.64686173", "0.6445313", "0.6439474", "0.6431549", "0.6431315", "0.64219886", "0.6409235", "0.64027685", "0.6394398", "0.6387413", "0.6386992", "0.63810456", "0.6372357", "0.6352081", "0.6349072", "0.63458467", "0.63458467", "0.633391", "0.633281", "0.6323568", "0.6308221", "0.6303372", "0.6302664", "0.6294306", "0.62917185", "0.628879", "0.6279126", "0.6261328", "0.6237188", "0.62300783", "0.6217613", "0.620993", "0.6208613", "0.61781496", "0.61408234", "0.6139438", "0.61274153", "0.61274153", "0.60986924", "0.6091091", "0.6085114", "0.6066569", "0.60501003", "0.6023103", "0.6007873", "0.5989938", "0.5978479", "0.5967135", "0.5964243", "0.59525126", "0.5938854", "0.59360015", "0.59209114", "0.59209114", "0.5889639", "0.5889313", "0.5885467", "0.587608", "0.5871619", "0.586723", "0.58652854", "0.5863264", "0.5857603", "0.5855051", "0.5850985", "0.58431834", "0.5840467", "0.58362114", "0.58337355", "0.5832111", "0.58307964", "0.58186734", "0.58143246", "0.58042204", "0.58021015", "0.5794435", "0.57924175" ]
0.0
-1
/ Set error message
public static void showMsgError(TextInputLayout textInputLayout, EditText editText, String errText){ textInputLayout.setError(errText); errorStyle(editText, Color.RED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setError(String message);", "void setErrorMessage(String errorMessage);", "void setError();", "public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}", "public void setErrorMsg(String text) {\n this.errorMsg = text;\n }", "public void error(String message);", "private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }", "public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }", "public void addError(String message);", "public Builder setErrmsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n errmsg_ = value;\n onChanged();\n return this;\n }", "protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n errorMessage_ = value;\n onChanged();\n return this;\n }", "private void setError(String code, String message) {\r\n recentErrorCode = code;\r\n recentErrorMessage = message;\r\n recentServerErrorCode = \"\";\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog && !\"\".equals(message)) {\r\n System.out.println(\"[E!:\" + code + \"] \" + message);\r\n }\r\n }", "void showError(String message);", "void showError(String message);", "@Override\n\t\tpublic void setInvalidMess(String errmess) {\n\n\t\t}", "@SuppressWarnings(\"WeakerAccess\")\n public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public void setErrorText(String errorText) {\n this.m_ErrorText = errorText;\n }", "public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n error_ = value;\n onChanged();\n return this;\n }", "@Override\n\tprotected void setErrorMessage(String errorMessage) {\n\t\tsuper.setErrorMessage(errorMessage);\n\t}", "public void showError(String error);", "void showError(String errorMessage);", "public void showError(String errorMessage);", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorMessage_ = value;\n onChanged();\n return this;\n }", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "void setErrorUsername();", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "public void putError(String message) {\n errorData.postValue(message);\n }", "public void setError(String error) {\n this.error = error;\n }", "public void setError(String error) {\n this.error = error;\n }", "public void setError(String error) {\n this.error = error;\n }", "public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }", "void displayErrorMessage(String message);", "public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n error_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void error(CharSequence message) {\n\n\t}", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "void errorBox(String title, String message);", "public void setErrorMessage(java.lang.String errorMessage) {\r\n this.errorMessage = errorMessage;\r\n }", "private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }", "public void setErrorMessage(\r\n\t\tString errorMessage)\r\n\t{\r\n\t\terrorMessageText.setText(errorMessage == null ? \"\" : errorMessage); // $NON-NLS-1$\r\n\t\tokButton.setEnabled(errorMessage == null);\r\n\t\terrorMessageText.getParent().update();\r\n\t}", "void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }", "public Builder setErr(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n err_ = value;\n onChanged();\n return this;\n }", "public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public void setError(java.lang.String error) {\n this.error = error;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public void setError(int value) {\n this.error = value;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}", "void showErrorMsg(String string);", "public synchronized void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n status = Status.FAILED;\n }", "public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);", "public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }", "public void setErrorMessage(java.lang.String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public void setErrorMsg(String errorMsg) {\n this.errorMsg = errorMsg;\n }", "public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }", "public String createErrorMessage(CommandSender sender, MCommand command);", "public void setError(String error) {\n\t\tthis.error = error;\n\t}", "void setErrorAppTag(String errorMessage);", "public void error(String string) {\n\t\t\n\t}", "String getErrorMessage();", "String getErrorMessage();", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}", "public void setErrorMsg(String errorMsg) {\r\n\t\tthis.errorMsg = errorMsg;\r\n\t}", "public void setError(File error) {\r\n this.error = error;\r\n incompatibleWithSpawn = true;\r\n }", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "public void setError(int errorCase) {\n\n\t\tswitch (errorCase) {\n\n\t\tcase 1: {\n\t\t\tthis.error = \"Number should be from 0 to N\";\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\tthis.error = \"Base should be from 2 to 25\";\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault: {\n\t\t\tthis.error = null;\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}", "void setCustomValidity(String error);", "public void setError(final String pError) {\n\t\tthis.mError = pError;\n\t\ttry {\n\t\t\tthis.mErrorData = this.mError.getBytes(\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.mErrorSize = this.mErrorData.length;\n\t}", "@Override\n\tpublic void error(Object message) {\n\n\t}", "public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }", "protected abstract void error(String err);", "private void error(String message) { \n Alert alert = new Alert(Alert.AlertType.ERROR, message);\n alert.setTitle(I18n.tr(\"imagesizedialog.error.title\"));\n alert.setContentText(message);\n alert.showAndWait();\n }", "@Override\n void assertErrorMessage(String messageText) {\n }", "abstract void error(String error);", "void drawError(String message);", "java.lang.String getErrmsg();", "public void mostrarMensaje(String error) {\r\n\t\tthis.lblError.setText(error);\r\n\t}", "@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}" ]
[ "0.8618977", "0.8016403", "0.7836277", "0.77035683", "0.7626213", "0.76247257", "0.75914943", "0.74975324", "0.7482604", "0.7474886", "0.74188286", "0.73075956", "0.7268612", "0.7258912", "0.7258912", "0.7241186", "0.72400767", "0.7233098", "0.71865386", "0.7115728", "0.7088819", "0.7076898", "0.7075661", "0.70705473", "0.70688045", "0.70631886", "0.70577693", "0.7055319", "0.70388675", "0.70388675", "0.70388675", "0.70386523", "0.70301294", "0.7027097", "0.70257753", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.7011633", "0.70042235", "0.698874", "0.6983043", "0.69725746", "0.6969595", "0.6944013", "0.6931467", "0.6925098", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.6920834", "0.69189787", "0.69184554", "0.6894354", "0.68943095", "0.6888059", "0.68643934", "0.68629366", "0.6861656", "0.6858671", "0.68510497", "0.68510497", "0.68510497", "0.68510497", "0.68456894", "0.68430024", "0.68419087", "0.68172354", "0.6790374", "0.6790374", "0.678987", "0.678439", "0.67839915", "0.6780981", "0.67766076", "0.67566085", "0.67540526", "0.6750963", "0.67433083", "0.6728303", "0.67156595", "0.6709301", "0.6709274", "0.6702639", "0.6700578", "0.6697445", "0.66973764", "0.6696694" ]
0.0
-1
/ Hide error message
public static void hideMsgError(TextInputLayout textInputLayout, EditText editText, int color){ textInputLayout.setError(""); editText.setTextColor(Color.BLACK); errorStyle(editText, color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showErrorMessage() {\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mMoviesList.setVisibility(View.INVISIBLE);\n }", "private void showErrorMessage() {\n gridview.setVisibility(View.INVISIBLE);\n // Then, show the error\n errorTextView.setVisibility(View.VISIBLE);\n }", "private void showErrorMessage() {\n // hide the view for the list of movies\n mMoviesRecyclerView.setVisibility(View.INVISIBLE);\n // show the error message\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "private void showErrorMessage() {\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mLayout.setVisibility(View.INVISIBLE);\n }", "private void showErrorMessage() {\n mCryptoRecyclerView.setVisibility(View.INVISIBLE); // set the visibility of the recycler to invisible\n mTvErrorMessage.setVisibility(View.VISIBLE); // set the visibility of the error message to visible\n }", "public void showError(String errorMessage);", "void showError(String errorMessage);", "private void showErrorMessage(){\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mGridView.setVisibility(View.INVISIBLE);\n }", "private void showErrorMessage() {\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "@Override\n public void showError() {\n }", "private void showErrorMessage() {\n // First, hide the currently visible data\n mRecyclerView.setVisibility(View.INVISIBLE);\n\n // Then, show the error\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "void showError(String message);", "void showError(String message);", "void displayUserTakenError(){\n error.setVisible(true);\n }", "public void displayInvalid() {\n invalidLabel.setVisible(true);\n }", "public void showError(String error);", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "private void showErrorMessage() {\n /* First, hide the currently visible data */\n mEmptyTextView.setText(\"No Internet Connection\");\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mEmptyTextView.setVisibility(View.VISIBLE);\n }", "private void showError() {\n errorTextView.setVisibility(View.VISIBLE);\n errorButton.setVisibility(View.VISIBLE);\n errorButton.setEnabled(true);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}", "public void HideValidation() {\n try {\n rl_validation.setVisibility(View.GONE);\n } catch (Exception e) {\n e.printStackTrace();\n appsingleton.ToastMessage(\"\" + e.getMessage());\n }\n }", "private void hideMessage(){\n // Hide message\n }", "@Override\n\tprotected String showErrorMessage() {\n\t\treturn \"There has been an error. Payment cannot process at this time. Please check with your credit card compay.\";\n\t}", "public void showError() {\n mapView.setVisibility(View.GONE);\n loadingLayout.setVisibility(View.GONE);\n errorLayout.setVisibility(View.VISIBLE);\n\n }", "public void errorMessage(String text) {\n \t\tErrorMessage msg = new ErrorMessage(this, text);\n \t\tmsg.setAlwaysOnTop(true);\n \t\tmsg.setVisible(true);\n \t\tsetEnabled(false);\n \t}", "void showError() {\n Toast.makeText(this, \"Please select answers to all questions.\", Toast.LENGTH_SHORT).show();\n }", "public void showErrorMessage() {\n\t\tthis.vm = null;\n\t\tplayButton.setText(\"►\");\n\n\t\tthis.remove(visualizerPanel);\n\t\tvisualizerPanel = new ErrorCard();\n\t\tvisualizerPanel.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));\n\t\tthis.add(visualizerPanel);\n\t}", "private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }", "void showErrorMsg(String string);", "private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}", "private void mostrarMensajeError() {\n this.mBinding.rvPeliculas.setVisibility(View.GONE);\n /* Then, show the error */\n this.mBinding.tvMostrarError.setVisibility(View.VISIBLE);\n }", "@Override\r\n\tpublic void showErrReq() {\n\t\tdialog.cancel();\r\n\t\tshowNetView(true);\r\n\t}", "void showForbiddenErrorSnackbar();", "private void displayValidationError() {\n\n\t\tif (null != validationErrorTitle) {\n\t\t\tvalidationErrorParent.toFront();\n\t\t\tAppController.showMessage(validationErrorParent, validationErrorMessage, validationErrorTitle,\n\t\t\t\tvalidationErrorType);\n\t\t}\n\n\t\tclearValidationError();\n\t}", "void displayLoginError(Boolean display) {\n\t\ttvError.setVisibility(display ? View.VISIBLE : View.INVISIBLE);\n\t}", "private void showErrorMessage(String errorMessage)\n {\n JOptionPane.showMessageDialog(null, ERRMSG_NAME_MISSING,\n HERO_ERROR_TITLE, JOptionPane.ERROR_MESSAGE);\n _nameField.requestFocusInWindow();\n }", "private void showErrorMessage(String errorMessage) {\n mDisplayErrorTV.setVisibility(View.VISIBLE);\n mDisplayErrorTV.setText(errorMessage);\n mDisplayMoviesRV.setVisibility(View.INVISIBLE);\n }", "void displayErrorMessage(String message);", "public void showError(boolean showOrHide, String errorText){\n errorLabel.setText(errorText);\n errorLabel.setVisible(showOrHide);\n }", "public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }", "public void showNetErrorMessage() {\n showMessage(R.string.ic_net_error_tipinfo);\n }", "public void showBadInputMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Vänligen skriv siffror mellan 1 och \" + size);\n\t}", "public static void exposeError(String errorMessage) {\r\n CmdUx.printHBars(errorMessage);\r\n }", "public void displayErrorMessage(String errorMessage) {\n JOptionPane.showMessageDialog(this, errorMessage);\n }", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "private void clearErrorMessage() {\n errorMessageLabel.clear();\n }", "void displayErrorMessage(String errorMessage){\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(this, errorMessage);\r\n\t\t\r\n\t}", "private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\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 }", "public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }", "void displayLoadingErrorMessage();", "@Override\n public void showEmptyFieldsValidationError() {\n showError(R.string.product_config_empty_fields_validation_error);\n }", "public void popupWarning(ValidationResult vr) {\r\n JOptionPane.showMessageDialog(this, vr.message, \"VALIDATION WARNING\", JOptionPane.WARNING_MESSAGE);\r\n }", "public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }", "@Override\n public void displayError() {\n Toast.makeText(this, \"Incorrect username or password.\", Toast.LENGTH_LONG).show();\n password.setText(\"\");\n }", "public void getMessage() {\r\n // use JOptionPane to have a pop up box informing user of the invalid token\r\n JOptionPane.showMessageDialog(null, \"Invalid Token \" + invalidToken);\r\n }", "private void displayEmailError(String errorMessage)\n {\n ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) etUsername.getLayoutParams();\n params.setMargins(32, 32, 32, 0);\n etUsername.setLayoutParams(params);\n etEmail.setBackgroundResource(R.drawable.edit_text_error);\n tvEmailError.setText(errorMessage);\n tvEmailError.setVisibility(View.VISIBLE);\n }", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "private void check_displaysError() {\n onView(withId(R.id.title))\n .check(matches(withText(R.string.input_title_error)));\n onView(withId(R.id.subtitle))\n .check(matches(withText(R.string.input_subtitle_error)));\n\n // And the button to be labeled try again\n onView(withId(R.id.hint))\n .check(matches(isDisplayed()))\n .check(matches(withText(R.string.input_hint_error)));\n }", "private void showError(String msg)\n {\n \tJOptionPane.showMessageDialog(this, msg, \"Error\",\n \t\t\t\t JOptionPane.ERROR_MESSAGE);\n }", "void showErrorSnackbar();", "@Override\n public void displayInvalidUser() {\n Toast.makeText(this, \"Username cannot be blank or contain $\", Toast.LENGTH_LONG).show();\n }", "public abstract void showErrorBox(Throwable error);", "void errorBox(String title, String message);", "@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }", "@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }", "public static void showErrorMessage(String errorMessage) {\n\t\tMessageDialog messageDialog = new MessageDialog(\n\t\t\tnull,\n\t\t\t\"Error during code generation\",\n\t\t\tnull,\n\t\t\terrorMessage,\n\t\t\tMessageDialog.ERROR,\n\t\t\tnew String[]{\"Ok\"}, 0);\n\t\tmessageDialog.open();\n\t}", "public void displayErrorMessage(String errorMess)\n {\n JOptionPane.showMessageDialog(this,errorMess);\n }", "@Override\n\tpublic void hidePopup() {\n\t\t// logger.info(\"..errr..I'll hide u\");\n\t}", "public void toggleLoginError() {\n TextView loginErrorTextView = findViewById(R.id.login_error);\n if (loginErrorTextView.getText().toString().equals(\"\")) {\n loginErrorTextView.setText(R.string.incorrectUsernamePassword);\n }\n }", "private void displayUsernameError(String errorMessage)\n {\n ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) etPassword.getLayoutParams();\n params.setMargins(32, 32, 32, 0);\n etPassword.setLayoutParams(params);\n etUsername.setBackgroundResource(R.drawable.edit_text_error);\n tvUsernameError.setText(errorMessage);\n tvUsernameError.setVisibility(View.VISIBLE);\n }", "public void displayErrorMessage(String errorMessage) {\n userMessage.setTextFill(Color.RED);\n userMessage.setText(errorMessage);\n }", "public void showErrorMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"error.dialog.header\"),\r\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\r\n }", "private void showError(String text, String title){\n JOptionPane.showMessageDialog(this,\n text, title, JOptionPane.ERROR_MESSAGE);\n }", "public void showErrorMessage(String message){\n System.out.println(LocalTime.now() + \": Error: \" + message);\n }", "private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }", "public void displayErrorMessage(String errorMessage) {\n\t\tJOptionPane.showMessageDialog(this, errorMessage);\n\t}", "@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}", "protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}", "String errorMessage();", "public void showError(String message) {\n JOptionPane.showMessageDialog(this, message, \"Error!\", JOptionPane.ERROR_MESSAGE);\n }", "private void showErrorMessage(Boolean isInternetConnectionError) {\n Log.d(LOG_TAG, \"showErrorMessage()\");\n /* Set the text of the TextView depending on the kind of error */\n if (isInternetConnectionError){\n Log.d(LOG_TAG, \"Display a no internet connection error message.\");\n mErrorMessageDisplay.setText(getResources().getString(R.string.error_msg_no_internet_connection));\n } else {\n Log.d(LOG_TAG, \"Display a general error message.\");\n mErrorMessageDisplay.setText(getResources().getString(R.string.error_msg_general));\n }\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error message */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "boolean hasErrormessage();", "public void hideAnswerResult() {\n hideAnswerResult(true);\n }", "public void assertErrorMsgCheck() {\r\n\t\t\tassertEquals(errorMsg.getText().substring(0,52), \"Warning: Please check the form carefully for errors!\");\r\n\t\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ errorMsg.getText().substring(0,52));\r\n\t\t}", "private void showErrorDialog(int errorCode) {\n\t\t\n }", "private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();" ]
[ "0.7574791", "0.7569482", "0.75491047", "0.7511062", "0.74607325", "0.7458696", "0.7347395", "0.73292905", "0.73088086", "0.72954637", "0.728224", "0.7176284", "0.7176284", "0.71288896", "0.7112672", "0.71014875", "0.70863014", "0.70445764", "0.7016906", "0.70065457", "0.7004103", "0.6972998", "0.6909297", "0.6896189", "0.68446606", "0.6838852", "0.6831288", "0.68017787", "0.67975086", "0.67880857", "0.6786952", "0.6755736", "0.6743718", "0.672688", "0.6722625", "0.67200094", "0.6691571", "0.668305", "0.6677569", "0.6664927", "0.6663501", "0.6599599", "0.6558434", "0.6555233", "0.6522508", "0.6486014", "0.6485065", "0.64838594", "0.6473902", "0.6471728", "0.64599544", "0.6456792", "0.64490294", "0.6439136", "0.64355206", "0.64240223", "0.6410568", "0.6409011", "0.64071465", "0.6400776", "0.63867223", "0.63799995", "0.63694024", "0.63676393", "0.6367389", "0.63549995", "0.6336991", "0.6336991", "0.63311064", "0.63243926", "0.63199466", "0.63077086", "0.63059634", "0.6305619", "0.6304112", "0.62874687", "0.6285653", "0.62815636", "0.6277287", "0.6274585", "0.6273896", "0.6273431", "0.6214023", "0.62109685", "0.6209123", "0.6202405", "0.61876637", "0.6185491", "0.6179533", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168", "0.6175168" ]
0.0
-1
/Text message error style of Edited text
public static void errorStyle(EditText edt, int color){ Drawable drawable = edt.getBackground(); // get current EditText drawable drawable.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); // change the drawable color if(Build.VERSION.SDK_INT > 16) { edt.setBackground(drawable); // set the new drawable to EditText }else{ edt.setBackgroundDrawable(drawable); // use setBackgroundDrawable because setBackground required API 16 } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Text error(Text error) {\n\t\treturn error.setStyle(error.getStyle().setFormatting(Formatting.RED));\n\t}", "private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0){\n mErrorText.append(String.valueOf(length));\n mErrorText.append(\" / \");\n mErrorText.append(String.valueOf(mMaxLen));\n mErrorText.setSpan(mAlignmentSpan, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n if(hasValidLength()){\n mErrorText.setSpan(mNormalTextAppearance, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n }\n mCharacterLimit.setText(mErrorText);\n }", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "@Override\n \t\t\t\tpublic void modifyText(ModifyEvent e) {\n \t\t\t\t\tString result = fp.getValidator().validate(text.getText());\n \t\t\t\t\tif (result == null)\n \t\t\t\t\t\tdecorator.hide();\n \t\t\t\t\telse {\n \t\t\t\t\t\tdecorator.setDescriptionText(result);\n \t\t\t\t\t\tdecorator.show();\n \t\t\t\t\t}\n \t\t\t\t\tupdateState();\n \t\t\t\t}", "protected void editOccured(ModifyEvent e) {\n \n \t\tString aValue = text.getText();\n \t\tif (aValue == null) {\n \t\t\taValue = StringStatics.BLANK;\n \t\t}\n \t\tObject typedValue = aValue;\n \t\tboolean oldValidState = isValueValid();\n \t\tboolean newValidState = isCorrect(typedValue);\n \t\tif (typedValue == null && newValidState) {\n \t\t\tassert (false) : \"Validator isn't limiting the cell editor's type range\"; //$NON-NLS-1$\n \t\t}\n \t\tif (!newValidState) {\n \t\t\t// try to insert the current value into the error message.\n \t\t\tsetErrorMessage(\n \t\t\t\tMessageFormat.format(\n \t\t\t\t\tgetErrorMessage(),\n \t\t\t\t\tnew Object[] { aValue }));\n \t\t}\n \t\tvalueChanged(oldValidState, newValidState);\n \t}", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "private String getMessagePlainText() throws BadLocationException{\n\t\treturn textArea.getDocument().getText(0, textArea.getDocument().getLength());\n}", "public static void showMsgError(TextInputLayout textInputLayout, EditText editText, String errText){\n textInputLayout.setError(errText);\n errorStyle(editText, Color.RED);\n }", "public void modifyText(ExtendedModifyEvent event) \r\n\t\t\t{\n\t\t\t\tint end = event.start + event.length - 1;\r\n\r\n\t\t\t\t// If they typed something, get it\r\n\t\t\t\tif (event.start <= end) \r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the text\r\n\t\t\t\t\tString text = styledText.getText(event.start, end);\r\n\r\n\t\t\t\t\t// Create a collection to hold the StyleRanges\r\n\t\t\t\t\tjava.util.List ranges = new java.util.ArrayList();\r\n\r\n\t\t\t\t\t// Turn any punctuation red\r\n\t\t\t\t\tfor (int i = 0, n = text.length(); i < n; i++) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (PUNCTUATION.indexOf(text.charAt(i)) > -1) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tranges.add(new StyleRange(event.start + i, 1, red, null, SWT.BOLD));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// If we have any ranges to set, set them\r\n\t\t\t\t\tif (!ranges.isEmpty()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstyledText.replaceStyleRanges(event.start, event.length,(StyleRange[]) ranges.toArray(new StyleRange[0]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }", "public void validateTextField ()\r\n\t{\r\n\t\tif (isEditValid ())\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_GREEN);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_RED);\r\n\t\t}\r\n\t}", "void drawError(String message);", "public String getErrorText()\n {\n if ( null == m_errorMsg )\n {\n StringBuilder buf = new StringBuilder( 400 );\n\n // Error checking should never happen if the collection of existing\n // names is null or empty, but take care anyway.\n if (!(null == m_existingElems || m_existingElems.size() < 1))\n {\n Iterator iter = m_existingElems.iterator();\n boolean first = true;\n while ( iter.hasNext())\n {\n if ( !first )\n buf.append( \", \" );\n buf.append( iter.next().toString());\n first = false;\n }\n }\n\n String [] args = new String[]\n {\n buf.toString()\n };\n String pattern = ms_res.getString( \"uniqueListConstraintError\" );\n m_errorMsg = MessageFormat.format( pattern, args );\n }\n return m_errorMsg;\n }", "public void setErrorText(String error, int color){\n errorText.setTextColor(color);\n errorText.setText(error);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t if (tf.isEditValid()) { //The text is invalid.\n\t\t\t //The text is valid,\n\t\t try {\n\t\t\t\t\t\t\ttf.commitEdit();\n\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} //so use it.\n\t\t tf.postActionEvent(); //stop editing\n\t\t\t }\n\t\t\t\t}", "public void tomaError( \r\n String error,\r\n InterfaceEdicionDatos<Tipo> editor );", "public static void giveMessage(String text, MutableAttributeSet style) {\n\n if (!cb.isSelected()) {\n return;\n }\n\n if (style == null) {\n style = black;\n }\n\n try {\n textPane.setCharacterAttributes(style, true);\n documentModel.insertString(documentModel.getLength(), text + \"\\n\", style);\n textPane.setCaretPosition(documentModel.getLength());\n\n } catch (BadLocationException ble) {\n System.out.println(\"Bad location for text insert on logpanel.\");\n }\n }", "private void displayEmailError(String errorMessage)\n {\n ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) etUsername.getLayoutParams();\n params.setMargins(32, 32, 32, 0);\n etUsername.setLayoutParams(params);\n etEmail.setBackgroundResource(R.drawable.edit_text_error);\n tvEmailError.setText(errorMessage);\n tvEmailError.setVisibility(View.VISIBLE);\n }", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "public String getErrorText() {\n return m_ErrorText;\n }", "@Override\n public String getToolTipText() {\n return \"Black -- approved; Gray -- rejected; Red -- pending approval\";\n }", "public void errorMessage(String text) {\n \t\tErrorMessage msg = new ErrorMessage(this, text);\n \t\tmsg.setAlwaysOnTop(true);\n \t\tmsg.setVisible(true);\n \t\tsetEnabled(false);\n \t}", "@Override\n\tpublic void error(CharSequence message) {\n\n\t}", "public String getInvalidMessageText() {\r\n\t\tnotificationError = driver.findElement(notificationErrorSelector);\r\n\t\treturn notificationError.getText();\r\n\t\t\r\n\t}", "private void showThatNotEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Only the original creator may edit their recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Sorry\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "public int getErrorIndex() {\r\n return textErrorIndex;\r\n }", "public String getErrorText() {\n\t\treturn errorText;\n\t}", "public void setErrorDecorationText(String errorText) {\n \t\tthis.decorationProvider.setErrorDecorationText(errorText);\n \t}", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "private String makeBadSearchMessage(String querytext, String exceptionMsg){\n String rv = \"\";\n try{\n //try to get the column in the search term that is causing the problems\n int coli = exceptionMsg.indexOf(\"column\");\n if( coli == -1) return \"\";\n int numi = exceptionMsg.indexOf(\".\", coli+7);\n if( numi == -1 ) return \"\";\n String part = exceptionMsg.substring(coli+7,numi );\n int i = Integer.parseInt(part) - 1;\n \n // figure out where to cut preview and post-view\n int errorWindow = 5;\n int pre = i - errorWindow;\n if (pre < 0)\n pre = 0;\n int post = i + errorWindow;\n if (post > querytext.length())\n post = querytext.length();\n // log.warn(\"pre: \" + pre + \" post: \" + post + \" term len:\n // \" + term.length());\n \n // get part of the search term before the error and after\n String before = querytext.substring(pre, i);\n String after = \"\";\n if (post > i)\n after = querytext.substring(i + 1, post);\n \n rv = \"The search term had an error near <span class='searchQuote'>\"\n + before + \"<span class='searchError'>\" + querytext.charAt(i)\n + \"</span>\" + after + \"</span>\";\n } catch (Throwable ex) {\n return \"\";\n }\n return rv;\n }", "private Text createError(String text, int offset) {\n\t\tText error = new Text(\"\");\n\t\terror.setFont(new Font(\"Minecraftia\", 30));\n\t\terror.setFill(Color.INDIANRED);\n\t\terror.getTransforms().add(new Rotate(-50, 300, 100, 20, Rotate.X_AXIS));\n\t\terror.setX(canvas.getWidth() / 2);\n\t\terror.setY(canvas.getHeight() / 2 + offset);\n\t\treturn error;\n\t}", "private String formatError(String message) {\n return \"error : \" + message;\n }", "protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}", "private void displayUsernameError(String errorMessage)\n {\n ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) etPassword.getLayoutParams();\n params.setMargins(32, 32, 32, 0);\n etPassword.setLayoutParams(params);\n etUsername.setBackgroundResource(R.drawable.edit_text_error);\n tvUsernameError.setText(errorMessage);\n tvUsernameError.setVisibility(View.VISIBLE);\n }", "@Override\t\r\n\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\tMessage = t.getText();\r\n\t\t\t//t.getText().length()>\r\n\t\t\tcanvas.repaint();\r\n\t\t\t\r\n\t\t}", "public void setErrorText(String errorText) {\n this.m_ErrorText = errorText;\n }", "public static void setErrorText(final EditText editText, final String errorMsg){\n editText.setOnKeyListener(new View.OnKeyListener(){\n\n @Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP)\n editText.setError(errorMsg);\n return false;\n }\n });\n editText.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override public void onFocusChange( View v, boolean hasFocus){\n if (hasFocus) editText.setError(null);\n }\n }\n );\n }", "public void wrongAnswer(){\n String textWrong = \"<font color='#BF0000'> WRONG! </font>\"+brandName ;\n //build new object in dialog box\n AlertDialog.Builder dialogBoxAns = new AlertDialog.Builder(this);\n //set title to dialog box\n dialogBoxAns.setTitle(\"Results\");\n //set wrong message to dialog box\n dialogBoxAns.setMessage((Html.fromHtml(textWrong)));\n //set button to dialog box\n dialogBoxAns.setPositiveButton(\"OK\", null);\n //create new dialog box\n AlertDialog dialog = dialogBoxAns.create();\n dialog.show();\n }", "private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}", "private void displayError(String errorText) {\n\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK);\n\t\tmessageBox.setMessage(errorText);\n\t\tmessageBox.setText(\"Alert\");\n\t\tmessageBox.open();\n\t}", "String getInvalidMessage();", "@Override\r\n\tprotected String getErrorInfo(String str, String cmds) {\n\t\treturn null;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeTextColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setClassTextColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "void textChanged() {\n\t\ttextAreaChanged = true;\n\t\tfinder.clear();\n\t\tfindIndex = 0;\n\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\terrorTextArea.setText(\"\");\n\t}", "protected final String formatDialogMessage(final String text) {\n return JsonPaintTarget.escapeXML(text).replaceAll(\"\\n\", \"<br />\");\n }", "protected String formatDialogMessage(final String text) {\n return JsonPaintTarget.escapeXML(text).replaceAll(\"\\n\", \"<br />\");\n }", "public void setErrorIndex(int index) {\r\n this.textErrorIndex = index;\r\n }", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "public boolean hasErrorText() {\n return result.hasErrorText();\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndividualTextColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setIndividualTextColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "@Override\r\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\tMessage = t.getText();\r\n\t\t\tcanvas.repaint();\r\n\t\t\t\r\n\t\t}", "public void displayErrorMessage(String errorMessage) {\n userMessage.setTextFill(Color.RED);\n userMessage.setText(errorMessage);\n }", "@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 57 */ if (NumberUtils.isNumber(invalidInput)) {\n/* 58 */ return getFailedValidationText(context, NumberUtils.createNumber(invalidInput));\n/* */ }\n/* 60 */ return getInputNotNumericText(context, invalidInput);\n/* */ }", "@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }", "@Override\n void assertErrorMessage(String messageText) {\n }", "void errorBox(String title, String message);", "public String getMessageTextAsHTML();", "protected void paintErrorLine(Graphics gfx, int line, int x) {\n \n if (errorCheckerService == null) {\n return;\n }\n \n if (errorCheckerService.problemsList == null) {\n return;\n }\n \n boolean notFound = true;\n boolean isWarning = false;\n \n // Check if current line contains an error. If it does, find if it's an\n // error or warning\n for (ErrorMarker emarker : errorCheckerService.getEditor().errorBar.errorPoints) {\n if (emarker.problem.lineNumber == line + 1) {\n notFound = false;\n if (emarker.type == ErrorMarker.Warning) {\n isWarning = true;\n }\n break;\n }\n }\n \n if (notFound) {\n return;\n }\n \n // Determine co-ordinates\n // System.out.println(\"Hoff \" + ta.getHorizontalOffset() + \", \" +\n // horizontalAdjustment);\n int y = ta.lineToY(line);\n y += fm.getLeading() + fm.getMaxDescent();\n int height = fm.getHeight();\n int start = ta.getLineStartOffset(line);\n \n try {\n String linetext = null;\n \n try {\n linetext = ta.getDocument().getText(start,\n ta.getLineStopOffset(line) - start\n - 1);\n } catch (BadLocationException bl) {\n // Error in the import statements or end of code.\n // System.out.print(\"BL caught. \" + ta.getLineCount() + \" ,\"\n // + line + \" ,\");\n // System.out.println((ta.getLineStopOffset(line) - start - 1));\n return;\n }\n \n // Take care of offsets\n int aw = fm.stringWidth(trimRight(linetext)) + ta.getHorizontalOffset(); // apparent width. Whitespaces\n // to the left of line + text\n // width\n int rw = fm.stringWidth(linetext.trim()); // real width\n int x1 = 0 + (aw - rw), y1 = y + fm.getHeight() - 2, x2 = x1 + rw;\n // Adding offsets for the gutter\n x1 += 20;\n x2 += 20;\n \n // gfx.fillRect(x1, y, rw, height);\n \n // Let the painting begin!\n gfx.setColor(errorMarkerColor);\n if (isWarning) {\n gfx.setColor(warningMarkerColor);\n }\n gfx.fillRect(1, y + 2, 3, height - 2);\n \n gfx.setColor(errorColor);\n if (isWarning) {\n gfx.setColor(warningColor);\n }\n int xx = x1;\n \n // Draw the jagged lines\n while (xx < x2) {\n gfx.drawLine(xx, y1, xx + 2, y1 + 1);\n xx += 2;\n gfx.drawLine(xx, y1 + 1, xx + 2, y1);\n xx += 2;\n }\n } catch (Exception e) {\n System.out\n .println(\"Looks like I messed up! XQTextAreaPainter.paintLine() : \"\n + e);\n //e.printStackTrace();\n }\n \n // Won't highlight the line. Select the text instead.\n // gfx.setColor(Color.RED);\n // gfx.fillRect(2, y, 3, height);\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public ExprBad(Pos pos, String originalText, Err error) {\n super(pos, null, false, EMPTY, 0, 0, new JoinableList<Err>(error));\n this.originalText = originalText;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndDataTextColor() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setDataTextColor(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "public void setErrorMsg(String text) {\n this.errorMsg = text;\n }", "@Override\n\tpublic void error(Marker marker, CharSequence message) {\n\n\t}", "public static void hideMsgError(TextInputLayout textInputLayout, EditText editText, int color){\n textInputLayout.setError(\"\");\n editText.setTextColor(Color.BLACK);\n errorStyle(editText, color);\n }", "private void displayPasswordError(String errorMessage)\n {\n ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) btnCreateAccount.getLayoutParams();\n params.setMargins(32,42,32,72);\n btnCreateAccount.setLayoutParams(params);\n etPassword.setBackgroundResource(R.drawable.edit_text_error);\n tvPasswordError.setText(errorMessage);\n tvPasswordError.setVisibility(View.VISIBLE);\n }", "public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }", "@Override\n public String toString() {\n return super.toString() + \" --> \" + getCorrectedText();\n }", "public void addErrorMessage(ConstraintViolation<?> constraintViolation, Widget widget) {\n\t\tSpanElement msg = DOM.createSpan().cast();\n\t\tmsg.setInnerText(constraintViolation.getMessage());\n\t\tmsg.addClassName(\"help-block\");\n\t\twidget.getElement().getParentElement().appendChild(msg );\n\t}", "@Override\n\t\tpublic void setInvalidMess(String errmess) {\n\n\t\t}", "public QuestionText(final String newtext,\n final QuestionTextFormat newquestionTextFormat) {\n this.text = newtext;\n this.questionTextFormat = newquestionTextFormat;\n }", "private String renderErrorMessageBox(String errorMsg) {\n \t\tStringBuilder builder = new StringBuilder(\n \t\t\t\t\"<br/><br/><div align=center>\");\n \t\tbuilder.append(errorMsg);\n \t\tbuilder.append(\"</div>\");\n\n \t\treturn builder.toString();\n \t}", "@Override\n\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\n\t\t\tchar[] contraseņa;\n\t\t\tcontraseņa = contraseņa1.getPassword();\n\t\t\tif(contraseņa.length<8||contraseņa.length>12)\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.RED);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.WHITE);\n\t\t\t}\n\t\t}", "public void illFormattedAnswer() {\n\n if (currentTeam.getTeamIndex() == teamIndex) {\n announcementsLabel.setText(\"You had an illformatted answer. Please try again\");\n } else {\n announcementsLabel.setText(currentTeam.getTeamName() + \" had an illformatted answer. They get to answer again.\");\n }\n }", "public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }", "public void warning(ValidationType type, String validationName, String content);", "public void error(ValidationType type, String validationName, String content);", "@DefaultMessage(\"Please correct the errors indicated, then press Commit\")\n @Key(\"gen.correctErrors\")\n String gen_correctErrors();", "@Override\n public boolean onTextContextMenuItem(int id) {\n if(id != android.R.id.paste || formattingAllowed){\n return super.onTextContextMenuItem(id);\n }\n\n // if its paste and formatting not allowed\n boolean proceeded;\n if(VERSION.SDK_INT >= 23) {\n proceeded = super.onTextContextMenuItem(android.R.id.pasteAsPlainText);\n }else {\n proceeded = super.onTextContextMenuItem(id);\n if (proceeded && getText() != null) {\n // rewrite with plain text so formatting is lost\n setText(getText().toString());\n setSelection(getText().length());\n }\n }\n return proceeded;\n }", "public TextBoxWithAttributes() {\r\n\t\tswmErrorStyleHelper = new SwmErrorStyleHelper(this);\r\n\t}", "public SpellingError(Position startPosition, Position endPosition, String text, Object highlightTag) {\n this.text = text;\n this.startPosition = startPosition;\n this.endPosition = endPosition;\n this.highlightTag = highlightTag;\n }", "public String getMessageText();", "public static String preEditMessage (String html)\n {\n List<Segment> segs = parseSegments(html);\n\n // format the segments\n StringBuilder buf = new StringBuilder();\n for (Segment seg : segs) {\n seg.preEdit(buf);\n }\n\n return buf.toString();\n }", "@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "@Override\r\n\tpublic DTextArea setHtmlOnError(final String script) {\r\n\t\tsuper.setHtmlOnError(script) ;\r\n\t\treturn this ;\r\n\t}" ]
[ "0.64710563", "0.6441088", "0.6426239", "0.6236254", "0.6085987", "0.60300213", "0.60256606", "0.5982498", "0.5971344", "0.5960619", "0.5958621", "0.5932994", "0.5848036", "0.58427346", "0.58251923", "0.58180845", "0.5780444", "0.5744332", "0.5741101", "0.5741101", "0.5741101", "0.5741101", "0.5736449", "0.57024044", "0.5674998", "0.5670598", "0.56572306", "0.5648779", "0.5637329", "0.5636265", "0.56313396", "0.5587044", "0.5575509", "0.5574613", "0.5571948", "0.5566843", "0.556431", "0.55323076", "0.5524081", "0.5519397", "0.55087584", "0.5504298", "0.5502422", "0.549981", "0.54949456", "0.5476507", "0.54681796", "0.54503083", "0.54489434", "0.5448347", "0.54435146", "0.5435115", "0.5435115", "0.54335773", "0.5432762", "0.5432531", "0.54315794", "0.54237646", "0.542052", "0.5411857", "0.54016536", "0.5398363", "0.5389872", "0.5379889", "0.5377085", "0.5367828", "0.53677756", "0.5360811", "0.5353656", "0.5347518", "0.534532", "0.5343249", "0.53342736", "0.5334203", "0.5326321", "0.5319594", "0.5316238", "0.531134", "0.5309284", "0.5303009", "0.5294541", "0.5292721", "0.52871454", "0.52803135", "0.5279527", "0.5276236", "0.5276121", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.52694625", "0.5267779" ]
0.53977334
62
/ CONVERTING CORPUS FILE TO LIST OF TERMS
private void startParsing(){ pondred = new ArrayList<>(); //extract docs from corpus for (String xml:parseDocsFile(docs_file)) { try { pondred.add(loadXMLFromString(xml)); } catch (Exception e) { e.printStackTrace(); } } System.out.println("Ending parsing"); for (Core pon:pondred){ for (String string:pon.abstractTerm){ Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize(); Double idf = Math.log10(Core.count/countingDuplicates(string)); pon.abstractFrequence.put(string,tf*idf); } pon.finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "private static List<Term> toTerms(ByteBuffer... values)\n {\n List<Term> terms = new ArrayList<>();\n for (ByteBuffer value : values)\n terms.add(toTerm(value));\n return terms;\n }", "public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void getTerm()\n\t\t{\n\t\t\t//Open SciencePhrases.txt\n\t\t\tFile f1 = new File(\"SciencePhrases.txt\");\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tspIn = new Scanner(f1);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Cannot create SciencePhrases.txt to be written \"\n\t\t\t\t\t\t+ \"to.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\t//Storing term at curTerm in the variables term and picTerm\n\t\t\tString cur = new String(\"\");\n\t\t\tfor(int i = 0; i<curTerm; i++)\n\t\t\t{\n\t\t\t\tterm = \"\";\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tpicTerm = cur;\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\tterm += cur;\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "public static void main(String[] args) throws IOException {\n Charset windows = Charset.forName(\"Windows-1251\");\n String sourceFile = args[0];\n String destFile = args[1];\n\n BufferedReader in = new BufferedReader(new FileReader(sourceFile));\n PrintWriter out = new PrintWriter(new FileWriter(destFile));\n\n ArrayList<String > source = new ArrayList<>();\n String line;\n while ((line = in.readLine()) != null){\n source.add(line);\n }\n ArrayList<String> decod = new ArrayList<>();\n\n for (String current: source){\n decod.add(new String(current.getBytes(windows)));\n }\n for(String item: decod){\n out.println(item);\n }\n in.close();\n out.close();\n }", "public static List<String> mainReadFile(String[] args) throws IOException, URISyntaxException {\n List<String> exmp = new ArrayList<>();\n File initialFile = resolveFileFromResources(args[0]);\n // System.out.println(initialFile);\n ObjectMapper obM = getObjectMapper();\n Trades[] exmpTrade = obM.readValue(initialFile, Trades[].class);\n for (Trades trade : exmpTrade) {\n exmp.add(trade.getSymbol());\n }\n printJsonObject(exmp);\n //return Collections.emptyList();\n return exmp;\n }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public List<Refinery> getTerminalData(String terminalName);", "public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\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\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\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// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\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// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+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\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\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\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\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t \t\n\t\t\t }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}", "static TreeSet<Noun> parse3rdNouns(Scanner data){\n\n\t\tint declension = 3;\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\t\t\ttry{\n\t\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD;\n\t\t\t\t\t//System.out.println(\"No i-stem\");\n\t\t\t\t} catch(NumberFormatException e){ //I-Stem.\n\t\t\t\t\tchapter = Integer.parseInt(current[0].substring(0, 2));\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD_I;\n\t\t\t\t\t//System.out.println(\"i-stem\");\n\t\t\t\t}\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}", "private static ArrayList<CIty> duxushuji(File file) throws IOException {\n\t\tArrayList<CIty>city=new ArrayList<>();\r\n\t\tInputStreamReader isr = new InputStreamReader(new FileInputStream(file), \"GBK\");\r\n\t\tBufferedReader br=new BufferedReader(isr);\r\n\tString str;\r\n\t\twhile((str=br.readLine())!=null){\r\n\t\tString[] strings=str.split(\"[|]\");\r\n\t\tcity.add(new CIty(Integer.parseInt(strings[0]), strings[1],strings[2]));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tisr.close();\r\n\t\treturn city;\r\n\t}", "static TreeSet<Noun> parseNouns(Scanner data, int declension){\n\t\tassert(declension != Values.INDEX_ENDINGS_DECLENSION_THIRD && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N); //there's a separate function for these guys.\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(NumberFormatException e){ //can happen if a chapter isn't specified. Read the noun from a null chapter.\n\t\t\t\tchapter = Values.CHAPTER_VOID;\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}", "private void createGenotypes(File inFile)\r\n\t\tthrows Exception\r\n\t{\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFile));\r\n\t\t// And write back out in Flapjack format\r\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(new File(wrkDir, \"geno\")));\r\n\t\tout.write(\"# fjFile = GENOTYPE\");\r\n\t\tout.newLine();\r\n\r\n\t\t// Skip the first two lines; we'll just assume marker order...\r\n\t\tin.readLine(); in.readLine();\r\n\t\t// ...and use the data we already have from the map\r\n\t\tfor (Marker m: markers)\r\n\t\t\tout.write(\"\\t\" + m.name);\r\n\t\tout.newLine();\r\n\r\n\r\n\t\t// Now process each line\r\n\t\tint index = 0;\r\n\t\tString str = null;\r\n\t\twhile ((str = in.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (str.isEmpty())\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tif (index == 0)\r\n\t\t\t\tout.write(\"RP\");\r\n\t\t\telse if (index == 1)\r\n\t\t\t\tout.write(\"DP\");\r\n\t\t\telse\r\n\t\t\t\tout.write(\"RP[1]/DP-\" + index);\r\n\r\n\t\t\tfor (String allele: str.split(\",\"))\r\n\t\t\t\tout.write(\"\\t\" + allele);\r\n\r\n\t\t\tout.newLine();\r\n\t\t\tindex++;\r\n\t\t}\r\n\r\n\t\tin.close();\r\n\t\tout.close();\r\n\t}", "public void description() throws Exception {\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \n \n // BufferedReader for obtaining the description files of the ontology & ODP\n BufferedReader br1 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/ontology_description\")); \n BufferedReader br2 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/odps_description.txt\")); \n String line1 = br1.readLine(); \n String line2 = br2.readLine(); \n \n // loop is used to copy the lines of file 1 to the other \n if(line1==null){\n\t \tpw.print(\"\\n\");\n\t }\n while (line1 != null || line2 !=null) \n { \n if(line1 != null) \n { \n pw.println(line1); \n line1 = br1.readLine(); \n } \n \n if(line2 != null) \n { \n pw.println(line2); \n line2 = br2.readLine(); \n } \n } \n pw.flush(); \n // closing the resources \n br1.close(); \n br2.close(); \n pw.close(); \n \n // System.out.println(\"Merged\"); -> for checking the code execution\n /* On obtaining the merged file, Doc2Vec model is implemented so that vectors are\n * obtained. And the, similarity ratio of the ontology description with the ODPs \n * can be found using cosine similarity \n */\n \tFile file = new File(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \t\n SentenceIterator iter = new BasicLineIterator(file);\n AbstractCache<VocabWord> cache = new AbstractCache<VocabWord>();\n TokenizerFactory t = new DefaultTokenizerFactory();\n t.setTokenPreProcessor(new CommonPreprocessor()); \n LabelsSource source = new LabelsSource(\"Line_\");\n ParagraphVectors vec = new ParagraphVectors.Builder()\n \t\t.minWordFrequency(1)\n \t .labelsSource(source)\n \t .layerSize(100)\n \t .windowSize(5)\n \t .iterate(iter)\n \t .allowParallelTokenization(false)\n .workers(1)\n .seed(1)\n .tokenizerFactory(t) \n .build();\n vec.fit();\n \n //System.out.println(\"Check the file\");->for execution of code\n PrintStream p=new PrintStream(new File(System.getProperty(\"user.dir\")+ \"/resources/description_values\")); //storing the numeric values\n \n \n Similarity s=new Similarity(); //method that checks the cosine similarity\n s.similarityCheck(p,vec);\n \n \n }", "public static void main(String[] args){\n\n\n String fileName = \"allChar.txt\";\n FileReader file;\n BufferedReader buffer;\n String input;\n\n try {\n file = new FileReader(fileName);\n buffer = new BufferedReader(file);\n\n while((input = buffer.readLine()) != null){\n\n //remove all instances of spaces\n input = input.replaceAll(\"\\\\s+\", \"\");\n\n //remove \\n and \\r\n input = input.replace(\"\\n\", \"\");\n input = input.replace(\"\\r\", \"\");\n\n\n for(String word : input.split(\"\")){\n \n System.out.println(word);\n\n }\n\n }\n\n } catch (IOException error){\n System.out.println(error);\n }\n\n\n }", "public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }", "private void extractFile() {\n try (BufferedReader buffered_reader = new BufferedReader(new FileReader(source_file))) {\n String line;\n while((line = buffered_reader.readLine()) != null) {\n String spaceEscaped = line.replace(\" \", \"\");\n //file was read, each line is one of the elements of the file_read_lines list\n //line 0 is keyword \"TELL\"\n //line 1 is the knowledge base\n //line 2 is the keyword \"ASK\"\n //line 3 is the query\n file_read_lines.add(spaceEscaped);\n }\n\n //generate list of Horn clauses (raw) from the KB raw sentence\n //replace \\/ by |\n String kbLine = file_read_lines.get(1).replace(\"\\\\/\", \"|\");\n rawClauses = Arrays.asList(kbLine.split(\";\"));\n //query - a propositional symbol\n query = file_read_lines.get(3);\n } catch (IOException e) {\n //Return error if file cannot be opened\n error = true;\n System.out.println(source_file.toString() + \" is not found!\");\n }\n }", "public void process(String infilename, String outfilename)\n throws IOException, Exception\n {\n PrintWriter pw = new PrintWriter(new FileWriter(outfilename));\n List<Result> resultList = this.api.processCitationsFromFile(infilename);\n for (Result result : resultList) {\n if (result != null) {\n\t/** Add cuis in evterms to cui set */\n\tfor (Utterance utterance : result.getUtteranceList()) {\n\t for (PCM pcm : utterance.getPCMList()) {\n\t for (Mapping map : pcm.getMappingList()) {\n\t for (Ev mapEv : map.getEvList()) {\n\t\tpw.println(infilename + \"|\" + \n\t\t\t pcm.getPhrase().getPhraseText() + \"|(\" +\n\t\t\t pcm.getPhrase().getPosition().getX() + \",\" + pcm.getPhrase().getPosition().getY() + \")|\" +\n\t\t\t mapEv.getScore() + \"|\" + \n\t\t\t mapEv.getConceptId() + \"|\" +\n\t\t\t ((mapEv.getNegationStatus() == 0) ? \"POS\" : \"NEG\") + \"|\" +\n\t\t\t mapEv.getConceptName () + \n\t\t\t pprintBracketedList(mapEv.getSemanticTypes(), \",\") + \"|\" +\n\t\t\t mapEv.getPreferredName() + \"|\" +\n\t\t\t pprintBracketedList(mapEv.getMatchedWords(), \",\") + \"|\" +\n\t\t\t pprintBracketedList(mapEv.getSources(), \",\") + \"|\");\n\t }\n\t }\n\t }\n\t}\n }\n }\n }", "private static ArrayList<String> ReadTrigramsChar(String corpusPath, String ngramPath) {\n Hashtable<String, Integer> oNgrams = new Hashtable<>();\n ArrayList<String> aNgrams = new ArrayList<>();\n\n if (new File(ngramPath).exists()) {\n FileReader fr = null;\n BufferedReader bf = null;\n\n try {\n fr = new FileReader(ngramPath);\n bf = new BufferedReader(fr);\n String sCadena = \"\";\n\n while ((sCadena = bf.readLine())!=null)\n {\n String []data = sCadena.split(\":::\");\n if (data.length==2) {\n String sTerm = data[0];\n aNgrams.add(sTerm);\n }\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n } finally {\n if (bf!=null) { try { bf.close(); } catch (Exception k) {} }\n if (fr!=null) { try { fr.close(); } catch (Exception k) {} }\n }\n } else {\n ArrayList<File> files = getFilesFromSubfolders(corpusPath, new ArrayList<File>());\n //File directory = new File(corpusPath);\n //File []files = directory.listFiles();\n\n int countFiles = 0;\n for (File file : files) {\n System.out.println(\"--> Preprocessing \" + (++countFiles) + \"/\" + files.size());\n\n try {\n Scanner scn = new Scanner(file, \"UTF-8\");\n\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()){\n String sTerm = charTermAttribute.toString();\n if (sTerm.endsWith(\":\")){\n sTerm = sTerm.substring(0, sTerm.length()-1);\n }\n int iFreq = 0;\n if (oNgrams.containsKey(sTerm)) {\n iFreq = oNgrams.get(sTerm);\n }\n oNgrams.put(sTerm, ++iFreq);\n //System.out.println(charTermAttribute.toString());\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n } catch (Exception ex) {\n System.out.println(\"Error reading JSON file\");\n }\n }\n\n //Se ordena por frecuencia\n ValueComparator bvc = new ValueComparator(oNgrams);\n TreeMap<String,Integer> sorted_map = new TreeMap<>(bvc);\n sorted_map.putAll(oNgrams);\n\n //Se guarda en disco\n FileWriter fw = null;\n try {\n fw = new FileWriter(ngramPath);\n for( Iterator it = sorted_map.keySet().iterator(); it.hasNext();) {\n String sTerm = (String)it.next();\n int iFreq = oNgrams.get(sTerm);\n\n aNgrams.add(sTerm);\n fw.write(sTerm + \":::\" + iFreq + \"\\n\");\n fw.flush();\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try {fw.close();} catch(Exception k) {} }\n }\n }\n\n return aNgrams;\n }", "public void readTestFileToViterbi(String inputFile){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(inputFile),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tString[] words=line.split(\" \");\n\t\t\t\tArrayList<String> wordList=new ArrayList<String>();\n\t\t\t\tassert(words.length>0&&words.length%2==0);\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<words.length;i+=2){\n\t\t\t\t\twordList.add(words[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<HashMap<String,ViterbiUnit>> viterbiMap=updateMuList(wordList);\n\t\t\t\tArrayList<ViterbiUnit> resultList=getMuList(viterbiMap);\n\t\t\t\tString outputLine=\"\";\n\t\t\t\tfor(int i=1;i<resultList.size()-1;i++){\n\t\t\t\t\tViterbiUnit unit=resultList.get(i);\n\t\t\t\t\toutputLine+=(words[2*(i-1)]+\" \"+unit.word+\" \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(outputLine.substring(0, outputLine.length()-1));\n\t\t\t\t\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tString fname;\n\t\tFile file;\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tScanner inFile;\n\n\t\tString line, word;\n\t\tStringTokenizer token;\n\t\tint[] freqTable = new int[256];\n\n\t\tSystem.out.println (\"Enter the complete path of the file to read from: \");\n\n\t\tfname = keyboard.nextLine();\n\t\tfile = new File(fname);\n\t\tinFile = new Scanner(file);\n\n\t\twhile (inFile.hasNext()) {\n\t\t\tline = inFile.nextLine();\n\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\twhile (token.hasMoreTokens()) {\n\t\t\t\tword = token.nextToken();\n\t\t\t\tfreqTable = updateFrequencyTable(freqTable, word);\n\t\t\t}\n\t\t}\n\n\t\t//print frequency table\n\n\t\tSystem.out.println(\"Table of frequencies\");\n\t\tSystem.out.println(\"Character \\t Frequency \\n\");\n\n\t\tfor(int i=0; i<256; i++) {\n\t\t\tif (freqTable[i]>0)\n\t\t\t\tSystem.out.println(((char)i) + \"\\t\" + freqTable[i]);\n\t\t\t}\n\n\t\tQueue<BinaryTree<Pair>> S = buildQueue(freqTable);\n\n\t\tQueue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();\n\n\t\tBinaryTree<Pair> huffmanTree = createTree(S, T);\n\n\t\tString[] encodingTable = findEncoding(huffmanTree);\n\n\t\tSystem.out.println(\"Encoding Table\");\n\t\tfor(int i=0; i<256; i++) {\n\t\t\tif (encodingTable[i]!=null)\n\t\t\t\tSystem.out.println(((char)i) + \"\\t\" + encodingTable[i]);\n\t\t}\n\t\tinFile.close();\n\t}", "private HashSet<String> buildsetofterms(String filename)\r\n\t{\r\n\t\tString readLine, terms[];\r\n HashSet<String> fileTerms = new HashSet<String>();\r\n try \r\n {\r\n BufferedReader reader = new BufferedReader(new FileReader(filename));\r\n while ((readLine = reader.readLine()) != null)\r\n {\r\n terms = (readLine.toLowerCase().replaceAll(\"[.,:;'\\\"]\", \" \").split(\" +\"));\r\n for (String term : terms)\r\n {\r\n if (term.length() > 2 && !term.equals(\"the\"))\r\n fileTerms.add(term);\r\n }\r\n }\r\n }\r\n catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n return fileTerms;\r\n }", "private Term[] parseTermList() throws ParseException {\n \n Term[] terms = new Term[1];\n int count = 0;\n \n Term term = parseTerm(false);\n \n while (term != null) {\n \n if (count >= terms.length) {\n Term[] temp = new Term[2 * terms.length];\n System.arraycopy(terms, 0, temp, 0, terms.length);\n terms = temp;\n }\n terms[count++] = term;\n \n int tt = _tokenizer.next();\n if (tt == ',') {\n term = parseTerm(true);\n } else {\n _tokenizer.pushBack();\n term = null;\n }\n }\n \n if (count < terms.length) {\n Term[] temp = new Term[count];\n System.arraycopy(terms, 0, temp, 0, count);\n terms = temp;\n }\n \n return terms;\n }", "public static void main(String[] args) throws IOException {\n\t\tPath p=Paths.get(\"D:\\\\Users\\\\Filip\\\\hr\\\\fer\\\\oop\\\\lab5\\\\racuni\");\n\t\tMySecondByteReader reader=new MySecondByteReader();\n\t\tFiles.walkFileTree(p,reader);\n\n\t\tPath iso=Paths.get(\"D:/Users/Filip/hr/fer/oop/lab5/cjenik.88592.txt\");\n\t\tPath utf=Paths.get(\"D:/Users/Filip/hr/fer/oop/lab5/cjenik.utf8.txt\");\n\n\t\tFiles.deleteIfExists(utf);\n\t\tFiles.deleteIfExists(iso);\n\n\t\tFiles.createFile(utf);\n\t\tFiles.createFile(iso);\n\n\t\ttry(BufferedWriter writer=new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(iso.toString())),\"ISO-8859-2\"))){\n\t\t\treader.getCollection().stream().forEach(new Consumer<Artikl>(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void accept(Artikl a) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter.write(a.getNaziv().toString()+\" \"+a.getCijena().toString());\n\t\t\t\t\t\twriter.write(\"\\n\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\tcatch(IOException ex){\n\t\t\tSystem.err.println(ex);\n\t\t}\n\n\t\ttry(BufferedWriter writer=new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(utf.toString())),\"UTF-8\"))){\n\t\t\treader.getCollection().stream().forEach(new Consumer<Artikl>(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void accept(Artikl a) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter.write(a.getNaziv().toString()+\" \"+a.getCijena().toString());\n\t\t\t\t\t\twriter.write(\"\\n\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\tcatch(IOException ex){\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t}", "public static void transform() {\n String st = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(st);\n int length = csa.length();\n int[] index = new int[length];\n for (int i = 0; i < length; i++) {\n index[i] = csa.index(i);\n if (index[i] == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < length; i++) {\n if (index[i] != 0) BinaryStdOut.write(st.charAt(index[i] - 1));\n else BinaryStdOut.write(st.charAt(length - 1));\n }\n BinaryStdOut.close();\n }", "static TreeSet<Verb> parseVerbs(Scanner data, int conjugation){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Verb> output = new TreeSet<Verb>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.VERB_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString PP1 = null;\n\t\t\tString PP2 = null;\n\t\t\tString PP3 = null;\n\t\t\tString PP4 = null;\n\n\t\t\tString[] PPs = current[1].split(\", \");\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0].trim());\n\t\t\t\tPP1 = PPs[0];\n\t\t\t\tPP2 = PPs[1];\n\t\t\t\tPP3 = PPs[2];\n\t\t\t\ttry{\n\t\t\t\t\tPP4 = PPs[3];\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\t//deponent verb.\n\t\t\t\t}\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\"));\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tVerb currentVerb = new Verb(PP1, PP2, PP3, PP4, conjugation, chapter, definitions);\n\n\t\t\tSystem.out.println(\"Added: \" + currentVerb);\n\t\t\toutput.add(currentVerb);\n\t\t}\n\n\t\treturn output;\n\t}", "public NFA(File f){readMachineDescription(f);}", "@Test\n\tpublic void testInlinerWithFile() throws Exception {\n\t\tString input = new String(Files.readAllBytes(new File(\"../warre.txt\").toPath()));\n\t\tInliner inliner = new Inliner();\n\t\tList<Part> parts = new Tokenizer(inliner).split(input);\n\t\tList<HTreeNode> freq = new FrequencyAnalyzer().analyzeFrequency(parts);\n\t\tString result = inliner.encode(parts, freq, 'X');\n\n\t\tSystem.out.println(\"\\nInput size : \" + input.length());\n\t\tSystem.out.println(\"Output size : \" + result.length());\n\t\tSystem.out.println(\"Num tokens : \" + freq.stream().filter(a -> a.prevalence > 1).count());\n\n//\t\tSystem.out.println(input);\n\t\tSystem.out.println(result);\n//\t\tSystem.out.println(inliner.decode(result, 'X'));\n\t}", "public static void main(final String[] args)\r\n {\r\n // Set the path to the data files\r\n Dictionary.initialize(\"c:/Program Files/WordNet/2.1/dict\");\r\n \r\n // Get an instance of the Dictionary object\r\n Dictionary dict = Dictionary.getInstance();\r\n \r\n // Declare a filter for all terms starting with \"car\", ignoring case\r\n TermFilter filter = new WildcardFilter(\"car*\", true);\r\n \r\n // Get an iterator to the list of nouns\r\n Iterator<IndexTerm> iter = \r\n dict.getIndexTermIterator(PartOfSpeech.NOUN, 1, filter);\r\n \r\n // Go over the list items\r\n while (iter.hasNext())\r\n {\r\n // Get the next object\r\n IndexTerm term = iter.next();\r\n \r\n // Write out the object\r\n System.out.println(term.toString());\r\n \r\n // Write out the unique pointers for this term\r\n int nNumPtrs = term.getPointerCount();\r\n if (nNumPtrs > 0)\r\n {\r\n // Print out the number of pointers\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumPtrs) +\r\n \" pointers\");\r\n \r\n // Print out all of the pointers\r\n String[] ptrs = term.getPointers();\r\n for (int i = 0; i < nNumPtrs; ++i)\r\n {\r\n String p = Pointer.getPointerDescription(term.getPartOfSpeech(), ptrs[i]);\r\n System.out.println(ptrs[i] + \": \" + p);\r\n }\r\n }\r\n \r\n // Get the definitions for this term\r\n int nNumSynsets = term.getSynsetCount();\r\n if (nNumSynsets > 0)\r\n {\r\n // Print out the number of synsets\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumSynsets) +\r\n \" synsets\");\r\n \r\n // Print out all of the synsets\r\n Synset[] synsets = term.getSynsets();\r\n for (int i = 0; i < nNumSynsets; ++i)\r\n {\r\n System.out.println(synsets[i].toString());\r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Demo processing finished.\");\r\n }", "public static void transform() {\n String s = BinaryStdIn.readString();\n\n CircularSuffixArray csa = new CircularSuffixArray(s);\n\n for (int i = 0; i < csa.length(); i++) {\n \n if (csa.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(s.charAt(csa.length() + csa.index(i) - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(csa.index(i) - 1));\n }\n }\n BinaryStdOut.flush();\n }", "public static void main(String[] args) {\n String path=\"C:\\\\springDev2\\\\lotto.txt\";\n try\n {\n \tFile file=new File(path);\n \tFileReader fr=new FileReader(file);\n \tint i=0;\n \tint[] lotto=new int[45];\n \tString data=\"\";\n \twhile((i=fr.read())!=-1)\n \t{\n \t\t//System.out.print((char)i);\n \t\tString s=String.valueOf((char)i);\n \t\tdata+=s;\n \t}\n \t//System.out.println(data);\n \tfr.close();\n \tString[] str=data.split(\"\\n\");\n \tfor(String ss:str)\n \t{\n \t\tSystem.out.println(ss);\n \t\tStringTokenizer st=\n \t\t\t\tnew StringTokenizer(ss,\",\");\n \t\twhile(st.hasMoreTokens())\n \t\t{\n \t\t\tint kk=Integer.parseInt(st.nextToken().trim());\n \t\t\tSystem.out.println(kk);\n \t\t\tlotto[kk-1]++;\n \t\t}\n \t}\n \t//Arrays.sort(lotto);\n \tfor(int k=0;k<lotto.length;k++)\n \t{\n \t\tSystem.out.println((k+1)+\":\"+lotto[k]);\n \t}\n }catch(Exception ex){ex.printStackTrace();}\n\t}", "public void parseThesaurus() throws IOException {\r\n\t\t\t//We create an object below to read the thesaurus file\r\n\t\t\tFileInputStream fis = new FileInputStream(\"src//ie//gmit//dip//resources//MobyThesaurus3.txt\");\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(fis));\r\n\t\t\t List <List<String>> listOflist= new ArrayList<>();\r\n\t\t\t// HashMap<String,List> tMap = new HashMap<>();\t\t\r\n\t\t\t List <String> individualListOfSynonyms= new ArrayList <String>();\r\n\r\n\t\t\t \r\n\t\t\t //we create a hashmap with the first word being the key value and the rest a list of synonims we will use\r\n\t\t\twhile(br.readLine()!=null) {\r\n\t\t\t\t\r\n\t\t\t\tString somestring = br.readLine();\r\n\t\t\t\tString[] testsplit= somestring.split(\",\");\r\n\t\t\t\tindividualListOfSynonyms=Arrays.asList(testsplit);\r\n\t\t\t\tString indexvalue=individualListOfSynonyms.get(0).toString();\r\n\t\t\t tMap.put(indexvalue, individualListOfSynonyms);\r\n\t\t\t //br.close();\r\n\t\t\t //System.out.println(tMap);\r\n\t\t\t }\r\n\t\t\t}", "public List<Terminal> definirConjuntoTerminales(String... terminales) {\n\t\tfor (String s : terminales) {\n\t\t\tTerminal x = new TerminalAritmetico(s);\n\t\t\tconjuntoTerminales.add(x);\n\t\t}\n\t\treturn conjuntoTerminales;\n\t}", "public static void main(String[] args) {\n BufferedReader bf = null;\r\n System.out.println(\" ********************Token***************\");\r\n try {\r\n bf = new BufferedReader(new FileReader(\"src/convertidor/Entrada.txt\"));\r\n Analizador a = new Analizador(bf);\r\n Symbol token = null;\r\n do {\r\n token = a.next_token();\r\n token.value.toString();\r\n System.out.println(token.value.toString());\r\n\r\n } while (token != null);\r\n\r\n bf.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Error en \" + e.getMessage());\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tPeriodicTable pt1 = new PeriodicTable();\n\t\tSystem.out.println(pt1.checkSymbol(\"Zockurijirium\", \"Zr\"));\n\t\t\n\t\tString fileName = \"C:\\\\Users\\\\manis\\\\eclipse-workspace\\\\Periodic\\\\src\\\\elements.txt\";\n\t\tList<String> list = new ArrayList<>();\n\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\n\n\t\t\t//1. filter line 3\n\t\t\t//2. convert all content to upper case\n\t\t\t//3. convert it into a List\n\t\t\tlist = stream\n\t\t\t\t\t.map(String::toLowerCase)\n\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tpt1.getSymbol(list);\n//\t\tlist.forEach(System.out::println);\n\n\t\t\n\t}", "public void doConvertion() throws IOException{\n String filename = \"test\";\n writer = new PrintWriter(new FileWriter(filename));\n writer.write(\"\\\"token\\\",\\\"prev_word\\\",\\\"next_word\\\",\\\"tag\\\",\\\"prev_tag\\\",\\\"next_tag\\\",\\\"is_number\\\",\\\"is_punctuation\\\",\\\"is_place_directive\\\",\\\"is_url\\\",\\\"is_twitter_account\\\",\\\"is_hashtag\\\",\\\"is_month_name\\\",\\\"is_gazeteer\\\",\\\"label\\\"\");\n // write header first.. \n \n // Select from db.\n// ArrayList<String> tweets = selectTweet();\n// for (int i = 0; i < tweets.size(); i++) {\n// String tobewriten = parseTweet(tweets.get(i));\n// writer.write(tobewriten);\n// }\n // put arff header in bottom but next to be moved to top..\n writer.write(parseTweet());\n //writer.write(getArffHeader());\n \n writer.close();\n // write to external file\n \n }", "private void parseAvailableFrequencies(){\n\t\tString str = parser.readFile(FREQ_AVAILABLE, 256);\n\t\tif(str == null)\n\t\t\treturn;\n\t\t\n\t\tString[] frestrs = str.split(\" \");\n\t\tint[] freqs = new int[frestrs.length - 1];\n\t\tfor(int i = 0; i < freqs.length; i++)\n\t\t\tfreqs[i] = Integer.valueOf(frestrs[i]);\n\t\t\n\t\tcpuFrequencies = freqs;\n\t}", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString path=\"D:\\\\大二\\\\java\\\\\";//檔案位置\n\t\tFile file = new File(path+\"input.txt\");\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\n\t\tString st;\n\t\tArrayList<String> read_s = new ArrayList<String>();\n\t\twhile ((st = br.readLine()) != null) {\n\n\t\t\tst = st.replaceAll(\"10\", \"t\");\n\t\t\tSystem.out.println(st);\n\t\t\tread_s.add(st);\n\t\t}\n\n\t\tbr.close();\n\t\t// ====================== read file end==================\n\t\tString towrite1=\"\";\n\t\tString towrite2=\"\";\n\t\t// towrite1 2 是最終寫入txt的String\n\t\t\n\t\tfor (int i = 0; i < read_s.size(); i++) {\n\t\t\tDecoder d = new Decoder(read_s.get(i));\n\t\t\t//將檔案中的資料轉成 before now 兩個 Arraylist 存在Decoder中\n\t\t\t//before 表已出現過的牌 After表手牌\n\t\t\tCount c = new Count();\n\t\t\tfor (int ii = 0; ii < d.before.size(); ii++) {\n\t\t\t\tc.sub(d.before.get(ii));//去除已出現過的牌\n\t\t\t}\n\t\t\t\n\t\t\tfor (int ii = 0; ii < d.now.size(); ii++) {\n\t\t\t\tc.addcard(d.now.get(ii));//將牌加入手牌\n\t\t\t}\n\t\t\t\n\t\t\tAnswer ans = c.re_ValueAndPossibility();//將預測結果輸出成Answer data type\n\t\t\tans.set_round(i);//設定第幾輪\n\t\t\t\n\t\t\ttowrite1=towrite1+ans.output1();//將Answer datatype 轉成String(for Q1)\n\t\t\ttowrite2=towrite2+ans.output2();//將Answer datatype 轉成String(for Q2)\n\t\t\t// ans.show();\n\t\t\t// c.show();\n\t\t\tc.clear();//清理Count 給下一輪繼續用\n\t\t}\n\t\t//========================write file starts==========================\n\t\tSystem.out.print(towrite1);\n\t\tSystem.out.print(towrite2);\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(path+\"output1.txt\"));\n\t writer.write(towrite1);\n\t writer.close();\n\t writer = new BufferedWriter(new FileWriter(path+\"output2.txt\"));\n\t writer.write(towrite2);\n\t writer.close();\n\t //==========================write file end====================\n\t}", "private static void buildWordList(){\n\t\ttry {\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tScanner inScanner = new Scanner(new FileReader(LIST_LOCATION));\n\t\t\tfor(int i = 0; i < collegiateWords.length ; i++){\n\t\t\t\tcollegiateWords[i] = inScanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\tSystem.out.println(\"Word List Built.\");\n\t}", "public static void read8() {\n List<String> list = new ArrayList<>();\n\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n //1. filter line 3\n //2. convert all content to upper case\n //3. convert it into a List\n list = stream\n .filter(line -> !line.startsWith(\"line3\"))\n .map(String::toUpperCase)\n .collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\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 static ArrayList<String> compliments() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner complimenter;\n try {\n complimenter = new Scanner(new File(\"Compliments.txt\"));\n complimenter.useDelimiter(\", *\");\n while (complimenter.hasNext()){\n temp.add(\" \"+complimenter.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public List<Object> getDecodeParms() throws IOException {\n/* 346 */ List<Object> retval = null;\n/* */ \n/* 348 */ COSBase dp = this.stream.getDictionaryObject(COSName.DECODE_PARMS);\n/* 349 */ if (dp == null)\n/* */ {\n/* */ \n/* */ \n/* 353 */ dp = this.stream.getDictionaryObject(COSName.DP);\n/* */ }\n/* 355 */ if (dp instanceof COSDictionary) {\n/* */ \n/* */ \n/* 358 */ Map<?, ?> map = COSDictionaryMap.convertBasicTypesToMap((COSDictionary)dp);\n/* 359 */ retval = new COSArrayList(map, dp, (COSDictionary)this.stream, COSName.DECODE_PARMS);\n/* */ \n/* */ }\n/* 362 */ else if (dp instanceof COSArray) {\n/* */ \n/* 364 */ COSArray array = (COSArray)dp;\n/* 365 */ List<Object> actuals = new ArrayList();\n/* 366 */ for (int i = 0; i < array.size(); i++)\n/* */ {\n/* 368 */ actuals.add(\n/* 369 */ COSDictionaryMap.convertBasicTypesToMap((COSDictionary)array\n/* 370 */ .getObject(i)));\n/* */ }\n/* 372 */ retval = new COSArrayList(actuals, array);\n/* */ } \n/* */ \n/* 375 */ return retval;\n/* */ }", "public static void main(String[] args) {\n int[] freqNums = scanFile(args[0]);\n HuffmanNode[] nodeArr = createNodes(freqNums);\n nodeArr = freqSort(nodeArr);\n HuffmanNode top = createTree(nodeArr);\n String empty = \"\";\n String[] encodings = new String[94];\n encodings = getCodes(top, empty, false, encodings, true);\n printEncoding(encodings, freqNums);\n writeFile(args[0], args[1], encodings);\n }", "static TreeSet<Conjunction> parseConjunctions(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Conjunction> output = new TreeSet<Conjunction>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.CONJUNCTION_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString Conjunction = null;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tConjunction = current[1];\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\ttrimAll(definitions);\n\t\t\tConjunction currentConjunction = new Conjunction(Conjunction, chapter, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentConjunction);\n\t\t\toutput.add(currentConjunction);\n\t\t}\n\n\t\treturn output;\n\t}", "private static List<String> readCoaXmlFile(File file)\n\t{\n\t\tList<String> shapeNames = new ArrayList<String>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString token = \"\";\n\t\tint firstQuotePos = -1;\n\t\tint secondQuotePos = -1;\n\t\tStringTokenizer st = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// initialize the reader\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\t// read each line until no more left\n\t\t\tline = br.readLine();\n\t\t\twhile (line != null) {\n\t\t\t\t\n\t\t\t\t// process shape name lines\n\t\t\t\tif (line.contains(\"<shape name\") && line.contains(\"_\")) {\n\t\t\t\t\t\n\t\t\t\t\t// initialize tokenizer\n\t\t\t\t\tst = new StringTokenizer(line);\n\t\t\t\t\t\n\t\t\t\t\t// process desired tokens\n\t\t\t\t\tst.nextToken();\n\t\t\t\t\ttoken = st.nextToken();\n\t\t\t\t\t\n\t\t\t\t\t// get positions of quotes\n\t\t\t\t\tfirstQuotePos = token.indexOf('\"');\n\t\t\t\t\tsecondQuotePos = token.indexOf('\"', firstQuotePos+1);\n\t\t\t\t\t\n\t\t\t\t\t// add shape name\n\t\t\t\t\tshapeNames.add(token.substring(firstQuotePos+1, secondQuotePos));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\t\n\t\t\t// close the buffered object\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn shapeNames;\n\t}", "public Term[] getTerms(String file){\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getKey()==file){\r\n\t\t\t\treturn set.getValue().getTerms();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void Stemmingmethod()throws Exception\n{\n char[] w = new char[501];\n Stemmer s = new Stemmer();\n String prcessedtxt=\"\";\n ArrayList<String> finalsen= new ArrayList();\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"fullyprocessed.txt\"));\n\n String u=null;\n \n {\n FileInputStream in = new FileInputStream(\"stopwordsremoved.txt\");\n\n while(true)\n\n { int ch = in.read();\n if (Character.isLetter((char) ch))\n {\n int j = 0;\n while(true)\n { ch = Character.toLowerCase((char) ch);\n w[j] = (char) ch;\n if (j < 500) j++;\n ch = in.read();\n if (!Character.isLetter((char) ch))\n {\n \n s.add(w, j); \n\n s.stem();\n { \n\n u = s.toString();\n finalsen.add(u);\n /* to test getResultBuffer(), getResultLength() : */\n /* u = new String(s.getResultBuffer(), 0, s.getResultLength()); */\n\n System.out.print(u);\n }\n break;\n }\n }\n }\n if (ch < 0) break;\n System.out.print((char)ch);\n finalsen.add(\"\"+(char)ch);\n\n\n }\n }\n \n \n \n for(String word:finalsen){\n prcessedtxt=prcessedtxt+\"\"+ word;\n }\n writer.write(prcessedtxt+\"\\n\"); \n prcessedtxt=\"\";\n finalsen.clear();\n writer.close();\n\n\n \n}", "public static ArrayList<String> verbs() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner verber;\n try {\n verber = new Scanner(new File(\"Verbs.txt\"));\n verber.useDelimiter(\", *\");\n while (verber.hasNext()){\n temp.add(\" \"+verber.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "static TreeSet<Adjective> parseAdjective3(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adjective> output = new TreeSet<Adjective>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADJECTIVE_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\t\t\tAdjective currentAdjective = null;\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\n\t\t\t\tchapter = Integer.parseInt(current[0].trim());\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\ttrimAll(definitions);\n\t\t\t\t\n\t\t\t\tif(current[1].split(\", \").length == 1){\n\t\t\t\t\tcurrentAdjective = new OneTerminationAdjective(current[1].split(\", \")[0].split(\":\")[0], current[1].split(\", \")[0].split(\":\")[1], chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 2){\n\t\t\t\t\tString mascFem = current[1].split(\", \")[0];\n\t\t\t\t\tString neuter = current[1].split(\", \")[1];\n\t\t\t\t\tcurrentAdjective = new TwoTerminationAdjective(mascFem, neuter, chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 3){\n\t\t\t\t\tString masculine = current[1].split(\", \")[0];\n\t\t\t\t\tString feminine = current[1].split(\", \")[1];\n\t\t\t\t\tString neuter = current[1].split(\", \")[2];\n\t\t\t\t\tcurrentAdjective = new ThreeTerminationAdjective(masculine, feminine, neuter, chapter, definitions);\n\t\t\t\t}\n\n\t\t\t} catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\t//Adjective currentAdjective = new Adjective(masculine, feminine, neuter, chapter, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdjective);\n\t\t\toutput.add(currentAdjective);\n\t\t}\n\n\t\treturn output;\n\t}", "private LinkedList<TermDocList> generateTermDocList(LinkedList<String> list){ \n \n LinkedList<TermDocList> merge_list = new LinkedList<TermDocList>();\n //extract a string from a slave node\n for (int i = 0; i < list.size(); i++) {\n String[] termList = list.get(i).split(\"\\n\");\n// System.out.println(\"termList: \"+list.get(i)); \n \n //extract a string lead by a term\n for (int j = 0; j < termList.length; j++) {\n //process the string, store in the termInfo, insert into termInfo list\n TermDocList jtermDocList = new TermDocList();\n String[] temp = termList[j].split(\" \");\n// System.out.println(\"temp length: \"+temp.length); \n jtermDocList.term = temp[0];\n\n jtermDocList.totalfreq = Integer.parseInt(temp[1]);\n jtermDocList.docList = new ArrayList<DocInfo>();\n //convert temp[2] to an arraylist\n String regular = \"(\\\\w{6},\\\\w+)\";\n Pattern p = Pattern.compile(regular);\n Matcher m = p.matcher(temp[2]);\n while (m.find()) {\n String[] docTemp = m.group(1).split(\",\");\n DocInfo newdocInfo = new DocInfo(docTemp[0], Integer.parseInt(docTemp[1]));\n jtermDocList.docList.add(newdocInfo);\n }\n merge_list.add(jtermDocList);\n }\n }\n return merge_list;\n }", "private void doFileOut(HashMap<String, String> file_out_list, HashMap<String, String> file_charset_list) throws DPFTRuntimeException {\n\t\tfor(String filename: file_out_list.keySet()){\n\t\t\ttry{\n\t\t\t\tFile fdir = new File(getOutFileLocalDir());\n\t\t\t\tif(!fdir.exists()){\n\t\t\t\t\tfdir.mkdirs();\n\t\t\t\t}\n\t\t\t\tFile f = new File(getOutFileLocalDir() + File.separator + filename);\n\t\t\t\tString datastring = file_out_list.get(filename);\n\t\t\t\tString charset = file_charset_list.get(filename);\n\t\t\t\tFileUtils.writeStringToFile(f, datastring, charset);\n\t\t\t}catch(Exception e){\n\t\t\t\tObject[] params = {filename};\n\t\t\t\tthrow new DPFTDataFormatException(\"SYSTEM\", \"DPFT0015E\", params);\n\t\t\t}\n\t\t}\n\t}", "private List<String> listCodesPizza() {\n\t\tString[] paths = file.list();\n\t\tList<String> stringList = new ArrayList<String>(Arrays.asList(paths));\n\t\treturn stringList;\n\t}", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public static void main(String[] args) throws IOException {\n\t\tString fileName=args[0];\n\t\tString strEncoding=\"UTF-8\";\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new\n\t\t\t\tFileInputStream(fileName), strEncoding));\n\t\tString temp;\n\t\tString all=\"\";\n\t\twhile((temp=br.readLine())!=null){\n\t\t\tall+=temp;\n\t\t}\n\t\tString[] wordList=all.split(\"'s\");\n\t\tArrayList<String> words=new ArrayList<>();\n\t\tfor(String i:wordList) { words.add(i); }\n\t\t\n\t\twords.stream()\n\t\t.filter(w -> w.length()>=2)\n\t\t.map(i -> i.charAt(0)+\"...\"+i.charAt(i.length()-1))\n\t\t.forEach(System.out::println);\n\t\t\n\t}", "private static int[] internal16Readin(String name) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(FileUtils.getResourceInputStream(\"/luts/\" + name)));\n String strLine;\n\n int[] intArray = new int[65536];\n int counter = 0;\n while ((strLine = br.readLine()) != null) {\n\n String[] array = strLine.split(\" \");\n\n for (int i = 0; i < array.length; i++) {\n if (array[i].equals(\" \") || array[i].equals(\"\")) {\n\n } else {\n intArray[counter] = Integer.parseInt(array[i]);\n counter++;\n }\n }\n }\n br.close();\n return intArray;\n } catch (Exception e) {// Catch exception if any\n System.err.println(\"Error open internal color table \" + name);\n e.printStackTrace();\n return null;\n }\n }", "public void Parse()\n {\n String prepend = \"urn:cerner:mid:core.personnel:c232:\";\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(new File(path)));\n\n String line;\n\n while ((line = br.readLine()) != null)\n {\n line = line.trim();\n String[] lines = line.split(\",\");\n for (String entry : lines)\n {\n entry = entry.trim();\n entry = entry.replace(prepend, replace);\n System.out.println(entry+\",\");\n }\n\n }\n \n br.close();\n }catch(IOException IO)\n {\n System.out.println(IO.getStackTrace());\n } \n \n }", "public static ArrayList<String> acknowledgements() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner acknowledgementer;\n try {\n acknowledgementer = new Scanner(new File(\"Acknowledgements.txt\"));\n acknowledgementer.useDelimiter(\",~ *\");\n while (acknowledgementer.hasNext()){\n temp.add(\" \"+acknowledgementer.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "public static void main(String[] args) throws Exception {\r\n \r\n \t\tCDCollection collection = new CDCollection();\r\n\t\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(\"E:\\\\Reading Writing Labs\\\\bin\\\\textfile.txt\"));\r\n \tString line = null;\r\n \twhile ((line = br.readLine()) != null) {\r\n\t // you can use \" \" to split where white space is\r\n\t String[] values = line.split(\"-\");\r\n\t // for (String str : values) {\r\n\t // System.out.println(str);\r\n\t //}\r\n\t collection.addCD(values[0], values[1], Double.parseDouble(values[2]) , Integer.parseInt(values[3]));\r\n\t }\r\n\t br.close();\r\n\r\n System.out.println (collection);\r\n \r\n }", "public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}", "public static ArrayList<String> pronouns() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner pronouner;\n try {\n pronouner = new Scanner(new File(\"pronouns.txt\"));\n pronouner.useDelimiter(\", *\");\n while (pronouner.hasNext()){\n temp.add(\" \"+pronouner.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "private void writeGrammar() {\n grammar = new ArrayList<ArrayList<String>>();\n\n int programLine = 0;\n String inputLine = null;\n try {\n FileReader reader = new FileReader(grammarFile);\n BufferedReader bufferedReader = new BufferedReader(reader);\n\n while((inputLine = bufferedReader.readLine()) != null) {\n\n // removes all leading and trailing whitespaces and leading tabs\n String line = inputLine.trim().replaceFirst(\"\\\\t\", \"\");\n\n // processes a production rule on each nonempty program line\n if(!line.isEmpty() || !line.equals(\"\")) {\n String[] tokens = line.split(\"\\\\s+\");\n grammar.add(new ArrayList<String>(Arrays.asList(tokens)));\n }\n\n programLine++;\n }\n\n bufferedReader.close();\n\n } catch(FileNotFoundException e) {\n System.out.println(\n grammarFile + \" not found\"\n );\n } catch(IOException e) {\n System.out.println(\n \"Error reading file \" + grammarFile\n );\n }\n\n // check to see if grammar correctly read from file\n// for(int i = 0; i < grammar.size(); i++) {\n// printArrayList(grammar.get(i));\n// System.out.println();\n// }\n }", "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t\tString line = scanner1.nextLine();\n\t\t\tstopWords.append(line);\n\t\t\tstopWords.append(\"|\");\n\t } \n\t\t\n\t\tstopWords.append(\"document|discuss|identify|report|describe|predict|cite\");\n\t\tString allStopwords = stopWords.toString();\n\t\t//System.out.println(\"\"+allStopwords);\n\t\treturn allStopwords;\n\t}", "public static String[] GoldAUTOtoCATS(String line){\n String[] cats = AUTOtoCATS(line);\n for(int i = 0; i < cats.length; ++i) {\n //cats[i] = simplifyCCG(cats[i]);\n cats[i] = dropArgNoFeats(cats[i]);\n }\n return cats;\n }", "public static void transform() {\n String input = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(input);\n int first = 0;\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n first = i;\n break;\n }\n }\n BinaryStdOut.write(first);\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(input.charAt(csa.length() - 1));\n }\n else BinaryStdOut.write(input.charAt(csa.index(i) - 1));\n }\n BinaryStdOut.close();\n }", "private static void process(Scanner fileScanner) {\n\t\tPrintStream outFile;\n\t\ttry {\n\t\t\tfileScanner = new Scanner(new File (RNATablePathway));\n\t\t\toutFile = new PrintStream(new File (RNAOutPathway));\n\t\t\twhile(fileScanner.hasNext()){\n\t\t\t\tRNATable.put(fileScanner.next(),fileScanner.next()); //Loading table.\n\t\t\t}\n\t\t\tfileScanner = new Scanner(new File(RNAStrandPathway));\n\t\t\tstrand = fileScanner.next(); //Loading RNA strand.\n\t\t\tfileScanner.close();\n\t\t\tSystem.out.print(\"Loading\");\n\t\t\tfor(int i = 0; i<strand.length(); i+=3){ //Searching table for RNA strand substrings.\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t\tString section = strand.substring(i, i+3);\n\t\t\t\tif(section.equals(\"UGA\")||section.equals(\"UAA\")||section.equals(\"UAG\")){ //Catching the stop marker so it doesn't end up as part of the output.\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"complete.\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tresult = result + RNATable.get(section); //Adding the decrypted characters together to form output.\n\t\t\t\t}\n\t\t\t}\n\t\t\toutFile.println(result);//Writing to output file.\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found! Please check pathway and try again.\");\n\t\t}\n\t\t\n\t}", "private void fileToPoSTags(String filePath,int version){\n Log.log(\"Reading TreeBank file <\" + filePath +\">\");\n\n FileReader fr = null;\n BufferedReader br = null;\n\n try{\n fr = new FileReader(filePath);\n br = new BufferedReader(fr);\n\n String currentLine;\n String[] columns;\n\n Tag tag1 = null;\n Tag tag2;\n String word;\n\n Integer numRow;\n while((currentLine = br.readLine()) != null){\n columns = currentLine.split(\"\\t\");\n numRow = getIntegerString(columns[0]);\n if(numRow != null && numRow >= 1){\n if(numRow == 1) {\n tag1 = Tag.valueOf(\"START\");\n saveTag(tag1);\n }\n try{\n tag2 = Tag.valueOf(columns[3]);\n saveTag(tag2);\n word = columns[1];\n switch (version){\n case 1:\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n break;\n case 2:\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n else if(Character.isUpperCase(word.charAt(0)))\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 3:\n\n if(tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n else{\n if(Character.isUpperCase(word.charAt(0))){\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n }else{\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(\n word.substring(0,1).toUpperCase()\n +word.substring(1),tag2));\n }\n\n }\n\n break;\n case 4:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 5:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n\n }\n saveBigram(new BiGram(tag1,tag2));\n tag1 = tag2;\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n }\n }\n\n }catch (IOException e){\n e.printStackTrace();\n }finally {\n UtilitiesIO.closeFile(fr,br);\n }\n }", "private void buildWordTable(Scanner source)\n {\n int linenum = 0;\n String currentline = \"\";\n String[] splitsent;\n //Scans file line by line\n while(source.hasNextLine())\n {\n //line number of the file\n linenum++;\n //reads the current line of the file\n currentline = source.nextLine();\n //replaces all punctions to \"\" so the file doesnt read it\n currentline = currentline.replace(\",\", \"\");\n currentline = currentline.replace(\".\", \"\");\n currentline = currentline.replace(\";\", \"\");\n currentline = currentline.replace(\":\", \"\");\n currentline = currentline.replace(\"?\", \"\");\n currentline = currentline.replace(\"!\", \"\");\n //split the line into an array whereever there is a space\n splitsent = currentline.split(\" \");\n for(String run : splitsent)\n {\n update(run,linenum);\n }\n }\n }", "public StringTokenizer getNIC() {\n\n String targetFile = \"/etc/path_to_inst\";\n StringTokenizer nicTokStrg = null;\n\n try {\n\n FileReader fr = new FileReader(targetFile);\n BufferedReader br = new BufferedReader(fr);\n\n String line = null;\n String nicStrg = \" \";\n\n while((line = br.readLine()) != null) {\n StringTokenizer tokStrg = new StringTokenizer(line, \"\\\"\");\n\n if(tokStrg.countTokens() == 3) {\n\n String notUsed = tokStrg.nextToken();\n String indexStrg = tokStrg.nextToken().trim();\n String nameStrg = tokStrg.nextToken().trim();\n\n if(nameStrg.equals(\"le\") || nameStrg.equals(\"hme\")) {\n nicStrg = nicStrg + \" \" + nameStrg + indexStrg;\n }\n }\n }\n\n if(nicStrg.trim().length() > 0) {\n nicTokStrg = new StringTokenizer(nicStrg);\n }\n fr.close();\n\n } catch(FileNotFoundException f) {\n //ignore\n //setLabel(targetFile + \" not found.\");\n }\n catch(IOException g) {\n //setLabel(\"Error reading \" + targetFile );\n }\n\n return nicTokStrg;\n }", "private static ArrayList<Capital> getCapitalsFromFile() {\n\n String txtFile = \"countries_and_capitals.txt\";\n BufferedReader br = null;\n String line = \"\";\n int COUNTRY_COL = 0;\n int CAPITAL_COL = 1;\n ArrayList<Capital> capitals = new ArrayList<Capital>();\n\n try {\n\n br = new BufferedReader(new FileReader(txtFile));\n\n while ((line = br.readLine()) != null) {\n String[] capital = line.split(\" \\\\| \");\n capitals.add(new Capital(capital[CAPITAL_COL], capital[COUNTRY_COL]));\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return capitals;\n }", "static TreeSet<Adverb> parseAdverbs(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adverb> output = new TreeSet<Adverb>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADVERB_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString Adverb = null;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tAdverb = current[1];\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\ttrimAll(definitions);\n\t\t\tAdverb currentAdverb = new Adverb(Adverb, chapter, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdverb);\n\t\t\toutput.add(currentAdverb);\n\t\t}\n\n\t\treturn output;\n\t}", "@RequestMapping(value = \"/txfileformat\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxFileFormatList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTxFileFormatList(),\n Description.fromDescriptible(strings, locale)\n );\n }", "public static void Reader(String document, ArrayList<String> listSymptoms) throws IOException {\n\t\t\t\tif (document != null) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(document));\n\t\t\t\tString line = br.readLine();\n\t\t\t\twhile ((line = br.readLine()) != null){\n\t\t\t\t\t\n\t\t\t\t\t//see the content of the files in the console \n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\n\t\t\t\t\t// add the symptoms in the list\n\t\t\t\t\tlistSymptoms.add(line);\n\t\t\t }\n\t\t\t\t\t// see the list in the console\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(listSymptoms);\n\t\t\t\t\t\n\t\t\t br.close();\n\t\t\t \n\t\t\t \n\t\t\t\t}\n\t}", "public static Species[] loadSpeciesFile(String filename) {\n java.util.Scanner input = null;\n java.io.File inputFile = new java.io.File(filename);\n try {\n input = new java.util.Scanner(inputFile);\n } catch( java.io.FileNotFoundException e ) {\n System.err.println(\"Error: Unable to open file \" + filename);\n System.exit(1);\n }\n \n String current = \"\";\n if(input.hasNext())\n current = input.next();\n List<Species> speciesList = new ArrayList<Species>();\n while(input.hasNext()) {\n int count = 0;\n int i = 0;\n StringBuilder sequence = new StringBuilder();\n String speciesName = \"\";\n while(count < 6 && i < current.length() && current.substring(0,1).equals(\">\") ) {\n if(current.charAt(i) == '|')\n count++;\n if(count == 6 && !current.substring(i + 1).contains(\"|\")) {\n speciesName = current.substring(i + 1);\n }\n i++;\n }\n if(count == 6) {\n current = input.next();\n boolean next = true;\n while (next == true && !current.substring(0,1).equals(\">\")) {\n sequence.append(current);\n if(input.hasNext())\n current = input.next();\n else\n next = false;\n }\n String[] sequenceArray = new String[sequence.length()];\n for(int j = 0; j < sequence.length(); j++) {\n sequenceArray[j] = Character.toString(sequence.charAt(j));\n }\n Species currSpecies = new Species(speciesName, sequenceArray);\n speciesList.add(currSpecies);\n }\n else\n current = input.next();\n }\n Species[] arraySpecies = new Species[speciesList.size()];\n for (int i = 0; i < speciesList.size(); i++) {\n arraySpecies[i] = speciesList.get(i);\n }\n return arraySpecies;\n }", "public void convertVoiceToMaori() {\n\t\tString command = \"HVite -H HTK/MaoriNumbers/HMMs/hmm15/macros -H HTK/MaoriNumbers/HMMs/hmm15/hmmdefs -C HTK/MaoriNumbers/user/configLR -w HTK/MaoriNumbers/user/wordNetworkNum -o SWT -l '*' -i recout.mlf -p 0.0 -s 5.0 HTK/MaoriNumbers/user/dictionaryD HTK/MaoriNumbers/user/tiedList foo.wav\";\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(\"bash\" , \"-c\" , command );\n\t\ttry {\n\t\t\t\n\t\t\tProcess convertProcess = pb.start();\n\t\t\t\n\t\t\tconvertProcess.waitFor();\n\t\t\t\n\t\t\tconvertProcess.destroy();\n\t\t\t\n\t\n\t\t\t\n\t\t}catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}catch (InterruptedException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\n\t\n\t\n\t}", "List<String> fileToListOfWords(File f) throws FileNotFoundException {\n\n\t\tScanner sc = new Scanner(f, \"UTF-8\");\n\n\t\tString txt = sc.useDelimiter(\"\\\\A\").next().toLowerCase();\n\t\tString[] s = txt.replaceAll(\"^[.,\\\\s]+\", \"\").split(\"[.,\\\\s]+\");\n\t\tsc.close(); // ovo je dobro\n\t\tList<String> list = Arrays.asList(s);\n\t\t\n\t\treturn list;\n\t}", "private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "public List<Tailor> read();", "public Srt(List<TranscriptedWord> list) {\t\t\n\t\t//Version 2.0\n\t\t//This constructor creates only one line\n\t\tStringBuilder first = new StringBuilder();\n\t\tfor (int i = 0 ; i< list.size();i++) {\n\t\t\tTranscriptedWord transcriptedWord = list.get(i);\n\t\t\tfirst.append(transcriptedWord.word);\n\t\t\tif(i!=list.size()-1)\n\t\t\t\tfirst.append(\" \");\n\t\t}\n\t\t\n\t\tthis.lines = new ArrayList<SrtLine>();\n\t\tthis.lines.add(new SrtLine(first.toString(),\n\t\t\t\tnull,list.get(0).start_time,list.get(list.size()-1).end_time));\n\t\t\n\t\t/* \n\t\t * Version 1.1\n\t\t * More advanced implementation:\n\t\t * Splits into two strings the list passed \n\t\t * by minimizing their size difference in\n\t\t * terms of number of characters.\n\t\t*/\n\t\t/*\n\t\tint total_size = SrtBuilder.getCharacterNumber(list);\n\t\tint half_size = total_size/2;\n\t\t\n\t\t//number of character written into the first line:\n\t\tint num_wri_fir = 0;\n\t\tint list_counter = 0;\n\t\tStringBuilder first = new StringBuilder();\n\t\t\n\t\t// I write all the transcripted words until \n\t\t// the half_size if reached\n\t\twhile(num_wri_fir<half_size){\n\t\t\tTranscriptedWord word = list.get(list_counter++);\n\t\t\tfirst.append(word.word);\n\t\t\tnum_wri_fir+=word.word.length();\n\t\t\tif(num_wri_fir<half_size){\n\t\t\t\tfirst.append(\" \");\n\t\t\t\tnum_wri_fir+=1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//I flush all the remaining transcripted word\n\t\t//not written yet into the second line\n\t\tStringBuilder second = new StringBuilder();\n\t\twhile(list_counter<list.size()){\n\t\t\tsecond.append(list.get(list_counter).word);\n\t\t\tlist_counter++;\n\t\t\tif(list_counter<list.size())\n\t\t\t\tsecond.append(\" \");\n\t\t}\n\t\t\n\t\t\n\t\tthis.lines = new ArrayList<SrtLine>();\n\t\tthis.lines.add(new SrtLine(first.toString(),\n\t\t\t\tsecond.toString(),list.get(0).start_time,list.get(list.size()-1).end_time));\n\t\n\t\n\t\t */\n\t\t\n\t\t//version 1.0:\n\t\t//OLD IMPLEMENTATION:\n\t\t/*\n\t\t//basic implementation that splits\n\t\t//into two the list based on the number of words\n\t\t//for better results it must be changed.\n\t\tint half = (int)(((double)list.size())/2.0);\n\t\tStringBuilder f = new StringBuilder();\n\t\tStringBuilder s = new StringBuilder();\n\t\tint i = 0;\n\t\tfor (TranscriptedWord word : list) {\n\t\t\tif(i<half){\n\t\t\t\tf.append(word.word);\n\t\t\t\tf.append(\" \");\n\t\t\t}\n\t\t\telse{ \n\t\t\t\ts.append(word.word);\n\t\t\t\ts.append(\" \");\n\t\t\t}\n\t\t\ti++;\t\n\t\t}\n\t\tthis.lines = new ArrayList<SrtLine>();\n\t\tthis.lines.add(new SrtLine(f.toString(),s.toString(),list.get(0).start_time,list.get(list.size()-1).end_time));\n\t*/\n\t}", "abstract public TermEnum terms() throws IOException;", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\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\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}", "public static void writeFile(String inputFile, String outputFile, String[] encodings){\n File iFile = new File(inputFile);\n File oFile = new File(outputFile);\n //try catch for creating the output file\n try {\n //if it doesn't exist it creates the file. else if clears the output file\n\t if (oFile.createNewFile()){\n System.out.println(\"File is created!\");\n\t } else{\n PrintWriter writer = new PrintWriter(oFile);\n writer.print(\"\");\n writer.close();\n System.out.println(\"File cleared.\");\n\t }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n //try catch to scan the input file\n try {\n Scanner scan = new Scanner(iFile);\n PrintWriter writer = new PrintWriter(oFile);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94) {\n writer.print(encodings[(int)s.charAt(i)-32]);\n }\n }\n //gives the space between words\n writer.print(encodings[0]);\n }\n scan.close();\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}", "private void exercise6() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted()\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "public static void main(String[] args) {\n\t\tString great_association_rule =\"singlenearestgene\";\n\t\t\n\t\t//String filename = \"C:\\\\Users\\\\Burçak\\\\Google Drive\\\\GLANET_Bioinformatics_2ndSubmission\\\\GREAT\\\\great_twonearestgenes_found_enriched_BP_GO_Terms.txt\";\n\t\tString filename = \"C:\\\\Users\\\\Burçak\\\\Google Drive\\\\GLANET_Bioinformatics_2ndSubmission\\\\GREAT\\\\great_singlenearestgene_found_enriched_BP_GO_Terms.txt\";\n\t\tList<String> great_enriched_BP_GOTermNames_List = new ArrayList<String>();\n\t\treadFileAndFill(filename,great_enriched_BP_GOTermNames_List);\n\t\t\n\t\tSystem.out.println(\"Number of GO Term Names found enriched by GREAT: \" + great_enriched_BP_GOTermNames_List.size());\n\t\t\n\t\t//Fill GOTermName 2 GOTermID map\n\t\tString GOID2TermInputFile = \"C:\\\\Users\\\\Burçak\\\\Google Drive\\\\Data\\\\\" + Commons.GENE_ONTOLOGY_TERMS + System.getProperty(\"file.separator\") + Commons.GOID2TERM_INPUTFILE;\n\t\tMap<String,String> GOTermName2GOTermIDMap = new HashMap<String,String>();\n\t\tGOTermsUtility.fillGOTermName2GOTermIDMap(GOID2TermInputFile, GOTermName2GOTermIDMap);\n\t\t\n\t\t//output the converted GO Term IDs\n\t\t//GOTermList_GATA2_P= c(\"GO:0006351\",\"GO:0035854\",\"GO:0045599\",\"GO:0045746\",\"GO:0045766\",\"GO:0045944\",\"GO:0070345\",\"GO:2000178\")\n\t\tString great_enriched_BP_GOTermIDs = creatGOTermIDString(great_association_rule,great_enriched_BP_GOTermNames_List,GOTermName2GOTermIDMap);\n\t\t\n\t\tSystem.out.println(\"**************************************************\");\n\t\tSystem.out.println(great_enriched_BP_GOTermIDs);\n\n\t}", "public PostingList readPosting(FileChannel fc) throws IOException {\n\t\tlong position = fc.position();\n\t\tByteBuffer buffer = ByteBuffer.allocate(VBNUM_SIZE * 2);\n\t\tint numOfBytesRead;\n\n\t\tnumOfBytesRead = fc.read(buffer);\n\t\tif (numOfBytesRead == -1) return null;\n\n\n\t\tbuffer.rewind();\n\n\t\t// TODO check following code ! logically 20170415 yes 16\n\n\t\tint [] termHead = new int[2];\n\t\tfor (int ns = 0; ns < 2; ns++) {\n\t\t\tbyte[] vbnum = new byte[VBNUM_SIZE];\n\t\t\tbyte temp = 0;\n\t\t\tint i = 0;\n\t\t\tfor (; buffer.hasRemaining() && ((temp = buffer.get()) >> 7 == 0); i++) {\n\t\t\t\tvbnum[i] = temp;\n\t\t\t}\n\t\t\tvbnum[i] = temp;\n\t\t\ti++; //nums of byte\n\t\t\ttermHead[ns] = number(vbnum, i);\n\t\t\t//termHead[ns] = number(vbnum, buffer.position());\n\t\t\t//size += buffer.position();\n\t\t}\n\t\t// set position after read two vb number\n position = position + buffer.position();\n\t\tfc.position(position);\n\n\t\tbuffer = ByteBuffer.allocate(VBNUM_SIZE * termHead[1]);\n if (fc.read(buffer) == -1) return null;\n buffer.rewind();\n\n Pair<PostingList, Integer> results = gapDecode(termHead[1], buffer, termHead[0]);\n PostingList postingList = results.getFirst();\n\n position = position + results.getSecond();\n\t\tfc.position(position);\n\t\treturn postingList;\n\t}", "private void createListingFile(boolean listingEnabled) throws IOException {\r\n if (listingEnabled) {\r\n try {\r\n // instantiate the File object and creates a new file with extension lst\r\n System.out.println(\"Currently generating the listing file.....\"); //prompts user file is being created\r\n listingFile = new File(sourceName + \".lst\");\r\n // if creating the lst file is successful, then you can start to write in the lst file\r\n listingFile.delete();\r\n if (listingFile.createNewFile()) {\r\n\r\n\r\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(sourceName + \".lst\"), \"utf-8\")); //create an object to write into the lst file\r\n String header = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", \"Line\",\"Addr\",\"Machine Inst\",\"Machine Operand\", \"Label\",\"Assembly Code\", \"Label Operand\", \"Comments\"); // s string of the categories of the column\r\n writer.write(header + \"\\n\"); // prints the header\r\n\r\n // create String objects to be reused inside the for loop below\r\n String lineAddress;\r\n String label1;\r\n String opCode;\r\n String offset;\r\n String address;\r\n String address1=\"\";\r\n String label2;\r\n String assembly;\r\n String comment;\r\n String linout;\r\n String string;\r\n //String binary;\r\n // a vector of all the line statement\r\n String operand=\"\";\r\n\r\n LineStmt myLine;\r\n // loops through the vector to get each linestatement\r\n\r\n for (int index = 0; index < lineStatements.size(); index++) {\r\n LineStmt line = lineStatements.getLine(index);\r\n lineAddress = String.format(\"%02X\", line.lineAddress.getAddress());\r\n if (line.inst != null) {\r\n operand=address=offset=\"\";\r\n opCode = (line.inst.isOpcodeNull()) ? \"\" : String.format(\"%02X\", line.inst.getOpCode());\r\n\r\n offset = (line.inst.getOffset() == null) ? \"\" : String.format(\"%02X\", line.inst.getOffset().getOffset());\r\n if(offset.length()>2)\r\n offset = offset.substring(offset.length() - 2);\r\n\r\n address = (line.inst.getAddress() == null) ? \"\" : String.format(\"%04X\", line.inst.getAddress().getAddress());\r\n if(address.length()>4)\r\n address = address.substring(address.length() - 4);\r\n if(0< line.inst.getOpCode()&&line.inst.getOpCode() < 0xB0 && address.length()>2 )\r\n address = address.substring(address.length() - 2);\r\n if(address.length() == 4)\r\n address = address.substring(0,2)+\" \"+address.substring(2,4);\r\n assembly = line.inst.getMnemonic();\r\n label2 = (line.inst.getLabel() == null) ? \"\" : line.inst.getLabel().getLabelId();\r\n if(offset.isEmpty())\r\n operand=address;\r\n else\r\n operand =offset;\r\n\r\n generate = generate + \" \" +opCode.strip()+\" \"+address.strip()+\" \"+offset.strip();\r\n if (line.inst.isOpcodeNull()) {\r\n label2 = line.inst.getDirString();\r\n\r\n opCode = generateString(label2);\r\n generate = generate + opCode;\r\n }\r\n\r\n\r\n } else\r\n opCode = offset = address = label2 = assembly = \"\";\r\n\r\n label1 = (line.label == null) ? \" \" : line.label.getLabelId();\r\n comment = (line.comment == null) ? \"\" : line.comment.getCommentString();\r\n linout =\"\";\r\n\r\n linout = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", Integer.toString(index + 1), lineAddress, opCode, operand,label1,assembly,label2,comment);\r\n linout += \"\\n\";\r\n System.out.print(linout);\r\n if(listingEnabled)\r\n writer.write(linout); // inserts the line into the lst file+ \"\\t\\t\\t\\t\"\r\n\r\n }\r\n generate = generate.trim().replaceAll(\"\\\\s{2,}\", \" \");\r\n System.out.print(\"Generate: \"+generate);\r\n if(listingEnabled)\r\n writer.write(\"Generate: \"+generate);\r\n writer.close();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Error: Listing File cannot be made.\");\r\n }\r\n }\r\n }", "@Override\n public PostingList readPosting(FileChannel fc) throws IOException {\n ByteBuffer buffer = ByteBuffer.allocate(3 * INT_SIZE);\n if (fc.read(buffer) == -1) {\n return null;\n }\n buffer.flip();\n int termId = buffer.getInt();\n int bufSize = buffer.getInt();\n int numPostings = buffer.getInt();\n\n buffer = ByteBuffer.allocate(bufSize);\n fc.read(buffer);\n buffer.flip();\n\n int startIndex = 0;\n int[] numberEndIndex = new int[2];\n int[] postings = new int[numPostings];\n BitSet gammaCode = BitSet.valueOf(buffer);\n for (int i = 0; i < numPostings; i++) {\n IndexCompression.gammaDecodeInteger(gammaCode, startIndex,\n numberEndIndex);\n startIndex = numberEndIndex[1];\n postings[i] = numberEndIndex[0];\n }\n\n IndexCompression.gapDecode(postings);\n return new PostingList(termId, Utils.intArrayToIntegerList(postings));\n }", "public static void main(String[] args)\n/* */ throws IOException\n/* */ {\n/* 130 */ if (args.length < 1) {\n/* 131 */ System.err.println(\"usage: java edu.stanford.nlp.process.ArabicTokenizer [-cr] filename\");\n/* 132 */ return;\n/* */ }\n/* 134 */ ArabicTokenizer tokenizer = new ArabicTokenizer(new InputStreamReader(new FileInputStream(args[(args.length - 1)]), \"UTF-8\"), args[0].equals(\"-cr\"));\n/* 135 */ PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out, \"UTF-8\"), true);\n/* 136 */ while (tokenizer.hasNext()) {\n/* 137 */ Word w = (Word)tokenizer.next();\n/* 138 */ if (w == ArabicLexer.crValue) {\n/* 139 */ pw.println(\"***CR***\");\n/* */ } else {\n/* 141 */ pw.println(w);\n/* */ }\n/* */ }\n/* */ }", "private static VerseList readATV(File bibleFile) {\r\n\t\tVerseList v = null;\r\n\t\ttry {\r\n\t\t\tFileReader FR = new FileReader(bibleFile);\r\n\t\t\tBufferedReader BR = new BufferedReader(FR);\r\n\t\t\tString line = BR.readLine();\r\n\t\t\tif (line.length() == 0) {\r\n\t\t\t\tv = new VerseList(\"unknown\", \"\");\r\n\t\t\t} else {\r\n\t\t\t\tif (line.contains(\": \")) {\r\n\t\t\t\t\tString[] L = line.split(\": \");\r\n\t\t\t\t\tif (L.length == 1) {\r\n\t\t\t\t\t\tv = new VerseList(L[0], \"\");\r\n\t\t\t\t\t} else if (L.length < 1) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tv = new VerseList(L[0], L[1]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tv = new VerseList(line, \"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tline = BR.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tString[] parts = line.split(\"@\");\r\n\t\t\t\tif (parts.length < 3) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tBookOfBible book = BookOfBible.getBookOfBible(parts[0]);\r\n\t\t\t\tif (book == null) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tString[] CV = parts[1].split(\":\");\r\n\t\t\t\tif (CV.length < 2) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tint chapter = Integer.parseInt(CV[0]);\r\n\t\t\t\tint verse = Integer.parseInt(CV[1]);\r\n\t\t\t\t// make a new verse object, and add it to the list.\r\n\t\t\t\tVerse vers = new Verse(book, chapter, verse, parts[2]);\r\n\t\t\t\tv.add(vers);\r\n\t\t\t\tline = BR.readLine();\r\n\r\n\t\t\t}\r\n\t\t\tBR.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn v;\r\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 static void transform() {\r\n \tString str = BinaryStdIn.readString();;\r\n \tCircularSuffixArray suffixArr = new CircularSuffixArray(str);\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tif (suffixArr.index(i) == 0) {\r\n \t\t\tBinaryStdOut.write(i);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tint pos = suffixArr.index(i);\r\n \t\tif (pos == 0) {\r\n \t\t\tpos = suffixArr.length();\r\n \t\t}\r\n \t\tBinaryStdOut.write(str.charAt(pos - 1), 8);\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "public void buildOutPutFile() throws Exception {\n\t\tFile theFile = openInputFile();\n\t\t\n\t\t// Open a random access file for reading the file from the disk\n\t\tRandomAccessFile theRAFile = new RandomAccessFile(theFile, \"r\");\t\n\t\tBufferedWriter theOutFile = null;\n\t\t// Create the file name\n\t\tString fileName = getOutPutFilePath();\n\t\t\n\t\t// Create the buffered writer\n\t\ttheOutFile = new BufferedWriter(new FileWriter(fileName));\n\t\t\n\t\tString badChars[] = {\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\"};\n\t\t\n\t\t\n\t\tString line = \"\";\n\t\twhile(line != null) {\t\t\t\t\t\t\t// Loop through the list\n\t\t\tline = theRAFile.readLine();\t\t\t\t// read the next line\n\t\t\tString goodLine=line;\t\t\t\t\t\t// set the good line equal to the line in the file\n\t\t\t// Loop through the line and replace all of the bad characters\n\t\t\tfor (int i=0; i < badChars.length; i++) {\n\t\t\t\t\n\t\t\t\tif (goodLine != null) {\n\t\t\t\t\t// take out the beginning line numbers\n\t\t\t\t\tgoodLine = goodLine.replace(badChars[i], \"\");\t\n\t\t\t\t\tSystem.out.println(\"goodLine\" + goodLine);\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t}\n\t\t\t// Write the good file out\n\t\t\twriteFile(goodLine, theOutFile);\t\t\t\n\t\t}\n\t\ttheRAFile.close();\t\t\t\t\t\t\t\t// close the reader \n\t\ttheOutFile.close();\t\t\t\t\t\t\t\t// close the writer\t\t\n\t}", "public static void processFile(File f) throws Exception {\n\t\ttry {\r\n\t\t\tBufferedReader bufRead = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(f)));\r\n\t\t\tString S1 = \"\";\r\n\t\t\twhile ((S1 = bufRead.readLine()) != null) {\r\n\t\t\t\t//System.out.println(S1);\r\n\t\t\t\tgetPubTypes(S1);\r\n\t\t\t\t//System.out.println();\r\n\t\t\t}\r\n\t\t\tbufRead.close();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(\"Something is wrong with reading file! \"\r\n\t\t\t\t\t+ \"Can't find the appropriate file!\");\r\n\t\t}\r\n\r\n\t\t// return allDiseases;\r\n\r\n\t}", "private List<String> findAnts(String inputFileName) {\n\nList<String> lines = new ArrayList<>();\ntry {\nBufferedReader br = new BufferedReader(new FileReader(inputFileName));\nString line = br.readLine();\nwhile (line != null) {\nlines.add(line);\nline = br.readLine();\n}\n} catch (Exception e) {\n\n}\n\nchar[] splitLineByLetterOrDigit;\nList<String> saveAnts = new ArrayList<>();\n\nfor (int k = 0; k < lines.size(); k++) {\nString singleLine = lines.get(k);\nsplitLineByLetterOrDigit = singleLine.toCharArray();\nfor (int i = 0; i < splitLineByLetterOrDigit.length; i++) {\nif (Character.isLetter(splitLineByLetterOrDigit[i])) {\n// first is row\nsaveAnts.add(String.format(\"%d %d %s\", k, i, splitLineByLetterOrDigit[i]));\n}\n}\n}\n\nreturn saveAnts;\n}", "private String[] termsArray(Scanner scan){\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\twhile (scan.hasNext()) {\r\n\t\t\tlist.add(scan.next());\r\n\t\t}\r\n\t\treturn (String[]) list.toArray(new String[0]);\r\n\t}" ]
[ "0.5465931", "0.53852266", "0.534532", "0.5270885", "0.5239452", "0.51426876", "0.51417714", "0.505758", "0.49924332", "0.4937324", "0.49150676", "0.4875441", "0.48614252", "0.48508367", "0.48443833", "0.48192713", "0.48140666", "0.48003244", "0.47934383", "0.47903308", "0.47792274", "0.4779088", "0.47478312", "0.4746463", "0.47435147", "0.47406247", "0.4737954", "0.47252095", "0.4717344", "0.47086826", "0.46815506", "0.46790692", "0.46749666", "0.4652123", "0.46486416", "0.4647873", "0.46361965", "0.46268407", "0.46259993", "0.46244693", "0.46237642", "0.46236005", "0.4622414", "0.46200535", "0.46141732", "0.46090695", "0.4592401", "0.45907158", "0.45714006", "0.4565904", "0.45589155", "0.4553918", "0.45515326", "0.45494777", "0.45479202", "0.45464122", "0.4544745", "0.45423308", "0.45381063", "0.4534877", "0.45324332", "0.45302752", "0.4529206", "0.45283574", "0.45278764", "0.45212087", "0.4520697", "0.45197278", "0.45195296", "0.4519037", "0.45162243", "0.4511531", "0.4510561", "0.45092848", "0.4503465", "0.44899154", "0.44890964", "0.44875345", "0.44776863", "0.44774258", "0.44769925", "0.44761345", "0.4468097", "0.44625157", "0.4459358", "0.44574672", "0.44564727", "0.4444847", "0.4443457", "0.44348192", "0.4432719", "0.44248447", "0.44244948", "0.44243768", "0.44241613", "0.44236597", "0.44209033", "0.44160312", "0.44143334", "0.44065553", "0.44029877" ]
0.0
-1
/ INSERTING INVERTED INDEX TO DATABASE
private void invertedToDatabase(){ cleFreq = new HashMap<>(); System.out.println("Strat collecting"); Map<String,List<Invertedindex>> collects = collecting(); System.out.println("Ending collecting"); Database.getInstance().invertedIndex(collects); Database.getInstance().addPoids(cleFreq); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InstAssignIndex createInstAssignIndex();", "public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem.out.println(\"Mongo Index Timer \"+Long.toString(stop));\n\t}", "private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}", "public boolean createIndex(Hashtable<String, Hashtable<Integer,Quad>> ind_buffer){\n\t\tSet<String> keys = ind_buffer.keySet();\n\t\tHashtable<Integer,Quad> list;\n\t\tQuad comp;\n\t\tint part;\n\t\tint type1_s, type1_o;\n\t\tint type_s,type_o;\n\t\tint wei, wei1; // compared use\n\t\tint o_bytes, s_bytes, o_bytes1, s_bytes1;\n\t\tString check = \"select resource, part, type_s, type_o, weight, o_bytes, s_bytes from `\"+table+\"` where \";\n\t\t//String insert = \"insert into `sindex` values \";\n//\t\tString update = \"update \"\n\t\tResultSet rs = null;\n\t\tPreparedStatement prepstmt = null;\n\t\tString res;\n\t\tfor(String key : keys){\n\t\t\tlist = ind_buffer.get(key);\n\t\t\tif(key.indexOf('\\'') != -1 )\n\t\t\t\tres = key.replaceAll(\"'\", \"''\");\n\t\t\telse res = key;\n\t\t// hashcode sealing\t\n\t\t//\tkey = String.valueOf(key.hashCode()); \n\t\t\t\n\t\t\tfor(int i : list.keySet()){\n\t\t\t\tcomp = list.get(i);\n\t\t\t\tpart = i;\n\t\t\t\ttype_s = comp.type_s;\n\t\t\t\ttype_o = comp.type_o;\n\t\t\t\twei = comp.weight;\n\t\t\t\to_bytes = comp.o_bytes;\n\t\t\t\ts_bytes = comp.s_bytes;\n\t\t\t// seach if have res in table\n\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\n\t\t\t\tsql.append(check).append(\"resource='\").append(res).append(\"' and part=\").append(part);\n\n\t\t\t\ttry {\n\t\t\t\t\tprepstmt = conn.prepareStatement(sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t\t\t\t\t\tResultSet.CONCUR_UPDATABLE);\n\t\t\t\t\trs = prepstmt.executeQuery();\n\t\t\t\t\tif(rs.next()){\n\t\t\t\t\t\t// updates the records\t\n\t\t\t\t\t\ttype1_o = rs.getInt(\"type_o\");\n\t\t\t\t\t\ttype1_s = rs.getInt(\"type_s\");\n\t\t\t\t\t\twei1 = rs.getInt(\"weight\");\n\t\t\t\t\t\to_bytes1 = rs.getInt(\"o_bytes\");\n\t\t\t\t\t\ts_bytes1 = rs.getInt(\"s_bytes\");\n\t\t\t\t\t\t// unpdate records\t\n\t\t\t\t\t\twei += wei1;\n\t\t\t\t\t\t/*if(wei < wei1){\n\t\t\t\t\t\t\twei = wei1;\n\t\t\t\t\t\t\tflag2 = 1;\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\to_bytes1 += o_bytes;\n\t\t\t\t\t\ts_bytes1 += s_bytes;\n\t\t\t\t\t\tif(type_s != 0 && type1_s == 0)\n\t\t\t\t\t\t\trs.updateInt(\"type_s\", type_s);\n\t\t\t\t\t\tif(type_o != 0 && type1_o == 0)\n\t\t\t\t\t\t\trs.updateInt(\"type_o\", type_o);\n\t\t\t\t\t//\tif(flag2 == 1)\n\t\t\t\t\t\t\trs.updateInt(\"weight\", wei);\n\t\t\t\t\t\trs.updateInt(\"o_bytes\", o_bytes1);\n\t\t\t\t\t\trs.updateInt(\"s_bytes\", s_bytes1);\n\t\t\t\t\t\t\n\t\t\t\t\t\trs.updateRow();\n\t\t\t\t\t}else {\n\t\t\t\t// directly insert the record\n\t\t\t\t\t\n\t\t\t\t/**\t\t(option 1 as below)\t\n\t\t\t\t *\t\tvalue = \"('\"+key+\"',\"+part+\",'\"+type+\"',\"+wei+\")\";\n\t\t\t\t *\t\tupdateSql(insert+value);\n\t\t\t\t */\n\t\t\t\t//\t\toption 2 to realize\t\t\n\t\t\t\t\t\trs.moveToInsertRow();\n\t\t\t\t\t\trs.updateString(\"resource\", key);\n\t\t\t\t\t\trs.updateInt(\"part\", part);\n\t\t\t\t\t\trs.updateInt(\"type_s\", type_s);\n\t\t\t\t\t\trs.updateInt(\"type_o\", type_o);\n\t\t\t\t\t\trs.updateInt(\"weight\", wei);\n\t\t\t\t\t\trs.updateInt(\"o_bytes\", o_bytes);\n\t\t\t\t\t\trs.updateInt(\"s_bytes\", s_bytes);\n\t\t\t\t\t\trs.insertRow();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(key);\n\t\t\t\t}finally{\n\t\t\t\t// ??should wait until all database operation finished!\t\t\n\t\t\t\t\tif (rs != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tprepstmt.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }", "ByteArrayIndex createByteArrayIndex();", "@Test\n public void testIndexMaintenanceWithIndexOnMethodtoArray() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.toArray() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "indexSet createindexSet();", "void prepare() throws IndexTransactionException;", "private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tkf.getTable().get(i).addAll(vals.get(i));\n\t\t}\n\n\t\tProductIndex pIndex = new ProductIndex(k);\n\t\tpIndex.insertData(kf.getTable(), kf.getConcatString());\n\t\tsaveToDir(PRODUCT_INDEX_FILE, pIndex);\n\t}", "public void testAddingNewIndex() throws Exception\n {\n PSJdbcDataTypeMap dataTypeMap = new PSJdbcDataTypeMap(\"MYSQL\", \"mysql\", null);\n ArrayList<PSJdbcColumnDef> coldefs = createColumnDef(dataTypeMap);\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col3\", PSJdbcTableComponent.ACTION_DELETE, Types.INTEGER, null,\n true, null));\n PSJdbcTableSchema tableSchema1 = createTableSchema(coldefs);\n setPrimaryKey(tableSchema1);\n PSJdbcForeignKey fk = createForeignKey(tableSchema1);\n\n List<String> indexCols = new ArrayList<String>();\n indexCols.add(\"col3\");\n PSJdbcIndex index1 = new PSJdbcIndex(\"IX_col1\", indexCols.iterator(), PSJdbcTableComponent.ACTION_CREATE);\n tableSchema1.setIndex(index1);\n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element el = tableSchema1.toXml(doc);\n PSJdbcTableSchema tableSchema2 = new PSJdbcTableSchema(el, dataTypeMap);\n PSJdbcIndex newIndex = (PSJdbcIndex) tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE).next();\n\n // Makes sure if the table schema has changed\n assertFalse((tableSchema1.equals(tableSchema2)));\n\n // Makes sure if a new index definition of non unique have been added to\n // table schema.\n assertFalse((tableSchema1.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n assertTrue((tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n\n // Makes sure if the number of foreign key columns and eqal to that of\n // index columns.\n assertTrue(fk.getForeignKeyColumnNames().size() == newIndex.getIndexColumnNames().size());\n\n // Makes sure if the new index that got created has the same set of\n // columns as foreign key.\n assertTrue(fk.getForeignKeyColumnNames().containsAll(newIndex.getIndexColumnNames()));\n\n // Makes sure if the index name of newly created index has a unique name.\n assertTrue(tableSchema1.doesIndexNameExists(newIndex.getName()));\n\n }", "public void createIndex(Configuration configuration){\n }", "static void generateIndex(Table table, Key key, PrintWriter outData)\r\n {\r\n String comma = \"( \";\r\n String keyname = key.name.toUpperCase();\r\n if (keyname.indexOf(table.name.toUpperCase()) == -1)\r\n keyname = table.name.toUpperCase()+\"_\"+keyname;\r\n outData.println(\"DROP INDEX \"+keyname+\";\");\r\n outData.println(\"\");\r\n outData.println(\"CREATE INDEX \"+keyname+\" ON \"+table.database.userid+ \"\" +table.name);\r\n for (int i=0; i<key.fields.size(); i++, comma = \", \")\r\n {\r\n String name = (String) key.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.print(\")\");\r\n for (int i=0; i < key.options.size(); i++)\r\n {\r\n outData.println();\r\n String option = (String) key.options.elementAt(i);\r\n outData.print(option);\r\n }\r\n outData.println(\";\");\r\n outData.println();\r\n }", "public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public abstract void updateIndex();", "void createIndex(){\n int index=0;\n for(int i=0;i<ancogs.size();i++)\n if(!cogToIndex.containsKey(ancogs.get(i).getValue2()))\n cogToIndex.put(ancogs.get(i).getValue2(), index++);\n}", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "private IiconstraintIndexes() {\n\t\tsuper(\"iiconstraint_indexes\", org.jooq.util.ingres.ingres.$ingres.$INGRES);\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodValues() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.values() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "private void createCloneSetTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CLONE_SET_ID_INDEX_CLONE_SET on CLONE_SET(CLONE_SET_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index OWNER_REVISION_ID_INDEX_CLONE_SET on CLONE_SET(OWNER_REVISION_ID)\");\n \t\tdbManager\n\t\t\t\t.executeUpdate(\"create index NUMBER_OF_ELEMENTS_INDEX_CLONE_SET on CLONE_SET(NUMVER_OF_ELEMENTS)\");\n \t}", "void addIndexForRepository(long repositoryId);", "@Test\n public void testIndexMaintenanceWithIndexOnMethodKeys() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "public void indexCase(Case c) {\n db.beginTransaction();\n try {\n for (CaseIndex ci : c.getIndices()) {\n ContentValues cv = new ContentValues();\n cv.put(COL_CASE_RECORD_ID, c.getID());\n cv.put(COL_INDEX_NAME, ci.getName());\n cv.put(COL_INDEX_TYPE, ci.getTargetType());\n cv.put(COL_INDEX_TARGET, ci.getTarget());\n cv.put(COL_INDEX_RELATIONSHIP, ci.getRelationship());\n db.insert(TABLE_NAME, null, cv);\n }\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "boolean createIndex(String indexName);", "public String createDSIndex(String dsID, String dschemaID, String attriName);", "public createIndex_result(createIndex_result other) {\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodKeySet() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keySet() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "IndexNameReference createIndexNameReference();", "private void createFileTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index FILE_ID_INDEX_FILE on FILE(FILE_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_FILE on FILE(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_FILE on FILE(END_REVISION_ID)\");\n \t}", "private void syncIndex(FundamentalData fd) throws Exception {\n\n List<MarketIndex> indexes = marketIndexService.findBySymbol(fd.getSymbol());\n if(indexes.size()>1){\n throw new Exception(\"Multiple instances (\"+indexes.size()+\") of symbol \"+fd.getSymbol()+\" present in the database.\");\n }\n\n MarketIndex index;\n if(indexes.size()==0){ // does not exist in db\n index=new MarketIndex();\n index.setSymbol(fd.getSymbol());\n index.setName(fd.getName());\n index.setCategory(fd.getType().getCode());\n\n }else{ // index exists in db\n index = indexes.get(0);\n if(fd.getName()!=null){\n index.setName(fd.getName());\n }\n if(fd.getType()!=null){\n index.setCategory(fd.getType().getCode());\n }\n\n }\n\n updateIcon(index);\n marketIndexService.update(index);\n\n }", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}", "public void addIndex(String collectionName, DBObject index){\n DBCollection collection =this.getDBCollection(collectionName);\n collection.createIndex(index);\n }", "@Test\n public void testCreateIdxOnClient() {\n getDefaultCacheOnClient().query(new SqlFieldsQuery(((\"CREATE INDEX IDX_11 ON \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (name asc)\"))).getAll();\n }", "public void onIndexUpdate();", "public void testAddingNewIndexWhenIndexContainsFKColumns() throws Exception\n {\n PSJdbcDataTypeMap dataTypeMap = new PSJdbcDataTypeMap(\"MYSQL\", \"mysql\", null);\n ArrayList<PSJdbcColumnDef> coldefs = createColumnDef(dataTypeMap);\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col3\", PSJdbcTableComponent.ACTION_DELETE, Types.INTEGER, null,\n true, null));\n PSJdbcTableSchema tableSchema1 = createTableSchema(coldefs);\n setPrimaryKey(tableSchema1);\n\n List<String[]> fkCols = new ArrayList<String[]>();\n String[] fcol1 =\n {\"col1\", \"etable\", \"ecol1\"};\n fkCols.add(fcol1);\n PSJdbcForeignKey fk = new PSJdbcForeignKey(fkCols.iterator(), PSJdbcTableComponent.ACTION_DELETE);\n List<PSJdbcForeignKey> fks = new ArrayList<>();\n fks.add(fk);\n tableSchema1.setForeignKeys(fks,true);\n\n List<String> indexCols = new ArrayList<String>();\n indexCols.add(\"col1\");\n indexCols.add(\"col2\");\n PSJdbcIndex index1 = new PSJdbcIndex(\"IX_Name\", indexCols.iterator(), PSJdbcTableComponent.ACTION_CREATE);\n tableSchema1.setIndex(index1);\n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element el = tableSchema1.toXml(doc);\n PSJdbcTableSchema tableSchema2 = new PSJdbcTableSchema(el, dataTypeMap);\n PSJdbcIndex newIndex = (PSJdbcIndex) tableSchema2.getIndexes().next();\n\n // Makes sure if the table schema has not changed\n assertTrue((tableSchema1.equals(tableSchema2)));\n\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodEntrySet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.entrySet() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }", "private void createCodeFragmentTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CODE_FRAGMENT_ID_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(CODE_FRAGMENT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(END_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index HASH_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(HASH)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index HASH_FOR_CLONE_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(HASH_FOR_CLONE)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_LINE_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(START_LINE)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_LINE_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(END_LINE)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index SIZE_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(SIZE)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_END_REVISION_ID_INDEX_CODE_FRAGMENT on CODE_FRAGMENT(START_REVISION_ID,END_REVISION_ID)\");\n \t}", "public void testAddingNewIndexWithoutIndex() throws Exception\n {\n PSJdbcDataTypeMap dataTypeMap = new PSJdbcDataTypeMap(\"MYSQL\", \"mysql\", null);\n ArrayList<PSJdbcColumnDef> coldefs = createColumnDef(dataTypeMap);\n PSJdbcTableSchema tableSchema = createTableSchema(coldefs);\n setPrimaryKey(tableSchema);\n PSJdbcForeignKey fk = createForeignKey(tableSchema);\n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element el = tableSchema.toXml(doc);\n PSJdbcTableSchema tableSchema2 = new PSJdbcTableSchema(el, dataTypeMap);\n\n Iterator<?> itIndex = tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE);\n PSJdbcIndex index = (PSJdbcIndex) itIndex.next();\n String IndexName = index.getName();\n String fkcolname = fk.getForeignKeyColumnNames().get(0);\n\n // Makes sure if the table schema has changed\n assertFalse((tableSchema.equals(tableSchema2)));\n\n // Makes sure if a new index definition of non unique have been added to\n // table schema.\n assertFalse((tableSchema.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n assertTrue((tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n\n // Makes sure if the index name has taken the first foreign key column name.\n assertTrue((StringUtils.equalsIgnoreCase(IndexName, \"IX_\" + fkcolname)));\n\n // Makes sure if the createForeignkeyIndexes attribute for mysql.\n assertTrue(dataTypeMap.isCreateForeignKeyIndexes());\n\n }", "private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }", "private void ensureIndexes() throws Exception {\n LOGGER.info(\"Ensuring all Indexes are created.\");\n\n QueryResult indexResult = bucket.query(\n Query.simple(select(\"indexes.*\").from(\"system:indexes\").where(i(\"keyspace_id\").eq(s(bucket.name()))))\n );\n\n\n List<String> indexesToCreate = new ArrayList<String>();\n indexesToCreate.addAll(Arrays.asList(\n \"def_sourceairport\", \"def_airportname\", \"def_type\", \"def_faa\", \"def_icao\", \"def_city\"\n ));\n\n boolean hasPrimary = false;\n List<String> foundIndexes = new ArrayList<String>();\n for (QueryRow indexRow : indexResult) {\n String name = indexRow.value().getString(\"name\");\n if (name.equals(\"#primary\")) {\n hasPrimary = true;\n } else {\n foundIndexes.add(name);\n }\n }\n indexesToCreate.removeAll(foundIndexes);\n\n if (!hasPrimary) {\n String query = \"CREATE PRIMARY INDEX def_primary ON `\" + bucket.name() + \"` WITH {\\\"defer_build\\\":true}\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created primary index.\");\n } else {\n LOGGER.warn(\"Could not create primary index: {}\", result.errors());\n }\n }\n\n for (String name : indexesToCreate) {\n String query = \"CREATE INDEX \" + name + \" ON `\" + bucket.name() + \"` (\" + name.replace(\"def_\", \"\") + \") \"\n + \"WITH {\\\"defer_build\\\":true}\\\"\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created index with name {}.\", name);\n } else {\n LOGGER.warn(\"Could not create index {}: {}\", name, result.errors());\n }\n }\n\n LOGGER.info(\"Waiting 5 seconds before building the indexes.\");\n\n Thread.sleep(5000);\n\n StringBuilder indexes = new StringBuilder();\n boolean first = true;\n for (String name : indexesToCreate) {\n if (first) {\n first = false;\n } else {\n indexes.append(\",\");\n }\n indexes.append(name);\n }\n\n if (!hasPrimary) {\n indexes.append(\",\").append(\"def_primary\");\n }\n\n String query = \"BUILD INDEX ON `\" + bucket.name() + \"` (\" + indexes.toString() + \")\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully executed build index query.\");\n } else {\n LOGGER.warn(\"Could not execute build index query {}.\", result.errors());\n }\n }", "public boolean createIndex_random(Hashtable<String, Hashtable<Integer,Quad>> ind_buffer){\n\t\tSet<String> keys = ind_buffer.keySet();\n\t\tHashtable<Integer,Quad> list;\n\t\tint part;\n\t\t\n\t\tint type_s, type_o, type1_s, type1_o;\n\t\tint o_bytes, s_bytes, o_bytes1, s_bytes1;\n\t\t\n\t\tString check = \"select resource, part, type_s, type_o, weight, o_bytes, s_bytes from `\"+table+\"` where \";\n\t\tResultSet rs = null;\n\t\tPreparedStatement prepstmt = null;\n\t\tQuad item;\n\t\tString res;\n\t\tfor(String key : keys){\n\t\t\tlist = ind_buffer.get(key);\n\t\t\tif(key.indexOf('\\'') != -1 )\n\t\t\t\tres = key.replaceAll(\"'\", \"''\");\n\t\t\telse\n\t\t\t\tres = key;\n\t\t\tfor(int i : list.keySet()){\n\t\t\t\titem = list.get(i);\n\t\t\t\ttype_s = item.type_s;\n\t\t\t\ttype_o = item.type_o;\n\t\t\t\t\n\t\t\t\to_bytes = item.o_bytes;\n\t\t\t\ts_bytes = item.s_bytes;\n\t\t\t\tpart = i;\n\t\n\t\t\t// seach if have res in table\n\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\n\t\t\t\tsql.append(check).append(\"resource='\").append(res).append(\"' and part=\").append(part);\n\t\t\t//\trs = search(sql.toString());\n\t\t\t\ttry {\n\t\t\t\t\tprepstmt = conn.prepareStatement(sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t\t\t\t\t\tResultSet.CONCUR_UPDATABLE);\n\t\t\t\t\trs = prepstmt.executeQuery();\n\t\t\t\t\tif(rs.next()){\n\t\t\t\t\t// updates the records\t\n\t\t\t\t\t\ttype1_s = rs.getInt(\"type_s\");\n\t\t\t\t\t\ttype1_o = rs.getInt(\"type_o\");\n\t\t\t\t\t\to_bytes1 = rs.getInt(\"o_bytes\");\n\t\t\t\t\t\ts_bytes1 = rs.getInt(\"s_bytes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\to_bytes1 += o_bytes;\n\t\t\t\t\t\ts_bytes1 += s_bytes;\n\t\t\t\t\t// unpdate records\t\t\n\t\t\t\t\t\tif(type_s != 0 && type1_s == 0)\n\t\t\t\t\t\t\trs.updateInt(\"type_s\", type_s);\n\t\t\t\t\t\tif(type_o != 0 && type1_o == 0)\n\t\t\t\t\t\t\trs.updateInt(\"type_o\", type_o);\n\t\t\t\t\t\trs.updateInt(\"o_bytes\", o_bytes1);\n\t\t\t\t\t\trs.updateInt(\"s_bytes\", s_bytes1);\n\t\t\t\t\t\trs.updateRow();\n\t\t\t\t\t}else {\n\t\t\t\t\t// directly insert the record\n\t\t\t\t\t\trs.moveToInsertRow();\n\t\t\t\t\t\trs.updateString(\"resource\", key);\n\t\t\t\t\t\trs.updateInt(\"part\", part);\n\t\t\t\t\t\trs.updateInt(\"type_s\", type_s);\n\t\t\t\t\t\trs.updateInt(\"type_o\", type_o);\n\t\t\t\t\t\trs.updateInt(\"o_bytes\", o_bytes);\n\t\t\t\t\t\trs.updateInt(\"s_bytes\", s_bytes);\n\t\t\t\t\t\trs.insertRow();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn false;\n\t\t\t\t}finally{\n\t\t\t\t\tif (rs != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tprepstmt.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "void setIndexed(boolean indexed);", "public void beforeIndexCreated(Index index) {\n\n }", "LuceneMemoryIndex createLuceneMemoryIndex();", "public interface InvertedIndex extends Serializable {\n\n\n /**\n * Sampling for creating mini batches\n * @return the sampling for mini batches\n */\n double sample();\n\n /**\n * Iterates over mini batches\n * @return the mini batches created by this vectorizer\n */\n Iterator<List<VocabWord>> miniBatches();\n\n /**\n * Returns a list of words for a document\n * @param index\n * @return\n */\n List<VocabWord> document(int index);\n\n /**\n * Returns the list of documents a vocab word is in\n * @param vocabWord the vocab word to get documents for\n * @return the documents for a vocab word\n */\n int[] documents(VocabWord vocabWord);\n\n /**\n * Returns the number of documents\n * @return\n */\n int numDocuments();\n\n /**\n * Returns a list of all documents\n * @return the list of all documents\n */\n int[] allDocs();\n\n\n\n /**\n * Add word to a document\n * @param doc the document to add to\n * @param word the word to add\n */\n void addWordToDoc(int doc,VocabWord word);\n\n\n /**\n * Adds words to the given document\n * @param doc the document to add to\n * @param words the words to add\n */\n void addWordsToDoc(int doc,List<VocabWord> words);\n\n\n /**\n * Finishes saving data\n */\n void finish();\n\n /**\n * Total number of words in the index\n * @return the total number of words in the index\n */\n int totalWords();\n\n /**\n * For word vectors, this is the batch size for which to train on\n * @return the batch size for which to train on\n */\n int batchSize();\n\n /**\n * Iterate over each document\n * @param func the function to apply\n * @param exec exectuor service for execution\n */\n void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);\n}", "private void createRevisionTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index REVISION_ID_INDEX_REVISION on REVISION(REVISION_ID)\");\n \t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tSchema s = new Schema(\"Estudiantes\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\n\t\tSchemaJoin j = new SchemaJoin(\"Notas\",\"C:\\\\Users\\\\morazan\\\\Desktop\\\\com\\\\idk\\\\ac\\\\cr\");\r\n\r\n\t\t//Creates an index in the regular schema\r\n\t\ts.createIndex(\"bts\", \"string\", \"Nombre\", 10);\r\n\t\ts.createIndex(\"avl\", \"number\", \"aņo\", 4);\r\n\t\ts.createIndex(\"avl\", \"image\", \"Imagen\", 0);\r\n\t\tj.joinSchema(s);\r\n\t\tj.createJoinedIndex(\"avl\", \"number\", \"Notas\", 2);\r\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting I \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\ts.insertToIndex(1, \"JP\");\r\n\t\ts.insertToIndex(1, \"Randy\");\r\n\t\ts.insertToIndex(1, \"Alejandra\");\r\n//\t\ts.insertToIndex(1, \"Xcreed\");\r\n\t\ts.insertToIndex(2, 1996);\r\n\t\ts.insertToIndex(2, 1995);\r\n\t\ts.insertToIndex(2, 1997);\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/2.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/8.jpg\");\n\t\ts.insertToIndex(3, \"SchemaExtraFiles/4.jpg\");\n\t\t\n\t\tIndexBTS index = (IndexBTS) s.schema.getItem(1);\r\n\t\tBinarySearchTree t = (BinarySearchTree) index.tree;\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal I\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tt.inOrderTraversal();\r\n\t\t\n\t\tIndexAVL index2 = (IndexAVL) s.schema.getItem(2);\r\n\t\tAVLTree t2 = (AVLTree) index2.getTree();\r\n\t\tSystem.out.println(\"avl order\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Traversal II\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\n\t\tt2.inorder();\n\t\t\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Inserting II \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.insertToIndex(1, 80);\r\n\t\tj.insertToIndex(1, 82);\r\n\t\tj.insertToIndex(1, 78);\t\t\t\r\n\t\t\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n//\t\tSystem.out.println(s.deleteInIndex(1,\"JP\"));\r\n//\t\tSystem.out.println(s.search(\"JP\"));\r\n\t\t\r\n\t\tSystem.out.println(\"Getting line 1\");\r\n\t\ts.getLine(1);\r\n//\t\ts.deleteLine(1);\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Searching 82 \");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\");\r\n\t\tj.joinedSearch(82);\r\n\r\n\t\t//Deletes an index in the schema\r\n//\t\ts.schema.print();\r\n//\t\ts.deleteIndex(1);\r\n//\t\ts.schema.print();\r\n\t\t\r\n// ***********Activate Separately**********\r\n\t\t\r\n//\t\ts.createIndex(\"bts\", \"video\", \"Videos\", 0);\r\n//\t\ts.insertToIndex(1, \"SchemaExtraFiles/Trike Drifting.mp4\");\r\n\t\t\r\n//\t***************************************\r\n\t\t\r\n\t\tJSONProtocol json = new JSONProtocol();\r\n\t\tjson.writeSchema(s);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "@Test\n public void testPgRegressHashIndex() throws Exception {\n runPgRegressTest(\"yb_hash_index_serial_schedule\",\n getPerfMaxRuntime(60000, 0, 0, 0, 0) /* maxRuntimeMillis */);\n\n // Number of executions for each statement and the total run time for all executions.\n final int execCount = 3;\n long scanTime;\n\n try (Statement stmt = connection.createStatement()) {\n // Find the full-scan time.\n long fullscanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\",\n -1 /* expectedRowCount */,\n execCount);\n LOG.info(String.format(\"Full scan: %d ms\", fullscanTime));\n\n //--------------------------------------------------------------------------------------------\n // Check elapsed time for various statements that use PRIMARY INDEX.\n // PRIMARY KEY (iso_region HASH, ident ASC)\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"PRIMARY-KEY-SCAN Test Start - PRIMARY KEY (iso_region HASH, ident ASC)\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT count(*) FROM airports\" +\n \" WHERE iso_region = 'US-CA'\",\n -1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' LIMIT 1\",\n 1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY ident LIMIT 1\",\n 1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY ident ASC LIMIT 1\",\n 1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n LOG.info(\"Reverse scan is expected to be slower\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY ident DESC LIMIT 1\",\n 1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY iso_region, ident LIMIT 1\",\n 1 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND ident >= '4' LIMIT 2\",\n 2 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n long opTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND ident < '4' LIMIT 2\",\n 2 /* expectedRowCount */,\n execCount);\n perfAssertLessThan(opTime, fullscanTime);\n\n //--------------------------------------------------------------------------------------------\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx1 ON airports(iso_region hash, name DESC);\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN Start - airports_idx1 (iso_region hash, name DESC)\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' ORDER BY name DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' ORDER BY name ASC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n //--------------------------------------------------------------------------------------------\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx2 ON airports(iso_region ASC, gps_code ASC);\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN Start - airports_idx2 (iso_region ASC, gps_code ASC)\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' ORDER BY gps_code ASC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' ORDER BY gps_code DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // Forward scan is a lot slower than reverse scan.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" ORDER BY iso_region, gps_code LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" ORDER BY iso_region ASC, gps_code ASC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // Reverse scan is faster.\n long reverseTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" ORDER BY iso_region DESC, gps_code DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(reverseTime, fullscanTime);\n\n // The following statement is doing full scan due to ordering in different direction.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" ORDER BY iso_region ASC, gps_code DESC LIMIT 1\",\n 1,\n execCount);\n\n //--------------------------------------------------------------------------------------------\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx3 ON airports((iso_region, type) HASH,\n // coordinates, ident, name) INCLUDE (gps_code);\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN (Has LIMIT, Fully covered) Start - airports_idx3\" +\n \" ((iso_region, type) HASH, coordinates, ident, name) INCLUDE (gps_code)\");\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates ASC, ident, name LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates DESC, ident DESC, name DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name ASC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // Wrong order direction for name (Must be all ASC or all DESC).\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // Wrong order direction for ident and name (Must be all ASC or all DESC).\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates DESC, ident, name LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should not be optimized. Missing hash column.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY type, coordinates LIMIT 1\",\n 1,\n execCount);\n\n // This ORDER BY statement behavior is dependent on the cost estimator. It might choose the\n // PRIMARY INDEX over this index.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY ident LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n //--------------------------------------------------------------------------------------------\n // The following test cases are also for airports_idx3 but they use \"SELECT *\", so the\n // selected fields are not fully covered by the index.\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx3 ON airports((iso_region, type) HASH,\n // coordinates, ident, name) INCLUDE (gps_code);\n\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN (Has LIMIT, Not Fully covered) Start - airports_idx3\" +\n \" ((iso_region, type) HASH, coordinates, ident, name) INCLUDE (gps_code)\");\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates ASC, ident, name LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates DESC, ident DESC, name DESC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name ASC LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // Wrong order direction for name (Must be all ASC or all DESC).\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name DESC LIMIT 1\",\n 1,\n execCount);\n\n // Wrong order direction for ident and name (Must be all ASC or all DESC).\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates DESC, ident, name LIMIT 1\",\n 1,\n execCount);\n\n // This ORDER BY should not be optimized. Missing hash column.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY type, coordinates LIMIT 1\",\n 1,\n execCount);\n\n // This ORDER BY statement behavior is dependent on the cost estimator. It might choose the\n // PRIMARY INDEX over this index.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY ident LIMIT 1\",\n 1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n //--------------------------------------------------------------------------------------------\n // The following test cases are also for airports_idx3 but wihtout LIMIT clause.\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx3 ON airports((iso_region, type) HASH,\n // coordinates, ident, name) INCLUDE (gps_code);\n // Without LIMIT, the queries should be a bit slower.\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN (No LIMIT, Fully covered) Start - airports_idx3\" +\n \" ((iso_region, type) HASH, coordinates, ident, name) INCLUDE (gps_code)\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name\",\n -1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident\",\n -1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates\",\n -1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n // This ORDER BY should not be optimized. Missing hash column.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY type, coordinates\",\n -1,\n execCount);\n\n // This ORDER BY statement behavior is dependent on the cost estimator. It might choose the\n // PRIMARY INDEX over this index.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT gps_code FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY ident\",\n -1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n\n //--------------------------------------------------------------------------------------------\n // The following test cases are also for airports_idx3 but not fully covered and no LIMIT.\n // Check elapsed time for various statements that use the following INDEX.\n // CREATE INDEX airports_idx3 ON airports((iso_region, type) HASH,\n // coordinates, ident, name) INCLUDE (gps_code);\n // Without LIMIT and not-fully-covered by the index, the queries should be slow.\n LOG.info(\"---------------------------------------------------------------------------------\");\n LOG.info(\"SECONDARY-INDEX-SCAN (No LIMIT, Not Fully covered) Start - airports_idx3\" +\n \" ((iso_region, type) HASH, coordinates, ident, name) INCLUDE (gps_code)\");\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident, name\",\n -1,\n execCount);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates, ident\",\n -1,\n execCount);\n\n // This ORDER BY should be HASH + RANGE optimized.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY coordinates\",\n -1,\n execCount);\n\n // This ORDER BY should not be optimized. Missing hash column.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA'\" +\n \" ORDER BY type, coordinates\",\n -1,\n execCount);\n\n // This ORDER BY statement behavior is dependent on the cost estimator. It might choose the\n // PRIMARY INDEX over this index.\n scanTime = timeQueryWithRowCount(stmt,\n \"SELECT * FROM airports\" +\n \" WHERE iso_region = 'US-CA' AND type = 'small_airport'\" +\n \" ORDER BY ident\",\n -1,\n execCount);\n perfAssertLessThan(scanTime, fullscanTime);\n }\n }", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "public void createIndex(final DBObject keys) {\n createIndex(keys, new BasicDBObject());\n }", "private void createCodeFragmentGenealogyTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CODE_FRAGMENT_GENEALOGY_ID_INDEX_CODE_FRAGMENT_GENEALOGY on CODE_FRAGMENT_GENEALOGY(CODE_FRAGMENT_GENEALOGY_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_CODE_FRAGMENT_GENEALOGY on CODE_FRAGMENT_GENEALOGY(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_CODE_FRAGMENT_GENEALOGY on CODE_FRAGMENT_GENEALOGY(END_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CHANGES_INDEX_CODE_FRAGMENT_GENEALOGY on CODE_FRAGMENT_GENEALOGY(CHANGES)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_END_REVISION_ID_INDEX_CODE_FRAGMENT_GENEALOGY on CODE_FRAGMENT_GENEALOGY(START_REVISION_ID,END_REVISION_ID)\");\n \t}", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}", "private void createTokenIndex(){\n\t\tLinkedList<String> tokens = new LinkedList<>(tokenDict.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(tokenDict.values());\n\t\tint k = 8;\n\n\t\tKFront kf = new KFront(true);\n\t\tkf.createKFront(k, tokens);\n\n\t\tTokensIndex tIdx = new TokensIndex(k, this.dir);\n\t\ttIdx.insertData(kf.getTable(), vals, kf.getConcatString());\n\n\t\tsaveToDir(TOKEN_INDEX_FILE, tIdx);\n\t}", "public com.guidewire.datamodel.IndexDocument.Index insertNewIndex(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.IndexDocument.Index target = null;\r\n target = (com.guidewire.datamodel.IndexDocument.Index)get_store().insert_element_user(INDEX$12, i);\r\n return target;\r\n }\r\n }", "private void createIndex(Geography<T> geog, Class<T> clazz)\n\t{\n\t\tGeometry geom;\n\t\tEnvelope bounds;\n\t\tfor (T t : geog.getAllObjects( ))\n\t\t{\n\t\t\tgeom = (Geometry) geog.getGeometry(t);\n\t\t\tbounds = geom.getEnvelopeInternal( );\n\t\t\tthis.si.insert(bounds, geom);\n\t\t\tthis.featureLookup.put(geom, t);\n\t\t}\n\t}", "private void addIndex(Partition partition, String... attrs) throws Exception {\n for (String attribute : attrs) {\n factory.addIndex(partition, attribute, 100);\n }\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "private void createReviewIndex() {\n\t\t// Revise the review dictionary to the correct structure & change productIDs to product index\n\t\tLinkedList<List<Integer>> dictValues = new LinkedList<>();\n\t\tfor (int review : reviewIds.keySet()) {\n\t\t\tArrayList<String> vals = reviewIds.get(review);\n\t\t\tArrayList<Integer> new_vals = new ArrayList<>(List.of(0, 0, 0, 0, 0));\n\t\t\tnew_vals.set(ReviewIndex.PRODUCTID_INDEX, productIds.headMap(vals.get(0)).size());\n\t\t\tString[] helpf = vals.get(2).split(\"/\");\n\t\t\tnew_vals.set(ReviewIndex.HELPFNUM_INDEX, Integer.parseInt(helpf[0]));\n\t\t\tnew_vals.set(ReviewIndex.HELPFDNOM_INDEX, Integer.parseInt(helpf[1]));\n\t\t\tnew_vals.set(ReviewIndex.REVIEWLENGTH_INDEX, Integer.parseInt(vals.get(3)));\n\t\t\tnew_vals.set(ReviewIndex.SCORE_INDEX, (int) Float.parseFloat(vals.get(1)));\n\t\t\tdictValues.add(new_vals);\n\t\t}\n\t\tReviewIndex rIndex = new ReviewIndex();\n\t\trIndex.insertData(dictValues);\n\n\t\tsaveToDir(REVIEW_INDEX_FILE, rIndex);\n\t}", "public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}", "public createIndex_args(createIndex_args other) {\n }", "private void createCommitTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index VCS_COMMIT_ID_INDEX_VCS_COMMIT on VCS_COMMIT(VCS_COMMIT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index BEFORE_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(BEFORE_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index AFTER_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(AFTER_REVISION_ID)\");\n \t}", "public void testAddingNewIndexWhenFKContainsIndexColumns() throws Exception\n {\n PSJdbcDataTypeMap dataTypeMap = new PSJdbcDataTypeMap(\"MYSQL\", \"mysql\", null);\n ArrayList<PSJdbcColumnDef> coldefs = createColumnDef(dataTypeMap);\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col3\", PSJdbcTableComponent.ACTION_DELETE, Types.INTEGER, null,\n true, null));\n PSJdbcTableSchema tableSchema1 = createTableSchema(coldefs);\n setPrimaryKey(tableSchema1);\n\n List<String[]> fkCols = new ArrayList<String[]>();\n String[] fcol1 =\n {\"col1\", \"etable\", \"ecol1\"};\n fkCols.add(fcol1);\n String[] fcol2 =\n {\"col2\", \"etable\", \"ecol1\"};\n fkCols.add(fcol2);\n PSJdbcForeignKey fk = new PSJdbcForeignKey(fkCols.iterator(), PSJdbcTableComponent.ACTION_DELETE);\n List<PSJdbcForeignKey> fks = new ArrayList<>();\n fks.add(fk);\n tableSchema1.setForeignKeys(fks,true);\n\n List<String> indexCols = new ArrayList<String>();\n indexCols.add(\"col2\");\n PSJdbcIndex index1 = new PSJdbcIndex(\"IX_Name\", indexCols.iterator(), PSJdbcTableComponent.ACTION_CREATE);\n tableSchema1.setIndex(index1);\n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element el = tableSchema1.toXml(doc);\n PSJdbcTableSchema tableSchema2 = new PSJdbcTableSchema(el, dataTypeMap);\n PSJdbcIndex newIndex = (PSJdbcIndex) tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE).next();\n\n // Makes sure if the table schema has changed\n assertFalse((tableSchema1.equals(tableSchema2)));\n\n // Makes sure if a new index definition of non unique have been added to\n // table schema.\n assertFalse((tableSchema1.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n assertTrue((tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE)).hasNext());\n\n // Makes sure if the new index that got created has the same set of\n // columns as foreign key.\n assertTrue(fk.getForeignKeyColumnNames().containsAll(newIndex.getIndexColumnNames()));\n\n // Makes sure if the index name of newly created index has a unique name.\n assertTrue(tableSchema1.doesIndexNameExists(newIndex.getName()));\n\n }", "private void createCrdTableIndexes() throws Exception {\n \t\tdbManager.executeUpdate(\"create index CRD_ID_INDEX_CRD on CRD(CRD_ID)\");\n \t\tdbManager.executeUpdate(\"create index CM_INDEX_CRD on CRD(CM)\");\n \t}", "@Test\n public void testIndexMaintenanceOnPutAll() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n region.put(\"1\", new Portfolio(1));\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"posvals.secId\",\n SEPARATOR + \"portfolio1 pf, pf.positions.values posvals \");\n Map data = new HashMap();\n for (int i = 1; i < 11; ++i) {\n data.put(\"\" + i, new Portfolio(i + 2));\n }\n\n region.putAll(data);\n }", "private void loadInvertedIndexFromFile(String indexPath) {\n try {\n invIndex = new HashMap<String, HashMap<String, IndexEntry>>();\n Scanner sc = new Scanner(new File(indexPath));\n int lineNum = 0;\n while (sc.hasNextLine()) {\n String entry = sc.nextLine().trim();\n if (!entry.isEmpty()) {\n String[] termValue = entry.trim().split(\" -> \");\n String[] docEntries = termValue[1].split(\"\\\\) \\\\(\");\n // clean up the opening and closing paranthesis post split\n if (docEntries[0].charAt(0) == '(')\n docEntries[0] = docEntries[0].substring(1);\n String lastDocEntry = docEntries[docEntries.length - 1];\n if (lastDocEntry.charAt(lastDocEntry.length() - 1) == ')')\n docEntries[docEntries.length - 1] =\n lastDocEntry.substring(0, lastDocEntry.length() - 1);\n HashMap<String, IndexEntry> invEntryVal = new HashMap<String, IndexEntry>();\n for (String docEntry : docEntries) {\n String[] components = docEntry.split(\", \");\n String docID = components[0];\n int tf = Integer.parseInt(components[1]);\n\n // if term positions information present\n List<Integer> termPos = new LinkedList<Integer>();\n if (components.length > 2) {\n String[] pos = components[2].replace(\"[\", \"\").replace(\" ]\", \"\").split(\" \");\n for (String eachPos : pos)\n termPos.add(Integer.parseInt(eachPos));\n }\n IndexEntry ie = new IndexEntry(docID, termPos, tf);\n invEntryVal.put(docID, ie);\n }\n invIndex.put(termValue[0], invEntryVal);\n System.out.println((++lineNum) + \" | \" + termValue[0]);\n }\n }\n sc.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsSet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asSet() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "private void createCloneGenealogyTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CLONE_GENEALOGY_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(CLONE_GENEALOGY_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(START_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index END_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(END_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CHANGES_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(CHANGES)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index ADDITIONS_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(ADDITIONS)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index DELETIONS_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(DELETIONS)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index DEAD_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(DEAD)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index START_END_REVISION_ID_INDEX_CLONE_GENEALOGY on CLONE_GENEALOGY(START_REVISION_ID,END_REVISION_ID)\");\n \t}", "public void enableIndexAutoCreation() {\n client.setIndexAutoCreationEnabled(true);\n }", "@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a search index yet\n int[] allMissingIds = mDatabaseAccess.itemsDAO().selectMissingSearchIndexIds();\n // Selects the item to the id, extract all parts of the item name to create the\n // search index (all ItemSearchEntity's) and insert them into the database\n for (int missingId : allMissingIds) {\n try {\n ItemEntity item = mDatabaseAccess.itemsDAO().selectItem(missingId);\n List<ItemSearchEntity> searchEntities = createItemSearchIndex(item);\n mDatabaseAccess.itemsDAO().insertItemSearchParts(searchEntities);\n } catch (Exception ex) {\n Log.e(TAG, \"An error occurred trying to create the search index to the id\" +\n missingId, ex);\n }\n }\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load and process all \" +\n \"item IDs to generate a search index\", ex);\n }\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetValues() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.getValues() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "public void convertCsvDataToSQLScrip(List<CorruptionIndex> data, String destinationFile){\n\n }", "public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}", "public void updateIndexTable(String currentSchema,\n\t\t\tTreeMap<String,TreeMap<String,List<String>>> indexMap\n\t\t\t){\n\n\t\t//Table Index Map\n\t\tSet<Map.Entry<String,TreeMap<String,List<String>>>> indexMapSet = indexMap.entrySet();\n\t\tIterator<Map.Entry<String,TreeMap<String,List<String>>>> indexIterator = indexMapSet.iterator();\n\n\t\twhile(indexIterator.hasNext()){\n\n\t\t\tMap.Entry<String,TreeMap<String,List<String>>> columnME = indexIterator.next();\n\t\t\tString currentColumn = columnME.getKey();\n\t\t\tTreeMap<String,List<String>> currentColumnKV = columnME.getValue();\n\n\t\t\tSet<Map.Entry<String,List<String>>> currentColumnKVSet = currentColumnKV.entrySet();\n\t\t\tIterator<Map.Entry<String,List<String>>> currentColumnKVIterator = currentColumnKVSet.iterator();\n\n\t\t\twhile(currentColumnKVIterator.hasNext()){\n\t\t\t\tMap.Entry<String,List<String>> currentColumnKVME = currentColumnKVIterator.next();\n\t\t\t\tString columnK = currentColumnKVME.getKey();\n\t\t\t\tList<String> columnV = currentColumnKVME.getValue();\n\t\t\t\tString openIndexFileName = currentSchema + \".\" + tableName + \".\" + currentColumn + \".tbl.ndx\";\n\t\t\t\ttry {\n\t\t\t\t\tRandomAccessFile openedIndexFile = new RandomAccessFile(openIndexFileName, \"rw\");\n\t\t\t\t\topenedIndexFile.seek(openedIndexFile.length());\n\n\t\t\t\t\tString type = columnV.get(0);\n\t\t\t\t\tString pointerCount = columnV.get(1);\n\n\t\t\t\t\tif(type.equalsIgnoreCase(\"CHAR\") || type.equalsIgnoreCase(\"VARCHAR\")){\n\t\t\t\t\t\topenedIndexFile.writeByte(columnK.length());\n\t\t\t\t\t\topenedIndexFile.writeBytes(columnK);\n\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tswitch(type){\n\t\t\t\t\t\tcase \"BYTE\": \n\t\t\t\t\t\t\topenedIndexFile.writeByte(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"SHORT\":\n\t\t\t\t\t\t\topenedIndexFile.writeShort(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"INT\": \n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"LONG\": \n\t\t\t\t\t\t\topenedIndexFile.writeLong(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"FLOAT\": \n\t\t\t\t\t\t\topenedIndexFile.writeFloat(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DOUBLE\": \n\t\t\t\t\t\t\topenedIndexFile.writeDouble(Integer.parseInt(columnK));\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DATETIME\": \t\n\t\t\t\t\t\t\tDateFormat dateTimeFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH:mm:ss\", Locale.ENGLISH);\n\t\t\t\t\t\t\tDate dateTime = dateTimeFormat.parse(columnK);\n\t\t\t\t\t\t\topenedIndexFile.writeLong(dateTime.getTime());\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DATE\": \t\n\t\t\t\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\t\t\t\t\t\t\tDate date = dateFormat.parse(columnK);\n\t\t\t\t\t\t\topenedIndexFile.writeLong(date.getTime());\t\t\t\t\t\t\t\n\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(pointerCount));\n\t\t\t\t\t\t\tfor(int i = 0;i < Integer.parseInt(pointerCount); i++)\n\t\t\t\t\t\t\t\topenedIndexFile.writeInt(Integer.parseInt(columnV.get(i + 2)));\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\topenedIndexFile.close();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void commit() throws IndexTransactionException;", "public static void main(String[] args) throws CorruptIndexException, LockObtainFailedException, IOException, ParseException{\n\t\tboolean lucene_im_mem = false;\n\t\t//1. Build the Index with varying \"database size\"\n\t\tString dirName =\"/data/home/duy113/SupSearchExp/AIDSNew/\";\n//\t\tString dirName = \"/Users/dayuyuan/Documents/workspace/Experiment/\";\n\t\tString dbFileName = dirName + \"DBFile\";\n\t\tString trainQueryName= dirName + \"TrainQuery\";\n//\t\tString testQuery15 = dirName + \"TestQuery15\";\n\t\tString testQuery25 = dirName + \"TestQuery25\";\n//\t\tString testQuery35 = dirName + \"TestQuery35\";\n\t\tGraphDatabase query = new GraphDatabase_OnDisk(testQuery25, MyFactory.getSmilesParser());\n\t\tdouble[] minSupts = new double[4];\n\t\tminSupts[0] = 0.05; minSupts[1] = 0.03; minSupts[2] =0.02; minSupts[3] = 0.01;\n \t\tint lwIndexCount[] = new int[1];\n\t\tlwIndexCount[0] = 479;\t\n//\t\tSystem.out.println(\"Build CIndexFlat Left-over: \");\n//\t\tfor(int j = 3; j< 4; j++){\n//\t\t\tdouble minSupt = minSupts[j];\n//\t\t\tfor(int i = 4; i<=10; i = i+2){\n//\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n//\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n//\t\t\t\tif(i == 2){\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n//\t\t\t\t\tCIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tString featureBaseName = dirName + \"G_2\" + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat with Features \" + featureBaseName);\n//\t\t\t\t\tCIndexExp.buildIndex(featureBaseName, trainingDB, baseName, minSupt);\n//\t\t\t\t}\n//\t\t\t\tSystem.gc();\n//\t\t\t}\n//\t\t}\n\t\tSystem.out.println(\"Run Query Processing: \");\n\t\tfor(int j = 0; j< 4; j++){\n\t\t\tdouble minSupt = minSupts[j];\n\t\t\tfor(int i = 2; i<=10; i = i+2){\n\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n\t\t\t\tif(j!=0 || i!=2){\n\t\t\t\t\tSystem.out.println(baseName + \"LWindex\");\n\t\t\t\t\t//LWIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, trainQuery.getParser(),baseName, minSupt, lwIndexCount);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndex\");\n\t\t\t\t\t//PrefixIndexExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndexHi\");\n\t\t\t\t\t//PrefixIndexExp.buildHiIndex(trainingDB, trainingDB, 2, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"GPTree\");\n\t\t\t\t\t//GPTreeExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n\t\t\t\t\t//CIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t}\n\t\t\t\tif(j==0&&i==2){\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\t\tCIndexExp.buildIndexTopDown(trainingDB, trainQuery, trainingDB,MyFactory.getUnCanDFS(), baseName, minSupt, 2*trainQuery.getTotalNum()/lwIndexCount[0] ); // 8000 test queries\n\t\t\t\t\t//System.gc();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\tSystem.gc();\n\t\t\t}\n\t\t}\n\t\tAIDSLargeExp.main(args);\n\t}", "private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "public void createIndex(final String name) {\n createIndex(new BasicDBObject(name, 1));\n }", "public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}", "StorableIndexInfo getIndexInfo();", "public void start() throws Exception {\n\n createIndex();\n }", "@Ignore \n @Test\n public void testPutMappingToIndex() {\n System.out.println(\"putMappingToIndex\");\n \n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n String indexName = \"datastore_100_1_data_event_yearmonth_000000_1\";\n String indexType = \"AAA666_type\";\n \n try\n { \n ESUtil.createIndexWithoutType(client, indexName);\n \n DataobjectType dataobjectType = Util.getDataobjectTypeByIndexTypeName(platformEm, indexType);\n\n XContentBuilder typeMapping = ESUtil.createTypeMapping(platformEm, dataobjectType, true);\n \n ESUtil.putMappingToIndex(client, indexName, indexType, typeMapping);\n }\n catch(Exception e)\n {\n System.out.print(\" failed! e=\"+e);\n }\n }", "private void buildIndex(Collection<Edge> edges) {\n\t\tfor (Edge e : edges) {\r\n\t\t\tList<Integer> ids = getCells(e);\r\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\r\n\t\t\t\tList<Edge> list = dict.get(ids.get(j));\r\n\t\t\t\tif (list == null) {\r\n\t\t\t\t\tlist = new ArrayList<Edge>();\r\n\t\t\t\t\tdict.put(ids.get(j), list);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetKeys() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.getKeys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "public H_index() {\n\t\tsuper();\n\t}", "public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}", "public void createIndex(String dataDirPath, String txType) throws IOException {\n\t\ttry {\n\t\t\tString inLoc = \"/mnt/3TB/in.csv\";\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inLoc), \"UTF-8\"));\n\n\t\t\tString line;\n\t\t\tboolean first = true;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] items = line.split(\",\");\n\t\t\t\tif (items.length > 3) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tDocument doc = makeTx(items[0], items[1], Long.parseLong(items[2]), txType);\n\t\t\t\twriter.addDocument(doc);\n\t\t\t}\n\t\t\tbr.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }", "public void tIndex(IndexShort < O > index) throws Exception {\n File query = new File(testProperties.getProperty(\"test.query.input\"));\n File dbFolder = new File(testProperties.getProperty(\"test.db.path\"));\n\n int cx = 0;\n\n initIndex(index);\n //search(index, (short) 3, (byte) 3);\n //search(index, (short) 7, (byte) 1);\n //search(index, (short) 12, (byte) 3);\n \n search(index, (short) 1000, (byte) 1);\n\n search(index, (short) 1000, (byte) 3);\n\n search(index, (short) 1000, (byte) 10);\n \n search(index, (short) 1000, (byte) 50);\n \n long i = 0;\n // int realIndex = 0;\n // test special methods that only apply to\n // SynchronizableIndex\n \n\n // now we delete elements from the DB\n logger.info(\"Testing deletes\");\n i = 0;\n long max = index.databaseSize();\n while (i < max) {\n O x = index.getObject(i);\n OperationStatus ex = index.exists(x);\n assertTrue(ex.getStatus() == Status.EXISTS);\n assertTrue(ex.getId() == i);\n ex = index.delete(x);\n assertTrue(\"Status is: \" + ex.getStatus() + \" i: \" + i , ex.getStatus() == Status.OK);\n assertEquals(i, ex.getId());\n ex = index.exists(x); \n assertTrue( \"Exists after delete\" + ex.getStatus() + \" i \" + i, ex.getStatus() == Status.NOT_EXISTS);\n i++;\n }\n index.close();\n Directory.deleteDirectory(dbFolder);\n }", "public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}", "@Override\n\tpublic void indexObject(ModelKey obj) throws ASException {\n\t\t\n\t}", "public void testAddingNewIndexWithFKName() throws Exception\n {\n PSJdbcDataTypeMap dataTypeMap = new PSJdbcDataTypeMap(\"MYSQL\", \"mysql\", null);\n ArrayList<PSJdbcColumnDef> coldefs = createColumnDef(dataTypeMap);\n coldefs.add(new PSJdbcColumnDef(dataTypeMap, \"col3\", PSJdbcTableComponent.ACTION_DELETE, Types.INTEGER, null,\n true, null));\n PSJdbcTableSchema tableSchema1 = createTableSchema(coldefs);\n setPrimaryKey(tableSchema1);\n\n String foreignKeyName = \"FK_Name\";\n List<String[]> fkCols = new ArrayList<String[]>();\n String[] fcol1 =\n {\"col1\", \"etable\", \"ecol1\"};\n fkCols.add(fcol1);\n PSJdbcForeignKey fk = new PSJdbcForeignKey(foreignKeyName, fkCols.iterator(),\n PSJdbcTableComponent.ACTION_DELETE);\n List<PSJdbcForeignKey> fks = new ArrayList<>();\n fks.add(fk);\n tableSchema1.setForeignKeys(fks,true);\n\n List<String> indexCols = new ArrayList<String>();\n indexCols.add(\"col2\");\n PSJdbcIndex index1 = new PSJdbcIndex(\"IX_Name\", indexCols.iterator(), PSJdbcTableComponent.ACTION_CREATE);\n tableSchema1.setIndex(index1);\n\n Document doc = PSXmlDocumentBuilder.createXmlDocument();\n Element el = tableSchema1.toXml(doc);\n PSJdbcTableSchema tableSchema2 = new PSJdbcTableSchema(el, dataTypeMap);\n PSJdbcIndex newIndex = (PSJdbcIndex) tableSchema2.getIndexes(PSJdbcIndex.TYPE_NON_UNIQUE).next();\n\n // Makes sure if the table schema has changed.\n assertFalse((tableSchema1.equals(tableSchema2)));\n\n // Makes sure if the new index that got created has the same set of\n // columns as foreign key.\n assertTrue(fk.getForeignKeyColumnNames().containsAll(newIndex.getIndexColumnNames()));\n\n // Makes sure if the index name of newly created index has a unique name.\n assertTrue(tableSchema1.doesIndexNameExists(newIndex.getName()));\n }", "public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }", "boolean isNewIndex();", "private void createCodeFragmentLinkTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CODE_FRAGMENT_LINK_ID_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(CODE_FRAGMENT_LINK_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index BEFORE_ELEMENT_ID_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(BEFORE_ELEMENT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index AFTER_ELEMENT_ID_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(AFTER_ELEMENT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index BEFORE_REVISION_ID_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(BEFORE_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index AFTER_REVISION_ID_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(AFTER_REVISION_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index CHANGED_INDEX_CODE_FRAGMENT_LINK on CODE_FRAGMENT_LINK(CHANGED)\");\n \t}", "public void updateIndex() {\n int i = this.index;\n if (i == -1 || i > HashBiMap.this.size || !Objects.equal(HashBiMap.this.keys[this.index], this.key)) {\n this.index = HashBiMap.this.findEntryByKey(this.key);\n }\n }", "public Object preparePut(Object object)\r\n {\n FullUniqueIndex perThreadAddedIndex = new FullUniqueIndex(this.hashStrategy);\r\n perThreadAddedIndex.setUnderlyingObjectGetter(transactionalUnderlyingObjectGetter);\r\n perThreadAddedIndex.putUsingUnderlying(object, ((MithraTransactionalObject) object).zGetNonTxData());\r\n synchronized (this.preparedIndices)\r\n {\r\n this.preparedIndices.add(perThreadAddedIndex);\r\n }\r\n return perThreadAddedIndex;\r\n }", "public IndexBuilder(InvertedIndex index) {\n\t\tthis.index = index;\n\t}" ]
[ "0.71160525", "0.620763", "0.6169432", "0.60389113", "0.5873213", "0.5872353", "0.5854258", "0.58463305", "0.57917315", "0.57391983", "0.57334906", "0.57274896", "0.5723555", "0.5689704", "0.56502813", "0.56499386", "0.5649755", "0.56368333", "0.56347865", "0.56246233", "0.5620745", "0.5603921", "0.5597037", "0.55967885", "0.55963606", "0.55679965", "0.5562862", "0.5552218", "0.5551253", "0.55504", "0.5536977", "0.55246216", "0.55170506", "0.55142266", "0.5508027", "0.55061483", "0.5501586", "0.5496216", "0.5490914", "0.5487709", "0.5482033", "0.54811746", "0.54779667", "0.5475805", "0.547309", "0.5470742", "0.5466596", "0.5466418", "0.5463596", "0.54544306", "0.5454012", "0.545338", "0.54342264", "0.5429477", "0.54258144", "0.54245675", "0.5418364", "0.5418026", "0.54165", "0.5403417", "0.5387369", "0.5385311", "0.53822637", "0.5379025", "0.5337992", "0.53374755", "0.53178513", "0.5316286", "0.5314738", "0.53103215", "0.53071", "0.5302979", "0.52990687", "0.52791995", "0.5276865", "0.52761", "0.52487683", "0.5228257", "0.5211609", "0.52068955", "0.5186849", "0.5185715", "0.5183187", "0.51749", "0.51732665", "0.5170992", "0.5169739", "0.51678395", "0.51665014", "0.51581806", "0.5141491", "0.5135783", "0.5135696", "0.5132861", "0.51311684", "0.51174104", "0.51096356", "0.5107892", "0.5105473", "0.50977075" ]
0.563041
19
/ PARSING FROM XML TAGS
private Core loadXMLFromString(String xml) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new InputSource(new StringReader(xml))); XPathFactory xpathFactory = XPathFactory.newInstance(); XPath xpath = xpathFactory.newXPath(); Integer docno = Integer.valueOf(xpath.evaluate("/DOC/DOCNO", doc)); String title = xpath.evaluate("/DOC/TITLE", doc); String abstra = xpath.evaluate("/DOC/ABSTRACT", doc); if(corpus != null){ Map<String,String> map = new HashMap<>(); map.put(title,abstra); corpus.put(docno,map); } return new Core( docno, normalisation(eliminateEmptyTerm(token(title))), normalisation(eliminateEmptyTerm(token(abstra)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String[] extractXmlElementValues(String xmlTagName, String text, boolean includeStartEndTags) {\n ArrayList<String> foundElements = new ArrayList<String>();\n int currentPos = 0;\n\n while ( currentPos >= 0 ) {\n String startTag = \"<\" + xmlTagName + \">\";\n String endTag = \"</\" + xmlTagName + \">\";\n\n String rootStartTag = \"\";\n String rootEndTag = \"\";\n\n String resultText = \"\";\n int startValuePos = text.indexOf(startTag,currentPos);\n if ( startValuePos < 0 ) {\n startTag = \"<\" + xmlTagName + \" \";\n startValuePos = text.indexOf(startTag,currentPos);\n }\n if ( startValuePos >= 0 ) {\n int rootStartTagPos = startValuePos;\n currentPos = -1;\n //iPos += 3;\n startValuePos = text.indexOf(\">\", startValuePos);\n if ( startValuePos >= 0 ) {\n startValuePos = startValuePos + 1;\n int endValuePos = text.indexOf(endTag, startValuePos);\n if ( endValuePos >= 0 && endValuePos > startValuePos ) {\n resultText = text.substring(startValuePos, endValuePos);\n if ( includeStartEndTags ) {\n rootStartTag = text.substring(rootStartTagPos, startValuePos);\n rootEndTag = text.substring(endValuePos, endValuePos+endTag.length()+1);\n// System.out.println(\"\");\n// System.out.println(\"START TAG : ]\" + rootStartTag + \"[\");\n// System.out.println(\"END TAG : ]\" + rootEndTag + \"[\");\n foundElements.add(rootStartTag + resultText + rootEndTag);\n } else {\n foundElements.add(resultText);\n }\n currentPos = endValuePos;\n }\n }\n } else {\n // Procedure for namespace defined tags\n startTag = \":\" + xmlTagName;\n startValuePos = text.indexOf(startTag,currentPos);\n if ( startValuePos < 0 ) {\n startTag = \":\" + xmlTagName + \" \";\n startValuePos = text.indexOf(startTag,currentPos);\n }\n currentPos = -1;\n if ( startValuePos >= 0 ) {\n int rootStartTagPos = startValuePos;\n int startBracket = text.lastIndexOf(\"<\", startValuePos );\n if ( startBracket >= 0 && startBracket < startValuePos ) {\n String nsName = text.substring(startBracket+1,startValuePos);\n endTag = \"</\" + nsName + \":\" + xmlTagName + \">\";\n startValuePos = text.indexOf(\">\", startValuePos);\n if ( startValuePos >= 0 ) {\n startValuePos = startValuePos + 1;\n int endValuePos = text.indexOf(endTag, startValuePos);\n if ( endValuePos >= 0 && endValuePos > startValuePos ) {\n resultText = text.substring(startValuePos, endValuePos);\n if ( includeStartEndTags ) {\n rootStartTag = \"<\" + nsName + text.substring(rootStartTagPos, startValuePos);\n rootEndTag = text.substring(endValuePos, endValuePos+endTag.length()+1);\n// System.out.println(\"\");\n// System.out.println(\"NAMESPACE START TAG : ]\" + rootStartTag + \"[\");\n// System.out.println(\"NAMESPACE END TAG : ]\" + rootEndTag + \"[\");\n foundElements.add(rootStartTag + resultText + rootEndTag);\n } else {\n foundElements.add(resultText);\n }\n currentPos = endValuePos + endTag.length();\n }\n }\n }\n }\n }\n }\n return foundElements.toArray(new String[foundElements.size()]);\n }", "private static List<XMLTag> processTags(String line, int index, int length) {\n List<XMLTag> tempTags = new ArrayList<>();\n\n XMLTag xmlTag = new XMLTag();\n String value = line;\n\n xmlTag.setLine(index + 1);\n\n if (hasTag(value)) {\n // has a tag\n while (hasTag(value) || hasString(value)) {\n xmlTag = new XMLTag();\n xmlTag.setLine(index + 1);\n\n int startTag = value.indexOf(\"<\");\n int endTag = value.indexOf(\">\");\n boolean order = endTag > startTag;\n\n if (hasStringBeforeTag(value, startTag)) {\n xmlTag.setTagType(7);\n xmlTag.setEndIndex(startTag + length + 1);\n xmlTag.setStartIndex(0 + length + 1);\n xmlTag.setValue(value.substring(0, startTag));\n value = value.substring(startTag);\n\n } else if (startTag != -1) {\n // has <\n if (endTag != -1) {\n // has < and > ==> can be 1, 2, 3, 8\n if (order) {\n if (value.substring(startTag + 1, startTag + 2).equals(\"/\")) {\n // 2\n xmlTag.setTagType(2);\n String[] values = value.substring(startTag + 2, endTag).split(\" \");\n xmlTag.setqName(values[0]);\n } else if (value.substring(endTag - 1, endTag).equals(\"/\")) {\n // 3\n xmlTag.setTagType(3);\n String[] qName = value.substring(startTag + 1).split(\"/| \");// **needs to be //?\n xmlTag.setqName(qName[0]);\n\n } else if (value.substring(startTag + 1, startTag + 2).equals(\"?\")) {\n // 8\n xmlTag.setTagType(8);\n } else if (value.substring(startTag + 1, startTag + 2).equals(\"!\")) {\n // 7 <![CDATA[ ]]>\n xmlTag.setTagType(7);\n } else {\n // 1\n xmlTag.setTagType(1);\n String[] values = (value.substring(startTag + 1, endTag)).split(\" \");\n xmlTag.setqName(values[0]);\n }\n\n xmlTag.setEndIndex(endTag + length + 1);\n xmlTag.setStartIndex(startTag + length + 1);\n xmlTag.setValue(value.substring(startTag, endTag + 1));\n value = value.substring(endTag + 1);\n\n } else {\n\n if (endTag > 0 && value.substring(endTag - 1, endTag).equals(\"/\")) {\n xmlTag.setTagType(5);\n\n } else {\n if (value.substring(endTag - 1, endTag).equals(\"?\")) {\n xmlTag.setTagType(8);\n } else if (value.substring(endTag - 1, endTag).equals(\"]\")) {\n // 7 ]]>\n xmlTag.setTagType(7);\n } else {\n xmlTag.setTagType(6);\n }\n }\n xmlTag.setValue(value.substring(0, endTag + 1));\n xmlTag.setEndIndex(endTag + length + 1);\n xmlTag.setStartIndex(-1);\n value = value.substring(endTag + 1);\n }\n\n } else {\n // has < ==> can be 4 || can be 8\n if (value.substring(startTag + 1, startTag + 2).equals(\"?\")) {\n xmlTag.setTagType(8);\n } else if (value.substring(startTag + 1, startTag + 2).equals(\"!\")) {\n // 7 <![CDATA[\n xmlTag.setTagType(7);\n } else {\n xmlTag.setTagType(4);\n String[] values = (value.substring(startTag + 1)).split(\" \");\n xmlTag.setqName(values[0]);\n }\n xmlTag.setValue(value);\n xmlTag.setEndIndex(-1);\n xmlTag.setStartIndex(startTag + length + 1);\n value = \"\";\n }\n } else {\n // no <\n if (endTag != -1) {\n // has > ==> can be 5, 6\n\n if (endTag > 0 && value.substring(endTag - 1, endTag).equals(\"/\")) {\n xmlTag.setTagType(5);\n\n } else {\n if (endTag > 0 && value.substring(endTag - 1, endTag).equals(\"?\")) {\n xmlTag.setTagType(8);\n } else if (endTag > 0 && value.substring(endTag - 1, endTag).equals(\"]\")) {\n // 7 ]]>\n xmlTag.setTagType(7);\n } else {\n xmlTag.setTagType(6);\n }\n }\n xmlTag.setValue(value.substring(0, endTag + 1));\n xmlTag.setEndIndex(endTag + length + 1);\n xmlTag.setStartIndex(-1);\n value = value.substring(endTag + 1);\n\n } else {\n // no tags ==> 7\n xmlTag.setValue(value);\n xmlTag.setTagType(7);\n xmlTag.setEndIndex(-1);\n xmlTag.setStartIndex(-1);\n value = \"\";\n\n }\n }\n\n xmlTagsQueue.add(xmlTag);\n tempTags.add(xmlTag);\n }\n } else {\n // whole line has no tags\n xmlTag.setValue(value);\n xmlTag.setTagType(7);\n xmlTag.setEndIndex(-1);\n xmlTag.setStartIndex(-1);\n\n xmlTagsQueue.add(xmlTag);\n tempTags.add(xmlTag);\n\n return tempTags;\n }\n\n return tempTags;\n }", "public void parseXML(String XML);", "private void processTag(String p_content)\n {\n StringBuffer tagName = new StringBuffer();\n Hashtable attributes = new Hashtable();\n boolean bEndTag;\n\n int i = eatWhitespaces(p_content, 0);\n\n bEndTag = i < p_content.length() && p_content.charAt(i) == '/';\n\n //read the tag name...\n while (i < p_content.length() &&\n !Character.isWhitespace(p_content.charAt(i)))\n {\n tagName.append(p_content.charAt(i));\n\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n\n //read the attributes...\n StringBuffer attributeName = new StringBuffer();\n StringBuffer attributeValue = new StringBuffer();\n\n while (i < p_content.length())\n {\n try\n {\n i = eatWhitespaces(p_content, i);\n\n //read the name...\n while (!Character.isWhitespace(p_content.charAt(i)) &&\n p_content.charAt(i) != '=')\n {\n attributeName.append(p_content.charAt(i));\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n if (p_content.charAt(i) == '=')\n {\n while (p_content.charAt(i) != '\"')\n {\n i++;\n }\n i++;\n while (p_content.charAt(i) != '\"')\n {\n attributeValue.append(p_content.charAt(i));\n i++;\n }\n i++;\n }\n\n attributes.put(attributeName.toString(),\n attributeValue.toString());\n\n attributeName.setLength(0);\n attributeValue.setLength(0);\n }\n catch (IndexOutOfBoundsException e)\n {\n // tough luck the TMX wasn't as well written as we thought...\n // CvdL: TODO: throw an exception!!\n }\n }\n\n if (bEndTag)\n {\n m_handler.processEndTag(tagName.substring(1),\n \"<\" + p_content + \">\");\n }\n else\n {\n m_handler.processTag(tagName.toString(), attributes,\n \"<\" + p_content + \">\");\n }\n }", "public ParseXML() throws XmlPullParserException, IOException\n {\n\t input =\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><Balls version=1.0><ball><name>900 Global Hook! Black </name><brand>900 Global</brand><release_date>05/15/2012</release_date><radius_of_gyration>2.551</radius_of_gyration><differential>0.046</differential><mass_biass_diff>n/a</mass_biass_diff><lane_condition>Medium</lane_condition><finish>Polished</finish><coverstock>Reactive Resin</coverstock><coverstock_name>S43 Pearl Reactive</coverstock_name><factory_finish>n/a</factory_finish><core_type>Symmetric</core_type><core_name>n/a</core_name></ball><ball><name>900 Global Hook! Hybrid</name><brand>900 Global</brand><release_date>05/15/2012</release_date><radius_of_gyration>2.551</radius_of_gyration><differential>0.046</differential><mass_biass_diff>n/a</mass_biass_diff><lane_condition>Medium</lane_condition><finish>Polished</finish><coverstock>Hybrid Reactive</coverstock><coverstock_name>S43 Hybrid Reactive</coverstock_name><factory_finish>n/a</factory_finish><core_type>Symmetric</core_type><core_name>Symmetric (10# has a pancake core)</core_name></ball>\"; \n\t parse();\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "List<LoggingEvent> parse(String xml) throws ParseException;", "public void importElement(XmlPullParser xpp, Epml epml) {\n\t\tlineNumber = xpp.getLineNumber();\n\t\t/*\n\t\t * Import all attributes of this element.\n\t\t */\n\t\timportAttributes(xpp, epml);\n\t\t/*\n\t\t * Create afresh stack to keep track of start tags to match.\n\t\t */\n\t\tArrayList<String> stack = new ArrayList<String>();\n\t\t/*\n\t\t * Add the current tag to this stack, as we still have to find the\n\t\t * matching end tag.\n\t\t */\n\t\tstack.add(tag);\n\t\t/*\n\t\t * As long as the stack is not empty, we're still working on this\n\t\t * object.\n\t\t */\n\t\twhile (!stack.isEmpty()) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t * Get next event.\n\t\t\t\t */\n\t\t\t\tint eventType = xpp.next();\n\t\t\t\tif (eventType == XmlPullParser.END_DOCUMENT) {\n\t\t\t\t\t/*\n\t\t\t\t\t * End of document. Should not happen.\n\t\t\t\t\t */\n\t\t\t\t\tepml.log(tag, xpp.getLineNumber(), \"Found end of document\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (eventType == XmlPullParser.START_TAG) {\n\t\t\t\t\t//System.out.println(xpp.getLineNumber() + \" <\" + xpp.getName() + \">\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Start tag. Push it on the stack.\n\t\t\t\t\t */\n\t\t\t\t\tstack.add(xpp.getName());\n\t\t\t\t\t/*\n\t\t\t\t\t * If this tag is the second on the stack, then it is a\n\t\t\t\t\t * direct child.\n\t\t\t\t\t */\n\t\t\t\t\tif (stack.size() == 2) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * For a direct child, check whether the tag is known.\n\t\t\t\t\t\t * If so, take proper action. Note that this needs not\n\t\t\t\t\t\t * to be done for other offspring.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (importElements(xpp, epml)) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Known start tag. The end tag has been matched and\n\t\t\t\t\t\t\t * can be popped from the stack.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tstack.remove(stack.size() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ((eventType == XmlPullParser.END_TAG)) {\n\t\t\t\t\t//System.out.println(xpp.getLineNumber() + \" </\" + xpp.getName() + \">\");\n\t\t\t\t\t/*\n\t\t\t\t\t * End tag. Should be identical to top of the stack.\n\t\t\t\t\t */\n\t\t\t\t\tif (xpp.getName().equals(stack.get(stack.size() - 1))) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Yes it is. Pop the stack.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tstack.remove(stack.size() - 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * No it is not. XML violation.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tepml.log(tag, xpp.getLineNumber(), \"Found \" + xpp.getName() + \", expected \"\n\t\t\t\t\t\t\t\t+ stack.get(stack.size() - 1));\n\t\t\t\t\t}\n\t\t\t\t} else if (eventType == XmlPullParser.TEXT) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Plain text. Import it.\n\t\t\t\t\t */\n\t\t\t\t\timportText(xpp.getText(), epml);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tepml.log(tag, xpp.getLineNumber(), ex.getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * The element has been imported. Now is a good time to check its\n\t\t * validity.\n\t\t */\n\t\tcheckValidity(epml);\n\t}", "public interface Parser<T> {\n T parse(String source) throws JAXBException;\n\n\n List<String> groupContent(String content);\n\n}", "private String parseXML(String is) throws\n XmlPullParserException, IOException, URISyntaxException {\n\n // xml classes used to read xml file\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n XmlPullParser parser = factory.newPullParser();\n\n // Set xml string to input\n parser.setInput(new StringReader(is));\n\n // Start and end tags and end document\n int eventType = parser.getEventType();\n\n // current tag\n String currentTag;\n\n // current value of tag/element\n String currentElement;\n\n int counter = 0;\n StringBuilder sb = new StringBuilder();\n\n // parse the entire xml file until done\n while (eventType != XmlPullParser.END_DOCUMENT) {\n // look for start tags\n if (eventType == XmlPullParser.START_TAG) {\n // get the name of the start tag\n currentTag = parser.getName();\n\n if (currentTag.equals(\"step\")) {\n sb.append(\"Step \" + ++counter + \":\\n\");\n sb.append(\"-----------------------------------------\\n\");\n }\n // Driving directions\n else if (currentTag.equals(\"html_instructions\")) {\n currentElement = parser.nextText();\n\n // Replace html bold tags\n currentElement = currentElement.replace(\"<b>\", \"\");\n currentElement = currentElement.replace(\"</b>\", \"\");\n\n // Get rid of div tags\n String s;\n while (currentElement.contains(\"<\")) {\n if (currentElement.indexOf(\">\") == currentElement.lastIndexOf(\">\")){\n s = \"\";\n } else {\n s = \" \";\n }\n currentElement = currentElement.replace(currentElement.substring(currentElement.indexOf(\"<\"),\n currentElement.indexOf(\">\") + 1), s);\n }\n\n // Append html parsed string to directions string\n currentElement += \".\\n\\n\";\n sb.append(currentElement);\n }\n }\n\n // If the end of the string is reached\n else if (eventType == XmlPullParser.END_TAG) {\n currentTag = parser.getName();\n\n if (currentTag.equals(\"DirectionsResponse\")) {\n\n // return displayable string\n sb.append(\"------------------------------------\\n\\n\");\n return sb.toString();\n }\n }\n\n // get next tag\n eventType = parser.next();\n }\n\n // return null if something went wrong\n return null;\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tSystem.out.println(arg2+\"解析开始\");\n\t}", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "private void parseData(String dataToParse)\n {\n try\n {\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n XmlPullParser xpp = factory.newPullParser();\n xpp.setInput( new StringReader( dataToParse ) );\n int eventType = xpp.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT)\n {\n\n // Found a start tag\n if(eventType == XmlPullParser.START_TAG)\n {\n //Check for which tag we have\n if (xpp.getName().equalsIgnoreCase(\"geonameId\"))\n {\n //focuses parser on the <geometry> tags\n String temp = xpp.nextText();\n Log.e(\"Geocode\", \"geocode is \" + temp);\n geoname = Integer.parseInt(temp);\n }\n }\n else if (eventType == XmlPullParser.END_TAG)\n {\n if(xpp.getName().equalsIgnoreCase(\"geonameId\")) {\n Log.e(\"Parsing geoname\", \"parse finished\");//finished\n\n }\n }\n\n\n // Get the next event\n eventType = xpp.next();\n\n } // End of while\n }\n catch (XmlPullParserException ae1)\n {\n Log.e(\"MyTag\",\"Parsing error\" + ae1.toString());\n }\n catch (IOException ae1)\n {\n Log.e(\"MyTag\",\"IO error during parsing\");\n }\n\n Log.e(\"MyTag\",\"End document\");\n\n }", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }", "@Override\n\tpublic void parseXML(Element root) throws Exception {\n\t\t\n\t}", "protected void arglist (Tag tag) throws HTMLParseException {\r\n String key = null;\r\n\r\n //System.err.println (\"parsing arglist for tag: '\" + tag + \"'\");\r\n while (true) {\r\n //System.err.println (\"nextToken: \" + nextToken + \" => \" + getTokenString (nextToken));\r\n switch (nextToken) {\r\n case MT:\r\n tagmode = false;\r\n // ok, this is kinda ugly but safer this way\r\n if (tag.getLowerCaseType () != null &&\r\n (tag.getLowerCaseType ().equals (\"script\") ||\r\n tag.getLowerCaseType ().equals (\"style\"))) {\r\n Token text = scanCommentUntilEnd (tag.getLowerCaseType ());\r\n if (text != null) {\r\n setPendingComment (text);\r\n } else {\r\n tagmode = false;\r\n return;\r\n }\r\n } else {\r\n match (MT);\r\n }\r\n return;\r\n case STRING:\r\n key = stringValue;\r\n match (STRING);\r\n String value = value ();\r\n tag.addArg (key, value, false);\r\n break;\r\n case END:\r\n return;\r\n case DQSTRING:\r\n String ttype = tag.getType ();\r\n if (ttype != null && ttype.charAt (0) == '!') {\r\n // Handle <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n // and similar cases.\r\n tag.addArg (stringValue, null, false);\r\n match (nextToken);\r\n } else {\r\n //System.err.println (\"hmmm, strange arglist..: \" + tag);\r\n // this is probably due to something like:\r\n // ... framespacing=\"0\"\">\r\n // we backstep and change the second '\"' to a blank and restart from that point...\r\n index -= stringValue.length ();\r\n pagepart[index] = (byte)' ';\r\n match (nextToken);\r\n tag.getToken ().setChanged (true);\r\n }\r\n break;\r\n case LT: // I consider this an error (in the html of the page) but handle it anyway.\r\n String type = tag.getLowerCaseType ();\r\n if (type == null || // <<</font.... etc\r\n (type.equals (\"table\") && // <table.. width=100% <tr>\r\n stringValue == null)) {\r\n tagmode = false;\r\n return;\r\n }\r\n // fall through.\r\n default:\r\n // this is probably due to something like:\r\n // <img src=someimagead;ad=40;valu=560>\r\n // we will break at '=' and split the tag to something like:\r\n // <img src=someimagead;ad = 40;valu=560> if we change it.\r\n // the html is already broken so should we fix it? ignore for now..\r\n if (stringValue != null)\r\n tag.addArg (stringValue, null, false);\r\n match (nextToken);\r\n }\r\n }\r\n }", "private Object read() throws XMLParseException {\n\t\tswitch (_tokenizer.next()) {\n\t\tdefault: break;\n\t\tcase ERROR: throw new XMLParseException(_tokenizer.getCurrentText());\n\t\tcase TEXT: return _tokenizer.getCurrentText();\n\t\tcase OPEN:\n\t\t\tElement result = new Element(_tokenizer.getCurrentName());\n\t\t\twhile (_tokenizer.next() == XMLTokenType.ATTR) {\n\t\t\t\tif (result.setAttr(_tokenizer.getCurrentName(), _tokenizer.getCurrentText()) != null) {\n\t\t\t\t\tthrow new XMLParseException(\"duplicate attribute: \" + _tokenizer.getCurrentName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (_tokenizer.current() == XMLTokenType.ECLOSE) {\n\t\t\t\t// System.out.println(\"ended /> for \" + result.getName());\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (_tokenizer.current() != XMLTokenType.CLOSE) {\n\t\t\t\tthrow new XMLParseException(_tokenizer.getCurrentText());\n\t\t\t}\n\t\t\t_pending.push(result.getName());\n\t\t\twhile (_tokenizer.next() != XMLTokenType.ETAG) {\n\t\t\t\t/*if (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tthrow new XMLParseException(\"Unexpected end of file\");\n\t\t\t\t}*/\n\t\t\t\tif (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tif (isHTML) {\n\t\t\t\t\t\t_pending.pop();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new XMLParseException(\"Missing end tag for <\" + result.getName() + \">\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_tokenizer.saveToken();\n\t\t\t\tresult.addContent(read());\n\t\t\t}\n\t\t\t_pending.pop();\n\t\t\tif (!_tokenizer.getCurrentName().equals(result.getName())) {\n\t\t\t\tif (isHTML) {\n\t\t\t\t\t// System.out.println(\"HTML backup for \" + result.getName());\n\t\t\t\t\tfor (String p : _pending) {\n\t\t\t\t\t\tif (_tokenizer.getCurrentName().equals(p)) {\n\t\t\t\t\t\t\t_tokenizer.saveToken();\n\t\t\t\t\t\t\t//System.out.println(\"implicitly ended by </\" + p + \">\");\n\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new XMLParseException(\"<\" + result.getName() + \"> ended with </\" + _tokenizer.getCurrentName() + \">\");\n\t\t\t}\n\t\t\treturn result;\n\t\tcase END: throw new XMLParseException(\"no XML element\");\n\t\t}\n\t\t// NB: if execution reaches here, we did something wrong.\n\t\tthrow new XMLParseException(\"internal error: what kind of token is this? \" + _tokenizer);\n\t}", "public void parse(InputStream inputStream) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(inputStream);\n System.out.println(doc.getElementsByTagName(\"label\").item(0).getTextContent());\n System.out.println(doc.getElementsByTagName(\"username\").item(0).getTextContent());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static Map<String, String> extractXmlAttributes(String xml) {\r\n\r\n\t\tString[] lines = xml.split(\"\\n\");\r\n\t\tMap<String, String> output = new HashMap<>();\r\n\r\n\t\tfor(int x=0; x < lines.length; x++) {\r\n\t\t\tString thisLine = lines[x].trim();\r\n\t\t\tint startTagIndex = thisLine.indexOf(\"<\");\r\n\t\t\tint endTagIndex = thisLine.indexOf(\">\");\r\n\r\n\t\t\tif(startTagIndex == -1 || endTagIndex == -1) {\r\n\t\t\t\tcontinue; //no xml tag on this line\r\n\t\t\t}\r\n\r\n\t\t\tString tagName = thisLine.substring(startTagIndex+1, endTagIndex);\r\n\t\t\tint closeTagIndex = thisLine.indexOf(\"</\" + tagName + \">\");\r\n\r\n\t\t\tif(closeTagIndex == -1) {\r\n\t\t\t\tcontinue; //no closing tag on this line\r\n\t\t\t}\r\n\r\n\t\t\tString value = thisLine.substring(endTagIndex+1, closeTagIndex);\r\n\t\t\toutput.put(tagName, value);\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "private static String[] getTagValue(String sTag, Element eElement) \n\t{\n\t\t\n\t\tString[] returnStrings = new String[3];\n\t\tNodeList nList = eElement.getElementsByTagName(sTag);\n \n\t\tif (nList.getLength()>0)\n {\n \t//for every element containing the tag name we get their childs\n\t\t\tfor( int i = 0; i < nList.getLength(); i++)\n {\n \tNodeList auxList = nList.item(i).getChildNodes();\n //we get the value of every child and put it into the returning array. We suppose there is only one child\n\t\t\t\tif (auxList.getLength()>0)\n\t\t\t\t\tfor (int j = 0; j < auxList.getLength(); j++)\n \t\t\treturnStrings[i] = auxList.item(j).getNodeValue();\n }\n }\n\t\treturn returnStrings;\n\t}", "private void parsePrivate(String xmlString) throws XmlPullParserException,\n IOException\n {\n if (xmlString == null || xmlString.length() == 0)\n return;\n\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n // factory.setNamespaceAware(true);\n XmlPullParser xpp = factory.newPullParser();\n\n xpp.setInput(new StringReader(xmlString));\n int eventType = xpp.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT)\n {\n if (eventType == XmlPullParser.START_DOCUMENT)\n {\n Log.v(TAG, \"Start document\");\n }\n else if (eventType == XmlPullParser.START_TAG)\n {\n String name = xpp.getName();\n //Log.v(TAG, \"Start tag: \" + name);\n if (name.equalsIgnoreCase(TEMPERATURE))\n {\n String attrValue = readAttributeValue(xpp, \"type\",\n INVALID);\n if (attrValue.equalsIgnoreCase(MAXIMUM))\n readMaxTemperatureValues(xpp);\n else if (attrValue.equalsIgnoreCase(MINIMUM))\n readMinTemperatureValues(xpp);\n }\n else if (name.equalsIgnoreCase(WEATHER))\n {\n readWeatherConditions(xpp);\n }\n else if (name.equalsIgnoreCase(CONDITIONS_ICON))\n {\n readIconLinks(xpp);\n }\n }\n eventType = xpp.next();\n }\n }", "Map<String, String> Read_File(XmlPullParser xmlPullParser, List<Tags_To_Read> tags, String account_Name) throws NullPointerException, XML_Reader_Exception;", "protected void parseRootElement() {\n\n // This is the Activiti method body for parsing through the XML object model\n // The Joda Engine needs less information than Activiti. That's why some methods are commented out.\n parseProcessDefinitions();\n }", "public void parseResultXML (String res) {\n\n try {\n \t DOMParser dparser = new DOMParser ();\n\n // Construct an InputSource from the XML String we're given.\n\t // Xerces is usually used to handling file objects so we need\n\t // to hack a bit here ....\n dparser.parse (new InputSource (\n\t\t\t new ByteArrayInputStream ( res.getBytes() ) ));\n\n walk ( dparser.getDocument () );\n\n } catch (Exception e) { System.out.println(\"Errors \" + e); }\n }", "@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }", "private static String readText(XmlPullParser parser) throws IOException, XmlPullParserException {\n String result = \"\";\n if (parser.next() == XmlPullParser.TEXT) {\n result = parser.getText();\n parser.nextTag();\n }\n return result;\n }", "private static void handleParser(char c) {\n if(c == '\\n'){\r\n return;\r\n }\r\n switch (state){\r\n case OUT_OF_TAG:{\r\n if(c == '<'){\r\n if(SAXParsedData.innerText.trim().length() != 0) {\r\n parserHandler.innerText(SAXParsedData.innerText);\r\n }\r\n SAXParsedData.innerText = \"\";\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n } else if (c == '>') {\r\n state = SAXParserState.SYNTAX_ERROR;\r\n } else {\r\n SAXParsedData.innerText += c;\r\n }\r\n break;\r\n }\r\n case BEGIN_START_OR_END_TAG:{\r\n if(c == '/') {\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.IN_END_TAG;\r\n }else if(c == '?' || c == '!'){\r\n state = SAXParserState.METADATA;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n state = SAXParserState.IN_START_TAG;\r\n }\r\n break;\r\n }\r\n case IN_START_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.SPACE_IN_START_TAG;\r\n }else if(c == '>'){\r\n // callback startElement event;\r\n parserHandler.startElement(SAXParsedData.tagName, SAXParsedData.attributes);\r\n SAXParsedData.clear();\r\n state = SAXParserState.CLOSE_START_TAG;\r\n }else {\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case SPACE_IN_START_TAG:{\r\n if(SAXParsedData.tagName.length() > 0){\r\n if(c != ' '){\r\n SAXParsedData.attribKey += c;\r\n state = SAXParserState.IN_ATTRIB_KEY;\r\n }\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_KEY:{\r\n if(c == '='){\r\n state = SAXParserState.IN_ATTRIB_EQUAL;\r\n }else{\r\n SAXParsedData.attribKey += c;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_EQUAL:{\r\n if(c == '\"'){\r\n state = SAXParserState.IN_ATTRIB_VALUE;\r\n }\r\n break;\r\n }\r\n case IN_ATTRIB_VALUE:{\r\n if(c == '\"'){\r\n SAXParsedData.newAttribute();\r\n state = SAXParserState.IN_START_TAG;\r\n }else{\r\n SAXParsedData.attribValue += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_START_TAG:{\r\n if(c == '<') {\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }else{\r\n SAXParsedData.innerText += c;\r\n state = SAXParserState.OUT_OF_TAG;\r\n }\r\n break;\r\n }\r\n case IN_END_TAG:{\r\n if(c == '>'){\r\n // callback endElement event\r\n parserHandler.endElement(SAXParsedData.tagName);\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }else{\r\n SAXParsedData.tagName += c;\r\n }\r\n break;\r\n }\r\n case CLOSE_END_TAG:{\r\n if(c == ' '){\r\n state = SAXParserState.OUT_OF_TAG;\r\n }else if(c == '<'){\r\n SAXParsedData.tagName = \"\";\r\n state = SAXParserState.BEGIN_START_OR_END_TAG;\r\n }\r\n break;\r\n }\r\n case METADATA:{\r\n if(c == '>'){\r\n state = SAXParserState.CLOSE_END_TAG;\r\n }\r\n break;\r\n }\r\n case SYNTAX_ERROR:{\r\n try {\r\n\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }\r\n }\r\n\r\n }", "void parse();", "private static String readText(XmlPullParser parser) throws IOException, XmlPullParserException {\r\n String result = \"\";\r\n if (parser.next() == XmlPullParser.TEXT) {\r\n result = parser.getText();\r\n parser.nextTag();\r\n }\r\n return result;\r\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "@Before\n\tpublic void initParser() {\n\t\tXMLTagParser.init(file);\n\t}", "public void parse() throws ParserConfigurationException, SAXException,\n\t\t\tIOException, XMLStreamException {\n\n\t\tGem gem = new Gem();\n\t\tVisualParameters params = new VisualParameters();\n\n\t\t// current element name holder\n\t\tString currentElement = null;\n\n\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n\n\t\tfactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, true);\n\n\t\tXMLEventReader reader = factory.createXMLEventReader(new StreamSource(\n\t\t\t\txmlFileName));\n\n\t\twhile (reader.hasNext()) {\n\t\t\tXMLEvent event = reader.nextEvent();\n\n\t\t\t// skip any empty content\n\t\t\tif (event.isCharacters() && event.asCharacters().isWhiteSpace()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// handler for start tags\n\t\t\tif (event.isStartElement()) {\n\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\tcurrentElement = startElement.getName().getLocalPart();\n\n\t\t\t\tif (XML.FOND.equalsTo(currentElement)) {\n\t\t\t\t\tfond = new Fond();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.GEM.equalsTo(currentElement)) {\n\t\t\t\t\tgem = new Gem();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.VISUAL_PARAMETRS.equalsTo(currentElement)) {\n\t\t\t\t\tparams = new VisualParameters();\n\t\t\t\t\tAttribute attribute = startElement\n\t\t\t\t\t\t\t.getAttributeByName(new QName(XML.VALUE_COLOR\n\t\t\t\t\t\t\t\t\t.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setValueColor(EnumColors.fromValue(attribute\n\t\t\t\t\t\t\t\t.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tattribute = startElement.getAttributeByName(new QName(\n\t\t\t\t\t\t\tXML.TRANSPARENCY.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setTransparency(Integer.valueOf(attribute\n\t\t\t\t\t\t\t\t.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tattribute = startElement.getAttributeByName(new QName(\n\t\t\t\t\t\t\tXML.FACETING.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setFaceting(Integer.valueOf(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// handler for contents\n\t\t\tif (event.isCharacters()) {\n\t\t\t\tCharacters characters = event.asCharacters();\n\n\t\t\t\tif (XML.NAME.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setName(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.PRECIOUSNESS.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setPreciousness(Boolean.valueOf(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.ORIGIN.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setOrigin(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.VALUE.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setValue(Double.valueOf(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// handler for end tags\n\t\t\tif (event.isEndElement()) {\n\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\tString localName = endElement.getName().getLocalPart();\n\n\t\t\t\tif (XML.GEM.equalsTo(localName)) {\n\t\t\t\t\tfond.getGem().add(gem);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.VISUAL_PARAMETRS.equalsTo(localName)) {\n\t\t\t\t\t// just add answer to container\n\t\t\t\t\tgem.setVisualParameters(params);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}", "public void mo1779d(XmlPullParser xmlPullParser) {\n }", "public interface XMLParser {\n\n String parse();\n}", "public void parse() throws XMLStreamException {\n\t\tInputStream dictStream = ClassLoader.getSystemResourceAsStream(fixFileName);\n\t\tXMLStreamReader reader = factory.createXMLStreamReader(dictStream);\n\t\tString curFieldName = \"\";\n\t\twhile (reader.hasNext()) {\n\t\t\tint event = reader.next();\n\t\t\tswitch (event) {\n\t\t\tcase XMLStreamConstants.START_ELEMENT:\n\t\t\t\tString elementName = reader.getLocalName();\n\t\t\t\telementNames.add(elementName);\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"field\".equals(elementName) && isFieldsElement) {\n\t\t\t\t\tString num = reader.getAttributeValue(null, \"number\");\n\t\t\t\t\tcurFieldName = reader.getAttributeValue(null, \"name\");\n\t\t\t\t\tFieldParser.logger.info(num + \", \" + curFieldName);\n\t\t\t\t\t// Integer tagNumber = Integer.parseInt(num);\n\t\t\t\t\ttagNameToNumber.put(curFieldName, num);\n\t\t\t\t\ttagNumberToName.put(num, curFieldName);\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tif (tagValueToTagValueDesc == null) {\n\t\t\t\t\t\ttagValueToTagValueDesc = new ConcurrentHashMap<>();\n\t\t\t\t\t\ttagNameToTagValueDesc.put(curFieldName, tagValueToTagValueDesc);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"value\".equals(elementName) && !\"\".equals(curFieldName)) {\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tString enumNum = reader.getAttributeValue(null, \"enum\");\n\t\t\t\t\tString enumDesc = reader.getAttributeValue(null, \"description\");\n\t\t\t\t\ttagValueToTagValueDesc.put(enumNum, enumDesc);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase XMLStreamConstants.END_ELEMENT:\n\t\t\t\telementName = reader.getLocalName();\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = false;\n\t\t\t\t\tcurFieldName = \"\";\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}", "public static void tagBegin(ArrayList<tok> pHolder, ArrayList<tok> xmlList){\n\t\t\r\n\t\tif(pHolder.get(index).getType() == Token_Type.TOK_ID){\r\n\t\t\t\r\n\t\t\t// <-------------------------------------------------------\r\n\t\t\t// xmlList.add(new tok(pHolder.get(index).getTerm(),\"\"));\r\n\t\t\t\r\n\t\t\ttagnameArray[tagIndex] = pHolder.get(index).getTerm();\r\n\t\t\t\r\n\t\t\t// <-------------------------------------------------------\r\n\t\t\tindex++;\r\n\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_COMMA){\r\n\t\t\t\tindex++;\r\n\t\t\t\tattributes(pHolder, xmlList);\r\n\r\n\t\t\t\t\tif(pHolder.get(index).getType() == Token_Type.TOK_GTHAN){\r\n\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// decrement tagnameArray\r\n\t\t\t\t\t\ttagIndex--;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{noError = false;}\r\n\t\t\t}\r\n\t\t\telse{noError = false;}\r\n\t\t}\r\n\t\telse{noError = false;}\r\n\t}", "private static void parse_xml() {\n\t\tUiHierarchyXmlLoader loader = new UiHierarchyXmlLoader();\n\t\tBasicTreeNode btn = loader.parseXml(\"/home/haos/haos.xml\");\n\n\t\tUtil.log(btn.getChildrenList());\n\t\tUtil.log(dump_node(btn, 0));\n\n\t\tfor (BasicTreeNode child : btn.getChildren()) {\n\t\t\tif (child instanceof UiNode) {\n\t\t\t\tsearch_for_clickables((UiNode) child);\n\t\t\t} else {\n\t\t\t\tUtil.err(child + \" is NOT UiNode\");\n\t\t\t}\n\t\t}\n\n\t\tList<Rectangle> nafs = loader.getNafNodes();\n\t\tUtil.log(nafs);\n\t}", "public static HelloAuthenticatedWithEntitlements parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlements object =\n new HelloAuthenticatedWithEntitlements();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlements\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlements)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private void readAndApplyTags(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n\t\tprefEdit.putString(\"name\", profileName);\n\n\t\tparser.require(XmlPullParser.START_TAG, null, \"resources\");\n\n\t\twhile (parser.next() != XmlPullParser.END_TAG) {\n\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString name = parser.getName();\n\n switch (name) {\n case \"lockscreen\":\n setLockscreen(parser);\n break;\n case \"wifi\":\n setWifi(parser);\n break;\n case \"mobile_data\":\n setMobileData(parser);\n break;\n case \"bluetooth\":\n setBluetooth(parser);\n break;\n case \"display\":\n setDisplay(parser);\n break;\n case \"ringer_mode\":\n setRingerMode(parser);\n break;\n default:\n Log.i(\"XmlParser\", \"Skip!\");\n parser.nextTag();\n break;\n }\n\t\t\tprefEdit.commit();\n\t\t}\n\t}", "static boolean XmlOpeningTagPart(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlOpeningTagPart\")) return false;\n if (!nextTokenIs(b, XMLSTARTTAGSTART)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, XMLSTARTTAGSTART);\n p = r; // pin = 1\n r = r && report_error_(b, XmlTagName(b, l + 1));\n r = p && report_error_(b, XmlOpeningTagPart_2(b, l + 1)) && r;\n r = p && report_error_(b, XmlOpeningTagPart_3(b, l + 1)) && r;\n r = p && report_error_(b, XmlOpeningTagPart_4(b, l + 1)) && r;\n r = p && consumeToken(b, XMLTAGEND) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "private static List<String> getShipPostalValues(String xmlStr) {\n\t\t final List<String> tagValues = new ArrayList<String>();\r\n\t\t final Matcher matcher = TAG_REGEX.matcher(xmlStr);\r\n\t\t \r\n\t\t while (matcher.find()) {\r\n\t\t tagValues.add(matcher.group(1));\r\n\t\t }\r\n\t\t\r\n\t\treturn tagValues;\r\n\t}", "private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }", "private void handleAllStartTags(Tag tagReturnedFromParse, MutableAttributeSet attributeSetReturnedFromParse, int pos) {\n\tif (StepsToFollow == null) {\n\t initializeStepsToFollow();\n\t}\n\tStepsToFollow.processNextStep();\n\ttry {\n\t if (StepsToFollow.tagToFind == null) {\n\t\tthis.strImageDate = StepsToFollow.getStrImageDate();\n\t\tthis.strImageUrl = StepsToFollow.getStrImageUrl();\n//\t\tthis.ldImageDate = StepsToFollow.getLdImageDate();\n\t\tthis.setStrImageWebPageUrlForPreviousDay(StepsToFollow.getStrPrevWebPageUrl());\n\t } else {\n\t\tif (StepsToFollow.tagToFind.equals(tagReturnedFromParse)) {\n\t\t if (MyTestStepToCheck != StepsToFollow.intNextStepToCheck) {\n\t\t\tString strTagToFind = StepsToFollow.tagToFind.toString();\n\t\t\tMyTestResults += strTagToFind + \"|\";\n\t\t\tMyTestStepToCheck = StepsToFollow.intNextStepToCheck;\n\t\t }\n\t\t MyResults = objProcessStartTags.processThisTag(tagReturnedFromParse, attributeSetReturnedFromParse, StepsToFollow.tagToFind, StepsToFollow.attributeToFind, StepsToFollow.strValueToFind, StepsToFollow.intLengthOfValueToFind, StepsToFollow.attributeToGetValueFrom);\n\t\t StepsToFollow.checkReturnValues(MyResults);\n\t\t}\n\t }\n\t} catch (Exception e) {\n\t // TODO Auto-generated catch block\n\t // e.printStackTrace();\n\t String myMsg = \"Error:\";\n\t myMsg += NL + \"ArcamaxWebPageHtmlParser\";\n//\t myMsg += NL + \"imageName: \" + this.strImageName;\n\t myMsg += NL + \"Tag returned: \" + tagReturnedFromParse;\n\t myMsg += NL + \"Tag to find: \" + StepsToFollow.tagToFind;\n\t myMsg += NL + \"Next step to check: \" + StepsToFollow.intNextStepToCheck;\n\t System.out.println(myMsg);\n\t}\n\n }", "private boolean isComplete() {\n if (this.content.charAt(0) != '<' || this.content.charAt(this.content.length() - 1) != '>') {\n throw new IllegalArgumentException(\"Invalid XML file.\");\n }\n Stack<String> xmlTags = new Stack<>();\n for (int i = 0; i < this.content.length();) {\n String currTag = \"\";\n int j = 0;\n for (j = 0; i + j < this.content.length(); ++j) {\n if (this.content.charAt(i + j) == '>') {\n currTag = this.content.substring(i, i + j + 1);\n break;\n }\n }\n String word = \"\";\n if (currTag.charAt(1) == '/') {\n word = currTag.substring(2, currTag.length() - 1);\n if (!word.equals(xmlTags.peek())) {\n throw new IllegalArgumentException(\"Invalid end tag: should be \"\n + xmlTags.peek() + \", but got \" + word);\n }\n xmlTags.pop();\n if (xmlTags.size() == 0 && i + word.length() + 3 < this.content.length() - 1) {\n throw new IllegalArgumentException(\"Content after root tag.\");\n }\n this.result.add(\"end:\" + word);\n }\n else {\n word = currTag.substring(1, currTag.length() - 1);\n if (checkTag(word)) {\n xmlTags.push(word);\n this.result.add(\"start:\" + word);\n }\n else {\n throw new IllegalArgumentException(\"Invalid tag.\");\n }\n }\n i = i + j + 1;\n for (j = i; j < this.content.length(); ++j) {\n if (this.content.charAt(j) == '<') {\n break;\n }\n }\n word = \"\";\n if (i != j) {\n word = this.content.substring(i, j);\n }\n if (word.length() > 0) {\n this.result.add(\"char:\" + word);\n }\n i = j;\n }\n return xmlTags.empty();\n }", "protected void computeTagNameProposals() {\n \t\t// completing the *first* tag in \"<tagname1 |<tagname2\"\n \t\t\n \t\t// Ignore attributes\n \t\tif (inAttributeRegion()) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\taddTagNameProposals(this.getElementPosition(node));\n \t\t// addEndTagNameProposals();\n \n \t}", "public void startElement(String uri, String localName, String qName,Attributes attributes) throws SAXException \n\t{\t\n\t\tif(qName.equals(ReqifTags.TAG_SPEC_OBJECT))\n\t\t{\n\t\t\tif(attributes.getValue(ReqifTags.TAG_IDENTIFIER)!=null && attributes.getValue(ReqifTags.TAG_DESC)!=null)\n\t\t\t{\n\t\t\t\tString s=attributes.getValue(ReqifTags.TAG_DESC);\n\t\t\t\tchar[] test=s.toCharArray();\n\t\t\t\tfor(int i=0;i<test.length;i++)\n\t\t\t\t{\n\t\t\t\t\tif(test[i]=='&' || test[i]=='' || test[i]=='‘' || test[i]== '’' || test[i]=='“' || test[i]=='”')\n\t\t\t\t\t\ttest[i]=' ';\n\n\t\t\t\t}\n\t\t\t\ts=new String(test);\n\t\t\t\tdict.put(attributes.getValue(ReqifTags.TAG_IDENTIFIER),s);\n\t\t\t}\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_REQ_IF))\n\t\t{\n\t\t\tParsedReqifElement u=new ParsedReqifElement(\"Root\",\"Root\");\n\t\t\troot=new DefaultMutableTreeNode(u);\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPECIFICATION))\n\t\t{\t\n\t\t\tParsedReqifElement u=new ParsedReqifElement(attributes.getValue(ReqifTags.TAG_DESC),dict.get(attributes.getValue(ReqifTags.TAG_DESC)));\n\t\t\ttemp=new DefaultMutableTreeNode(u);\n\t\t\troot.add(temp);\n\t\t\ttop1=temp;\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPEC_HIERARCHY))\n\t\t{\n\t\t\tbuf=new StringBuffer();\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SOURCE))\n\t\t{\n\t\t\t//System.out.println(\"source\");\n\t\t\tisSource = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_TARGET))\n\t\t{\n\t\t\t//System.out.println(\"target\");\n\t\t\tisTarget = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t}", "public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\n\t\t// On débute une balise dont on veut le contenu textuel\n\t\tif (qName.equalsIgnoreCase(mXmlTagContainingText)) {\n\t\t\tinsideTextTag = true;\n\t\t}\n\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor +1; indent++) {System.out.print (\"--\");}\n\t\t\tSystem.out.print (\"Debug: startElement >\"+qName+\"< \");\n\t\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );}\n\t\t\tSystem.out.println ();\n\t\t}\n\n\t\t// So far, I do not why but accessing here to the attributes values \n\t\t// prevent the case that further in the createAnnotation method, \n\t\t// you obtain a substring of attributes.toString which does not correspond to an attribute value \n\t\t// someway the current solution acts as a clone...\n\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {\n\t\t\tattributes.getValue(indent);\n\t\t\t//if (attributes.getValue(indent).startsWith(\"mph=\\\"\"))\t\t{ \n\t\t\t//\tSystem.out.println (\"Debug: startElement >\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t\t//}\n\t\t\t//System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t}\n\n\t\t// on stocke des informations concernant l'élément XML courant en l'empilant\n\t\t// le problème est que l'on n'a pas accès au begin et end offset d'une balise en même temps \n\t\t// et qu'il faut garder une trace des begins des balises ouvertes lorsque l'on rencontre leur end \n\t\t//if ( attributes.getLength() == 0) attributes = null;\n\t\tXMLElement xE = new XMLElement(uri, localName, qName, attributes);\n\t\telementOffsetStack.add(xE);\n\n\t\telementOffsetStackCursor++;\n\t\tcurrentOpenElementWithTheBeginToSet++;\n\n\t\t// debug\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor ; indent++) {System.out.print (\"--\");}\n\t\t\t//System.out.println (\"Debug: startElement empile uri>\" +uri+\"< localName>\"+localName+\"< qName>\"+qName+\"< arrayListIndex>\"+arrayListIndex+\" curentOpenTagToAnnotate>\"+curentOpenTagToAnnotate+\"<\");\n\t\t\tSystem.out.println (\"Debug: startElement tag>\"+qName+\"< que l'on empile ; il y a >\"+\n\t\t\telementOffsetStackCursor+\"< éléments dans la pile ; il y a >\"+\n\t\t\t\t\tcurrentOpenElementWithTheBeginToSet+\"< balise en attente dont le begin est définir\");\n\n\t\t}\n\t}", "public static String splitTagContents(String source, String tagName, String splitRegex) {\n\t\tString regexBody = String.format(\"<(?<tagDefinition>%s[^<>]*)>[^<>]+((?<delimiter>%s)[^<>]+)+</%1$s>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttagName, splitRegex);\n\t\tregexBody = Strings.getValidPatternOrFailAnyMatch(regexBody);\n\t\tif (!source.matches(String.format(\".*%s.*\",regexBody))) return source;\n\t\tString result = source;\n\t\tMatcher matcher = Pattern.compile(String.format(\"(?<tagToSplit>%s)\",regexBody)).matcher(source);\n\t\twhile (matcher.find()) {\n\t\t\tString sourceTag = matcher.group(\"tagToSplit\");\n\t\t\tString sourceTagDefinition = matcher.group(\"tagDefinition\");\n\t\t\tString splitDelimiter = matcher.group(\"delimiter\");\n\t\t\tString taggedDelimiter = String.format(\"</%s>%s<%s>\", tagName, splitDelimiter, sourceTagDefinition);\n\t\t\tresult = result.replace(sourceTag, sourceTag.replaceAll(splitDelimiter, taggedDelimiter));\n\t\t}\n\t\treturn result;\n\t}", "void complexElementParticle(GroupSG pGroup, ParticleSG particle) throws SAXException;", "public void flatten () {\n String tags2 = tags.toString();\n tags.delete (0, tags.length());\n int e2 = 0;\n int s2 = indexOfNextWordStart (tags2, e2, slashToSeparate);\n while (s2 < tags2.length()) {\n e2 = indexOfNextSeparator (tags2, s2, true, true, slashToSeparate);\n merge (tags2.substring (s2, e2));\n s2 = indexOfNextWordStart (tags2, e2, slashToSeparate);\n }\n }", "private String readText(XmlPullParser parser) throws IOException, XmlPullParserException {\n String result = \"\";\n if (parser.next() == XmlPullParser.TEXT) {\n result = parser.getText();\n parser.nextTag();\n }\n return result;\n }", "private String readText(XmlPullParser parser) throws IOException, XmlPullParserException {\n String result = \"\";\n if (parser.next() == XmlPullParser.TEXT) {\n result = parser.getText();\n parser.nextTag();\n }\n return result;\n }", "private void parseXML(String rawXML){\n Log.w(\"AndroidParseXMLActivity\", \"Start Parsing\");\n SAXParserFactory factory = SAXParserFactory.newInstance();\n try {\n\n //Use the sax parser to parse the raw XML.\n SAXParser saxParser = factory.newSAXParser();\n XMLReader xmlreader = saxParser.getXMLReader();\n\n //Use the handler to parse the XML to text\n PaintingXMLHandler handler = new PaintingXMLHandler();\n xmlreader.setContentHandler(handler);\n\n //Objects to read the stream.\n InputSource inStream = new InputSource();\n inStream.setCharacterStream(new StringReader(rawXML));\n\n //Parse the input stream\n xmlreader.parse(inStream);\n\n //Get the map markers from the handler.\n if (handler.getPaintLines() != null) {\n touchArea.loadPainting(handler.getPaintLines());\n }\n setBackgroundColor(handler.getBackground());\n\n\n Toast.makeText(this, \"Loaded\", Toast.LENGTH_LONG).show();\n } catch (ParserConfigurationException e) {\n Toast.makeText(this, \"Error 1 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (SAXException e) {\n Toast.makeText(this, \"Error 2 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }catch(IOException e){\n Toast.makeText(this, \"Error 3 reading xml file.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }", "public void parse(InputStream in) throws XmlPullParserException, IOException {\n try {\n XmlPullParser parser = Xml.newPullParser();\n\n parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n parser.setInput(in, null);\n readFeed(parser);\n\n } finally {\n in.close();\n }\n }", "public void mo1778c(XmlPullParser xmlPullParser) {\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localGBInterval_fromTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_from\"));\n \n if (localGBInterval_from != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_from));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_from cannot be null!!\");\n }\n } if (localGBInterval_toTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_to\"));\n \n if (localGBInterval_to != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_to));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_to cannot be null!!\");\n }\n } if (localGBInterval_pointTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_point\"));\n \n if (localGBInterval_point != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_point));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_point cannot be null!!\");\n }\n } if (localGBInterval_iscompTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_iscomp\"));\n \n \n if (localGBInterval_iscomp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_iscomp cannot be null!!\");\n }\n elementList.add(localGBInterval_iscomp);\n } if (localGBInterval_interbpTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_interbp\"));\n \n \n if (localGBInterval_interbp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_interbp cannot be null!!\");\n }\n elementList.add(localGBInterval_interbp);\n }\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_accession\"));\n \n if (localGBInterval_accession != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_accession));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_accession cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public HTMLTag readTag ()\n\t\t\tthrows IOException, FileNotFoundException {\n\t\t\t\n\t\t// start building new tag\n\t\ttag = new HTMLTag ();\n\t\t\t\t\n\t\t// get any text preceding the tag itself\n\t\thtmlChar.setFieldType (HTMLContext.TEXT);\n\t\tgetNextField();\n\t\ttag.setPrecedingText (context.field.toString());\n\t\tif (htmlChar.character == '<') {\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// see if this is an ending tag\n\t\tif (htmlChar.character == '/') {\n\t\t\ttag.setEnding();\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// get the name of the tag\n\t\thtmlChar.setFieldType (HTMLContext.TAG_NAME);\n\t\tgetNextField();\n\t\ttag.setName (context.field.toString());\n\t\t\n\t\t// check to see if the tag is a comment\n\t\tif (tag.getName().equals (\"!--\")) {\n attribute = new HTMLAttribute (\"!==\");\n htmlChar.setFieldType (HTMLContext.COMMENT);\n getNextField();\n for (int i = 0; i < 2; i++) {\n if (context.field.length() > 0\n && context.field.charAt (context.field.length() - 1) == '-') {\n context.field.setLength (context.field.length() - 1);\n }\n }\n attribute.setValue (context.field.toString());\n\t\t\ttag.setAttribute (attribute);\n\t\t}\n else {\n\t\t\n // Collect and store all the attributes\n while (! htmlChar.endsTag) {\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_NAME);\n getNextCharacter();\n getNextField();\n if (context.field.length() > 0) {\n attribute = new HTMLAttribute (context.field.toString());\n if (htmlChar.character == '=') {\n getNextCharacter();\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_VALUE);\n getNextField();\n attribute.setValue (context.field.toString());\n }\n tag.setAttribute (attribute);\n }\n }\n }\n\n // evaluate block properties of tag\n if ((! tag.isEnding())\n && (tag.isBlockTag())) {\n context.lastOpenBlock = tag.getName();\n }\n else\n if (tag.isEnding()\n && tag.getName().equals (context.lastOpenBlock)) {\n context.lastOpenBlock = \"\";\n }\n \n // evaluate list properties of tag\n int listTagType = 0;\n if (tag.getName().equals (\"ol\")\n || tag.getName().equals (\"ul\")\n || tag.getName().equals (\"dl\")) {\n listTagType = 1;\n }\n else\n if (tag.getName().equals (\"li\")\n || tag.getName().equals (\"dt\")\n || tag.getName().equals (\"dd\")) {\n listTagType = 2;\n tag.setListItemStart (true);\n }\n \n tag.setListLevel (context.listLevel);\n tag.setListItemTag (context.listItemTag);\n if (context.listItemTag.length() > 0) {\n if (listTagType > 0) {\n context.listItemTag = \"\";\n tag.setListItemEnd (true);\n }\n }\n \n if (listTagType == 1) {\n context.defTermActive = false;\n if (tag.isEnding()) {\n if (context.listLevel > 0) {\n context.listLevel--;\n }\n }\n else {\n context.listLevel++;\n }\n }\n \n tag.setDefTermActive (context.defTermActive);\n \n if (listTagType == 2) {\n context.listItemTag = tag.getName();\n if (tag.getName().equals(\"dt\")) {\n context.defTermActive = true;\n }\n }\n \n // evaluate heading properties of tag\n if (tag.isHeadingTag()) {\n context.headingLevel = tag.getHeadingLevel();\n } else {\n tag.setHeadingLevel (context.headingLevel);\n }\n \n // Check for preformatting\n if (tag.getName().equals (\"pre\")) {\n context.preformatted = (! tag.isEnding());\n }\n \n // return results\n\t\tif (htmlChar.character == '>') {\t\t\t\n getNextCharacter();\n return tag;\n }\n else \n if (tag.getPrecedingText().length() > 0) {\n return tag;\n\t\t} \n else {\n\t\t\treturn null;\n\t\t}\n\t}", "java.lang.String getTagValue();", "@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tCurrentTag=arg2;\n\t\tSystem.out.println(\"此处处理的元素是:\"+arg2);\n\t}", "protected void parseElements(XmlElement processElement) {\n\n parseStartEvents(processElement);\n parseActivities(processElement);\n parseEndEvents(processElement);\n parseSequenceFlow(processElement);\n }", "private void parseTag(Node node, ContentValues values, String table, String id) {\n\n String name = \"\";\n String value = node.getTextContent();\n\n if (value == null) {\n value = \"\";\n }\n\n NamedNodeMap attributes = node.getAttributes();\n\n switch (node.getNodeName()) {\n\n /*\n * Parents\n */\n case \"context\":\n if (table.equals(Tasks.TABLE_NAME)) {\n name = Tasks.COLUMN_CONTEXT;\n Node attr = attributes.getNamedItem(\"idref\");\n if (attr != null) {\n value = attr.getTextContent();\n }\n break;\n }\n // else, fall through to adding a parent ID\n\n case \"folder\":\n case \"task\":\n name = DatabaseContract.Entries.COLUMN_PARENT_ID;\n Node attr = attributes.getNamedItem(\"idref\");\n if (attr != null) {\n value = attr.getTextContent();\n }\n break;\n\n /*\n * Base\n */\n case \"added\":\n name = Base.COLUMN_DATE_ADDED;\n break;\n\n case \"modified\":\n name = Base.COLUMN_DATE_MODIFIED;\n break;\n\n /*\n * Entry\n */\n case \"name\":\n name = DatabaseContract.Entries.COLUMN_NAME;\n\n if (table.equals(Attachments.TABLE_NAME)) {\n\n // Save file path as well\n\n File file = new File(androidContext.getFilesDir(), \"data/\" + id + \"/\" + value);\n if (file.exists()) {\n values.put(Attachments.COLUMN_PATH, file.getPath());\n }\n }\n\n break;\n\n case \"rank\":\n name = DatabaseContract.Entries.COLUMN_RANK;\n break;\n\n /*\n * Attachment\n */\n case \"preview-image\":\n name = Attachments.COLUMN_PNG_PREVIEW;\n break;\n\n /*\n * Context\n */\n case \"location\":\n\n Node locationNameAttr = attributes.getNamedItem(\"name\");\n Node altitudeAttr = attributes.getNamedItem(\"altitude\");\n Node latitudeAttr = attributes.getNamedItem(\"latitude\");\n Node longitudeAttr = attributes.getNamedItem(\"longitude\");\n Node radiusAttr = attributes.getNamedItem(\"radius\");\n\n String locationName = \"\", altitude = \"\", latitude = \"\", longitude = \"\", radius = \"\";\n\n if (locationNameAttr != null) {\n locationName = locationNameAttr.getTextContent();\n }\n\n if (altitudeAttr != null) {\n altitude = altitudeAttr.getTextContent();\n }\n\n if (latitudeAttr != null) {\n latitude = latitudeAttr.getTextContent();\n }\n\n if (longitudeAttr != null) {\n longitude = longitudeAttr.getTextContent();\n }\n\n if (radiusAttr != null) {\n radius = radiusAttr.getTextContent();\n }\n\n values.put(Contexts.COLUMN_LOCATION_NAME, locationName);\n values.put(Contexts.COLUMN_ALTITUDE, altitude);\n values.put(Contexts.COLUMN_LATITUDE, latitude);\n values.put(Contexts.COLUMN_LONGITUDE, longitude);\n values.put(Contexts.COLUMN_RADIUS, radius);\n break;\n\n case \"prohibits-next-action\":\n name = Contexts.COLUMN_ON_HOLD;\n value = value.equals(\"true\") ? \"1\" : \"0\";\n break;\n\n /*\n * Perspectives/Settings\n */\n case \"plist\":\n if (table.equals(Perspectives.TABLE_NAME)) {\n\n // Parse as perspective\n\n name = Perspectives.COLUMN_VALUE;\n\n try {\n byte[] tagBytes = stringOf(node).getBytes();\n\n NSDictionary plist =\n (NSDictionary) PropertyListParser.parse(tagBytes);\n NSDictionary viewState = (NSDictionary) plist.get(\"viewState\");\n NSDictionary viewModeState = (NSDictionary) viewState.get(\"viewModeState\");\n String viewMode =\n ((NSString) viewState.get(\"viewMode\")).getContent();\n NSDictionary data = (NSDictionary) viewModeState.get(viewMode);\n\n String perspectiveName = ((NSString) plist.get(\"name\")).getContent();\n String icon =\n ((NSString) plist.get(\"iconNameInBundle\")).getContent();\n String group = ((NSString) data.get(\"collation\")).getContent();\n String sort = ((NSString) data.get(\"sort\")).getContent();\n\n // These three fields could be null, so check for that\n\n NSString filterDurationData = ((NSString) data.get(\"actionDurationFilter\"));\n NSString filterFlaggedData = ((NSString) data.get(\"actionFlaggedFilter\"));\n NSString filterStatusData =\n ((NSString) data.get(\"actionCompletionFilter\"));\n\n if (filterDurationData != null) {\n String filterDuration = filterDurationData.getContent();\n values.put(Perspectives.COLUMN_FILTER_DURATION, filterDuration);\n }\n\n if (filterFlaggedData != null) {\n String filterFlagged = filterFlaggedData.getContent();\n values.put(Perspectives.COLUMN_FILTER_FLAGGED, filterFlagged);\n }\n\n if (filterStatusData != null) {\n String filterStatus = filterStatusData.getContent();\n values.put(Perspectives.COLUMN_FILTER_STATUS, filterStatus);\n }\n\n values.put(Perspectives.COLUMN_NAME, perspectiveName);\n values.put(Perspectives.COLUMN_ICON, icon);\n values.put(Perspectives.COLUMN_VIEW_MODE, viewMode);\n values.put(Perspectives.COLUMN_GROUP, group);\n values.put(Perspectives.COLUMN_SORT, sort);\n } catch (IOException | ParseException | SAXException | ParserConfigurationException e) {\n Log.e(TAG, \"Error parsing perspective\", e);\n } catch (PropertyListFormatException e) {\n Log.e(TAG, \"Plist is malformed\", e);\n }\n } else if (table.equals(Settings.TABLE_NAME)) {\n\n // Parse as setting\n // Note that all the other settings pretty much read in fine as strings\n\n name = Settings.COLUMN_VALUE;\n\n try {\n byte[] tagBytes = stringOf(node).getBytes();\n\n switch (id) {\n case \"cPIrzdPU37-\": // No idea\n case \"PerspectiveOrder_v2\": // Perspective order\n\n NSObject[] array = ((NSArray) PropertyListParser.parse(tagBytes)).getArray();\n value = \"\";\n\n for (int i = 0; i < array.length; i++) {\n\n // Get the value of the string from the NSObject\n value += ((NSString) array[i]).getContent();\n\n // Add a comma delimeter, unless this is the last in the array\n if (i < array.length - 1) {\n value += \",\";\n }\n }\n\n break;\n case \"DueSoonInterval\":\n\n // Convert the number of seconds into a Duration object\n // which we can use to get a proper ISO duration\n\n value = Duration.ofSeconds(Long.valueOf(value)).toString();\n }\n } catch (IOException | ParseException | SAXException | ParserConfigurationException e) {\n Log.e(TAG, \"Error parsing setting\", e);\n } catch (PropertyListFormatException e) {\n Log.e(TAG, \"Plist is malformed\", e);\n }\n }\n\n break;\n\n /*\n * Tasks\n */\n case \"order\":\n\n // The task type is a tricky one, because it can be either 'sequential',\n // 'parallel' or 'single action', but 'single action' is only applicable\n // to projects and comes from a different tag (see \"singleton\" below).\n // As the \"singleton\" tag will always come first, we can test to see if\n // we've already added the 'type' column, and only proceed if we haven't.\n\n if (!values.containsKey(Tasks.COLUMN_TYPE)) {\n name = Tasks.COLUMN_TYPE;\n }\n break;\n\n case \"completed-by-children\":\n name = Tasks.COLUMN_COMPLETE_WITH_CHILDREN;\n value = value.equals(\"true\") ? \"1\" : \"0\";\n break;\n\n case \"start\":\n name = Tasks.COLUMN_DATE_DEFER;\n break;\n\n case \"due\":\n name = Tasks.COLUMN_DATE_DUE;\n break;\n\n case \"completed\":\n name = Tasks.COLUMN_DATE_COMPLETED;\n break;\n\n case \"estimated-minutes\":\n name = Tasks.COLUMN_ESTIMATED_TIME;\n if (!value.isEmpty()) {\n value = Duration.ofMinutes(Long.valueOf(value)).toString();\n }\n break;\n\n case \"flagged\":\n name = Tasks.COLUMN_FLAGGED;\n value = value.equals(\"true\") ? \"1\" : \"0\";\n break;\n\n case \"inbox\":\n name = Tasks.COLUMN_INBOX;\n value = value.equals(\"false\") ? \"0\" : \"1\";\n break;\n\n case \"note\":\n if (table.equals(Tasks.TABLE_NAME) && node.hasChildNodes()) {\n name = Tasks.COLUMN_NOTE_XML;\n value = stringOf(node);\n }\n break;\n\n case \"repetition-rule\":\n name = Tasks.COLUMN_REPETITION_RULE;\n break;\n\n case \"repetition-method\":\n name = Tasks.COLUMN_REPETITION_METHOD;\n break;\n\n /*\n * Projects\n */\n case \"project\":\n if (node.hasChildNodes()) {\n name = Tasks.COLUMN_PROJECT;\n value = \"1\";\n }\n\n // GO DEEPER\n\n NodeList children = node.getChildNodes();\n\n for (int i = 0; i < children.getLength(); i++) {\n\n Node child = children.item(i);\n\n parseTag(child, values, table, id);\n }\n\n break;\n\n case \"singleton\":\n if (value.equals(\"true\")) {\n name = Tasks.COLUMN_TYPE;\n value = \"single action\";\n }\n break;\n\n case \"last-review\":\n name = Tasks.COLUMN_PROJECT_LAST_REVIEW;\n break;\n\n case \"next-review\":\n name = Tasks.COLUMN_PROJECT_NEXT_REVIEW;\n break;\n\n case \"review-interval\":\n name = Tasks.COLUMN_PROJECT_REPEAT_REVIEW;\n break;\n\n case \"status\":\n name = Tasks.COLUMN_PROJECT_STATUS;\n break;\n }\n\n if (!name.isEmpty() && !value.isEmpty()) {\n values.put(name, value);\n }\n }", "public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;", "public static GetParkPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetParkPage object =\n new GetParkPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getParkPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetParkPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\r\n protected void parseAttributes()\r\n {\n\r\n }", "IElementDef parse(ConfigSource configSource);", "void readXML(Element elem) throws XMLSyntaxError;", "void processTag(XMLNode tag) throws Exception {\n if(tag.type()== XMLNode.Type.TAG){\n state.traceTagBegin(tag.getTag()==null?\"process\":tag.getTag(),null);\n tagstk[tagstkptr++] = tag.getTag();\n \n dataloader.beginTag(tagstk, tagstkptr, tag.getTag(), tag.getAttribs());\n if(tag.getTags()!= null) for(XMLNode nextTag : tag.getTags()){\n processTag(nextTag);\n }\n ((LoadDatamapData)dataloader).endTag(tagstk, tagstkptr, tag, tag.getBody(), tag.getAttribs());\n \n tag.clearRef();\n \n tagstkptr--;\n tagstk[tagstkptr]= null;\n state.traceTagEnd();\n }\n }", "private void processStandoffMarkup(Document docExtra) {\n\t\tDOMSnapshot snapExtra = new DOMSnapshot(docExtra, docRoot, new XMLDialect());\n\t\tfor (ITSState itssExtra : snapExtra.iterNodes()) {\n\t\t\tRuleResolver resolver = resolvers.get(itssExtra.node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(snapExtra.attrReader, snapExtra.parameters, itssExtra.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (itssExtra.node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = itssExtra.node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = itssExtra.node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "public String getFromTag();", "private String readText(XmlPullParser parser) throws IOException, XmlPullParserException {\n\t String result = \"\";\n\t if (parser.next() == XmlPullParser.TEXT) {\n\t result = parser.getText();\n\t parser.nextTag();\n\t }\n\t return result;\n\t }", "public HelperClass parseXML(File file1)\n\t{\n\t\tString a =null;\n\t\tList<String> list1 = new ArrayList<String>();\n\t\tString id = \"\";\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\ttry\n\t\t{\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.parse(file1.toString());\n\t\t\tElement root = doc.getDocumentElement();\n\t\t\tid = root.getAttribute(\"id\");\n\t\t\t\n\t\t\tNodeList requirementList = doc.getElementsByTagName(\"requirements\");\n\t\t\tfor(int k=0;k<requirementList.getLength();k++) \n\t\t\t{\n\t\t\t\tNode r = requirementList.item(k);\n\t\t\t\tif(r.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t{\n\t\t\t\t\tElement requirement = (Element) r;\n\t\t\t\t\tNodeList nameList = requirement.getChildNodes();\n\t\t\t\t\tfor(int j=0;j<nameList.getLength();j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode n = nameList.item(j); \n\t\t\t\t\t\tif(n.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tElement name3 = (Element) n;\n\t\t\t\t\t\t\ta = name3.getTextContent();\n\t\t\t\t\t\t\tlist1.add(a);\n\t\t\t\t\t\t\tSystem.out.println(a);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tHelperClass toolIdMap = new HelperClass();\n\t\ttoolIdMap.setKey(id);\n\t\ttoolIdMap.setTools(list1);\n\t\treturn toolIdMap;\n\n\t}", "@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }", "private void toXMLTag(StringBuffer buffer, int level) {\n\t\tindent(buffer,level).append('<').append(name);\n\n\t\tif(attributes!=null && attributes.getLength()>0)\n\t\t\tbuffer.append(' ').append(attributes.toString());\n\n\t\tif(children.size()>0) {\n\t\t\tbuffer.append(\">\\n\");\n\t\t\tfor(int i=0; i<children.size(); i++)\n\t\t\t\t((WSLNode)children.elementAt(i)).toXMLTag(buffer, level+1);\n\t\t\tindent(buffer,level).append(\"</\").append(name).append(\">\\n\");\n\t\t} else buffer.append(\" />\\n\");\n\t}", "public void initializeXmlParser(InputStream in) throws XmlPullParserException, IOException {\n\n try {\n\t\t\tXmlPullParser parser = Xml.newPullParser();\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n\t\t\tparser.setInput(in, null);\n\t\t\tparser.nextTag();\n\t\t\treadAndApplyTags(parser);\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\t}", "public static GetVehicleInfoPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPage object =\n new GetVehicleInfoPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void mo1776b(XmlPullParser xmlPullParser) {\n }", "@Override\n\t\tpublic List<Person> parse(InputStream xml) throws Exception {\n\t\t\tList<Person> list = null;\n\t\t\tPerson p = null;\n\t\t\tXmlPullParser xpp = Xml.newPullParser();\n\t\t\txpp.setInput(xml, \"UTF-8\");\n\t\t\tint eventType = xpp.getEventType();\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\t\tswitch (eventType) {\n\n\t\t\t\tcase XmlPullParser.START_DOCUMENT:\n\t\t\t\t\tlist = new ArrayList<Person>();\n\t\t\t\t\tbreak;\n\t\t\t\tcase XmlPullParser.START_TAG:\n\t\t\t\t\tString name = xpp.getName();\n\t\t\t\t\tif (name.equals(\"person\")) {\n\t\t\t\t\t\tp = new Person();\n\t\t\t\t\t} else if (name.equals(\"id\")) {\n\t\t\t\t\t\tString id = xpp.nextText();\n\t\t\t\t\t\tp.setId(Integer.parseInt(id));\n\t\t\t\t\t} else if (name.equals(\"name\")) {\n\t\t\t\t\t\tString pName = xpp.nextText();\n\t\t\t\t\t\tp.setName(pName);\n\t\t\t\t\t} else if (name.equals(\"age\")) {\n\t\t\t\t\t\tString age = xpp.nextText();\n\t\t\t\t\t\tp.setAge(Integer.parseInt(age));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t\t\tString tagName = xpp.getName();\n\t\t\t\t\tif (tagName.equals(\"person\")) {\n\t\t\t\t\t\tlist.add(p);\n\t\t\t\t\t\tp = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\teventType = xpp.next();\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "public static String xmlTag() { return XMLTAG; }", "public static String xmlTag() { return XMLTAG; }", "public void parse() {\n }", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "List<Park> parse() {\n\t\tList<Park> parks = new ArrayList<Park>();\n\t\ttry {\n\t\t\tFile fXmlFile = new File(filename);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tNodeList nList = doc.getElementsByTagName(\"node\");\n\n\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\t\tNode nNode = nList.item(temp);\n\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\t\tPark Park = new Park();\n\n\t\t\t\t\tPark.setLatitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lat\")));\n\t\t\t\t\tPark.setLongitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lon\")));\n\n\t\t\t\t\tparks.add(Park);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn parks;\n\t}", "private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();\n//\t\tXmlResourceParser xpp = res.getXml(R.xml.vacc_detail_eng);\n\t\tXmlResourceParser xpp = MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?res.getXml(R.xml.vacc_detail_hnd):res.getXml(R.xml.vacc_detail_eng);\n\t\txpp.next();\n\t\tint eventType = xpp.getEventType();\n\t\tString name = \"sorry\";\n\t\tString text = \"sorry\";\n\t\tHashMap<String, String>map= new HashMap<String, String>();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\tname = xpp.getName();\n\n\t\t\t\tif(name.equals(\"VaccId\")){\n\t\t\t\t\tmap= new HashMap<String, String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (eventType == XmlPullParser.TEXT) {\n\t\t\t\ttext = xpp.getText();\n //System.out.println(\"Parsing \"+name +\" Value \"+text);\n\t\t\t}\n\t\t\tif (eventType == XmlPullParser.END_TAG) {\n\t\t\t\tif(xpp.getName().equals(\"VaccId\")){\n//\t\t\t\t\tpreArrayList.add(map);\n\t\t\t\t\tdetailMap.put(map.get(\"VaccName\"), map);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (name.equals(\"VaccName\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"VaccMessage\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AdministrationMSG\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AboutMsg\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\t\t\t\n\t\t\t}\n System.out.println(\"In Xml....\"+detailMap);\n\t\t\teventType = xpp.next();\n\t\t}\n\t\treturn detailMap;\n\t}", "public MetadataContext parseMetadata(KXmlParser myParser)\n\t{\n\t\tMetadataContext metadata = new MetadataContext();\n\t\t\n\t\t//<contextMetadata>\n\t\ttry {\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t//<description>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_description( myParser.nextText());\n\t\t\t\n\t\t\t//<positionInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_latitude( Double.parseDouble( myParser.getAttributeValue(0)));\n\t\t\tmetadata.setM_longitude( Double.parseDouble( myParser.getAttributeValue(1)));\n\t\t\t\n\t\t\t//</positionInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t//<temporalInfo>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\t\n\t\t\tmetadata.setM_time( myParser.nextText());\n\t\t\t\n\t\t\t//<version>\n\t\t\tmyParser.nextTag();\n\t\t\tmetadata.setM_time( myParser.nextText());\n\t\t\t\n\t\t\t\n\t\t\t//<unit>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t\t\n\t\t\tmetadata.setM_unit(myParser.nextText());\n\t\t\t\n\t\t\t//</contextMetadata>\n\t\t\tmyParser.nextTag();\n\t\t\tSystem.out.println(myParser.getName());\n\t\t} catch (XmlPullParserException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn metadata;\n\t\t\n\t}", "private Token getTagElement() {\n skipBlankSpaces();\n char currChar = this.data[currentIndex];\n\n if (Character.isDigit(currChar) || (currChar == '-' && Character.isDigit(this.data[currentIndex + 1]))) {\n return getNextNumber();\n } else if (Character.isLetter(currChar)) {\n return getNextVariableName();\n } else if (currChar == '\\\"') {\n return getNextString();\n } else if (currChar == '@') {\n return getNextFunctionName();\n } else if (currChar == '$') {\n if (this.data[currentIndex + 1] == '}') {\n currentIndex += 2;\n this.state = LexerState.TEXT;\n return new Token(TokenType.CLOSE_TAG, \"$}\");\n } else {\n throw new LexerException(\"Expected }, but didn't find it.\");\n }\n } else {\n return getNextOperator();\n }\n }", "private int parseXML(String xml) {\n int total = 0;\n try {\n int i = 0;\n String tagName = \"\";\n boolean onreh = false;\n boolean onEnd = false;\n boolean isItemTag1 = false;\n\n // Initialize XmlPullParser\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser parser = factory.newPullParser();\n parser.setInput(new StringReader(xml));\n\n int eventType = parser.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT) {\n if (eventType == XmlPullParser.START_TAG) {\n tagName = parser.getName();\n if (tagName.equals(\"data\")) {\n shortWeathers.add(new ShortWeather());\n onEnd = false;\n isItemTag1 = true;\n }\n } else if (eventType == XmlPullParser.TEXT && isItemTag1) {\n if (tagName.equals(\"reh\") && !onreh) {\n shortWeathers.get(i).setReh(parser.getText());\n total += Integer.parseInt(parser.getText());\n onreh = true;\n }\n } else if (eventType == XmlPullParser.END_TAG) {\n if (tagName.equals(\"s06\") && onEnd == false) {\n i++;\n isItemTag1 = false;\n onreh = false;\n onEnd = true;\n }\n }\n eventType = parser.next();\n }\n } catch (Exception e) {\n e.getStackTrace();\n }\n return total / shortWeathers.size();\n }", "private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }", "void simpleElementParticle(GroupSG pGroup,ParticleSG particle) throws SAXException;", "private List<String> usingXml(String urladd) {\n List<String> retLst = new ArrayList<String>();\n try {\n\n URL url = new URL(urladd);\n URLConnection urlConnection = url.openConnection();\n HttpURLConnection connection = null;\n connection = (HttpURLConnection) urlConnection;\n\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(connection.getInputStream());\n\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"surfaceForm\");\n\n boolean flg = true;\n for (int temp = 0; temp < nList.getLength(); temp++) {\n\n Node nNode = nList.item(temp);\n\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n Element eElement = (Element) nNode;\n String text = eElement.getAttribute(\"name\");\n String offset = eElement.getAttribute(\"offset\");\n\n String startEnd = Integer.parseInt(offset) + \",\" + (text.length() + Integer.parseInt(offset));\n retLst.add(startEnd);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return retLst;\n }", "private Map<String, String> parseDictionary(XMLStreamReader parser) throws XMLStreamException {\n\n Map<String, String> map = new HashMap<>();\n\n String key = \"\";\n String value = \"\";\n int event = parser.next();\n while (event != XMLStreamReader.END_DOCUMENT) {\n switch (event) {\n case XMLStreamReader.START_ELEMENT:\n String name = parser.getName().getLocalPart();\n if (Constants.KEY_TAG.equals(name)) {\n key = parser.getElementText();\n } else if (Constants.VALUE_TAG.equals(name)) {\n value = parser.getElementText();\n map.put(key, value);\n }\n break;\n }\n event = parser.next();\n }\n\n return map;\n }", "org.apache.xmlbeans.XmlString xgetTag();", "@Override\n public String getXMLTag() {\n return XMLTAG;\n }", "private HashMap<String, StringBuilder> parseTags(String str) {\n\n\t\tHashMap<String, StringBuilder> fieldMap = new HashMap<String, StringBuilder>();\n\n\t\tfor (int i = 0; i < fieldNames.length; i++) {\n\n\t\t\tfieldMap.put(fieldNames[i], new StringBuilder(\"\"));\n\n\t\t}\n\n\t\tString[][] content = new String[fieldNames.length][];\n\n\t\tfor (int i = 0; i < fieldNames.length; i++) {\n\n\t\t\tcontent[i] = StringUtils.substringsBetween(str, \"<\" + fieldNames[i]\n\t\t\t\t\t+ \">\", \"</\" + fieldNames[i] + \">\");\n\t\t}\n\n\t\tfor (int i = 0; i < content.length; i++) {\n\n\t\t\tStringBuilder temp = new StringBuilder(\" \");\n\t\t\tif (content[i] != null) {\n\n\t\t\t\tfor (int j = 0; j < content[i].length; j++) {\n\n\t\t\t\t\ttemp.append(content[i][j]);\n\n\t\t\t\t\tif (content[i].length - 1 > j)\n\t\t\t\t\t\ttemp.append(\" \");\n\t\t\t\t}\n\n\t\t\t\tfieldMap.put(fieldNames[i], temp);\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn fieldMap;\n\t}", "public String tagAsString();", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localTokenTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"token\"));\n \n elementList.add(localToken==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localToken));\n } if (localObjectNameTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"objectName\"));\n \n elementList.add(localObjectName==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localObjectName));\n } if (localOldProperty_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldProperty_description\"));\n \n elementList.add(localOldProperty_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldProperty_description));\n } if (localOldValues_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldValues_description\"));\n \n elementList.add(localOldValues_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldValues_description));\n } if (localNewProperty_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newProperty_description\"));\n \n elementList.add(localNewProperty_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewProperty_description));\n } if (localNewValues_descriptionTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newValues_description\"));\n \n elementList.add(localNewValues_description==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewValues_description));\n } if (localOldProperty_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldProperty_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldProperty_descriptionType));\n } if (localOldValues_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldValues_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldValues_descriptionType));\n } if (localNewProperty_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newProperty_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewProperty_descriptionType));\n } if (localNewValues_descriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newValues_descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewValues_descriptionType));\n } if (localOldCardinalityTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldCardinalityType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldCardinalityType));\n } if (localOldCardinalityNumTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"oldCardinalityNum\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldCardinalityNum));\n } if (localNewCardinalityTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newCardinalityType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewCardinalityType));\n } if (localNewCardinalityNumTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"newCardinalityNum\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNewCardinalityNum));\n } if (localDescriptionTypeTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://knowledge.sjxx.cn\",\n \"descriptionType\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescriptionType));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public String next()\r\n/* 35: */ {\r\n/* 36:42 */ String thisResult = this.nextResult;\r\n/* 37: */ \r\n/* 38:44 */ this.nextResult = Tags.untagTopLevelString(this.start, this.input);\r\n/* 39:49 */ if (this.nextResult == null) {\r\n/* 40:49 */ return thisResult;\r\n/* 41: */ }\r\n/* 42:51 */ int index = this.input.indexOf(this.nextResult) + this.nextResult.length();\r\n/* 43: */ \r\n/* 44:53 */ index = this.input.indexOf(\"</\" + this.start + \">\", index) + 3 + this.start.length();\r\n/* 45: */ \r\n/* 46:55 */ this.input = this.input.substring(index);\r\n/* 47: */ \r\n/* 48:57 */ this.nextResult = Tags.tag(this.start, this.nextResult);\r\n/* 49: */ \r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53:62 */ return thisResult;\r\n/* 54: */ }" ]
[ "0.6164865", "0.59987974", "0.58365864", "0.5820896", "0.5426854", "0.5321804", "0.5272686", "0.5234039", "0.5231467", "0.5217583", "0.51409745", "0.5108518", "0.5069484", "0.5047591", "0.4998873", "0.49966365", "0.49934724", "0.49798474", "0.48598412", "0.4849035", "0.48483288", "0.4844855", "0.48346674", "0.48264113", "0.48039863", "0.4798529", "0.47902888", "0.47665563", "0.47637978", "0.47540015", "0.47527865", "0.475221", "0.47423083", "0.4741243", "0.47402468", "0.47389594", "0.47317886", "0.47274226", "0.47227213", "0.47204033", "0.47169918", "0.47109005", "0.47042012", "0.4703818", "0.4702424", "0.47013164", "0.46882844", "0.4680435", "0.46705925", "0.46642625", "0.46551365", "0.46474144", "0.46444333", "0.46420738", "0.46420738", "0.463464", "0.46337035", "0.4632105", "0.46318498", "0.46296948", "0.4612091", "0.46110022", "0.46045133", "0.45969898", "0.45968446", "0.45953122", "0.45921135", "0.45759517", "0.45740274", "0.45699975", "0.45671615", "0.4561969", "0.45600206", "0.455567", "0.4547287", "0.4547", "0.45454308", "0.45272166", "0.4525788", "0.45213228", "0.45183486", "0.45075843", "0.45023534", "0.45023534", "0.44998026", "0.44883287", "0.44862005", "0.44834858", "0.44819254", "0.44818476", "0.44811997", "0.44800067", "0.44748923", "0.4472455", "0.4470334", "0.44631988", "0.44595662", "0.44544917", "0.44507384", "0.44485882", "0.44374058" ]
0.0
-1
/ READ CORPUS FILE
private ArrayList<String> parseDocsFile(String file_name){ // extract each <DOC> ... </DOC> from file AS string (corpus) ArrayList<String> list = new ArrayList<>(); Scanner scanner = null; try{ scanner = new Scanner(new BufferedReader(new FileReader(file_name))); scanner.useDelimiter("</DOC>"); // END of Next() while (scanner.hasNext()) { list.add(scanner.next()+"</DOC>"); } list.remove(list.size()-1); } catch (Exception e ){ System.out.println("Error reading file -> "+e.getMessage()); } finally { if(scanner != null ){scanner.close();} // close the file } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 void readFromFile() {\n\n\t}", "private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\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 (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void readFile();", "FileObject getFile();", "FileObject getFile();", "public void read_file(String filename)\n {\n out.println(\"READ\");\n out.println(filename);\n try\n {\n String content = null;\n content = in.readLine();\n System.out.println(\"READ content : \"+content);\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "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 }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "@RequestMapping(value=\"/read\", method = RequestMethod.GET)\n @ResponseBody\n public String readFile(@RequestParam String f) throws IOException,InvalidValueException,FilePathAccessDeniedException {\n\n String username = CSQLUserContext.getCurrentUser().getUsername();\n\n if(validator.isValidAndUserHasAccess(username,f)){\n return fileSystemService.readFile(f);\n }\n\n return null;\n }", "List readFile(String pathToFile);", "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}", "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 }", "private String fileReadOneLine(String fname) {\n BufferedReader br;\n String line = null;\n\n try {\n br = new BufferedReader(new FileReader(fname), 512);\n try {\n line = br.readLine();\n } finally {\n br.close();\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception when reading /sys/* file\", e);\n }\n return line;\n }", "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}", "protected abstract void readFile();", "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 List<String> readFileContents(String filePath) throws APIException;", "public String readFileContents(String filename) {\n return null;\n\n }", "public String readFile(String fName) {\n String msg=\"\";\n try {\n File theFile = new File(fName);\n InputStreamReader iStream = new InputStreamReader(new FileInputStream(theFile));\n int length = (int)theFile.length();\n char input[] = new char[length];\n iStream.read(input);\n msg = new String(input);\n } catch (IOException e) {\n e.printStackTrace();\n } // catch\n return msg;\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}", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "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 }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "File getFile();", "File getFile();", "void citire(FileReader f);", "@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "public InputStream readFile( String fileName, FileType type );", "String getFile();", "String getFile();", "String getFile();", "public abstract void readFromFile( ) throws Exception;", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "static byte[] readContents(File file) {\n if (!file.isFile()) {\n throw new IllegalArgumentException(\"must be a normal file\");\n }\n try {\n return Files.readAllBytes(file.toPath());\n } catch (IOException excp) {\n throw new IllegalArgumentException(excp.getMessage());\n }\n }", "public void fileRead(String filename) throws IOException;", "@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }", "protected String readFile(int resourceFile) {\n Context context = getContext();\n if (context != null) {\n try {\n InputStream is = context.getResources().openRawResource(resourceFile);\n return Okio.buffer(Okio.source(is)).readString(Charset.defaultCharset());\n } catch (IOException e) {\n Log.e(TAG, \"Failed to read config\", e);\n }\n }\n return \"\";\n }", "public static void reading(String fileName)\n {\n\n }", "protected abstract InputStream getFile(final String path);", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "static Stream<String> readIn(File file) \r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn Files.readAllLines(file.toPath()).stream();\r\n\t\t} \r\n\t\tcatch (IOException ioe) \r\n\t\t{\r\n\t\t\tthrow new UncheckedIOException(ioe);\r\n\t\t}\r\n\t}", "public String readFile(String filename) {\n\n String result = \"\";\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n try {\n fileReader = new FileReader(filename);\n bufferedReader = new BufferedReader(fileReader);\n\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while (line != null) {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n }\n result = stringBuilder.toString();\n } catch (Exception e) {\n Log.error(\"Error in reading Locator Repository file \" + e.getMessage());\n } finally {\n try {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n } catch (IOException e) {\n Log.error(\"Error in closing Locator Repository file \" + e.getMessage());\n } finally {\n CustomAssert\n .assertTrue(StringUtils.isNotEmpty(result), \"Error in reading file \" + filename);\n }\n }\n\n return result;\n }", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "String readFile(File file, String password);", "public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\n }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "private String readFromFileLogin() {\n String login=\"\";\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader\n ((\".\\\\src\\\\pl\\\\camp\\\\it\\\\login\\\\log.txt\")))) {\n\n login = bufferedReader.readLine();\n\n } catch (IOException exc) {\n System.out.println(\"Błąd obsługi pliku!!! \" + exc.getMessage());\n }\n return login;\n }", "StreamReader underlyingReader();", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }", "public String ReadFile(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n String stemp = \"\";\n try {\n //getting file oject\n f = new File(sFilePath);\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n //getting byte array length\n byte data[] = new byte[fstream.available()];\n //getting file stream data into byte array\n fstream.read(data);\n //storing byte array data into String\n stemp = new String(data);\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadFile : \" + e.toString());\n } finally {\n try {\n fstream.close();\n } catch (Exception e) {\n }\n }\n }", "public byte[] getFile(final String file) throws RemoteException;", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "public boolean readDataFile();", "private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "private void read(){\n try {\n if (c != -1) c = r.read();\n } catch (IOException e){\n throw new IOError(e);\n }\n }", "private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\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 static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }", "protected abstract E readFile() throws Exception;", "public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }", "private static String[] readLines(InputStream f) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(f, \"US-ASCII\"));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null)\n\t\t\tlines.add(line);\n\t\treturn lines.toArray(new String[0]);\n\t}", "@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}", "@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }", "public static void readFile(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (Reader reader = new FileReader(filename)) {\n JSONObject jo = (JSONObject) jsonParser.parse(reader);\n\n SHORT_PERIOD = (int) (long) jo.get(\"shortPeriod\");\n LONG_PERIOD = (int) (long) jo.get(\"longPeriod\");\n AVG_AMOUNT_PERIOD = (int) (long) jo.get(\"avgAmountPeriod\");\n SESSION_INTERVAL = (int) (long) jo.get(\"sessionInterval\");\n\n\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public byte[] read(String fileReference) {\r\n log.fine(\"Starting to get File from DataRegistry...\");\r\n\r\n URI fileURI = null;\r\n try {\r\n fileURI = new URI(fileReference);\r\n } catch (URISyntaxException e1) {\r\n log.warning(\"Exception: \" + e1.getLocalizedMessage());\r\n e1.printStackTrace();\r\n }\r\n\r\n DataManagerLocal dataRegistry = null;\r\n\r\n // Binding the DataManagerLocal-Interface to the local\r\n // DataManager-Instance via JNDI.\r\n log.fine(\"Trying to get InitialContext for JNDI-Lookup...\");\r\n dataRegistry = createDataRegistry();\r\n\r\n byte[] srcFileArray = null;\r\n if (fileURI != null) {\r\n try {\r\n log.fine(\"Retrieving file from DataRegistry: \"\r\n + fileURI.toASCIIString());\r\n srcFileArray = dataRegistry.retrieveBinary(fileURI);\r\n log.fine(\"Successfully retrieved file!\");\r\n } catch (SOAPException e) {\r\n log.severe(\"Exception: \" + e.getLocalizedMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n return srcFileArray;\r\n }", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public byte[] do_get (String pathOnServer) throws RemoteException {\r\n\t\tFile toClient = new File (pathOnServer)\t;\r\n\t\tSystem.out.println(\"Searching file name= \" + pathOnServer);\r\n\t\tbyte[] data = new byte[getFileSize(pathOnServer)];\t\r\n\t\ttry {\r\n\t\t\tif (toClient.exists()) {\r\n\t\t\tFileInputStream fis = new FileInputStream(toClient);\r\n\t\t\tfis.read(data, 0, data.length);\t\r\n\t\t\tfis.close(); \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"File \" + pathOnServer + \" does not exist.\");\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn data;\r\n\t}", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public List<CorruptionIndex> readFromFile(String filePath){\n return null;\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 }", "private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}", "private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public void get(String file) {\n\n }", "private String readDeserialize(String fileName, AssetManager assetManager) {\n StringBuffer sb = new StringBuffer();\n try {\n InputStream is = assetManager.open(fileName);\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n line = br.readLine();\n }\n br.close();\n isr.close();\n is.close();\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", String.format(\"File not found: %s\", e.toString()));\n } catch (IOException e) {\n Log.e(\"login activity\", String.format(\"Can not read file: %s\", e.toString()));\n }\n return sb.toString();\n }", "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 }", "public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }", "public Object readFile(File file) throws IOException, FileParseException {\n\t\tBufferedReader buffer = new BufferedReader( new FileReader(file));\n\t\treturn readFile(buffer);\n\t}", "@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }", "public String FetchDataFromFile(File file) {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\ttry {\r\n\t\t\tScanner sc=new Scanner(file);\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tsb.append(sc.nextLine());\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "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 void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}", "public DataInputStream openFile(String roleFile) throws IOException {\n return Util.open(\"/role/\" + roleFile);\n //#endif\n }", "InputStream mo1151a();", "public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }", "public abstract T readDataFile(String fileLine);", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }", "abstract public InputStream retrieveContent( String path )\r\n throws Exception;", "InputStream openStream() throws IOException;" ]
[ "0.64465094", "0.6293937", "0.6244333", "0.6159644", "0.6138482", "0.6138482", "0.61180973", "0.6102525", "0.6089945", "0.6020358", "0.599513", "0.59600204", "0.5932599", "0.59304583", "0.5913303", "0.5901555", "0.58883977", "0.5886409", "0.588065", "0.5872522", "0.58690757", "0.5859255", "0.58308536", "0.5824879", "0.58191186", "0.5772278", "0.57558227", "0.57535696", "0.57535696", "0.5742893", "0.57382905", "0.572975", "0.570828", "0.57076234", "0.57076234", "0.57076234", "0.5688386", "0.5683294", "0.5671647", "0.567033", "0.5667469", "0.56516796", "0.56357646", "0.5632198", "0.5628901", "0.5620983", "0.561856", "0.5609309", "0.56010115", "0.5597688", "0.55817", "0.55765724", "0.5573911", "0.55724525", "0.55644524", "0.5557942", "0.55431837", "0.55117685", "0.5494807", "0.54902536", "0.54885757", "0.54874545", "0.54825413", "0.5478394", "0.5476479", "0.54701984", "0.54648745", "0.5460802", "0.5459291", "0.5454631", "0.54537696", "0.54533625", "0.5450739", "0.5450675", "0.5446217", "0.5441098", "0.543328", "0.5431009", "0.5422462", "0.5398536", "0.5395056", "0.53898114", "0.5384729", "0.53841233", "0.53720087", "0.5370572", "0.5370375", "0.5369952", "0.5355846", "0.5354322", "0.5348178", "0.5347358", "0.5341436", "0.5336149", "0.5336055", "0.5335556", "0.5334623", "0.5316636", "0.5316636", "0.53151995", "0.53133214" ]
0.0
-1
/ READ STOP LIST FILE
private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList) ArrayList<String> list = new ArrayList<>(); Scanner scanner = null; try{ scanner = new Scanner(new BufferedReader(new FileReader(file_name))); while (scanner.hasNextLine()) { list.add(scanner.nextLine()); } } catch (Exception e ){ System.out.println("Error reading file -> "+e.getMessage()); } finally { if(scanner != null ){scanner.close();} // close the file } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void readStopList() throws FileNotFoundException {\n String tempBuffer = \"\";\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/Stopword-List.txt\"));\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n stopWords.add(tempBuffer);\n }\n sc_obj.close();\n }", "List<Stopsinlinedb> fetchStopsInLines();", "public static HashSet<String> loadStoplist(File f) {\r\n\t\tHashSet<String> stoplist = new HashSet<String>();\r\n\t\t\r\n\t\t// Assume it's comming from a csv file.\r\n\t\tCSV csv = new CSV(f);\r\n\t\tString[] line;\r\n\r\n\t\t// Read all lines in.\r\n\t\twhile((line = csv.getLine()) != null) {\r\n\t\t\tstoplist.add(line[0].trim());\r\n\t\t}\r\n\r\n\t\treturn stoplist;\r\n\t}", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "private List<String> readStopFile(File stopFile) throws FileNotFoundException {\n\n Scanner scanner = new Scanner(stopFile);\n List<String> words;\n words = new ArrayList<>();\n String temp;\n\n while (scanner.hasNextLine()) {\n temp = scanner.nextLine();\n words.add(temp.toLowerCase());\n }\n\n return words;\n }", "private void loadStopWords() throws FileNotFoundException, IOException{\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/stopwords/English.txt\"));\n String sWord;\n while ((sWord = reader.readLine()) != null) \n {\n stopWordList.add(sWord);\n }\n reader.close();\n }", "TraceList read(File file) throws IOException;", "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t\tString line = scanner1.nextLine();\n\t\t\tstopWords.append(line);\n\t\t\tstopWords.append(\"|\");\n\t } \n\t\t\n\t\tstopWords.append(\"document|discuss|identify|report|describe|predict|cite\");\n\t\tString allStopwords = stopWords.toString();\n\t\t//System.out.println(\"\"+allStopwords);\n\t\treturn allStopwords;\n\t}", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public List<String> read()\n\t{\n\t\treturn null;\n\t}", "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 static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "public List<Tailor> read();", "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 }", "private ArrayList<String> readRouteList(String filename) {\n FileInputStream fstream = null;\n ArrayList<String> list = new ArrayList();\n try {\n fstream = new FileInputStream(filename);\n BufferedReader br = new BufferedReader(new InputStreamReader(new DataInputStream(fstream)));\n while (true) {\n String readLine = br.readLine();\n String s = readLine;\n if (!(readLine == null || s.length() == 0)) {\n list.add(s);\n }\n try {\n fstream.close();\n break;\n } catch (IOException e) {\n }\n }\n } catch (IOException e2) {\n } catch (Throwable th) {\n if (fstream != null) {\n try {\n fstream.close();\n } catch (IOException e3) {\n }\n }\n }\n return list;\n }", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "public List<String> getStopWords(String path)\n\t {\n\t\t try \n\t\t {\n\t\t\t\tFileReader inputFile = new FileReader(path);\n\t\t\t\t@SuppressWarnings(\"resource\")\n\t\t\t\tBufferedReader br = new BufferedReader(inputFile);\n\n\t\t\t\tString line;\n\n\t\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t\t{\n\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line, \",\");\n\t\t\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tstopWords.add(tokenizer.nextToken().trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t\t\tSystem.out.println(\"Error while reading file by line:\"\n\t\t\t\t\t\t+ e.getMessage());\n\t\t } \n\t\t \n\t\t return stopWords; \n }", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "public List<CorruptionIndex> readFromFile(String filePath){\n return null;\n }", "List<T> readList();", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "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 }", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "List<Stop> getStopsPerLine(String line);", "public ArrayList<Task> load() throws FileNotFoundException {\n Scanner sc = new Scanner(file);\n String currLine;\n ArrayList<Task> tasks = new ArrayList<>();\n while (sc.hasNextLine()) {\n currLine = sc.nextLine();\n String taskDescription = currLine.substring(5);\n boolean isDone = currLine.charAt(2) == '1';\n String[] arr = taskDescription.split(Pattern.quote(\"|\"));\n String description = arr[0];\n if (currLine.charAt(0) == 'T') {\n Todo todo = new Todo(description);\n todo.setState(isDone);\n tasks.add(todo);\n } else if (currLine.charAt(0) == 'E') {\n Event event = new Event(description, (arr.length == 1 ? \" \" : arr[1]));\n event.setState(isDone);\n tasks.add(event);\n } else {\n Deadline deadline = new Deadline(description, (arr.length == 1 ? \" \" : arr[1]));\n deadline.setState(isDone);\n tasks.add(deadline);\n }\n }\n return tasks;\n }", "private String[] readStopwords(String filepath) {\n // Get filepath\n Path path = Paths.get(filepath);\n\n // Array to hold each stopword\n ArrayList<String> words = new ArrayList<>();\n\n // Read file at that path\n try {\n Files.readAllLines(path).forEach(word -> {\n // Add each stopword\n words.add(word);\n });\n } catch (IOException e) {\n System.out.println(\"No stopwords list found.\");\n System.exit(1);\n }\n\n // Cast to String array and return\n String[] wordsArray = new String[words.size()];\n wordsArray = words.toArray(wordsArray);\n return wordsArray;\n }", "List<T> read();", "public void readFromFile() {\n //reading text from file\n\n try {\n Scanner scanner = new Scanner(openFileInput(\"myTextFile.txt\"));\n\n while(scanner.hasNextLine()){\n\n String line = scanner.nextLine();\n\n String[] lines = line.split(\"\\t\");\n\n System.out.println(lines[0] + \" \" + lines[1]);\n\n toDoBean newTask = new toDoBean(lines[0], lines[1], 0);\n // System.out.println(line);\n sendList.add(newTask);\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "List readFile(String pathToFile);", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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 List<String> readFileIntoList(String filepath) throws IOException;", "public void saveStopsInLine(Stopsinlinedb stopsInLine);", "public byte[] readRawList() throws IOException {\n Buffer buffer = new Buffer(new byte[] { (byte) Type.LIST.code });\n byte[] bytes = readRaw();\n while (bytes != null) {\n buffer.append(bytes);\n bytes = readRaw();\n }\n buffer.append(new byte[] { (byte) Type.MARKER.code });\n return buffer.get();\n }", "public static List<Server> readFile() {\n String fileName = \"servers.txt\";\n\n List<Server> result = new LinkedList<>();\n try (Scanner sc = new Scanner(createFile(fileName))) {\n\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n result.add(lineProcessing(line));\n\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File is not found\");\n } catch (MyException e) {\n System.out.println(\"File is corrupted\");\n }\n return result;\n }", "public ListReader(String stop) {\n this.stop = stop;\n ListItemReader r = new ListItemReader();\n r.setListReader(this);\n r.setStop(stop);\n this.reader = r;\n this.seperator = new TextReader(\",\");\n }", "public synchronized Set<String> getStopWords() throws Exception {\r\n\t\t\r\n\t\tif(stopWords == null){\r\n\t\t\tMTDArquivoEnum enumerado = MTDArquivoEnum.STOP_WORDS;\r\n\t\t\tstopWords = new HashSet<String>();\r\n\t\t\tMTDIterator<String> it = enumerado.lineIterator();\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tstopWords.add(it.next());\r\n\t\t\t}\r\n\t\t\tit.close();\r\n\t\t}\r\n \r\n return stopWords;\r\n }", "public ArrayList<Event> readSerFile() {\n\n ArrayList<Event> events = new ArrayList<>();\n try {\n FileInputStream file = new FileInputStream(filename);\n ObjectInputStream storedEvents = new ObjectInputStream(file);\n\n events = (ArrayList<Event>) storedEvents.readObject();\n\n storedEvents.close();\n file.close();\n\n return events;\n\n } catch (FileNotFoundException e) {\n System.out.println(filename + \" is missing\");\n } catch (IOException | ClassNotFoundException e) {\n return events;\n }\n\n return events;\n }", "List<Stop> getStops();", "public void readDescription() throws IOException {\n while (!shouldStop()) {\n String word = next();\n if (word != \"\") {\n // System.out.println(word);\n temps.add(word);\n }\n }\n c = r.read();\n }", "private static List<RSQSimEvent> readEventsFile(\n\t\t\tInputStream eListStream, InputStream pListStream, InputStream dListStream, InputStream tListStream,\n\t\t\tList<SimulatorElement> elements, Collection<? extends RuptureIdentifier> rupIdens, boolean bigEndian,\n\t\t\tboolean skipSlipsAndTimes) throws IOException {\n\t\tList<RSQSimEvent> events = Lists.newArrayList();\n\t\t\n\t\tpopulateEvents(eListStream, pListStream, dListStream, tListStream, elements, rupIdens, bigEndian, events, skipSlipsAndTimes);\n\t\t\n\t\treturn events;\n\t}", "public static List slice(long start, long stop, String path) throws IOException {\n\n List<HashMap> rows=new ArrayList<HashMap>();\n\n Configuration conf = NutchConfiguration.create();\n FileSystem fs = FileSystem.get(conf);\n\n Path file = new Path(path);\n\n SequenceFile.Reader reader = new SequenceFile.Reader(conf, SequenceFile.Reader.file(file));\n\n Writable key = (Writable)\n ReflectionUtils.newInstance(reader.getKeyClass(), conf);\n Node value = new Node();\n\n //skip rows\n long i = 0;\n while(reader.next(key, value)) {\n if (i == start) {\n break;\n }\n i += 1;\n }\n\n while(reader.next(key, value)) {\n if (i == stop) {\n break;\n }\n\n i += 1;\n\n try {\n HashMap<String, String> t_row = getNodeRow(key,value);\n rows.add(t_row);\n\n }\n catch (Exception e) {\n }\n }\n\n return rows;\n }", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public SLList readFile(String file) {\n\t\t// Read it back in\n\t\tObjectInputStream i = null;\n\t\tSLList temp = null;\n\n\t\ttry {\n\t\t\ti = new ObjectInputStream(new FileInputStream(file));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/**\n\t\t * try/catch to verify file has been restored\n\t\t */\n\t\t\n\t\ttry {\n\t\t\ttemp = (SLList) i.readObject();\n\t\t\t//System.out.println(temp);\n\t\t\tSystem.out.println(\"Successfully restored data from file!\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ti.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\treturn temp;\n\t}", "public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void parse() throws IOException, StopDataMissingException, JSONException{\n DataProvider dataProvider = new FileDataProvider(filename);\n\n parseStops(dataProvider.dataSourceToString());\n }", "public static List<String> readLogRec(File file)throws Exception{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(file))\t\n\t\t\t);\n\t\t\tList<String> list \n\t\t\t\t= new ArrayList<String>();\n\t\t\t\n\t\t\tString line = null;\n\t\t\twhile((line=br.readLine())!=null){\n\t\t\t\tlist.add(line);\n\t\t\t}\n\t\t\treturn list;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tif(br != null){\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t}\n\t}", "public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void loadStopWords(String file) { \n\t\t\n\t\ttry{\n\t\t\t FileInputStream fstream = new FileInputStream(file);\n\t\t\t DataInputStream in = new DataInputStream(fstream);\n\t\t\t BufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\t String strLine;\n\t\t\t \n\t\t\t while ((strLine = br.readLine()) != null) {\t\t\t\t \n\t\t\t\t stop_words.add(strLine.trim());\n\t\t\t }\n\t\t\t \n\t\t\t in.close();\n\t\t\t \n\t\t\t}\n\t\t\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t\t}\n\t}", "@Override\n public Optional<UniqueRecordList> readRecordList() throws DataConversionException, IOException {\n return readRecordList(recordListFilePath);\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 }", "public int readSecondsLimitFromFile () {\n\t\ttry {\n\t\t\tBufferedReader f = new BufferedReader (new FileReader (\"time.txt\"));\n\t\t\treturn Integer.parseInt(f.readLine());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "public void readFromServiceFile()\r\n {\r\n try(ObjectInputStream fromServiceFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/servicelist.dta\")))\r\n {\r\n serviceList = (ServiceList) fromServiceFile.readObject();\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av service\"\r\n + \" objektene.\\nOppretter nytt \"\r\n + \"serviceregister.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter nytt serviceregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter nytt serviceregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "public ToDoList read() throws IOException {\n String jsonData = readFile(source);\n JSONObject jsonObject = new JSONObject(jsonData);\n return parseToDoList(jsonObject);\n }", "public HashMap<String, BusStops> readLtaBusStops(String file, String file2) throws IOException {\n\t\t//Reads Lta Bus Stop Codes and add it into a hashmap\n\t\tHashMap<String, BusStops> busStopMap = new HashMap<>();\n\t\tFile ltaBusStopCodes = new File(file); //Instantiates the file to read\n\t\tFile otherFile = new File(file2);\n\t\t//Tries to read the file using buffered reader\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(ltaBusStopCodes))) {\n\t\t\tbr.readLine();//To skip first line\n\t\t\tStringTokenizer st; //String tokenizer to read the csv token by token\n\t\t\tString line;\n\t\t\t//loops through the csv file and read it\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tst = new StringTokenizer(line, \",\"); //using StringTokenizer's delimiter for \",\". Each word as a single token.\n\t\t\t\t//2nd while loop to loop each and every word after delimiter \",\"\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString busStopCode = st.nextToken();\n\t\t\t\t\tString roadDesc = st.nextToken();\n\t\t\t\t\tString busStopDesc = st.nextToken();\n\t\t\t\t\t//Creates a LtaBusStopCodes object with the data read from csv and insert into the hashmap\n\t\t\t\t\tBusStops ltaBsStopCode = new BusStops(busStopCode, roadDesc, busStopDesc);\n\t\t\t\t\tbusStopMap.put(ltaBsStopCode.getBusStopCode(), ltaBsStopCode);\n\t\t\t\t}//End while loop for each token\n\t\t\t}//End while loop\n\t\t}\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(otherFile))) {\n\t\t\tbr.readLine();\n\t\t\tStringTokenizer st;\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tst = new StringTokenizer(line, \",\");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tdouble latitude = Double.parseDouble(st.nextToken());\n\t\t\t\t\tdouble longitude = Double.parseDouble(st.nextToken());\n\t\t\t\t\tint zid = Integer.parseInt(st.nextToken());\n\t\t\t\t\tBusStops bs = busStopMap.get(st.nextToken());\n\t\t\t\t\tif (bs != null) {\n\t\t\t\t\t\tbs.setX(latitude);\n\t\t\t\t\t\tbs.setY(longitude);\n\t\t\t\t\t\tbs.setZid(zid);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn busStopMap;\n\t}", "private void readNeuronListFromFile(String nameNListFile,\n ArrayList<Integer> list, int type) {\n if (nameNListFile == null || nameNListFile.length() == 0) {\n return;\n }\n\n try {\n // read a xml file\n Document doc = new SAXBuilder().build(new File(nameNListFile));\n Element root = doc.getRootElement();\n if ((root != null)\n && ((root.getName() == \"A\" && type == LayoutPanel.ACT)\n || (root.getName() == \"I\" && type == LayoutPanel.INH)\n || (root\n .getName() == \"P\" && type == LayoutPanel.PRB))) {\n list.clear();\n String[] parts = root.getValue().split(\"[ \\n\\r]\");\n\n Dimension size = layoutPanel.getLayoutSize();\n int numNeurons = size.height * size.width;\n for (String part : parts) {\n try {\n int index = Integer.parseInt(part);\n if (index < numNeurons) { // ignore indexes greater than\n // numNeurons\n list.add(index);\n }\n } catch (NumberFormatException e) {\n System.err.println(\"Illegal number :\" + part);\n }\n }\n }\n } catch (JDOMException je) {\n System.err.println(je);\n } catch (IOException ie) {\n System.err.println(ie);\n }\n }", "public static TaskList loadExistingTaskList(String fileName) {\n TaskList taskList = new TaskList();\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(fileName));\n String line;\n while ((line = br.readLine()) != null) {\n try {\n // process the line\n taskList.addItem(TaskItem.getItemFromLine(line, \"\\\\|\"));\n }\n catch(Exception e1) {\n System.out.println(e1.getMessage());\n }\n }\n }\n catch (IOException e) {\n System.out.println(\"File not found\");\n }\n finally {\n if (br != null) {\n try {\n br.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n }\n return taskList;\n }", "public void listTasks() {\n try {\n File file = new File(filePath);\n Scanner sc = new Scanner(file);\n Ui.viewTasks();\n while (sc.hasNextLine()) {\n System.out.println(sc.nextLine());\n }\n } catch (FileNotFoundException e) {\n Ui.printFileNotFound();\n }\n }", "public 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 }", "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 static void readFile(ArrayList<Process> processList, int availableRes[]){\n String processInfo;\n Scanner inputFile = openFile();\n if(inputFile == null){System.exit(-1);}\n\n initializeResArray(availableRes, inputFile);\n\n int processID = 0;\n while(inputFile.hasNextLine()){\n processInfo = inputFile.nextLine();\n Process toAdd = createProcessFromInput(processInfo);\n toAdd.setPID(processID);\n processList.add(toAdd);\n processID++;\n }\n inputFile.close();\n }", "public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }", "private void readAdv(List list, int ver)\n\t\t\tthrows IOException, FileNotFoundException {\n\t}", "public static ArrayList<Task> deser() {\n ArrayList<Task> taskList; // declaring the tasks ArrayList variable\n taskList = new ArrayList<Task>(); // giving this object a temporary pointer\n try {\n FileInputStream fileIn = new FileInputStream(\"taskList.ser\"); // searching for the file to deserialize\n ObjectInputStream in = new ObjectInputStream(fileIn); // object used for deserializing \n taskList = (ArrayList) in.readObject(); // reading the serialized ArrayList object and assigning it to tasks\n in.close(); // closing the object for deserializing\n fileIn.close(); // closing the file thats being read\n } catch (FileNotFoundException fnfe) { // if the file cannot be found\n // System.out.println(\"You have not created any tasks yet.\"); // tells the user they have not created any tasks\n } catch (IOException ioe) { // if an IO exception gets thrown\n // System.err.println(\"Java IO Exception: \" + ioe); // prints an error message\n } catch (ClassNotFoundException cnfe) { // if the class is not recognized\n // System.err.println(\"Class of object not found. Cannot deserialize.\"); // prints an error \n }\n return taskList;\n }", "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 static ArrayList<Item> readFromFile() {\n\t\t\n\t\tPath writeFile = Paths.get(\"list.txt\");\n\t\tFile file = writeFile.toFile();\n\t\tArrayList<Item> itemList = new ArrayList<Item>();\n\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\t// this is a buffer and the benefit of using this is to is to store a block of\n\t\t\t// memory that\n\t\t\t// we can read data from later -- more efficient than Scanner\n\n\t\t\tBufferedReader reader = new BufferedReader(fr);\n\t\t\t// this is attempting to read the first line from the text document\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\n\t\t\t\tString[] stringArray= line.split(\",\");\n\t\t\t\tItem item = new Item(Integer.parseInt(stringArray[0]), stringArray[1], stringArray[2],stringArray[3],Integer.parseInt(stringArray[4]),Double.parseDouble(stringArray[5]) );\n\t\t\t\titemList.add(item);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"There were no items!\");\n\t\t}\n\t\treturn itemList;\n\t}", "private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}", "public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }", "private ArrayList<String> getArrayList() throws IOException {\n long jumpTo = 0;\n ArrayList<String> arrayList = new ArrayList<String>();\n arrayList.add(readStringUntil0x());\n boolean notFound = true;\n while (notFound == true) {\n ins.skip(jumpTo);\n String actIndex = readStringUntil0x();\n long lowerIndex = readJumpOffset();\n long upperIndex = readJumpOffset();\n if ((searchIndex.compareTo(actIndex) < 0) && (lowerIndex > 0)) {\n jumpTo = lowerIndex - 1;\n } else if ((searchIndex.compareTo(actIndex) > 0) && upperIndex > 0) {\n jumpTo = upperIndex - 1;\n } else if (searchIndex.compareTo(actIndex) == 0) {\n notFound = false;\n // reading all the found lines\n actIndex = readStringUntil0x();\n while (!actIndex.equalsIgnoreCase(\"\")) {\n arrayList.add(actIndex);\n actIndex = readStringUntil0x();\n }\n } else {\n notFound = false;\n arrayList = null;\n }\n }\n return arrayList;\n }", "public ArrayList<SessionLog> readLogFile(){\n ArrayList<SessionLog> sessionLogList = new ArrayList<>();\n try {\n FileInputStream inputStream = getApplicationContext().openFileInput(logFileName);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n while(true){\n String line = reader.readLine();\n if (line != null){\n String[] data = line.split(\",\");\n Log.i(LOG_TAG, \" - \"+ Arrays.toString(data));\n SessionLog item = new SessionLog(\n Long.parseLong(data[0]),\n new LatLng(Double.parseDouble(data[1]), Double.parseDouble(data[2])),\n data[3].equals(\"true\")\n );\n sessionLogList.add(item);\n }\n else{\n Log.i(LOG_TAG, \"Reached end of file\");\n break; // No more lines to read\n }\n }\n }\n catch (Exception e){\n Log.i(LOG_TAG, \"Problem reading from current session log file...\");\n e.printStackTrace();\n }\n return sessionLogList;\n }", "private List<Integer> readConfigFile(String filename) {\n\n Scanner input;\n try {\n input = new Scanner(this.getClass().getClassLoader().getResourceAsStream(filename));\n input.useDelimiter(\",|\\\\n\");\n } catch (NullPointerException e){\n throw new IllegalArgumentException(filename + \" cannot be found\", e);\n }\n\n checkConfigFile(filename);\n\n return parseFile(input);\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 static Vector<String> getFileInfo(String fileName) {\n Vector<String> data = new Vector<String>();\n try {\n File file = new File(fileName);\n Scanner reader = new Scanner(file);\n while(reader.hasNext()){\n \n String line = reader.nextLine();\n if (!line.substring(0, 3).equals(\"END\")) {\n data.add(line);\n }\n }\n reader.close();\n }catch(FileNotFoundException e) {\n System.out.println(\"An error occured.\");\n e.printStackTrace();\n }\n return data;\n }", "public ArrayList<Task> loadData() throws FileNotFoundException {\n ArrayList<Task> dukeList = new ArrayList<>();\n Scanner sc = new Scanner(file);\n Task t;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n String[] splitBySpace = line.split(\" \");\n String[] splitBySlash;\n String command = splitBySpace[0];\n\n if (command.equals(\"D\")) {\n splitBySlash = line.split(\"/\");\n\n //Splits String the second time to get the description of deadline task\n String[] splitBySpace2 = splitBySlash[0].split(\" \");\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace2.length; i++) {\n getDesc = getDesc + splitBySpace2[i] + \" \";\n }\n\n t = new Deadline(getDesc.trim(), splitBySlash[1]);\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n } else if (command.equals(\"E\")) {\n splitBySlash = line.split(\"/\");\n\n //Splits String the second time to get the description of event task\n String[] splitBySpace2 = splitBySlash[0].split(\" \");\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace2.length; i++) {\n getDesc = getDesc + splitBySpace2[i] + \" \";\n }\n\n t = new Event(getDesc.trim(), splitBySlash[1]);\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n } else {\n String getDesc = \"\";\n for (int i = 2; i < splitBySpace.length; i++) {\n getDesc = getDesc + splitBySpace[i] + \" \";\n }\n\n t = new ToDo(getDesc.trim());\n if (splitBySpace[1].equals(\"1\")) {\n t.markAsDone();\n }\n dukeList.add(t);\n }\n }\n\n return dukeList;\n }", "public static ArrayList<BoardPair> readFile(String inFileName, String format) {\n ArrayList<BoardPair> boardPairs = new ArrayList<BoardPair>();\n try { \n File inFile = new File(inFileName); \n BufferedReader reader = new BufferedReader(new FileReader(inFile));\n String line = null;\n while ((line=reader.readLine()) != null) { // loop as long as there are input lines \n if(line.contains(\"id,delta\")) \n continue; // skip header\n String str = line.trim(); \n // line fields are: id, delta, start1..400, stop1..400\n String[] tokens = str.split(\",\"); \n int row_id = Integer.parseInt( tokens[0] );\n int delta = Integer.parseInt( tokens[1] );\n int[][] startBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n int[][] stopBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n for(int col=0; col<Consts.BOARD_SIDE; col++) { \n for(int row=0; row<Consts.BOARD_SIDE; row++) {\n if(format==\"train\") { \n // train format: id, delta, start.1-start.400, stop.1-stop.400\n // note column major order!\n int startIndex = col*Consts.BOARD_SIDE + row + 2; \n int stopIndex = startIndex + Consts.BOARD_SIDE*Consts.BOARD_SIDE;\n startBoard[row][col]= Integer.parseInt( tokens[startIndex] );\n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n } \n if(format==\"test\") {\n // test format is: id, delta, stop.1-stop.400\n // note column major order!\n int stopIndex = col*Consts.BOARD_SIDE + row + 2; \n startBoard = null; \n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n }\n }\n }\n boardPairs.add( new BoardPair(row_id, delta, startBoard, stopBoard) );\n } \n reader.close(); \n } catch (IOException e) {\n System.out.println(\"ERROR reading: \" + inFileName);\n }\n return boardPairs;\n }", "List<E> read();", "public List<Event> fillArrayList()\r\n {\r\n List<Event> list1=new ArrayList<>();\r\n FileReader fr=null;\r\n \r\n try{\r\n \r\n fr=new FileReader(\"./event.txt\");\r\n BufferedReader bf=new BufferedReader(fr);\r\n String s;\r\n \r\n while((s=bf.readLine())!=null)\r\n {\r\n Event event=new Event();\r\n String s1[]=new String[7];\r\n for(int i=0;i<s1.length;i++)\r\n {\r\n s1=s.split(\",\");\r\n \r\n event.setId(Integer.parseInt(s1[0]));\r\n \r\n event.setName(s1[1]);\r\n \r\n event.setOrganizer(s1[2]);\r\n \r\n Date date=Date.valueOf(s1[3]);\r\n \r\n event.setDate(date);\r\n \r\n event.setFees(Double.parseDouble(s1[4]));\r\n \r\n } \r\n list1.add(event);\r\n }\r\n \r\n bf.close();\r\n \r\n }catch(Exception e){e.printStackTrace();}\r\n return list1;\r\n\r\n }", "private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }", "private static void read(String fileName) {\n try {\n BufferedReader sc = null;\n sc = new BufferedReader(new FileReader(fileName));\n String temp = sc.readLine();\n interval = Integer.parseInt(temp);\n System.out.println(\"Interval = \" + interval + \" seconds.\");\n while ((temp = sc.readLine()) != null) {\n String[] entry = temp.split(\",\");\n url = entry[0];\n cores = Integer.parseInt(entry[1]);\n System.out.println(url + \" : \" + cores);\n }\n sc.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public BencodeValue decodeList() throws IOException {\n int c = this.getNextIndicator();\n if (c != 'l') {\n throw new BencodeFormatException(\"List begins with 'l', not '\" +\n (char)c + \"'\");\n }\n this.indicator = 0;\n\n List<BencodeValue> result = new ArrayList<BencodeValue>();\n c = this.getNextIndicator();\n while (c != 'e') {\n result.add(this.decode());\n c = this.getNextIndicator();\n }\n this.indicator = 0;\n\n return new BencodeValue(result);\n }", "public static List<ArrivalRateTuple> readFileToList(File file, double offset) throws IOException {\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\r\n\t\tList<ArrivalRateTuple> arrRates = new ArrayList<ArrivalRateTuple>();\r\n\t\t// read arrival rate tuples\r\n\t\ttry {\r\n\t\t\tarrRates = ArrivalRateTuple.readList(br, offset);\r\n\t\t\t// error reading tuples, it's probably a request time stamp file\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tLOG.log(Level.SEVERE, \"Index out of bounds, wrong format.\");\r\n\t\t}\r\n\t\tif (arrRates.size() == 0) {\r\n\t\t\tbr.close();\r\n\t\t\tbr = new BufferedReader(new FileReader(file));\r\n\t\t\tarrRates = readRequestTimeStamps(br, offset);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\treturn arrRates;\r\n\t}", "@Override\n public Optional<DateBasedLimitList> readLimitList() throws DataConversionException, IOException {\n return readLimitList(limitListFilePath);\n }", "private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}", "private void readInter() throws FileNotFoundException {\n\t\t\r\n\t\tFile file = new File(\"input.txt\");\r\n\r\n\t\tScanner input = new Scanner(file);\r\n\r\n\t\twhile (input.hasNext()) {\r\n\r\n\t\t\tint x = input.nextInt();\r\n\t\t\tint y = input.nextInt();\r\n\t\t\t\r\n\t\t\tintervals.add(new Point(x, y));\r\n\t\t}\r\n\t\t\r\n\t\t//Close 'input.txt'\r\n\t\tinput.close();\r\n\t\t\r\n\t}", "public Set<String> getStopWords() throws Exception{\n\tFile file = new File(\"stopWords/stopwords.txt\");\n\tHashSet<String> stopwords = new HashSet<>();\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n\tString line;\n\twhile((line=br.readLine())!=null){\n\t\tString[] tokens = line.split(\" \");\n\t\tfor(String token : tokens){\n\t\t\tif(!stopwords.contains(token)){\n\t\t\t\tstopwords.add(token);\n\t\t\t}\n\t\t}\n\t}\n\tbr.close();\n\treturn stopwords;\n\t}", "public static void readFile(String myFile, List <Integer> myList) throws FileNotFoundException{\n \t \n Scanner fileScanner = new Scanner(new File(myFile)); // Reads in from filePath.\n \n while (fileScanner.hasNextInt()){ // Loops while there is still a next integer in the list.\n \t myList.add(fileScanner.nextInt()); // Adds all integers to RandomIntegers arraylist.\n }\n \n System.out.println(\"\\nFile read in successfully.\"); \n }", "@SuppressWarnings(\"unchecked\")\n public ArrayList readVector() throws IOException {\n int length = readVectorHeader();\n ArrayList result = new ArrayList(length);\n for (int i = 0; i < length; i++) {\n result.add(read());\n }\n return result;\n }", "private List<Double> getdata(FileReader fr, String sar_device,int i) throws IOException {\n\t\t System.out.println(\"sar_device in GetSarFileData:\"+sar_device);\n\t\t BufferedReader br = new BufferedReader(fr);\n\t\t List<Double> resultList = new ArrayList<Double>();\n\t String temp=null;\n\t String[] numbersArray;\n\t temp=br.readLine();\n\t while(temp!=null){ \n\t \tnumbersArray=temp.split(\"\\\\s+\"); \n\t \tif(numbersArray.length>2&&(!numbersArray[0].equals(\"Average:\"))&&numbersArray[2].equals(sar_device))\n\t \t{\n\t \t\tresultList.add(Double.parseDouble(numbersArray[i])); \n\t \t}\n\t \telse if(numbersArray.length>2&&(!numbersArray[0].equals(\"Average:\"))&&numbersArray[1].equals(sar_device)){\n\t \t\tresultList.add(Double.parseDouble(numbersArray[i-1])); \n\t \t}\n\t temp=br.readLine();\n\t }\n\t System.out.println(resultList);\n\t return resultList;\n\t}", "public static void read8() {\n List<String> list = new ArrayList<>();\n\n try (Stream<String> stream = Files.lines(Paths.get(filePath))) {\n\n //1. filter line 3\n //2. convert all content to upper case\n //3. convert it into a List\n list = stream\n .filter(line -> !line.startsWith(\"line3\"))\n .map(String::toUpperCase)\n .collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public ArrayList<Task> readFile() throws DukeException, IOException {\n\n TaskList taskList = new TaskList();\n\n if(Files.exists(Path.of(PATH_DIRECTORY))) {\n File f = new File (PATH_DIRECTORY + \"/tasks.txt\");\n Scanner sc = new Scanner(f);\n\n while(sc.hasNext()) {\n String partialString = sc.nextLine();\n String[] data = partialString.trim().split(\"\\\\|\", 3);\n taskAssigner(data, taskList);\n }\n } else {\n File f = new File (PATH_DIRECTORY);\n boolean dirExists = f.mkdir();\n if (dirExists) {\n f = new File (PATH_DIRECTORY + \"/tasks.txt\");\n f.createNewFile();\n } else {\n throw new DukeException();\n }\n }\n\n return taskList.getTaskArrayList();\n }", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "public ArrayList<String> readFromFile(){\n ArrayList<String> results = new ArrayList<>();\n //Wrap code in a try/ catch to help with exception handling.\n try{\n //Create a object of Scanner class\n Scanner s = new Scanner(new FileReader(path));\n //While loop for iterating thru the file.\n // Reads the data and adds it to the ArrayList.\n while(s.hasNext()) {\n String c1 = s.next();\n String c2 = s.next();\n String w = s.next();\n results.add(c1);\n results.add(c2);\n results.add(w);\n }return results;\n\n }//File not found exception block.\n catch(FileNotFoundException e){\n System.out.println(e);\n }\n return results;//default return.\n }", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "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 }", "public void readReservationList() {\n\n\t\tif (rList.size() == 0) {\n\t\t\tSystem.out.println(\"No reservations available!\");\n\t\t} else{\n\t\t\tSystem.out.println(\"\\nDisplaying Reservation List: \\n\");\n\t\t\tSystem.out.format(\"%-20s%-15s%-15s%-15s%-20s%-35s%-25s%-25s%-15s\\n\", \"Reservation No.\", \"Guest ID\", \"Num Adult\",\n\t\t\t\t\t\"Num Kid\", \"Room No.\", \"Reservation Status\", \"Check in\", \"Check out\", \"Reservation time\");\n\n\t\t\tfor (Reservation r : rList) {\n\t\t\t\tSystem.out.format(\"%-20d%-15s%-15s%-15s%-20s%-35s%-25s%-25s%-15.8s\\n\", r.getResvNo(), r.getGuestID(),\n\t\t\t\t\t\tr.getAdultNo(), r.getKidNo(), r.getRoomNo(), r.getResvStatus(), r.getDateCheckIn(), r.getDateCheckOut(),\n\t\t\t\t\t\tr.getResvTime());\n\t\t\t}\n\t\t}\n\t}", "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 }", "public static void loadToDoListsFromFile() {\n\n\t\tAccount openedAccount = AccountManager.getAccount();\n\t\tFile loadListFile = new File(\n\t\t\t\tSystem.getProperty(\"user.dir\") + \"//ToDoLists//\" + openedAccount.getUserName() + \"//toDoList.txt\");\n\n\t\tif (loadListFile.exists()) {\n\n\t\t\ttry (Scanner readFromFile = new Scanner(loadListFile)) {\n\n\t\t\t\tString listName = new String();\n\t\t\t\tString taskName = new String();\n\t\t\t\tString taskDescription = new String();\n\t\t\t\tString taskTag = new String();\n\t\t\t\tString isFinished = new String();\n\t\t\t\tLocalDate dueDate;\n\t\t\t\tString[] time;\n\t\t\t\tint[] timeInt = new int[3];\n\n\t\t\t\twhile (readFromFile.hasNext()) {\n\n\t\t\t\t\tlistName = readFromFile.nextLine();\n\n\t\t\t\t\tcreateNewToDoList(listName);\n\n\t\t\t\t\tToDoList list = getToDoList(listName);\n\t\t\t\t\tFile taskFile = new File(System.getProperty(\"user.dir\") + \"//ToDoLists//\"\n\t\t\t\t\t\t\t+ openedAccount.getUserName() + \"//\" + list.getListName() + \".txt\");\n\n\t\t\t\t\ttry (Scanner readTaskFile = new Scanner(taskFile)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (readTaskFile.hasNext()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttaskName = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskDescription = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskTag = readTaskFile.nextLine();\n\t\t\t\t\t\t\tisFinished = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttime = readTaskFile.nextLine().split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\t\t\t\t\t\ttimeInt[i] = Integer.valueOf(time[i]);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tdueDate = LocalDate.of(timeInt[0], timeInt[1], timeInt[2]);\n\t\t\t\t\t\t\tlist.createNewTask(taskName, taskDescription, dueDate, taskTag);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (isFinished.equals(\"true\")) {\n\t\t\t\t\t\t\t\tlist.getTaskByTaskName(taskName).setFinished(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7153344", "0.61718976", "0.5992753", "0.59904003", "0.5985814", "0.586684", "0.5811245", "0.56638086", "0.56451154", "0.56368864", "0.5622598", "0.5621233", "0.56184036", "0.5606826", "0.5545313", "0.55374146", "0.55267966", "0.5485674", "0.5451137", "0.54264176", "0.5412796", "0.53929967", "0.5373816", "0.5359237", "0.5339268", "0.5313216", "0.5296483", "0.5293461", "0.5283949", "0.5273494", "0.5271312", "0.5266274", "0.52587146", "0.5246704", "0.52458113", "0.524071", "0.52362883", "0.5219636", "0.52166253", "0.52118003", "0.52065814", "0.51965666", "0.5160691", "0.5156957", "0.51569045", "0.51555693", "0.5139017", "0.5133471", "0.51235694", "0.51174706", "0.510639", "0.5097159", "0.5094542", "0.50906116", "0.5085808", "0.50837934", "0.5081822", "0.5050095", "0.50500494", "0.50428116", "0.5024804", "0.5024022", "0.5022845", "0.5022083", "0.50054026", "0.500029", "0.49972594", "0.499057", "0.4987779", "0.4985392", "0.49727952", "0.49702692", "0.4967078", "0.4966788", "0.4963051", "0.49521104", "0.49511006", "0.4948421", "0.49451458", "0.4938631", "0.49275252", "0.4919337", "0.49166328", "0.49103627", "0.49056405", "0.49014765", "0.4898912", "0.48957118", "0.48929018", "0.48827103", "0.48771462", "0.48766622", "0.48766392", "0.48749682", "0.48748305", "0.487278", "0.4869619", "0.48675165", "0.48647368", "0.48499954" ]
0.62634265
1
CALCULATING THE NUMBER OF DUPLICATES TERMS IN ALL CORPUS TO USE THEM IN IDF
@Override public Integer countingDuplicates(String match) { if(duplicates == null) { // if it's not already located duplicates = new HashMap<>(); for (Core str : pondred) { for (String term:str.abstractTerm){ if (duplicates.containsKey(term) ) duplicates.put(term, duplicates.get(term) + 1); else { duplicates.put(term, 1); } } } } return duplicates.get(match); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdoc.getValue().words.forEach((w, o) -> words.add(w));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entry<String, Double> e : new HashMap<>(Idf).entrySet()){\r\n\t\t\tIdf.put(e.getKey(),\r\n\t\t\t\t\tMath.log(Idf.keySet().size() / e.getValue()));\r\n\t\t}\r\n\t}", "private double idf(String term) {\n return 1 + Math.log(this.numberOfDocuments / (double) termToDocumentsContainingTerm.get(term).size());\n }", "int updateCount(double dist);", "private static double cal_IDF(String tarTerm) throws IOException{\n\t\tFile file = new File(documentPath);\n\t\tFile[] files = file.listFiles();\n\t\tint D_count = 0;\n\t\t\n\t\tfor(File f : files){\n\t\t\tString document = readFileToString(f.getAbsolutePath());\n\t\t\tString[] terms = document.split(\",\");\n\t\t\tboolean match = false;\n\t\t\tfor(String term : terms){\n\t\t\t\tif(term.equals(tarTerm)){\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tD_count++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(match) continue;\n\t\t}\n\t\treturn Math.log10((double)files.length/(D_count+1));\n\t}", "public double numTerms()\r\n\t{\r\n\t\treturn unionAll.size();\r\n\t}", "public double computeIDF(HashMap<String, Integer> termPostings, int documents) {\n // Document frequency is the number of postings\n int df = termPostings.size();\n\n return Math.log(((double) documents) / (df + 1));\n }", "private Float weightTermUniqeness(String term) throws IOException{\n\t\tFloat result = null;\n\t\t\n\t\tLong docCnt\t\t= this.elasticClient.getDocCount();\n\t\tLong termDocCnt = this.elasticClient.getDocCount(term);\n\t\t\n\t\tresult = ((Long)(docCnt / termDocCnt)).floatValue();\n\t\t\n\t\treturn result;\n\t}", "public ComputeTermFrequencies() { super(); }", "int DF(String term) {\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(term)) {\n df++;\n }\n }\n return df;\n }", "static long countTriplets(List<Long> arr, long r) {\n\n long count=0;\n long l = arr.size();\n \n Map <Long,Integer> m = new HashMap<Long,Integer>();\n \n for(int i=0;i<arr.size();i++)\n {\n //Map with Uniqe numbers and their frequency.\n if(m.containsValue(arr.get(i)))\n m.put(arr.get(i), m.get(arr.get(i)) + 1);\n else\n m.put(arr.get(i),1);\n }\n \n \n long n = arr.size();\n if(r==1)\n {\n for(Map.Entry<Long,Integer> entry : m.entrySet())\n {\n long k1 = entry.getKey();\n long val = entry.getValue();\n if(val>2)\n {\n count = count + val*(val-1)*(val-2)/6;\n }\n }\n }\n else\n {\n for(Map.Entry<Long,Integer> entry : m.entrySet())\n {\n long k1 = entry.getKey();\n long val = entry.getValue();\n long k2 = k1*r;\n long k3 = k1*r*r;\n if(m.containsKey(k2) && m.containsKey(k3))\n {\n count = count + val*m.get(k2)*m.get(k3);\n }\n }\n }\n\n return count;\n }", "public int numberOfOccorrence();", "private int calculateConsecutiveDuplicateMutationsThreshold(){\n \tint combinedSiteLength = region.getCombinedSitesLength();\n \tif(combinedSiteLength <= 10){\n \t\treturn 100; // around the order of magnitude of 1,000,000 if we assume each of the 10 positions could have any of the 4 nucleotides\n \t}else{\n \t\tint consecFactor = 400000 / (combinedSiteLength * combinedSiteLength * combinedSiteLength * iContext.strategy.nucleotides.length);\n \t\treturn Math.max(2, consecFactor);\n \t}\n }", "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}", "private void countOnePseudoDoc(int docIdx) {\n\t\tFeatureSequence fs = (FeatureSequence)documents.get(docIdx).getData();\n\t\tint[] tokens = fs.getFeatures();\n\t\tdouble[] tmpCounts = new double[numOfTerms];\n\t\tArrays.fill(tmpCounts, 0);\n\t\tfor(int i=0; i<tokens.length; i++) {\n\t\t\tint term = tokens[i];\n\t\t\ttmpCounts[term] += alpha * 1;\n\t\t}\n\t\t\n\t\tPairedInfo pairedDocs = pairs.links.get(docIdx);\n\t\tif(!pairedDocs.isEmpty()) {\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t\tint[] pIds = pairedDocs.getPairedIdsArray();\n//\t\t\tSystem.out.println(docIdx + \": \" + pairedDocs.getLength() + \":\" + Arrays.toString(pIds));\n\t\t\tdouble[] sims = pairedDocs.getPairedSimArray();\n\t\t\tsims = Util.reWeightVector(sims);\n\t\t\tfor(int p=0; p<pIds.length; p++) {\n\t\t\t\tfs = (FeatureSequence)documents.get(p).getData();\n\t\t\t\tint[] pTokens = fs.getFeatures();\n\t\t\t\tfor(int i=0; i<pTokens.length; i++) {\n\t\t\t\t\tint term = pTokens[i];\n\t\t\t\t\ttmpCounts[term] += (1-alpha) * sims[p];\n\t\t\t\t}\n\t\t\t\ttokens = ArrayUtils.append(tokens, fs.getFeatures());\n\t\t\t}\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t}\n\t\t\n\t\tint termNum = MalletTfidf.distinctNumbers(tokens);\n\t\tpseudoTermIndex[docIdx]= new int[termNum];\n\t\tpseudoTf[docIdx] = new double[termNum];\n\t\tint[] tmpTf = new int[termNum];\n\t\tMalletTfidf.countTf(tokens, pseudoTermIndex[docIdx], tmpTf); // count the tf frequency\n\t\tfor(int i=0; i<pseudoTermIndex[docIdx].length; i++) {\n\t\t\tint term = pseudoTermIndex[docIdx][i];\n\t\t\tpseudoTf[docIdx][i] = tmpCounts[term];\n\t\t}\n\t\tpseudoTermWeight[docIdx] = Util.reWeightVector(pseudoTf[docIdx]);\n\t}", "public int getIDFScore(String term) { \r\n\t\tif (map.containsKey(term) == false)\r\n\t\t\treturn 0;\r\n\t\treturn map.get(term).size();\r\n\t}", "static long countTriplets(List<Long> arr, long r) {\n\t\tMap<Long, Long> elementMapWithOccuranceCount = new HashMap<>();\n\t\t//map contains the triplet count for each element\n\t\tMap<Long, Long> elementMapWithTripletCount = new HashMap<>();\n\t\tlong count = 0;\n\t\tfor (int i = 0; i < arr.size(); i++) {\n\t\t\tlong a = arr.get(i);\n\t\t\tlong key = a / r;\n\t\t\t\n\t\t\tif (elementMapWithTripletCount.containsKey(key) && a % r == 0) {\n\t\t\t\t//Have previous count so increment the count\n\t\t\t\tcount += elementMapWithTripletCount.get(key);\n\t\t\t}\n\t\t\t\n\t\t\tif (elementMapWithOccuranceCount.containsKey(key) && a % r == 0) {\n\t\t\t\t//Have a matching member in triplet, check it's count and put that in triplet count, \n\t\t\t\t//that many triplet will be available in the array for this count, only if triplet count available, other wise 0 \n\t\t\t\tlong elementCount = elementMapWithOccuranceCount.get(key);\n\t\t\t\telementMapWithTripletCount.put(a, elementMapWithTripletCount.getOrDefault(a, 0L) + elementCount);\n\t\t\t}\n\t\t\t//By default put it every time we find a new element, this map also keeps count but only for elements\n\t\t\telementMapWithOccuranceCount.put(a, elementMapWithOccuranceCount.getOrDefault(a, 0L) + 1); // Every number can be the start of a triplet.\n\t\t}\n\t\treturn count;\n\t}", "public static int[] mucScore(LeanDocument key, LeanDocument response)\n{\n // System.out.println(\"==========================================================\");\n // System.out.println(\"Key:\\n\"+key.toStringNoSing()+\"\\n*************************\\nResponse:\\n\"+response.toStringNoSing());\n\n Iterator<TreeMap<Integer, Integer>> goldChains = key.chainIterator();\n // double mucRecall = 0.0;\n int mucRecallNom = 0;\n int mucRecallDenom = 0;\n while (goldChains.hasNext()) {\n TreeMap<Integer, Integer> keyChain = goldChains.next();\n if (keyChain.size() > 1) {\n int numInt = numIntersect(key, keyChain, response);\n\n // int numMatched = getNumMatched(key, keyChain);\n // if(numMatched>0){\n // mucRecallNom += numMatched-numInt;\n mucRecallNom += (keyChain.size() - numInt);\n // mucRecallDenom += numMatched-1;\n mucRecallDenom += keyChain.size() - 1;\n\n // System.out.println(keyChain+\"\\n\"+(keyChain.size() - numInt)+\"/\"+(keyChain.size()-1));\n // }\n }\n }\n int[] result = { mucRecallNom, mucRecallDenom };\n\n return result;\n}", "public abstract int numberOfTerms();", "int getNumberOfDetectedDuplicates();", "public static void checkUpdateProbabilityOnAtomicRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 0; j < 8; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = base_relations[j];\r\n\t\t\t\r\n\t\t\t\tfor(int k = 0; k < 8; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = base_relations[k];\r\n\t\t\t\t\ttotal++;\r\n\t\t\t\t\t//int new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\tint new_r3 = SetOperators.intersection(r3, \r\n\t\t\t\t\t\t\t\tCompositionTable.LookUpTable(r1, r2));\r\n\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\tif( new_r3 != r3 )\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\tupdate++;\r\n\t\t\t\t\t\t//System.out.println(new_r3);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tSystem.out.println(\" total \" + total + \" update \" + update);\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "static long countTriplets(List<Long> arr, long r) {\n Map<Long, Integer> map=new HashMap<Long, Integer>();\n int l = arr.size();\n long triplets = 0;\n //Create a map with unique numbers in arr as key and its frequency as value\n for(int i = 0; i < l; i++) {\n if (map.containsKey(arr.get(i))) {\n map.put(arr.get(i), map.get(arr.get(i)) + 1);\n } else {\n map.put(arr.get(i), 1);\n }\n }\n \n /*\n If ratio is 1, arr is {2,2,2,2,2,2,2,2,2,2}.. 2 is 10 times than map will be \n {(2, 10)}, where 2 is key and 10 is value than answer will be Nc3 (10c3), using permutations and combinations.. select '2' three times from 10 items which can be done in 10c3 ways\n */\n if (r == 1) {\n for (Map.Entry<Long, Integer> entry : map.entrySet()) {\n long key = entry.getKey();\n long val = entry.getValue();\n System.out.println(\"Key is: \" + key);\n System.out.println(\"Value is: \" + val);\n if (val > 2) {\n //here applying formula for Nc3\n triplets = triplets + (val * (val - 1) * (val - 2))/6;\n }\n } \n } else {\n /*\n eg. 2,4,4,8,8,16,24,24,24 and r is 2\n map will be {(2,1), (4,2), (8,2), (16,1), (24,3)}\n iterate for every key,value pair in the map\n first time (2,1), key is 2.. now check for 2*r(4) and 2*r*r(8) in map\n if present means triplet found.. now we need to calculate how many triplets can be formed with these 3 values.. that will be multiplication of values of these 3 keys in map... 2 is 1 time, 4 is 2 times, 8 is 2 times... no. of triplets = 1*2*2=4\n */\n for (Map.Entry<Long, Integer> entry : map.entrySet()) {\n long key1 = entry.getKey();\n long val = entry.getValue();\n long key2 = key1 * r;\n long key3 = key2 * r;\n\n if(map.containsKey(key2) && map.containsKey(key3)) {\n triplets = triplets + (val * map.get(key2) * map.get(key3));\n }\n } \n }\n return triplets;\n }", "int getMissingCount();", "public static void main(String[] args) {\n List<Integer> nums = new ArrayList<>(Arrays.asList(5, 7, 3, 7, 2, 8, 3, 7, 2));\n //Map<Integer, Integer> numCount = countOccurance(nums);\n Map<Integer, Long> numCount = nums.stream().collect(Collectors.groupingBy(num -> num, Collectors.counting()));\n Set<Integer> numSet = new LinkedHashSet<>(nums);\n numSet.forEach(num -> System.out.println(num + \" \" + numCount.get(num)));\n }", "public int [] hotN(ArrayList<LottoDay> list)\n\t{ \n\t\tint high=0;//checks for the highest number\n\t\tint[] numF = new int [48];// stores the frequency of each number\n\t\tint[] highest= new int [5]; //stores the 5 highest numbers\n\t\tint counter =0;\n\t\t//hot numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\thighest = one.getWNum(); //get the first 5 numbers only of that object store in the array\n\t\t\t//gets the frequency for the numbers 1-47\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<highest.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//check the array of for the index\n\t\t\t\t\tif(highest[k]==j)\n\t\t\t\t\t{ \n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add to the count\n\t\t\t\t\t\tcounter=0; //set counter back to zero \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for the highest number and store in highest array \n\t\tfor(int j=0; j<highest.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//if the occurrences beats high \n\t\t\t\tif(numF[i]>high)\n\t\t\t\t{\n\t\t\t\t\thigh = numF[i]; //new highest occurrence is stored\n\t\t\t\t\thighest[j]=i; //store the index in the array\n\t\t\t\t\tindex=i; //index equals i\n\t\t\t\t}\n\n\t\t\t}\n\t\t\thigh=0; //high goes back zero once through the entire list\n\t\t\tnumF[index]=0; //highest numbers occurrences is now set to zero\n\n\t\t}\n\n\t\treturn highest;//return the highest numbers in the list\n\t}", "public int getTermTotal(){\n\t\tint total = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\ttotal += set.getValue().getTotalTerms();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "private int updates(){\r\n\t\tint nbAdded = 0;\r\n\t\t\r\n\t\tElement myDrug;\r\n\t\t\r\n\t\t// get the list of element\r\n\t\tHashSet<String> drugList = this.getAllDrugs();\r\n\t\t\r\n\t\t// gets the elements already in the corresponding _ET and keeps only the difference\r\n\t\tHashSet<String> allElementsInET = resourceUpdateService.getAllLocalElementIDs();\r\n\t\tdrugList.removeAll(allElementsInET);\r\n\t\t\r\n\t\t// for each Drug element accessed by the tool\r\n\t\tfor (String localDrugID: drugList){\t\t\t\t\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\t// populates OBR_PGDR_ET with each of these drugs\r\n\t\t\t\tmyDrug = this.getOneDrugData(localDrugID);\r\n\t\t\t\t//System.out.println(myDrug.getElementStructure().toString());\r\n\t\t\t\tif(!myDrug.getElementStructure().hasNullValues()){\r\n\t\t\t\t\tif(resourceUpdateService.addElement(myDrug)){\r\n\t\t\t\t\t\tnbAdded++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// System.out.println(myDrug.getDrugName()+\", \"+myDrug.getDrugAlternateNames()+\", \"+myDrug.getDrugRelatedPathways()+\", \"+myDrug.getDrugRelatedDrugs()+\", \"+myDrug.getDrugRelatedPhenotypeDatasets());\r\n\t\t\t\t\t/*if(toolPGDR_ET.addEntry(new DrugEntry(localDrugID, myDrug.getDrugName(), \r\n\t\t\t\t\t\t\tmyDrug.getDrugAlternateNames(), myDrug.getDrugRelatedGenes(), \r\n\t\t\t\t\t\t\tmyDrug.getDrugRelatedPathways(), myDrug.getDrugRelatedDiseases(), \r\n\t\t\t\t\t\t\tmyDrug.getDrugRelatedPhenotypeDatasets()))){\r\n\t\t\t\t\t\tnbAdded++;\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\tlogger.error(\"** PROBLEM ** Problem with drug \"+ localDrugID +\" when populating the OBR_PGDR_ET table.\", e);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tlogger.info(nbAdded+\" drug added to the OBR_PGDR_ET table.\");\r\n\t\treturn nbAdded;\r\n\t}", "public void addCount() {\n \t\tdupCount++;\n \t}", "public int getDublicatesCount() {\n int res = 0;\n for (Integer integer : gramma.keySet()) {\n if (integer > 1) {\n res += gramma.get(integer);\n }\n }\n return res;\n }", "public void fetchAllTermsAndCalculateMinHash()\r\n\t{\r\n\t\tint a,b,prime,termGUI;\r\n\t\tRandom random = new Random();\r\n\t\ttermGUI = unionAll.size();\r\n\t\tminHash = new int[numPermutations][docarray.length];\r\n\t\tint[] minHashSignatureArray;\r\n\t\tfor (int j = 0; j < docarray.length; j++)\r\n\t\t{\r\n\t\t\tHashSet<String> terms = buildsetofterms(folderName + File.separator + docarray[j]);\r\n\t\t\tArrayList<Integer> indexList = new ArrayList<Integer>();\r\n\t\t\tfor (String term : terms) \r\n\t\t\t{\r\n\t\t\t\tif (unionAll.containsKey(term))\r\n\t\t\t\t{\r\n\t\t\t\t\tint indexVal = (int) unionAll.get(term);\r\n\t\t\t\t\tindexList.add(indexVal);\r\n\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tunionAll.put(term, termGUI);\r\n\t\t\t\t\tindexList.add(termGUI);\r\n\t\t\t\t\ttermGUI++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint[] termMappingArray = new int[indexList.size()];\r\n\t\t\tfor (int i = 0; i < indexList.size(); i++) {\r\n\t\t\t\ttermMappingArray[i] = indexList.get(i);\r\n\t\t\t}\r\n\t\t\tthis.fileTermsIntegerMapping.put(docarray[j], termMappingArray);\r\n\t\t}\r\n\r\n//Applying Permutation and finding value permutation values for terms in all the documents\r\n\t\tprime = Prime.prime(unionAll.size());\r\n\t\thashFunctions = new int[numPermutations][unionAll.size()];\r\n\t\tfor (int i = 0; i < numPermutations; i++) \r\n\t\t{\r\n\t\t\ta = random.nextInt(prime)+0;\r\n\t\t\tb = random.nextInt(prime)+0;\r\n\t\t\tfor (int j = 0; j < unionAll.size(); j++) \r\n\t\t\t{\r\n\t\t\t\thashFunctions[i][j] = ((a * j) + b) % prime;\r\n\t\t\t}\r\n\t\t}\r\n// Calling MinHashSig method to calculate Min hash values for all the permutations on all the documents \t\t\r\n\t\tfor (int j = 0; j < docarray.length; j++) {\r\n\t\t\tString fileName = docarray[j];\r\n\t\t\tminHashSignatureArray = minHashSig(fileName);\r\n\t\t\tfor (int i = 0; i < numPermutations; i++) {\r\n\t\t\t\tminHash[i][j] = minHashSignatureArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public double collisionLength(){\n //count to keep track of how many words there are the chain\n int count = 0;\n for (int i = 0;i< tableSize;i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n //increments if there is an element\n if (ptr != null){\n count++;\n }\n //while loop to traverse the linked list\n while (ptr.getNext() != null){\n //increments for every word\n count++;\n ptr = ptr.getNext();\n }\n }\n }\n return ((double) count / (double) usedIndex);\n }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "int getEducationsCount();", "public int getDocFreq(Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getValue().containsTerm(t)){\r\n\t\t\t\tfreq++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn freq;\r\n\t}", "protected double[] getPairCounts(Hashtable<Integer, Double> words) {\n\t\tdouble positiveCount = 0;\n\t\tdouble negativeCount = 0;\n\t\tfor(int word1 : words.keySet()){\n\t\t\tfor(int word2 : words.keySet()){\n\t\t\t\tif(word1 != word2){\n\t\t\t\t\tif(relatedPairs[word1].contains(word2)){\n\t\t\t\t\t\tpositiveCount+= words.get(word1) * words.get(word2); //pairs with feature same SG\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnegativeCount+= words.get(word1) * words.get(word2); // pairs with feature different SG\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new double[]{positiveCount, negativeCount};//return both\n\t}", "public int numEquivDominoPairs(int[][] dominoes) {\n\n int[] hash = new int[100];\n int res = 0;\n for (int[] d : dominoes) {\n int t = d[0] >= d[1] ? d[0] * 10 + d[1] : d[1] * 10 + d[0];\n res += hash[t];\n hash[t]++;\n }\n return res;\n }", "@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "private void normByTopicAndMultiByCount(Vector doc, List<Integer> terms, Matrix perTopicSparseDistributions) {\n for (Integer termIndex : terms) {\n double sum = 0;\n for (int x = 0; x < numTopics; x++) {\n sum += perTopicSparseDistributions.viewRow(x).getQuick(termIndex);\n }\n double count = doc.getQuick(termIndex);\n for (int x = 0; x < numTopics; x++) {\n perTopicSparseDistributions.viewRow(x).setQuick(termIndex,\n perTopicSparseDistributions.viewRow(x).getQuick(termIndex) * count / sum);\n }\n }\n }", "private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}", "public Long numeroRegistrosFactura();", "private Map<S, Long> getPatternOccurrence(final S terminal) {\n Map<S, Long> occInNonTerminal = new HashMap<>();\n if(matchingBlocks) {\n Iterator<P> it = slp.getOrderedProductions().descendingIterator();\n while (it.hasNext()) {\n P production = it.next();\n long ntOcc = production.getRight().stream().map(s -> {\n if(!s.isTerminal()) {\n return occInNonTerminal.get(s);\n }\n else if(s.getBlockId() == terminal.getBlockId() && s.getWeight() >= terminal.getWeight()) {\n return s.getWeight() - terminal.getWeight() + 1;\n }\n else {\n return 0L;\n }\n }).reduce(0L, (a,b) -> a + b);\n occInNonTerminal.put(production.getLeft(), ntOcc);\n }\n }\n else {\n Iterator<P> it = slp.getOrderedProductions().descendingIterator();\n while (it.hasNext()) {\n P production = it.next();\n long ntOcc = production.getRight().stream().map(s -> !s.isTerminal() ? occInNonTerminal.get(s) : (s.equals(terminal) ? 1L : 0L)).reduce(0L, (a,b) -> a+b);\n occInNonTerminal.put(production.getLeft(), ntOcc);\n }\n }\n\n\n return occInNonTerminal;\n }", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}", "private synchronized Long getCount(String id) {\n if (counts.isEmpty()) {\n log.info(\"Getting counts for ontology\");\n Set<String> availIds = efo.getAllTermIds();\n\n for (String efoTerm : availIds) {\n Attribute attr = new EfoAttribute(efoTerm);\n int geneCount = atlasStatisticsQueryService.getBioEntityCountForEfoAttribute(attr, StatisticsType.UP_DOWN);\n if (geneCount > 0)\n counts.put(attr.getValue(), (long) geneCount);\n\n }\n log.info(\"Done getting counts for ontology\");\n }\n\n return counts.get(id);\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public int[] coldN(ArrayList<LottoDay> list)\n\t{ \n\t\tint low=200;//set low to 200\n\t\tint[] numF = new int [48]; //create array of occurrences\n\t\tint[] check = new int [5]; //create an array for the first five numbers and the five lowest numbers\n\t\tint counter =0; //counts number of occurrences\n\t\t//cold numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tcheck = one.getWNum();//store the 5 lotto numbers\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if lotto number equals the index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to counter\n\t\t\t\t\t\tnumF[j]=counter+numF[j];//add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for lowest number\n\t\tfor(int j=0; j<check.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//occurrence isn't zero and is lower than low\n\t\t\t\tif(numF[i]<low &&numF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = numF[i]; //set low to new low of occurrence\n\t\t\t\t\tcheck[j]=i; //store new low occurrence\n\t\t\t\t\tindex=i; //store index of occurrence\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tlow=200;//reset low\n\t\t\tnumF[index]=0;//sets the lowest occurrence to zero\n\n\t\t}\n\n\n\n\t\treturn check;//return 5 lowest numbers\n\n\n\t}", "private int syuneri_gumar(ArrayList<Integer> syun) {\n int summa = 0;\n for (int i = 0; i < syun.size(); i++)\n summa += syun.get(i);\n return summa;\n }", "int getUniqueNumbersCount();", "public static int numberOfSegs() {\n String sql = \"SELECT COUNT(*) FROM corpus1;\";\n\n int notDistinctCount = 0;\n int distinctCount = 0;\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n notDistinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n sql = \"SELECT COUNT(DISTINCT id) FROM corpus1;\";\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n distinctCount = rs.getInt(1);\n } catch (SQLException e) {\n System.out.println(\"count: \" + e.getMessage());\n }\n\n if (distinctCount != notDistinctCount) {\n System.out.println(distinctCount + \", \" + notDistinctCount);\n }\n\n return distinctCount;\n }", "private void countSubDataPropertyOfAxiomsMetric() {\r\n\t\tint subDataPropertyOfAxiomsCount = ontology.getAxiomCount(AxiomType.SUB_DATA_PROPERTY,\r\n\t\t\t\tOntologyUtility.ImportClosures(imports));\r\n\t\treturnObject.put(\"subDataPropertyOfAxioms\", subDataPropertyOfAxiomsCount);\r\n\r\n\t}", "public ArrayList<Person> hashDoubleDeduplication(){\n\tArrayList<Person> unduplicated1 = new ArrayList<>();\n\tDoubleHashMap<String, Person> map = new DoubleHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t // and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\t//The following lines of codes were commented after usage in the first part of the assignment:\n\t//System.out.println (\"Average number of probes: \"+ average/insertCount );\n\t//System.out.println(\"Max number of probes: \"+ max);\n\t//System.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n\tIterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated1.add(suspect);\n\t}\n\treturn unduplicated1;\n }", "@Override\n public int getTermFrequency(String term) {\n return 0;\n }", "public static void getFreq(){\n\t\t\tint mutTotalcounter=0;\n\t\t\t\n\t\t\tfor(int i=0; i<numOfMutations.length-1; i++){\n\t\t\t\t\n\t\t\t\tif(numOfMutations[i]==numOfMutations[i+1]){\n\t\t\t\t\tfrequency[mutTotalcounter]+=1; //if number of mutation is repeated in original array, frequency is incremented\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(numOfMutations[i]!=numOfMutations[i+1])\n\t\t\t\t{\n\t\t\t\t\tmutTotal[mutTotalcounter++]=numOfMutations[i]; //if number is not repeated in array, the next element in array\n\t\t\t\t\t//becomes the next number of mutations that occurred\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((i+1)==numOfMutations.length-1){\n\t\t\t\t\t//used to get the last element in original array since for loop will go out of bounds\n\t\t\t\t\tmutTotal[mutTotalcounter]=numOfMutations[i+1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"XMut : YFreq\");\n\t\t\t//console display of mutation and frequency values\n\t\t\tfor (int i=0; i<=mutTotal.length-1;i++){\n\t\t\t\tif(mutTotal[i]==0 && frequency[i]==0) continue;\n\t\t\t\tfrequency[i]+=1;\n\t\t\t\tSystem.out.print(mutTotal[i]+\" : \");\n\t\t\t\tSystem.out.print(frequency[i]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "private void computeDependentCount() {\n dependentCountArray = new int[numNodes+1];\n for(int i = 0; i < dependentCountArray.length;i++){\n dependentCountArray[i] = 0;\n }\n for(int i = 0; i < adjMatrix.length; i++){\n int hasDependentCounter = 0;\n for(int j = 0; j < adjMatrix[i].length; j++){\n\n if(adjMatrix[i][j] == 1){\n if(!allNodes[i].orphan){\n hasDependentCounter++;\n }\n }\n\n }\n dependentCountArray[i] = hasDependentCounter;\n }\n\n for(int i = 0; i < dependentCountArray.length;i++){\n //System.out.println(i + \" has dependent \" + dependentCountArray[i]);\n }\n\n\n\n }", "public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }", "abstract public int docFreq(Term t) throws IOException;", "public void init() {\n\t\tint totalFrequencia = 0;\n\t\tfor (Entry<String, Integer> clusterFrequencia : clustersFrequencia.entrySet()) {\n\t\t\ttotalFrequencia = totalFrequencia + clusterFrequencia.getValue();\n\t\t}\n\t\tsetTotalFrequencia(totalFrequencia);\n\t\t\n\t\t//atualiza a entropia\n\t\tDouble entropiaF = 0.0;\n\t\tfor (Entry<String, Integer> clusterFrequencia : clustersFrequencia.entrySet()) {\n\t\t\tDouble pxi = 1.0 * clusterFrequencia.getValue()/totalFrequencia;\n\t\t\tentropiaF = entropiaF + pxi * Math.log(pxi);\n\t\t}\n\t\tif (entropiaF != 0 )\n\t\t\tentropiaF = entropiaF * -1;\n\t\tsetEntropiaF(entropiaF);\n\t\t\n\t\t//atualiza o valor da formula\n\t\tDouble formulaScoreF = 1.0* Math.log10(totalFrequencia)/(entropiaF+1);\n\t\tsetFormulaScoreF(formulaScoreF);\n\t\t\n\t}", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "public long numCandidates();", "private void count( int theR, int theC )\n {\n for( int r = -1; r <= 1; r++ ) \n {\n for( int c = -1; c <= 1; c++ )\n {\n if( isValid( theR + r, theC + c ) )\n theCounts[ theR ][ theC ] += theMines[ theR + r ][ theC + c ];\n }\n } \n }", "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 void updateCounts() {\n\n Map<Feel, Integer> counts_of = new HashMap<>();\n\n for (Feel feeling : Feel.values()) {\n counts_of.put(feeling, 0);\n }\n\n for (FeelingRecord record : this.records) {\n counts_of.put(record.getFeeling(), counts_of.get(record.getFeeling()) + 1);\n }\n\n this.angry_count.setText(\"Anger: \" + counts_of.get(Feel.ANGER).toString());\n this.fear_count.setText(\"Fear: \" + counts_of.get(Feel.FEAR).toString());\n this.joyful_count.setText(\"Joy: \" + counts_of.get(Feel.JOY).toString());\n this.love_count.setText(\"Love: \" + counts_of.get(Feel.LOVE).toString());\n this.sad_count.setText(\"Sad:\" + counts_of.get(Feel.SADNESS).toString());\n this.suprise_count.setText(\"Suprise: \" + counts_of.get(Feel.SURPRISE).toString());\n }", "private CounterDistribution distribution(long... values) {\n CounterDistribution dist = CounterDistribution.empty();\n for (long value : values) {\n dist = dist.addValue(value);\n }\n\n return dist;\n }", "public int countInversion(){\n\t\tsetInversiones(0);\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\n\t\treturn getInversiones();\n\t}", "public LPGInconsistency countInconsistencies() {\n\t\tInconsistencyIterator it = new InconsistencyIterator();\n\t\tint counter = 0;\n\t\tLPGInconsistency inconsistency = null;\n\t\twhile(it.hasNext()) {\n\t\t\tinconsistency = it.next();\n\t\t\tcounter++;\n\t\t}\n\t\tinconsistencyCount = counter;\n\t\t\n\t\treturn inconsistency;\n\t}", "public static void incrDuplicates() { ++duplicates; }", "public long numSimilarities();", "public void countTerm() throws IOException {\n\n long countBody = reader.getSumDocFreq(\"body\");\n long countTitle = reader.getSumDocFreq(\"title\");\n\n System.out.println(\"Body: \" + countBody);\n System.out.println(\"Title: \" + countTitle);\n System.out.println(\"Total count Terms: \" + (countTitle + countBody));\n\n }", "public int getNumNucleiToAdd() {\n return updateCount - numNucleiToRemove;\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<String, Integer> shopping_data = new HashMap<>(); //count number of fruits bought\n\t\tMap<String, Integer> fruit_count = new HashMap<>(); //count how many customers bought fruit\n\t\t\t\t\n\t\tint loop;\n\t\tString fruit;\n\t\t\n\t\tloop = scan.nextInt();\n\t\tString[] fruit_list = new String[loop];\n\t\tSet<String> dupl_check = new HashSet<>(); //remove duplicate fruits\n\t\t\n\t\t//initialize dictionary of fruits and counter of 0\n\t\tfor (int i = 0; i < loop; i++) { \n\t\t\tfruit = scan.next();\n\t\t\tscan.nextDouble();\n\t\t\tshopping_data.put(fruit, 0);\n\t\t\tfruit_count.put(fruit, 0);\n\t\t\tfruit_list[i] = fruit;\n\t\t}\n\t\t\n\t\tint loop_2 = scan.nextInt();\n\t\t\n\t\tint loop_3 = 0, num_fruit = 0;\n\t\t\n\t\tfor (int i = 0; i < loop_2; i++) {\n\t\t\tscan.next();\n\t\t\tscan.next();\n\t\t\tloop_3 = scan.nextInt();\n\t\t\t//count number of fruits bought\n\t\t\tfor (int j = 0; j < loop_3; j++) {\n\t\t\t\tnum_fruit = scan.nextInt();\n\t\t\t\tfruit = scan.next();\n\t\t\t\tdupl_check.add(fruit); //add items into set\n\t\t\t\tint temp_fruit = shopping_data.get(fruit);\n\t\t\t\tnum_fruit += temp_fruit;\n\t\t\t\tshopping_data.put(fruit, num_fruit);\n\t\t\t\ttemp_fruit = 0;\n\t\t\t\tnum_fruit = 0;\n\t\t\t}\n\t\t\t//count how many customers bought fruit within set\n\t\t\tfor (String item:dupl_check) { \n\t\t\t\tint temp_fruit_2 = fruit_count.get(item);\n\t\t\t\ttemp_fruit_2 += 1;\n\t\t\t\tfruit_count.put(item, temp_fruit_2);\n\t\t\t\ttemp_fruit_2 = 0;\n\t\t\t}\n\t\t\tdupl_check = new HashSet<>(); //reset the set\n\t\t\t\n\t\t}\n\t\t\n\t\t//print out the result\n\t\tint cust_count;\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tfruit = fruit_list[i];\n\t\t\tif (fruit_count.get(fruit) == 0) {\n\t\t\t\tSystem.out.println(\"No customers bought \" + fruit);\n\t\t\t} \n\t\t\telse {\n\t\t\t\tSystem.out.println(String.format(\"%d\", fruit_count.get(fruit)) + \" customers bought \" + \n\t\t\t\tString.format(\"%d\", shopping_data.get(fruit)) + \" \" + fruit);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "long countByExample(XPsDigest95thPercentileByAvgUsExample example);", "private void calculateIDF2Values() throws IOException {\n\t\tfor (int i = 0; i < getTfMapArrayIDF().size(); i++) {\n\t\t\tList<Map<String, List<Double>>> gestureDocument = getTfMapArrayIDF()\n\t\t\t\t\t.get(i);\n\t\t\tMap<String, Double> idf2PerDocument = getTfMapArrayIDF2().get(i);\n\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String, List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet()\n\t\t\t\t\t\t.iterator();\n\t\t\t\twhile (it.hasNext()) {\n\t\t\t\t\tMap.Entry<String, List<Double>> pairs = (Map.Entry) it\n\t\t\t\t\t\t\t.next();\n\t\t\t\t\tDouble inverse = (new Double(getTfMapArrayIDF().get(0)\n\t\t\t\t\t\t\t.size()) / idf2PerDocument.get(pairs.getKey())); // already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inversse\n\t\t\t\t\tList<Double> tf = pairs.getValue();\n\t\t\t\t\ttf.set(2,Math.log(inverse));\n\t\t\t\t\ttf.set(3,tf.get(0) * tf.get(1)); //tf-idf\n\t\t\t\t\tidfValues.add(tf.get(1));\n\t\t\t\t\ttf.set(4,tf.get(0) * tf.get(2)); //tf-idf2\n\t\t\t\t\tidf2Values.add(tf.get(2));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addFormulas() {\n countFormulas++;\n }", "public static void main(String[] args) throws ParseException, CloneNotSupportedException, IOException\n\t{\n\t\t\n\t\tint N = 5;\n\t\tint k = 3;\n\t\tint [] numbers = {6,1,2,3,7};\n\t\tList<Integer> oneCounts = new ArrayList<Integer>(N);\n\t\tfor(int i =0 ; i<N ;i++){\n\t\t\t\n\t\t\toneCounts.add(i, countOne(numbers[i])); \n\t\t}\n\t\tCollections.sort(oneCounts,new Comparator<Integer>(){\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer o1, Integer o2)\n\t\t\t{\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn (o2-o1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} );\n\t\tint result =0;\n\t\tfor(int j =0 ;j < k ;j++){\n\t\t\t\n\t\t\tresult = result + oneCounts.get(j);\n\t\t}\n\t\t\n \n\t\tSystem.out.println(result);\n\t\tSystem.out.println(1^9);\n\t}", "long countByExample(NjProductTaticsRelationExample example);", "private static void mostOccur(int[] is) {\n\t\t\t\n\t\t\t\n\t\t\tMap<Integer, Integer> numberCount = new HashMap<>();\n\t\t\t\n\t\t\t\n\t\t\tfor (int i=0; i<is.length; i++ ) {\n\t\t\t\tif(null==numberCount.get(i)) {\n\t\t\t\tnumberCount.put(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnumberCount.put(i, numberCount.get(i) +1);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Iterator<Integer> it = numberCount.keySet().iterator();\n\t\t\tSet<Entry<Integer, Integer>> entries= numberCount.entrySet();\n\t\t\t\n\t\t\tint maxcount=1;\n\t\t\tint maxvalue = 0;\n\t\t\tfor(Entry<Integer, Integer> entry: entries) {\n\t\t\t\tif (entry.getValue()>maxcount) {\n\t\t\t\tmaxcount = entry.getValue();\n\t\t\t\tmaxvalue = entry.getKey();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(maxvalue == 0) {\n\t\t\t\tSystem.out.println(\"All numbers are same\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Most occurance\" + maxvalue + \"and count\" +maxcount);\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t}", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "public int getTotalTerms() {\n\t\tif (dict != null) {\n\t\t\treturn dict.size();\n\t\t}\n\t\t// TODO: Implement this method\n\t\treturn 0;\n\t}", "public int countInversion(){\r\n\t\tsetInversiones(0);\r\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\r\n\t\treturn getInversiones();\r\n\t}", "private int countMaxAtropisomricBond(OEGraphMol in)\n { OEBondBaseIter bIt;\n Set<Integer> atropBondSet = new HashSet<Integer>();\n\n // find all bonds that could possbily be atropisomeric\n OEMatchBaseIter mIt = POSSIBLEAtropIsomer.Match(in);\n while( mIt.hasNext() )\n { OEMatchBase mb = mIt.next();\n\n bIt = mb.GetTargetBonds();\n atropBondSet.add(bIt.next().GetIdx());\n bIt.delete();\n }\n mIt.delete();\n\n return atropBondSet.size();\n }", "private void countChange() {\n /* To make 0.00, we use 0 coins. */\n myIndices[0] = 0;\n \n /* \n * Work from subproblem $0.01 to target. \n * Because subproblems overlap, we will\n * store them and use them dynamically.\n */\n for (int curr = 1; curr <= myTarget; curr++) {\n /* \n * Adds one coin (current-next used) to\n * the preemptive minimum coins needed.\n */\n myIndices[curr] = getMinPrior(curr) + 1;\n }\n \n myMinCoins = myIndices[myTarget];\n }", "protected static double[] getFrequencies(List<Sequence> sequences) {\n return getFrequenciesMaybeSafe(sequences, false);\n }", "private Map<Integer, Map<Integer, Occurence>> removeItemsThatAreNotFrequent(SequenceDatabase database) {\n\t\t// (1) Count the support of each item in the database in one database pass\n\t\tmapItemCount = new HashMap<Integer, Map<Integer, Occurence>>(); // <item, Map<tid, occurence>>\n\t\t\n\t\t// for each sequence in the database\n\t\tfor(int k=0; k< database.size(); k++){\n\t\t\tSequence sequence = database.getSequences().get(k);\n\t\t\t// for each itemset in that sequence\n\t\t\tfor(short j=0; j< sequence.getItemsets().size(); j++){\n\t\t\t\tList<Integer> itemset = sequence.get(j);\n\t\t\t\t// for each item in that itemset\n\t\t\t\tfor(int i=0; i< itemset.size(); i++){\n\t\t\t\t\tInteger itemI = itemset.get(i);\n\t\t\t\t\t\n\t\t\t\t\t// get the map of occurences of that item\n\t\t\t\t\tMap<Integer, Occurence> occurences = mapItemCount.get(itemI);\n\t\t\t\t\t// if this map is null, create a new one\n\t\t\t\t\tif(occurences == null){\n\t\t\t\t\t\toccurences = new HashMap<Integer, Occurence>();\n\t\t\t\t\t\tmapItemCount.put(itemI, occurences);\n\t\t\t\t\t}\n\t\t\t\t\t// then update the occurence by adding j as the \n\t\t\t\t\t// last occurence in sequence k\n\t\t\t\t\tOccurence occurence = occurences.get(k);\n\t\t\t\t\tif(occurence == null){\n\t\t\t\t\t\toccurence = new Occurence(j, j);\n\t\t\t\t\t\toccurences.put(k, occurence);\n\t\t\t\t\t}else{\n\t\t\t\t\t\toccurence.lastItemset = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"NUMBER OF DIFFERENT ITEMS : \" + mapItemCount.size());\n\t\t// (2) remove all items that are not frequent from the database\n\t\t\n\t\t// for each sequence\n\t\tfor(Sequence sequence : database.getSequences()){\n\t\t\tint i=0;\n\t\t\t\n\t\t\t// for each itemset\n\t\t\twhile(i < sequence.getItemsets().size()){\n\t\t\t\tList<Integer> itemset = sequence.getItemsets().get(i);\n\t\t\t\tint j=0;\n\t\t\t\t\n\t\t\t\t// for each item\n\t\t\t\twhile(j < itemset.size()){\n\t\t\t\t\t// if the item is not frequent remove it\n\t\t\t\t\tif( mapItemCount.get(itemset.get(j)).size() < minsuppRelative){\n\t\t\t\t\t\titemset.remove(j);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t// otherwise go to next item\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++; // go to next itemset\n\t\t\t}\n\t\t}\n\t\t// return the map of occurences of items\n\t\treturn mapItemCount;\n\t}", "public void addGTTotalToretObj(PbReturnObject newCrossPb) {\r\n //\r\n // for(int iloop=0;iloop<GTCol.length;iloop++)//Amit Commented to correct GT Order 16May2011\r\n HashMap<String, ArrayList> tempGt = new HashMap<String, ArrayList>();\r\n// //added by Nazneen\r\n// for(int i=0;i<Qrycolumns.size();i++){\r\n// int getTheMeasurePosInOldRetObj =oColumnList.indexOf(\"A_\"+Qrycolumns.get(i));\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// }\r\n zerocntretobj = newCrossPb;//bhargavi\r\n this.forzerocount(); //bhargavi\r\n for (int i = 0; i < Qrycolumns.size(); i++) {\r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(i));\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n boolean flag = checkforChangepercentMsr((String) Qrycolumns.get(i));\r\n ArrayList<String> list = new ArrayList<String>();\r\n if (flag) {\r\n list = getCuurentAndPriorElementIDs((String) Qrycolumns.get(i));\r\n if (list != null && !list.isEmpty()) {\r\n // \r\n // if(list.containsAll(Qrycolumns)){\r\n if (Qrycolumns.containsAll(list)) {\r\n // \r\n ArrayList list1 = tempGt.get((String) list.get(0));\r\n ArrayList list2 = tempGt.get((String) list.get(1));\r\n // \r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal curr = BigDecimal.ZERO;\r\n BigDecimal prior = BigDecimal.ZERO;\r\n BigDecimal crctVal = BigDecimal.ZERO;\r\n BigDecimal sub = BigDecimal.ZERO;\r\n curr = (BigDecimal) list1.get(k);\r\n prior = (BigDecimal) list2.get(k);\r\n // \r\n if (prior.intValue() != 0) {\r\n sub = curr.subtract(prior);\r\n crctVal = (sub.divide(prior, MathContext.DECIMAL32)).multiply(new BigDecimal(100));\r\n }\r\n // \r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, crctVal);\r\n }\r\n }\r\n }\r\n }\r\n if (colViewCount < 2) {\r\n String eleId = Qrycolumns.get(i).toString();\r\n String gtCTAvgTypeStr = \"\";\r\n if (gtCTAvgType != null && gtCTAvgType.containsKey(\"A_\" + eleId)) {\r\n gtCTAvgTypeStr = gtCTAvgType.get(\"A_\" + eleId);\r\n }\r\n if (MsrAggregationMap != null && MsrAggregationMap.containsKey(Qrycolumns.get(i).toString())) {\r\n if (MsrAggregationMap.get(Qrycolumns.get(i).toString()).toString().equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n int cnt = colViewSortedValues[0].size();\r\n //commmented by Nazneen\r\n// ArrayList list1=tempGt.get((String)Qrycolumns.get(i));\r\n//// \r\n// BigDecimal count = new BigDecimal(cnt);\r\n// for(int k=0;k<GTCol[0].size();k++){\r\n// BigDecimal gtValue = BigDecimal.ZERO;\r\n// BigDecimal finalVal = BigDecimal.ZERO;\r\n// gtValue=(BigDecimal)list1.get(k);\r\n// finalVal=gtValue.divide(count,MathContext.DECIMAL32);\r\n// GTCol[getTheMeasurePosInOldRetObj-totalColBefore].set(k, finalVal);\r\n// }\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// //added by Nazneen for Avg cols created by formula's\r\n String qry = \"select ACTUAL_COL_FORMULA,REFFERED_ELEMENTS,USER_COL_TYPE,REF_ELEMENT_TYPE,AGGREGATION_TYPE from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + eleId;\r\n PbDb pbdb = new PbDb();\r\n try {\r\n PbReturnObject retobj = pbdb.execSelectSQL(qry);\r\n if (retobj.getRowCount() > 0) {\r\n String tempFormula = retobj.getFieldValueString(0, 0);\r\n String refferedElements = retobj.getFieldValueString(0, 1);\r\n String userColType = retobj.getFieldValueString(0, 2);\r\n String refElementType = retobj.getFieldValueString(0, 3);\r\n String aggType = retobj.getFieldValueString(0, 4);\r\n tempFormula = tempFormula.replace(\"SUM\", \"\").replace(\"AVG\", \"\").replace(\"MIN\", \"\").replace(\"MAX\", \"\").replace(\"COUNT\", \"\").replace(\"COUNTDISTINCT\", \"\");\r\n if (!userColType.equalsIgnoreCase(\"summarized\") && !userColType.equalsIgnoreCase(\"calculated\") && aggType.equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n } else if (userColType.equalsIgnoreCase(\"SUMMARIZED\")) {\r\n String refEleArray[] = refferedElements.split(\",\");\r\n int len = refEleArray.length;\r\n int flag1 = 1;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n String getBussColName = \"select USER_COL_NAME from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + elementId;\r\n PbReturnObject retobj1 = pbdb.execSelectSQL(getBussColName);\r\n if (retobj1.getRowCount() > 0) {\r\n String bussColName = retobj1.getFieldValueString(0, 0);\r\n if (tempFormula.contains(bussColName)) {\r\n tempFormula = tempFormula.replace(bussColName, elementId);\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n ScriptEngineManager mgr = new ScriptEngineManager();\r\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\r\n String formula = \"\";\r\n int flagVal = 1;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n String newFormula = tempFormula;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n flagVal = 1;\r\n if (Qrycolumns.contains(elementId)) {\r\n if (tempGt.get(elementId) != null) {\r\n if (tempGt.get(elementId).get(k) != null) {\r\n BigDecimal val = (BigDecimal) tempGt.get(elementId).get(k);\r\n newFormula = newFormula.replace(elementId, tempGt.get(elementId).get(k).toString());\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n flagVal = 0;\r\n }\r\n if (flagVal == 0) {\r\n break;\r\n }\r\n }\r\n if (flagVal == 1) {\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n newFormula = \"SELECT \" + newFormula;\r\n } else if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n } else {\r\n newFormula = \"SELECT \" + newFormula + \" FROM DUAL\";\r\n }\r\n if (!ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n PbReturnObject retobj2 = pbdb.execSelectSQL(newFormula);\r\n if (retobj2.getRowCount() > 0) {\r\n formula = retobj2.getFieldValueString(0, 0);\r\n if (formula.equalsIgnoreCase(\"\")) { //Condition added By Govardhan\r\n formula = \"0.00\";\r\n }\r\n BigDecimal finalValue = new BigDecimal(formula);\r\n finalValue = finalValue.setScale(2, RoundingMode.CEILING);\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalValue);\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int o = 0; o < GTCol[0].size(); o++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(o);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(o, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } catch (SQLException ex) {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n logger.error(\"Exception:\", ex);\r\n }\r\n } else {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n }\r\n //end of code by Nazneen\r\n }\r\n }\r\n }\r\n for (int iloop = 0; iloop < Qrycolumns.size(); iloop++) {\r\n boolean addGTTest = true;\r\n colGenerator++;\r\n String newColadd = \"A_\" + colGenerator;\r\n// \r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(iloop));\r\n //getTheMeasurePosInOldRetObj\r\n //newCrossPb.addColumn(newCrossPb.getColumnCount()-1, newColadd, finalColumnTypesInt.get(coli));\r\n int currPos = totalColFilled;//\r\n newCrossPb.cols[currPos] = newColadd;\r\n// newCrossPb.columnTypes[currPos]=this.columnTypes[iloop+totalColBefore];\r\n// newCrossPb.columnTypesInt[currPos]=this.columnTypesInt[iloop+totalColBefore] ;\r\n// newCrossPb.columnSizes[currPos]=this.columnSizes[iloop+totalColBefore] ;\r\n newCrossPb.columnTypes[currPos] = this.columnTypes[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnTypesInt[currPos] = this.columnTypesInt[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnSizes[currPos] = this.columnSizes[getTheMeasurePosInOldRetObj];\r\n ArrayList a = GTCol[getTheMeasurePosInOldRetObj - totalColBefore];\r\n newCrossPb.hMap.put(newColadd, a);\r\n totalColFilled++;\r\n// String mName1 =this.cols[totalColBefore+iloop];\r\n// mName1= mName1.replace(\"A_\", \"\");\r\n// int newPos=iloop;\r\n// if(mName1!=null && mName1.length()>0)\r\n// newPos = Qrycolumns.indexOf(mName1);\r\n\r\n ArrayList b = new ArrayList();\r\n for (int cloop = 0; cloop <= colViewCount; cloop++) {\r\n if (cloop == MeasurePos) {\r\n if (crosstabMsrMap != null && crosstabMsrMap.containsKey(queryMeasureName.get(iloop).toString())) {\r\n b.add(crosstabMsrMap.get(queryMeasureName.get(iloop)));\r\n } else {\r\n b.add(nonViewInput.get(queryMeasureName.get(iloop)));//Code change for GT order\r\n } //written by swati\r\n finalCrossTabReportDrillMap.put(newColadd, reportDrillMap.get(queryMeasureName.get(iloop)));\r\n crosstabMeasureId.put(newColadd, queryMeasureName.get(iloop));\r\n// if(!crosstablist.isEmpty()){\r\n// if(lLoop1<crosstablist.size()){\r\n// crosstabmeasureIdsmap.put(crosstablist.get(lLoop1), \"A\"+colGenerator);\r\n// lLoop1++;\r\n// }\r\n// }\r\n// crosstabmeasureIdsmap.put(queryMeasureName.get(iloop), newColadd);\r\n } else {\r\n if (addGTTest == true) {\r\n b.add(GTDisplayName);\r\n addGTTest = false;\r\n } else {\r\n b.add(\"\");\r\n }\r\n }\r\n }\r\n nonViewByMapNew.put(newColadd, b);\r\n nonViewByMapNew1.put(newColadd, b);\r\n GTColName.add(newColadd);\r\n }\r\n\r\n //return(newColadd);\r\n }", "int fillCount();", "int getRefundToCount();", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "public static long calculateSummary(List<BackflowEntry> entries) {\n Long res = 0L;\n for(BackflowEntry entry : entries) {\n res += entry.getCount();\n }\n return res; \n }", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "private BigDecimal calcolaTotaleImportoPreDocumenti(List<PreDocumentoEntrata> preDocs) {\n\t\tBigDecimal result = BigDecimal.ZERO;\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocs){\n\t\t\tresult = result.add(preDoc.getImportoNotNull());\n\t\t}\n\t\treturn result;\n\t}", "protected double countRelatedPairsInDifferentContexts(Hashtable<Integer, Double> words) {\n\t\tdouble relatedTotal = 0;\n\t\tfor(int word1 : words.keySet()){\n\t\t\tfor(int word2 : relatedPairs[word1]){\n\t\t\t\tif(!words.containsKey(word2)){\n\t\t\t\t\trelatedTotal += words.get(word1) * wordsCount.get(word2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn relatedTotal;\n\t}", "public List<Integer> numDuplicatesList(List<TradeGood> uniqueGoods, TradeGood[] cargoArr) {\n List<Integer> countList = new ArrayList<>();\n for (int i = 0; i < uniqueGoods.size(); i++) {\n int counter = 0;\n for (int j = 0; j < cargoArr.length; j++) {\n if (uniqueGoods.get(i).equals(cargoArr[j])) {\n counter++;\n }\n }\n countList.add(counter);\n }\n return countList;\n }", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "static int countInputs(String mergedVcf) throws Exception\n\t{\n\t\tScanner input = new Scanner(new FileInputStream(new File(mergedVcf)));\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tif(line.length() == 0 || line.startsWith(\"#\"))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tVcfEntry entry = new VcfEntry(line);\n\t\t\tinput.close();\n\t\t\treturn entry.getInfo(\"SUPP_VEC\").length();\n\t\t}\n\t\tinput.close();\n\t\treturn 0;\n\t}", "private void calculateNDCG(List<ScoreRetrieval> results,List<QuerieDocRelevance> querieRelevance){\n List<Double> ndcgResultsQuery = new ArrayList<>();\n List<Double> realdcgResults = new ArrayList<>();\n List<Double> idealDcgResults = new ArrayList<>();\n ScoreRetrieval resultT = results.get(0);\n Optional<QuerieDocRelevance> docMatch = querieRelevance.stream().filter(q -> resultT.getDocId()==q.getDocID()).findFirst();\n QuerieDocRelevance doc = docMatch.orElse(null); \n \n \n Collections.sort(querieRelevance);\n \n idealDcgResults.add((double) querieRelevance.get(0).getRelevance());\n \n if (doc != null) {\n realdcgResults.add((double)doc.getRelevance());\n } else {\n realdcgResults.add(0.0);\n }\n \n if(!(realdcgResults.isEmpty()) && !(idealDcgResults.isEmpty())){\n ndcgResultsQuery.add(realdcgResults.get(0)/idealDcgResults.get(0));\n }\n \n \n for(int i = 1;i<results.size() && i<querieRelevance.size();i++){\n ScoreRetrieval result = results.get(i);\n docMatch = querieRelevance.stream().filter(q -> result.getDocId()==q.getDocID()).findFirst();\n doc = docMatch.orElse(null);\n \n if(doc != null){\n realdcgResults.add(realdcgResults.get(i-1)+(double)doc.getRelevance()/(Math.log(i+1)/Math.log(2)));\n }else{\n realdcgResults.add(realdcgResults.get(i-1));\n }\n \n\n idealDcgResults.add(idealDcgResults.get(i-1)+(double) querieRelevance.get(i).getRelevance()/(Math.log(i+1)/Math.log(2)));\n\n \n ndcgResultsQuery.add(realdcgResults.get(i)/idealDcgResults.get(i));\n \n } \n \n \n ndcgResults.add(ndcgResultsQuery);\n \n }", "public int repeated() {\n this.order();\n int counter = 1;\n int currentCounter = 1;\n for (int i = 0; i < this.size() - 1; i++) {\n if(this.getListaAt(i).x == this.getListaAt(i + 1).x) {\n currentCounter += 1;\n }\n else {\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n currentCounter = 1;\n }\n }\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n return counter;\n }", "int getUpdateCountsCount();", "static long countTriplets(List<Long> arr, long r) {\n long result = 0L;\n long size = arr.size();\n\n ArrayList<long[]> duoList = new ArrayList<>();\n\n // triplet 이 될 수 있는 duo를 선발\n for (int i = 0; i < (size - 1); i++) {\n long firstItem = arr.get(i);\n\n for (int j = i + 1; j < size; j++) {\n long secondItem = arr.get(j);\n if (j >= (size - 1)) continue;\n if (secondItem / (float) firstItem == r) {\n long[] tripletAble = {i, j};\n // System.out.println(\"tripletAble : \" + Arrays.toString(tripletAble));\n if (duoList.contains(tripletAble)) {\n continue;\n } else {\n duoList.add(tripletAble);\n }\n }\n }\n }\n\n // duo인 int[] 의 두 번째 item (int[1]) 의 다음 index부터 탐색해서\n // 해당 수가 triplet이 될 수 있다면 result + 1\n // 판단 기준은 thirdItem / secondItem 이 r이 되는 경우\n int listSize = duoList.size();\n for (int k = 0; k < listSize; k++) {\n long[] targetArr = duoList.get(k);\n long secondIdx = targetArr[1];\n for (int l = (int) secondIdx + 1; l < size; l++) {\n\n long secondItem = arr.get((int) targetArr[1]);\n long thirdItem = arr.get(l);\n\n if (thirdItem / (float) secondItem == r) {\n result += 1L;\n }\n }\n }\n\n return result;\n }", "public static void main(String[] args)\n\t{\n\t\tint n = 50;\n\t\tint c = n*n;\n\t\t\n\t\tfor(int x =0; x <=n ;x++)\n\t\t{\n\t\t\tfor(int y = 1; y <=n; y++)\n\t\t\t{\n\t\t\t\tc+=2*count(x,y,n);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(c);\n\t}", "private int countOccurrence(Integer valueToCount) {\n int count = 0;\n\n for(Integer currentValue : list) {\n if (currentValue == valueToCount) {\n count++;\n }\n }\n\n return count;\n }", "private int countProblematicOccurrences(Choice choice, GenFeature feature, boolean foundStarOrOptionalBefore, boolean hasOptionalParent) {\n \t\tint occurences = 0;\n \t\t\n \t\tList<Sequence> choices = choice.getOptions();\n \t\tfor (Sequence sequence : choices) {\n \t\t\tList<Definition> definitions = sequence.getParts();\n \t\t\tfor (Definition definition : definitions) {\n \t\t\t\t// incorporate cardinality of the definition\n \t\t\t\tCardinality cardinality = null;\n\t\t\t\t\n\t\t\t\tboolean isStarOrOptional = hasOptionalParent;\n \t\t\t\tif (definition instanceof CardinalityDefinition) {\n \t\t\t\t\tcardinality = ((CardinalityDefinition) definition).getCardinality();\n\t\t\t\t\tisStarOrOptional |= cardinality instanceof STAR || cardinality instanceof QUESTIONMARK;\n \t\t\t\t}\n \t\t\t\tif (definition instanceof Terminal) {\n \t\t\t\t\tTerminal terminal = (Terminal) definition;\n \t\t\t\t\tif (terminal.getFeature() == feature) {\n \t\t\t\t\t\tif (isStarOrOptional || foundStarOrOptionalBefore) {\n \t\t\t\t\t\t\toccurences++;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} else if (definition instanceof CompoundDefinition) {\n \t\t\t\t\tCompoundDefinition compound = (CompoundDefinition) definition;\n \t\t\t\t\tChoice subChoice = compound.getDefinition();\n \t\t\t\t\t// recursive method call\n\t\t\t\t\toccurences += countProblematicOccurrences(subChoice, feature, occurences > 0, isStarOrOptional);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn occurences;\n \t}" ]
[ "0.64163786", "0.5751977", "0.56551105", "0.5602079", "0.5596391", "0.54883385", "0.5472159", "0.54304314", "0.53834647", "0.5312463", "0.530415", "0.5272738", "0.5196606", "0.5189129", "0.5163977", "0.5160928", "0.51580083", "0.5149255", "0.51279664", "0.5127499", "0.5121251", "0.50961894", "0.5082401", "0.5075613", "0.5074273", "0.506839", "0.50662184", "0.50655234", "0.5061803", "0.50515443", "0.5049601", "0.5012686", "0.501031", "0.50099754", "0.49832106", "0.4976305", "0.49747172", "0.4963768", "0.49610505", "0.49605018", "0.49536094", "0.49493533", "0.4948154", "0.49479833", "0.49479288", "0.49451032", "0.49328867", "0.49291006", "0.49275887", "0.49274227", "0.49244314", "0.49202496", "0.49050918", "0.49038666", "0.48955685", "0.48890656", "0.48879603", "0.4885856", "0.4884718", "0.48727646", "0.48708862", "0.48632452", "0.4861973", "0.4860354", "0.48580262", "0.48540682", "0.4852242", "0.4849643", "0.48484656", "0.48464248", "0.4846424", "0.4844016", "0.48392645", "0.48382413", "0.48330033", "0.48304605", "0.48238537", "0.4822782", "0.48218325", "0.4821637", "0.4813883", "0.48079193", "0.4807122", "0.48055488", "0.4804529", "0.47997895", "0.47858593", "0.47845972", "0.47844538", "0.4783811", "0.47832942", "0.47794092", "0.47748217", "0.4762901", "0.47595534", "0.47483972", "0.47452775", "0.47433773", "0.47400188", "0.47395965" ]
0.516992
14
/ COLLECTING ALL KIND OF FIELDS TO CREATE AN INVERTED INDEX
private Map<String,List<Invertedindex>> collecting() // { Map<String,List<Invertedindex>> maps = new TreeMap<>(); for (Core pon:pondred){ for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){ if (maps.containsKey(term.getKey())){ List<Invertedindex> index = maps.get(term.getKey()); index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey()))); maps.put(term.getKey(), index); }else { List<Invertedindex> index = new ArrayList<>(); index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey()))); maps.put(term.getKey(), index); } if(cleFreq.containsKey(pon.m_cle)) cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue()); else cleFreq.put(pon.m_cle,term.getValue()); } } return maps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}", "QueryBuilder forFields(List<FieldUsage> fields);", "public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "public IndexInfo(IndexInfo other, MetaRelationship field) {\n\t\tString prefix = field.getName();\n\t\tthis.indexName = prefix + \".\" + other.indexName;\n\t\tthis.options = new HashSet<IndexOptionEnum>(other.options);\n\t\t// since the embed field might not have field, it must be spare for\n\t\t// unique index\n\t\tif (this.options.contains(IndexOptionEnum.unique)) {\n\t\t\tthis.options.add(IndexOptionEnum.sparse);\n\t\t}\n\t\tthis.keyList = new LinkedList<String>();\n\t\tfor (String key : other.keyList) {\n\t\t\tkeyList.add(prefix + \".\" + key);\n\t\t}\n\t\tthis.internal = true;\n\t}", "Field getFields(int index);", "@Override\n protected Field[] getFields(IndexReader reader, int docId, String fieldName) throws IOException {\n List<Object> values = sourceLookup.extractRawValues(fieldType.name());\n if (values.isEmpty()) {\n return EMPTY_FIELDS;\n }\n Field[] fields = new Field[values.size()];\n for (int i = 0; i < values.size(); i++) {\n fields[i] = new Field(fieldType.name(), values.get(i).toString(), TextField.TYPE_NOT_STORED);\n }\n return fields;\n }", "com.sagas.meta.model.MetaFieldData getFields(int index);", "public Field[] getKeyFields();", "@Override\n public Function<String, Predicate<String>> getFieldFilter() {\n return index -> field -> true;\n }", "@Test\n public void fieldIndexFilter() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side\n // and the page containing the XE field on the right.\n // If the XE fields have the same value in their \"Text\" property,\n // the INDEX field will group them into one entry.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // Configure the INDEX field only to display XE fields that are within the bounds\n // of a bookmark named \"MainBookmark\", and whose \"EntryType\" properties have a value of \"A\".\n // For both INDEX and XE fields, the \"EntryType\" property only uses the first character of its string value.\n index.setBookmarkName(\"MainBookmark\");\n index.setEntryType(\"A\");\n\n Assert.assertEquals(\" INDEX \\\\b MainBookmark \\\\f A\", index.getFieldCode());\n\n // On a new page, start the bookmark with a name that matches the value\n // of the INDEX field's \"BookmarkName\" property.\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.startBookmark(\"MainBookmark\");\n\n // The INDEX field will pick up this entry because it is inside the bookmark,\n // and its entry type also matches the INDEX field's entry type.\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 1\");\n indexEntry.setEntryType(\"A\");\n\n Assert.assertEquals(\" XE \\\"Index entry 1\\\" \\\\f A\", indexEntry.getFieldCode());\n\n // Insert an XE field that will not appear in the INDEX because the entry types do not match.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 2\");\n indexEntry.setEntryType(\"B\");\n\n // End the bookmark and insert an XE field afterwards.\n // It is of the same type as the INDEX field, but will not appear\n // since it is outside the bookmark's boundaries.\n builder.endBookmark(\"MainBookmark\");\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 3\");\n indexEntry.setEntryType(\"A\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX, \" INDEX \\\\b MainBookmark \\\\f A\", \"Index entry 1, 2\\r\", index);\n Assert.assertEquals(\"MainBookmark\", index.getBookmarkName());\n Assert.assertEquals(\"A\", index.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 1\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 1\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 2\\\" \\\\f B\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 2\", indexEntry.getText());\n Assert.assertEquals(\"B\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 3\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 3\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n }", "public interface IndexedFieldSetMapper<T> {\n T mapFieldSet(ExecutionContext executionContext, FieldSet fieldSet, int index) throws BindException;\n}", "private static void addIpTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"ip\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "@Test\n public void setFieldIndexFormat() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.write(\"A\");\n builder.insertBreak(BreakType.LINE_BREAK);\n builder.insertField(\"XE \\\"A\\\"\");\n builder.write(\"B\");\n\n builder.insertField(\" INDEX \\\\e \\\" · \\\" \\\\h \\\"A\\\" \\\\c \\\"2\\\" \\\\z \\\"1033\\\"\", null);\n\n doc.getFieldOptions().setFieldIndexFormat(FieldIndexFormat.FANCY);\n doc.updateFields();\n\n doc.save(getArtifactsDir() + \"Field.SetFieldIndexFormat.docx\");\n //ExEnd\n }", "@Override\n public Multimap<Index.Path, String> computeIndexValues()\n {\n Multimap<Index.Path, String> values = super.computeIndexValues();\n\n values.put(Index.Path.TYPES, m_featType.toString());\n\n return values;\n }", "@Test\n public void fieldIndexFormatting() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // If the XE fields have the same value in their \"Text\" property,\n // the INDEX field will group them into one entry.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n index.setLanguageId(\"1033\");\n\n // Setting this property's value to \"A\" will group all the entries by their first letter,\n // and place that letter in uppercase above each group.\n index.setHeading(\"A\");\n\n // Set the table created by the INDEX field to span over 2 columns.\n index.setNumberOfColumns(\"2\");\n\n // Set any entries with starting letters outside the \"a-c\" character range to be omitted.\n index.setLetterRange(\"a-c\");\n\n Assert.assertEquals(\" INDEX \\\\z 1033 \\\\h A \\\\c 2 \\\\p a-c\", index.getFieldCode());\n\n // These next two XE fields will show up under the \"A\" heading,\n // with their respective text stylings also applied to their page numbers.\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Apple\");\n indexEntry.isItalic(true);\n\n Assert.assertEquals(\" XE Apple \\\\i\", indexEntry.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Apricot\");\n indexEntry.isBold(true);\n\n Assert.assertEquals(\" XE Apricot \\\\b\", indexEntry.getFieldCode());\n\n // Both the next two XE fields will be under a \"B\" and \"C\" heading in the INDEX fields table of contents.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Banana\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Cherry\");\n\n // INDEX fields sort all entries alphabetically, so this entry will show up under \"A\" with the other two.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Avocado\");\n\n // This entry will not appear because it starts with the letter \"D\",\n // which is outside the \"a-c\" character range that the INDEX field's LetterRange property defines.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Durian\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Formatting.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Formatting.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n Assert.assertEquals(\"1033\", index.getLanguageId());\n Assert.assertEquals(\"A\", index.getHeading());\n Assert.assertEquals(\"2\", index.getNumberOfColumns());\n Assert.assertEquals(\"a-c\", index.getLetterRange());\n Assert.assertEquals(\" INDEX \\\\z 1033 \\\\h A \\\\c 2 \\\\p a-c\", index.getFieldCode());\n Assert.assertEquals(\"\\fA\\r\" +\n \"Apple, 2\\r\" +\n \"Apricot, 3\\r\" +\n \"Avocado, 6\\r\" +\n \"B\\r\" +\n \"Banana, 4\\r\" +\n \"C\\r\" +\n \"Cherry, 5\\r\\f\", index.getResult());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Apple \\\\i\", \"\", indexEntry);\n Assert.assertEquals(\"Apple\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertTrue(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Apricot \\\\b\", \"\", indexEntry);\n Assert.assertEquals(\"Apricot\", indexEntry.getText());\n Assert.assertTrue(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Banana\", \"\", indexEntry);\n Assert.assertEquals(\"Banana\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(4);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Cherry\", \"\", indexEntry);\n Assert.assertEquals(\"Cherry\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(5);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Avocado\", \"\", indexEntry);\n Assert.assertEquals(\"Avocado\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(6);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE Durian\", \"\", indexEntry);\n Assert.assertEquals(\"Durian\", indexEntry.getText());\n Assert.assertFalse(indexEntry.isBold());\n Assert.assertFalse(indexEntry.isItalic());\n }", "private IiconstraintIndexes() {\n\t\tsuper(\"iiconstraint_indexes\", org.jooq.util.ingres.ingres.$ingres.$INGRES);\n\t}", "public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}", "void visitArrayField(FieldAttributes f, Type typeOfF, Object obj);", "@Test\n public void shouldIncludeValuesFromFieldWithBinaryDocValues() {\n }", "public CollectionIndexDef(String field,String type){\n this.field = field;\n this.type = type;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> fields(EntityField... fields);", "@Override\n public void createIndex(String field, int type) {\n try {\n switch (type) {\n case 1:\n collection.createIndex(Indexes.ascending(field));\n break;\n case -1:\n collection.createIndex(Indexes.descending(field));\n break;\n default:\n collection.createIndex(Indexes.ascending(field));\n break;\n }\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n }\n }", "private void indexUpdates(UpdateQueryResult updates) {\r\n Iterator<HashMap<String, String>> i = updates.getIterator();\r\n while (i.hasNext()) {\r\n HashMap<String, String> values = i.next();\r\n \r\n \t// during index default solr fields are indexed separately\r\n \tString articleId = values.get(\"KnowledgeArticleId\");\r\n \tString title = values.get(\"Title\");\r\n \tvalues.remove(\"Title\");\r\n \tString summary = values.get(\"Summary\");\r\n \tvalues.remove(\"Summary\");\r\n \t\r\n \ttry {\r\n \t\tif (UtilityLib.notEmpty(articleId) && UtilityLib.notEmpty(title)) {\r\n \t\t\t// index sObject\r\n \t\t\t// default fields every index must have\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tContent c = new Content();\r\n \t\t\tc.setKey(articleId);\r\n \t\t\tsb.setLength(0);\r\n \t\t\tsb.append(summary);\r\n \t\t\tc.setData(sb.toString().getBytes());\r\n \t\t\tc.addMetadata(\"Content-Type\", \"text/html\");\r\n \t\t\tc.addMetadata(\"title\", title);\r\n \t\t\t\r\n \t\t\tLOG.debug(\"Salesforce Crawler: Indexing articleId=\"+articleId+\" title=\"+title+\" summary=\"+summary);\r\n \t\t\t\r\n \t\t\t// index articleType specific fields\r\n \t\t\tfor (Entry<String, String> entry : values.entrySet()) {\r\n \t\t\t\tc.addMetadata(entry.getKey(), entry.getValue().toString());\r\n \t\t\t\tif (!entry.getKey().equals(\"Attachment__Body__s\")) {\r\n \t\t\t\t\tLOG.debug(\"Salesforce Crawler: Indexing field key=\"+entry.getKey()+\" value=\"+entry.getValue().toString());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tstate.getProcessor().process(c);\r\n \t\t}\r\n } catch (Exception e) {\r\n \tUtilityLib.errorException(LOG, e);\r\n \tstate.getStatus().incrementCounter(Counter.Failed);\r\n }\r\n }\r\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "interface FieldMap<T> {\n\n Field<T> getFieldByNumber(int n);\n\n Field<T> getFieldByName(String fieldName);\n\n int getFieldCount();\n\n List<Field<T>> getFields();\n}", "private HashMap<String, HashSet<String>> convertIndexToMap(IndexReader reader) throws IOException{\n\t\t HashMap<String, HashSet<String>> hmap = new HashMap<String, HashSet<String>>();\n\t\t HashSet<String> docIdSet;\n\t\t \n\t\t for(int i=0; i<reader.numDocs(); i++){\n\t\t\t Fields termVect = reader.getTermVectors(i);\n\n\t\t\t if(termVect == null)\n\t\t\t\t continue;\n\t\t\t \n\t for (String field : termVect) {\n\t \t \n\t Terms terms = termVect.terms(field);\n\t TermsEnum termsEnum = terms.iterator();\n\t Document doc = reader.document(i);\n\t \n\t while(termsEnum.next() != null){\n\t \t BytesRef term = termsEnum.term();\n\t \t String strTerm = term.utf8ToString();\n\t \t \n\t \t if (hmap.containsKey(strTerm)){\n\t \t\t docIdSet = hmap.get(strTerm);\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t } else{\n\t \t\t docIdSet = new HashSet<String>();\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t\t hmap.put(strTerm, docIdSet);\n\t \t }\n\t }\n\t }\n\t\t }\n\t\t \n\t\t return hmap;\n\t}", "static Field[] createFields(int integer, String text, int index, double decimal) {\n\t\tField[] fields = new Field[4];\n\t\tfields[0] = new IntegerFieldWrapper(integer);\n\t\tfields[1] = new StringFieldWrapper(text);\n\t\tfields[2] = new EnumFieldWrapper(index, createEnumDomain());\n\t\tfields[3] = new FloatFieldWrapper(decimal);\n\t\treturn fields;\n\t}", "private static void addDateTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"date\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "private void buildIndex(Collection<Edge> edges) {\n\t\tfor (Edge e : edges) {\r\n\t\t\tList<Integer> ids = getCells(e);\r\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\r\n\t\t\t\tList<Edge> list = dict.get(ids.get(j));\r\n\t\t\t\tif (list == null) {\r\n\t\t\t\t\tlist = new ArrayList<Edge>();\r\n\t\t\t\t\tdict.put(ids.get(j), list);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Beta\npublic interface FieldInfo {\n\n /** Returns the name of this field or field set. */\n String name();\n\n Field.Type type();\n\n /** Returns whether this field or field set is attribute(s), i.e. does indexing: attribute. */\n boolean isAttribute();\n\n /** Returns whether this field is index(es), i.e. does indexing: index. */\n boolean isIndex();\n\n}", "public abstract void selectAllIndexes();", "@Test\n public void fromClausesAndIndexedExpressionsMatchExpectedValues()\n throws IndexNameConflictException, IndexExistsException, RegionNotFoundException {\n Index i1 = qs.createIndex(\"tIndex\", IndexType.FUNCTIONAL, \"vals.secId\",\n SEPARATOR + \"portfolio pf, pf.positions.values vals\");\n Index i2 = qs.createIndex(\"dIndex\", IndexType.FUNCTIONAL, \"pf.getCW(pf.ID)\",\n SEPARATOR + \"portfolio pf\");\n Index i3 = qs.createIndex(\"fIndex\", IndexType.FUNCTIONAL, \"sIter\",\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\");\n Index i4 = qs.createIndex(\"cIndex\", IndexType.FUNCTIONAL,\n \"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\", SEPARATOR + \"portfolio pf\");\n Index i5 = qs.createIndex(\"inIndex\", IndexType.FUNCTIONAL, \"kIter.secId\",\n SEPARATOR + \"portfolio['0'].positions.values kIter\");\n Index i6 = qs.createIndex(\"sIndex\", IndexType.FUNCTIONAL, \"pos.secId\",\n SEPARATOR + \"portfolio.values val, val.positions.values pos\");\n Index i7 = qs.createIndex(\"p1Index\", IndexType.PRIMARY_KEY, \"pkid\", SEPARATOR + \"portfolio pf\");\n Index i8 = qs.createIndex(\"p2Index\", IndexType.PRIMARY_KEY, \"pk\", SEPARATOR + \"portfolio pf\");\n if (!i1.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio index_iter1, index_iter1.positions.values index_iter2\")\n || !i1.getCanonicalizedIndexedExpression().equals(\"index_iter2.secId\")\n || !i1.getFromClause().equals(SEPARATOR + \"portfolio pf, pf.positions.values vals\")\n || !i1.getIndexedExpression().equals(\"vals.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i2.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i2.getCanonicalizedIndexedExpression().equals(\"index_iter1.getCW(index_iter1.ID)\")\n || !i2.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i2.getIndexedExpression().equals(\"pf.getCW(pf.ID)\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i3.getCanonicalizedFromClause().equals(\n SEPARATOR\n + \"portfolio index_iter1, index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr index_iter3\")\n || !i3.getCanonicalizedIndexedExpression().equals(\"index_iter3\")\n || !i3.getFromClause()\n .equals(\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\")\n || !i3.getIndexedExpression().equals(\"sIter\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i4.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i4.getCanonicalizedIndexedExpression().equals(\n \"index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr[index_iter1.ID]\")\n || !i4.getFromClause().equals(SEPARATOR + \"portfolio pf\") || !i4.getIndexedExpression()\n .equals(\"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i5.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio['0'].positions.values index_iter4\")\n || !i5.getCanonicalizedIndexedExpression().equals(\"index_iter4.secId\")\n || !i5.getFromClause().equals(SEPARATOR + \"portfolio['0'].positions.values kIter\")\n || !i5.getIndexedExpression().equals(\"kIter.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i6.getCanonicalizedFromClause()\n .equals(\n SEPARATOR + \"portfolio.values index_iter5, index_iter5.positions.values index_iter6\")\n || !i6.getCanonicalizedIndexedExpression().equals(\"index_iter6.secId\")\n || !i6.getFromClause().equals(SEPARATOR + \"portfolio.values val, val.positions.values pos\")\n || !i6.getIndexedExpression().equals(\"pos.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i7.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i7.getCanonicalizedIndexedExpression().equals(\"index_iter1.pkid\")\n || !i7.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i7.getIndexedExpression().equals(\"pkid\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i8.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i8.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i8.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i8.getIndexedExpression().equals(\"pk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i1);\n qs.removeIndex(i2);\n qs.removeIndex(i3);\n qs.removeIndex(i4);\n qs.removeIndex(i5);\n qs.removeIndex(i6);\n qs.removeIndex(i7);\n qs.removeIndex(i8);\n Index i9 =\n qs.createIndex(\"p3Index\", IndexType.PRIMARY_KEY, \"getPk\", SEPARATOR + \"portfolio pf\");\n if (!i9.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i9.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i9.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i9.getIndexedExpression().equals(\"getPk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i9);\n }", "private static Invariant[] getFieldInvs(Invariant[] invArr, Field[] fields) {\n List<Invariant> list = new ArrayList<>(Arrays.asList(invArr)); //Creates a list.\n for (Field field : fields) { //Loops through all the fields\n Invariant[] fieldInvs = field.getAnnotationsByType(Invariant.class);\n if (fieldInvs.length != 0) { //Makes sure it has invariants\n list.addAll(Arrays.asList(fieldInvs)); //Addss all invariants\n }\n }\n Invariant[] tmp = Arrays.copyOf(list.toArray(), list.size(), Invariant[].class); //Converts the list to an array of invariant type.\n return tmp;\n }", "public interface CollectionField extends RelationField {\n\n}", "public ArrayFieldMap(Collection<Field<T>> fields, int lastFieldNumber)\r\n/* 19: */ {\r\n/* 20:32 */ this.fieldsByName = new HashMap();\r\n/* 21:33 */ this.fieldsByNumber = ((Field[])new Field[lastFieldNumber + 1]);\r\n/* 22:34 */ for (Iterator localIterator = fields.iterator(); localIterator.hasNext();)\r\n/* 23: */ {\r\n/* 24:34 */ f = (Field)localIterator.next();\r\n/* 25: */ \r\n/* 26:36 */ last = (Field)this.fieldsByName.put(f.name, f);\r\n/* 27:37 */ if (last != null) {\r\n/* 28:39 */ throw new IllegalStateException(last + \" and \" + f + \" cannot have the same name.\");\r\n/* 29: */ }\r\n/* 30:42 */ if (this.fieldsByNumber[f.number] != null) {\r\n/* 31:44 */ throw new IllegalStateException(this.fieldsByNumber[f.number] + \" and \" + f + \" cannot have the same number.\");\r\n/* 32: */ }\r\n/* 33:48 */ this.fieldsByNumber[f.number] = f;\r\n/* 34: */ }\r\n/* 35:51 */ Object fieldList = new ArrayList(fields.size());\r\n/* 36:52 */ Field<T> f = this.fieldsByNumber;Field<T> last = f.length;\r\n/* 37:52 */ for (Field<T> localField1 = 0; localField1 < last; localField1++)\r\n/* 38: */ {\r\n/* 39:52 */ Field<T> field = f[localField1];\r\n/* 40:54 */ if (field != null) {\r\n/* 41:55 */ ((List)fieldList).add(field);\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44:57 */ this.fields = Collections.unmodifiableList((List)fieldList);\r\n/* 45: */ }", "private static void addKeywordTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"keyword\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodtoArray() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.toArray() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "private void buildAttrsIndex() {\n\t\tsortAttrsIndex = new Vector<Integer>();\n\t\tboolean[] inAttrs = new boolean[schema.size()];\n\t\tfor(int i = 0; i < inAttrs.length; i++) {\n\t\t\tinAttrs[i] = false;\n\t\t}\n\t\tfor(String attr: sortAttrs) {\n\t\t\tsortAttrsIndex.add(schema.get(attr));\n\t\t\tinAttrs[schema.get(attr)] = true;\n\t\t}\n\t\tfor(int i = 0; i < inAttrs.length; i++) {\n\t\t\tif(!inAttrs[i]) {\n\t\t\t\tsortAttrsIndex.add(i);\n\t\t\t}\n\t\t}\n\t}", "String indexFormat();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> fields(String... fields);", "public interface IFieldEncoder<FType> {\r\n void encode(Object target,String fieldName,Object defaultValue);\r\n}", "public interface FeatureIndexer extends Serializable {\n\n /**\n * Finds the IDs of features with the given spatio-temporal constraints. If\n * any constraint is <code>null</code> it is considered to be unconstrained\n * in that dimension.\n * \n * @param horizontalExtent\n * The {@link BoundingBox} which features must have positions in.\n * @param verticalExtent\n * The vertical range which features must have positions in.\n * @param timeExtent\n * The time range which features must have positions in.\n * @param variableIds\n * The variable IDs which features must contain\n * @return A {@link Collection} of IDs for features which match all of the\n * given constraints\n */\n public Collection<String> findFeatureIds(BoundingBox horizontalExtent,\n Extent<Double> verticalExtent, Extent<DateTime> timeExtent,\n Collection<String> variableIds);\n\n /**\n * @return All feature IDs present in this {@link FeatureIndexer}\n */\n public Set<String> getAllFeatureIds();\n\n /**\n * Adds features to this indexer. Features are defined in terms of\n * {@link FeatureBounds} objects which define the spatial boundaries of\n * point features\n * \n * @param features\n */\n public void addFeatures(List<FeatureBounds> features);\n\n /**\n * A class representing the spatial bounds of a feature with a single point.\n * This is used to index features.\n */\n public static class FeatureBounds implements Serializable {\n private static final long serialVersionUID = 1L;\n String id;\n BoundingBox hBbox;\n Extent<Double> verticalExtent;\n Extent<Long> timeExtent;\n Collection<String> variableIds;\n\n public FeatureBounds(String id, HorizontalPosition horizontalPosition,\n Extent<Double> verticalExtent, Extent<DateTime> timeExtent,\n Collection<String> variableIds) {\n this(id, new BoundingBoxImpl(horizontalPosition.getX(), horizontalPosition.getY(),\n horizontalPosition.getX(), horizontalPosition.getY(),\n horizontalPosition.getCoordinateReferenceSystem()), verticalExtent, timeExtent,\n variableIds);\n }\n\n public FeatureBounds(String id, BoundingBox hBbox, Extent<Double> verticalExtent,\n Extent<DateTime> timeExtent, Collection<String> variableIds) {\n super();\n /*\n * We need at least an ID and a horizontal position.\n * \n * If vertical position or time are missing (i.e. null), give them\n * the maximum possible extent so that they will always be included\n * in any query.\n */\n if (id == null || hBbox == null) {\n throw new IllegalArgumentException(\n \"Must provide a non-null ID and horizontal bounding box to index a feature\");\n }\n this.id = id;\n this.hBbox = hBbox;\n if (verticalExtent != null) {\n this.verticalExtent = verticalExtent;\n } else {\n this.verticalExtent = Extents.newExtent(-Double.MAX_VALUE, Double.MAX_VALUE);\n }\n if (timeExtent != null) {\n this.timeExtent = Extents.newExtent(timeExtent.getLow().getMillis(),\n timeExtent.getHigh().getMillis());\n } else {\n this.timeExtent = Extents.newExtent(-Long.MAX_VALUE, Long.MAX_VALUE);\n }\n this.variableIds = variableIds;\n }\n\n /**\n * Convenience method to generate a {@link FeatureBounds} object from a\n * {@link ProfileFeature}\n * \n * @param feature\n * A {@link ProfileFeature} to calculate the bounds for\n * @return The appropriate {@link FeatureBounds}\n */\n public static FeatureBounds fromProfileFeature(ProfileFeature feature) {\n return new FeatureBounds(feature.getId(), feature.getHorizontalPosition(),\n feature.getDomain().getCoordinateExtent(),\n Extents.newExtent(feature.getTime(), feature.getTime()),\n feature.getVariableIds());\n }\n\n /**\n * Convenience method to generate a {@link FeatureBounds} object from a\n * {@link PointSeriesFeature}\n * \n * @param feature\n * A {@link PointSeriesFeature} to calculate the bounds for\n * @return The appropriate {@link FeatureBounds}\n */\n public static FeatureBounds fromPointSeriesFeature(PointSeriesFeature feature) {\n VerticalPosition zPos = feature.getVerticalPosition();\n Extent<Double> zExtent = null;\n if (zPos != null) {\n zExtent = Extents.newExtent(zPos.getZ(), zPos.getZ());\n }\n return new FeatureBounds(feature.getId(), feature.getHorizontalPosition(), zExtent,\n feature.getDomain().getCoordinateExtent(), feature.getVariableIds());\n }\n\n /**\n * Convenience method to generate a {@link FeatureBounds} object from a\n * {@link TrajectoryFeature}\n * \n * @param feature\n * A {@link TrajectoryFeature} to calculate the bounds for\n * @return The appropriate {@link FeatureBounds}\n */\n public static FeatureBounds fromProfileFeature(TrajectoryFeature feature) {\n return new FeatureBounds(feature.getId(), feature.getDomain().getCoordinateBounds(),\n feature.getDomain().getVerticalExtent(), feature.getDomain().getTimeExtent(),\n feature.getVariableIds());\n }\n }\n}", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "public static Map<String, Object> getDocumentMapping(String indexPrefix, String indexPostfix) {\n\n Map<String, Object> indexFieldProperties = new HashMap<String, Object>();\n\n if (indexPrefix.equals(EsConstants.GATEWAY_INDEX_NAME)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_VERSION, indexFieldProperties);\n }\n // rule for gateway and manager\n if (indexPostfix.equals(EsConstants.INDEX_APIS)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n }\n // rule for gateway and manager\n if (indexPostfix.equals(EsConstants.INDEX_CLIENTS)) {\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n }\n if (indexPrefix.equals(EsConstants.METRICS_INDEX_NAME)) {\n // set keyword types\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ORG_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ORG_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_PLAN_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_VERSION, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_VERSION, indexFieldProperties);\n\n addBooleanTypeToIndexField(EsConstants.ES_FIELD_ERROR, indexFieldProperties);\n addBooleanTypeToIndexField(EsConstants.ES_FIELD_FAILURE, indexFieldProperties);\n\n // set date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_REQUEST_START, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_REQUEST_END, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_API_START, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_API_END, indexFieldProperties);\n\n // set ip type\n addIpTypeToIndexField(EsConstants.ES_FIELD_REMOTE_ADDR, indexFieldProperties);\n }\n\n if (indexPrefix.equals(EsConstants.MANAGER_INDEX_NAME)) {\n\n switch (indexPostfix) {\n case EsConstants.INDEX_MANAGER_POSTFIX_API:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_API_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_PUBLISHED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_RETIRED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CLIENT:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CLIENT_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_PUBLISHED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_RETIRED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_AUDIT_ENTRY:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ENTITY_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ENTITY_TYPE, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ORGANIZATION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_USER:\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_FULL_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_JOINED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLUGIN:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_GROUP_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ARTIFACT_ID, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_POLICY_DEF:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_CONTRACT:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_API_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_CLIENT_VERSION, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLAN:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_NAME, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_PLAN_VERSION:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_PLAN_ID, indexFieldProperties);\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_STATUS, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_LOCKED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_GATEWAY:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_MODIFIED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ROLE:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n setFieldDataToIndexTextField(EsConstants.ES_FIELD_NAME, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_ROLE_MEMBERSHIP:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ORGANIZATION_ID, indexFieldProperties);\n // date types\n addDateTypeToIndexField(EsConstants.ES_FIELD_CREATED_ON, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_DEVELOPER:\n addKeywordTypeToIndexField(EsConstants.ES_FIELD_ID, indexFieldProperties);\n break;\n case EsConstants.INDEX_MANAGER_POSTFIX_METADATA:\n addDateTypeToIndexField(EsConstants.ES_FIELD_EXPORTED_ON, indexFieldProperties);\n addDateTypeToIndexField(EsConstants.ES_FIELD_IMPORTED_ON, indexFieldProperties);\n default:\n break;\n }\n }\n\n return indexFieldProperties;\n }", "protected String _getFieldName(java.lang.reflect.Field fld, boolean rich){\r\n\t\tString name=fld.getName();\r\n\t\tif (fld.isAnnotationPresent(IndexKey.class)) {\r\n\t\t\tif (rich) name=INDEX_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(NumIndex.class)) {\r\n\t\t\tif (rich) name=NUMINDEX_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(FullBody.class)) {\r\n\t\t\tif (rich) name=FULLBODY_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(CategoryKey.class)) {\r\n\t\t\tif (rich) name=CATEGORY_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(FullText.class)) {\r\n\t\t\tif (rich) name=FULLTEXT_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(DateIndex.class)) {\r\n\t\t\tif (rich) name=DATEINDEX_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(TimestampIndex.class)) {\r\n\t\t\tif (rich) name=TIMESTAMP_+name;\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public ATExpression base_indexExpression();", "private void createIndex(Geography<T> geog, Class<T> clazz)\n\t{\n\t\tGeometry geom;\n\t\tEnvelope bounds;\n\t\tfor (T t : geog.getAllObjects( ))\n\t\t{\n\t\t\tgeom = (Geometry) geog.getGeometry(t);\n\t\t\tbounds = geom.getEnvelopeInternal( );\n\t\t\tthis.si.insert(bounds, geom);\n\t\t\tthis.featureLookup.put(geom, t);\n\t\t}\n\t}", "boolean isIndexed();", "boolean isIndexed();", "@Test\n public void testQueryUsingIndex() throws Exception\n {\n TestBean testBean1 = new TestBean(\"test1\", \"another1\");\n TestBean testBean2 = new TestBean(\"test2\", \"another2\");\n TestBean testBean3 = new TestBean(\"test3\", \"another3\");\n\n IndexedArrayList<TestBean> testBeans = new IndexedArrayList<TestBean>(Arrays.asList(testBean1, testBean2, testBean3));\n testBeans.addIndex(\"getValue\");\n\n Queryable<TestBean, Predicate> queryable = new CollectionContext<TestBean, Predicate>(testBeans);\n assertEquals(Arrays.asList(testBean2, testBean3), queryable.select(or(eq(\"getValue\", \"test2\"), eq(\"getValue\", \"test3\"))));\n }", "indexSet createindexSet();", "private static void setFieldDataToIndexTextField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> textTypeProperty = new HashMap<>();\n textTypeProperty.put(\"type\", \"text\");\n textTypeProperty.put(\"fielddata\", true);\n addFieldMapping(fieldName, textTypeProperty, indexFieldProperties);\n }", "List<IndexFieldStatus> getIndexFieldStatus();", "public List<String> getFieldVector (String field, KrillCollection collection) {\n collection.setIndex(this);\n \n List fieldValues = new ArrayList<String>();\n String fieldValue;\n\n // Do not return fieldValues for token fields\n if (field.equals(\"tokens\") || field.equals(\"base\")) {\n return fieldValues;\n };\n\n \n try {\n final Filter filter = collection.toFilter();\n\n // Get from filtered index\n if (filter != null) {\n \n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n\n DocIdSet docids = filter.getDocIdSet(atomic, null);\n \n DocIdSetIterator docs = (docids == null) ? null : docids.iterator();\n\n if (docs == null)\n continue;\n \n while (docs.nextDoc() != DocIdSetIterator.NO_MORE_DOCS) {\n fieldValue = lreader.document(docs.docID()).get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n \n }\n } else { // Get from unfiltered index\n\n // Iterate over all atomic readers and collect occurrences\n for (LeafReaderContext atomic : this.reader().leaves()) {\n\n LeafReader lreader = atomic.reader();\n Bits live = lreader.getLiveDocs();\n\n for (int i=0; i<lreader.maxDoc(); i++) {\n if (live != null && !live.get(i))\n continue;\n \n Document doc = lreader.document(i);\n fieldValue = doc.get(field);\n if (fieldValue != null && fieldValue != \"\")\n fieldValues.add(fieldValue);\n };\n };\n };\n }\n\n // Something went wrong\n catch (IOException e) {\n log.warn(e.getLocalizedMessage());\n\t\t}\n\n // E.g. reference corpus not found\n catch (QueryException e) {\n log.warn(e.getLocalizedMessage());\n };\n\n return fieldValues;\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodValues() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.values() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Test\n public void testIndexMaintenanceWithHeterogenousObjects() throws Exception {\n DefaultQueryService.TEST_QUERY_HETEROGENEOUS_OBJECTS = true;\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n idSet.clear();\n Portfolio p = new Portfolio(4);\n region.put(\"4\", p);\n idSet.add(\"\" + p.getID());\n p = new Portfolio(5);\n region.put(\"5\", p);\n idSet.add(\"\" + p.getID());\n region.put(\"6\", 6);\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n RangeIndex ri = (RangeIndex) i1;\n assertEquals(2, ri.valueToEntriesMap.size());\n Iterator itr = ri.valueToEntriesMap.values().iterator();\n while (itr.hasNext()) {\n RangeIndex.RegionEntryToValuesMap re2ValMap = (RangeIndex.RegionEntryToValuesMap) itr.next();\n assertEquals(1, re2ValMap.map.size());\n Object obj = re2ValMap.map.values().iterator().next();\n assertFalse(obj instanceof Collection);\n assertTrue(obj instanceof Portfolio);\n Portfolio pf = (Portfolio) obj;\n assertTrue(idSet.contains(String.valueOf(pf.getID())));\n }\n assertEquals(1, ri.undefinedMappedEntries.map.size());\n Map.Entry entry = (Map.Entry) ri.undefinedMappedEntries.map.entrySet().iterator().next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n assertTrue(entry.getValue().equals(6));\n\n region.put(\"7\", 7);\n idSet.add(7);\n assertEquals(2, ri.undefinedMappedEntries.map.size());\n itr = ri.undefinedMappedEntries.map.entrySet().iterator();\n while (itr.hasNext()) {\n entry = (Map.Entry) itr.next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n idSet.contains(entry.getValue());\n }\n\n region.remove(\"7\");\n idSet.remove(7);\n Index i2 =\n qs.createIndex(\"indx2\", IndexType.FUNCTIONAL, \"pf.pkid\", SEPARATOR + \"portfolio1 pf\");\n ri = (RangeIndex) i2;\n assertEquals(2, ri.valueToEntriesMap.size());\n itr = ri.valueToEntriesMap.values().iterator();\n while (itr.hasNext()) {\n RangeIndex.RegionEntryToValuesMap re2ValMap = (RangeIndex.RegionEntryToValuesMap) itr.next();\n assertEquals(1, re2ValMap.map.size());\n Object obj = re2ValMap.map.values().iterator().next();\n assertFalse(obj instanceof Collection);\n assertTrue(obj instanceof Portfolio);\n Portfolio pf = (Portfolio) obj;\n assertTrue(idSet.contains(String.valueOf(pf.getID())));\n }\n assertEquals(1, ri.undefinedMappedEntries.map.size());\n entry = (Map.Entry) ri.undefinedMappedEntries.map.entrySet().iterator().next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n assertTrue(entry.getValue().equals(6));\n\n region.put(\"7\", 7);\n idSet.add(7);\n assertEquals(2, ri.undefinedMappedEntries.map.size());\n itr = ri.undefinedMappedEntries.map.entrySet().iterator();\n while (itr.hasNext()) {\n entry = (Map.Entry) itr.next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n idSet.contains(entry.getValue());\n }\n }", "public interface ComplexField {\n\tpublic abstract int numberOfTokens();\n\n\tpublic abstract void addProperty(String name, TokenFilterAdder filterAdder);\n\n\tpublic abstract void addPropertyAlternative(String sourceName, String altPostfix);\n\n\tpublic abstract void addPropertyAlternative(String sourceName, String altPostfix,\n\t\t\tTokenFilterAdder filterAdder);\n\n\tpublic abstract void addProperty(String name);\n\n\tpublic abstract void addValue(String value);\n\n\tpublic abstract void addStartChar(int startChar);\n\n\tpublic abstract void addEndChar(int endChar);\n\n\tpublic abstract void addPropertyValue(String name, String value);\n\n\tpublic abstract void addToLuceneDoc(Document doc);\n\n\tpublic abstract void clear();\n\n\tpublic abstract void addAlternative(String altPostfix);\n\n\tpublic abstract void addAlternative(String altPostfix, TokenFilterAdder filterAdder);\n\n\tpublic abstract void addTokens(TokenStream c) throws IOException;\n\n\tpublic abstract void addPropertyTokens(String propertyName, TokenStream c) throws IOException;\n\n\tpublic abstract List<String> getPropertyValues(String name);\n}", "private static void addBooleanTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"boolean\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "public static void indexAll(IndexingMode mode) throws Exception {\n\t\tSystem.out.println(\"Indexing all key columns ...\");\n\t\tlong startMillis = System.currentTimeMillis();\n\t\tCatalogManager.currentDB.nameToTable.values().parallelStream().forEach(\n\t\t\ttableInfo -> {\n\t\t\t\ttableInfo.nameToCol.values().parallelStream().forEach(\n\t\t\t\t\tcolumnInfo -> {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (mode.equals(IndexingMode.ALL) ||\n\t\t\t\t\t\t\t\t(mode.equals(IndexingMode.ONLY_KEYS) &&\n\t\t\t\t\t\t\t(columnInfo.isPrimary || columnInfo.isForeign))) {\n\t\t\t\t\t\t\t\tString table = tableInfo.name;\n\t\t\t\t\t\t\t\tString column = columnInfo.name;\n\t\t\t\t\t\t\t\tColumnRef colRef = new ColumnRef(table, column);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Indexing \" + colRef + \" ...\");\n\t\t\t\t\t\t\t\tindex(colRef);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.err.println(\"Error indexing \" + columnInfo);\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\t\tlong totalMillis = System.currentTimeMillis() - startMillis;\n\t\tSystem.out.println(\"Indexing took \" + totalMillis + \" ms.\");\n\t}", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }", "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;", "public Map<String, Object> createFldNames2ValsMap(Record record, ErrorHandler errors)\n {\n this.errors = errors;\n perRecordInitMaster(record);\n Map<String, Object> fldNames2ValsMap = new HashMap<String, Object>();\n\n for (String key : fieldMap.keySet())\n {\n String fieldVal[] = fieldMap.get(key);\n String indexField = fieldVal[0];\n String indexType = fieldVal[1];\n String indexParm = fieldVal[2];\n String mapName = fieldVal[3];\n\n if (indexType.equals(\"constant\"))\n {\n if (indexParm.contains(\"|\"))\n {\n String parts[] = indexParm.split(\"[|]\");\n Set<String> result = new LinkedHashSet<String>();\n result.addAll(Arrays.asList(parts));\n // if a zero length string appears, remove it\n result.remove(\"\");\n addFieldsToMap(fldNames2ValsMap, indexField, null, result);\n }\n else\n addFieldToMap(fldNames2ValsMap, indexField, indexParm);\n }\n else if (indexType.equals(\"first\"))\n addFieldToMap(fldNames2ValsMap, indexField, getFirstFieldVal(record, mapName, indexParm));\n else if (indexType.equals(\"all\"))\n addFieldsToMap(fldNames2ValsMap, indexField, mapName, MarcUtils.getFieldList(record, indexParm));\n else if (indexType.equals(\"DeleteRecordIfFieldEmpty\"))\n {\n Set<String> fields = MarcUtils.getFieldList(record, indexParm);\n if (mapName != null && findTranslationMap(mapName) != null)\n fields = Utils.remap(fields, findTranslationMap(mapName), true);\n\n if (fields.size() != 0)\n addFieldsToMap(fldNames2ValsMap, indexField, null, fields);\n else // no entries produced for field => generate no record in Solr\n throw new SolrMarcIndexerException(SolrMarcIndexerException.DELETE,\n \"Index specification: \"+ indexField +\" says this record should be deleted.\");\n }\n else if (indexType.startsWith(\"join\"))\n {\n String joinChar = \" \";\n if (indexType.contains(\"(\") && indexType.endsWith(\")\"))\n joinChar = indexType.replace(\"join(\", \"\").replace(\")\", \"\");\n addFieldToMap(fldNames2ValsMap, indexField, MarcUtils.getFieldVals(record, indexParm, joinChar));\n }\n else if (indexType.equals(\"std\"))\n {\n if (indexParm.equals(\"era\"))\n addFieldsToMap(fldNames2ValsMap, indexField, mapName, MarcUtils.getEra(record));\n else\n addFieldToMap(fldNames2ValsMap, indexField, getStd(record, indexParm));\n }\n else if (indexType.startsWith(\"custom\"))\n {\n try {\n handleCustom(fldNames2ValsMap, indexType, indexField, mapName, record, indexParm);\n }\n catch(SolrMarcIndexerException e)\n {\n String recCntlNum = null;\n try {\n recCntlNum = record.getControlNumber();\n }\n catch (NullPointerException npe) { /* ignore */ }\n\n if (e.getLevel() == SolrMarcIndexerException.DELETE)\n {\n throw new SolrMarcIndexerException(SolrMarcIndexerException.DELETE,\n \"Record \" + (recCntlNum != null ? recCntlNum : \"\") + \" purposely not indexed because \" + key + \" field is empty\");\n// logger.error(\"Record \" + (recCntlNum != null ? recCntlNum : \"\") + \" not indexed because \" + key + \" field is empty -- \" + e.getMessage(), e);\n }\n else\n {\n logger.error(\"Unable to index record \" + (recCntlNum != null ? recCntlNum : \"\") + \" due to field \" + key + \" -- \" + e.getMessage(), e);\n throw(e);\n }\n }\n }\n }\n this.errors = null;\n return fldNames2ValsMap;\n }", "private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}", "public interface ColumnIn<T> extends FieldIn<T>, ColumnData {\n\n}", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}", "@Override\n\tpublic void indexObject(List<ModelKey> list) throws ASException {\n\t\t\n\t}", "public final static ArrayList<BasicKeyedField> getTypes(int idx) {\n\t\tTypeManager manager = TypeManager.getInstance();\n \tAbstractConversion conv = getStandardConversion();\n \tArrayList<BasicKeyedField> ret = new ArrayList<BasicKeyedField>(manager.getNumberOfTypes());\n \tBasicKeyedField fld;\n \tint t;\n \tString s;\n\n \tfor (int i = 0; i < manager.getNumberOfTypes(); i++) {\n \t\tt = manager.getTypeId(i);\n \t\ts = conv.getTypeAsString(idx, t);\n \t\tif (s != null && ! \"\".equals(s)) {\n \t\t\tfld = new BasicKeyedField();\n \t\t\tfld.key = t;\n \t\t\tfld.name = s;\n \t\t\tfld.valid = Boolean.valueOf(conv.isValid(idx, t));\n \t\t\tret.add(fld);\n \t\t}\n \t}\n\n \treturn ret;\n }", "public interface IdentifierIndexIF extends IndexIF {\n \n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap.\n * @return all the item identifiers of all the objects in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiers();\n\n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap that start with\n * the provided prefix.\n * @return all the matched item identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiersByPrefix(String prefix);\n \n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap.\n * @return all the subject identifiers of all the topics in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiers();\n\n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap that start with\n * the provided prefix.\n * @return all the matched subject identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiersByPrefix(String prefix);\n \n}", "@Override\n public void process(TypeMappingStep mapping, Indexed annotation, TypeMappingAnnotationProcessorContext context) {\n String indexName = annotation.index();\n if ( indexName.isEmpty() ) {\n indexName = null;\n }\n mapping.indexed().index( indexName );\n }", "public interface IPersistentSet<T> extends IPersistent, IResource, Set<T>, ITable<T> \r\n{\r\n /**\r\n * Perform join of two sorted set. This method can be used to incrementally\r\n * join two or more inverse lists (represented using IPersistentSet collections).\r\n * For example, assume that we need to implement own primitive full text search engine\r\n * (please notice that Perst has builtin full text search engine).\r\n * So we have inverse index keyword-&gt;list of documents with occurrences of this keyword.\r\n * Given full text query (set of keywords) we need to locate all documents\r\n * which contains all specified keywords. It can be done in this way:\r\n * <code>\r\n * class FullTextSearchEngine extends PersistentResource {\r\n * Index&lt;IPersistentSet&lt;Document&gt;&gt; inverseIndex;\r\n * public FullTextSearchEngine(Storage storage) { \r\n * super(storage);\r\n * inverseIndex = storage.&lt;IPersistentSet&lt;Document&gt;&gt;createIndex(String.class, true);\r\n * }\r\n * public IterableIterator&lt;Document&gt; search(Collection&lt;String&gt; keywords) {\r\n * IterableIterator&lt;Document&lt; result = null;\r\n * for (String keyword : keywords) {\r\n * IPersistentSet&lt;Document&gt; occurrences = inverseIndex.get(keyword); \r\n * if (occurrences == null) {\r\n * return null;\r\n * }\r\n * result = occurrences.join(result);\r\n * }\r\n * return result;\r\n * }\r\n * }\r\n * </code>\r\n * \r\n * @param iterator set of object ordered by OID. Usually it is iterator of IPersistentSet class.\r\n * This parameter may be null, in this case iterator of the target persistent set is returned.\r\n * @return iterator through result of two sets join. Join is performed incrementally so join\r\n * of two large sets will not consume a lot of memory and first results of such join\r\n * can be obtains fast enough.\r\n */\r\n public IterableIterator<T> join(Iterator<T> iterator);\r\n}", "private void createIndexes(GenericDAO genericDAO, Schema schema) {\n\t\tfor (List<MatchingDependency> searchAttributeMDs : schema.getMatchingDependencies().values()) {\n\t\t\tfor (MatchingDependency md : searchAttributeMDs) {\n\t\t\t\tString relation = md.getRightPredicateName();\n\t\t\t\tString attribute = schema.getRelations().get(relation.toUpperCase()).getAttributeNames()\n\t\t\t\t\t\t.get(md.getRightAttributeNumber());\n\t\t\t\tint attributePosition = md.getRightAttributeNumber();\n\n\t\t\t\tPair<String, Integer> key = new Pair<String, Integer>(relation, attributePosition);\n\t\t\t\tif (!hsTrees.containsKey(key)) {\n\t\t\t\t\tList<String> values = projectSelectIn(genericDAO, relation, attribute);\n\t\t\t\t\tHSTree hsTree = HSTreeCreator.buildHSTree(values);\n\t\t\t\t\thsTrees.put(key, hsTree);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test // DATAMONGO-774\n\t@Disabled\n\tvoid shouldRenderNestedIndexedFieldReference() {\n\t\tassertThat(transformValue(\"foo[3].bar\")).isEqualTo(\"$foo[3].bar\");\n\t}", "private static void addFieldMapping(String fieldName, Map<String, Object> typeProperty, Map<String, Object> indexFieldProperties) {\n if (indexFieldProperties.isEmpty()) {\n indexFieldProperties.put(\"properties\", new HashMap<String, Object>());\n }\n ((Map<String, Object>) indexFieldProperties.get(\"properties\")).put(fieldName, typeProperty);\n }", "@Deprecated\npublic interface LegacyIndexedStore<K, V> extends LegacyKVStore<K, V> {\n\n String ID_FIELD_NAME = \"_id\";\n\n /**\n * Creates a lazy iterable over items that match the provided condition, in\n * the order requested. Exposing the appropriate keys and values. Note that\n * each iterator is independent and goes back to the source data to collect\n * data. As such, if you need to use multiple iterators, it is better to cache\n * the results. Note that this may also be internally paginating so different\n * calls to hasNext/next may have different performance characteristics.\n *\n * Note that two unexpected outcomes can occur with this iterator.\n *\n * (1) It is possible some of the values of this iterator will be null. This\n * can happen if the value is deleted around the time the iterator is created\n * and when the value is retrieved.\n *\n * (2) This iterator could return values that don't match the provided\n * conditions. This should be rare but can occur if the value was changed\n * around the time the iterator is created.\n *\n * @param condition\n * The condition to match.\n * @return A lazy iterable over the matching items.\n */\n Iterable<Entry<K, V>> find(LegacyFindByCondition find);\n\n /**\n * Provide a count of the number of documents that match each of the requested\n * conditions.\n *\n * @param conditions\n * @return\n */\n List<Integer> getCounts(SearchQuery... conditions);\n\n /**\n * Definition of how to find data by condition.\n */\n @Deprecated\n public static class LegacyFindByCondition {\n private SearchQuery condition;\n private int pageSize = 5000;\n private int limit = Integer.MAX_VALUE;\n private int offset = 0;\n private final List<SearchFieldSorting> sort = new ArrayList<>();\n\n public LegacyFindByCondition() {\n }\n\n public LegacyFindByCondition setCondition(String condition, FilterIndexMapping mapping) {\n this.condition = SearchFilterToQueryConverter.toQuery(condition, mapping);\n return this;\n }\n\n public LegacyFindByCondition setCondition(SearchQuery query) {\n this.condition = query;\n return this;\n }\n\n public LegacyFindByCondition setPageSize(int pageSize) {\n this.pageSize = pageSize;\n return this;\n }\n\n public LegacyFindByCondition addSorting(SearchFieldSorting sorting) {\n this.sort.add(sorting);\n return this;\n }\n\n public LegacyFindByCondition addSortings(Collection<SearchFieldSorting> sort) {\n this.sort.addAll(sort);\n return this;\n }\n\n\n public LegacyFindByCondition setLimit(int limit){\n this.limit = limit;\n return this;\n }\n\n public LegacyFindByCondition setOffset(int offset){\n this.offset = offset;\n return this;\n }\n\n public SearchQuery getCondition() {\n return condition;\n }\n\n public int getPageSize() {\n return pageSize;\n }\n\n public List<SearchFieldSorting> getSort() {\n return sort;\n }\n\n public int getOffset() {\n return offset;\n }\n\n public int getLimit(){\n if(limit < pageSize){\n pageSize = limit;\n }\n return limit;\n }\n\n @Override\n public boolean equals(final Object other) {\n if (!(other instanceof LegacyIndexedStore.LegacyFindByCondition)) {\n return false;\n }\n LegacyFindByCondition castOther = (LegacyFindByCondition) other;\n return Objects.equal(condition, castOther.condition) && Objects.equal(pageSize, castOther.pageSize)\n && Objects.equal(limit, castOther.limit) && Objects.equal(offset, castOther.offset)\n && Objects.equal(sort, castOther.sort);\n }\n\n @Override\n public int hashCode() {\n return Objects.hashCode(condition, pageSize, limit, offset, sort);\n }\n\n\n }\n\n}", "@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }", "@Test\n public void testIndexMaintenanceWithIndexOnMethodKeys() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }", "@Override\n\tpublic void indexObject(ModelKey obj) throws ASException {\n\t\t\n\t}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"Duplicates\")\n private int[] getIntRawKeys(int index) {\n int[] rawKeys = null;\n\n // Specialize single multi-value group-by column case\n if (_numGroupByExpressions == 1) {\n rawKeys = _multiValueDictIds[0][index];\n } else {\n // Before having to transform to array, use single value raw key for better performance\n int rawKey = 0;\n\n for (int i = _numGroupByExpressions - 1; i >= 0; i--) {\n int cardinality = _cardinalities[i];\n if (_isSingleValueColumn[i]) {\n int dictId = _singleValueDictIds[i][index];\n if (rawKeys == null) {\n rawKey = rawKey * cardinality + dictId;\n } else {\n int length = rawKeys.length;\n for (int j = 0; j < length; j++) {\n rawKeys[j] = rawKeys[j] * cardinality + dictId;\n }\n }\n } else {\n int[] multiValueDictIds = _multiValueDictIds[i][index];\n int numValues = multiValueDictIds.length;\n\n // Specialize multi-value column with only one value inside\n if (numValues == 1) {\n int dictId = multiValueDictIds[0];\n if (rawKeys == null) {\n rawKey = rawKey * cardinality + dictId;\n } else {\n int length = rawKeys.length;\n for (int j = 0; j < length; j++) {\n rawKeys[j] = rawKeys[j] * cardinality + dictId;\n }\n }\n } else {\n if (rawKeys == null) {\n rawKeys = new int[numValues];\n for (int j = 0; j < numValues; j++) {\n int dictId = multiValueDictIds[j];\n rawKeys[j] = rawKey * cardinality + dictId;\n }\n } else {\n int currentLength = rawKeys.length;\n int newLength = currentLength * numValues;\n int[] newRawKeys = new int[newLength];\n for (int j = 0; j < numValues; j++) {\n int startOffset = j * currentLength;\n System.arraycopy(rawKeys, 0, newRawKeys, startOffset, currentLength);\n int dictId = multiValueDictIds[j];\n int endOffset = startOffset + currentLength;\n for (int k = startOffset; k < endOffset; k++) {\n newRawKeys[k] = newRawKeys[k] * cardinality + dictId;\n }\n }\n rawKeys = newRawKeys;\n }\n }\n }\n }\n\n if (rawKeys == null) {\n rawKeys = new int[]{rawKey};\n }\n }\n\n return rawKeys;\n }", "public interface InvertedIndex extends Serializable {\n\n\n /**\n * Sampling for creating mini batches\n * @return the sampling for mini batches\n */\n double sample();\n\n /**\n * Iterates over mini batches\n * @return the mini batches created by this vectorizer\n */\n Iterator<List<VocabWord>> miniBatches();\n\n /**\n * Returns a list of words for a document\n * @param index\n * @return\n */\n List<VocabWord> document(int index);\n\n /**\n * Returns the list of documents a vocab word is in\n * @param vocabWord the vocab word to get documents for\n * @return the documents for a vocab word\n */\n int[] documents(VocabWord vocabWord);\n\n /**\n * Returns the number of documents\n * @return\n */\n int numDocuments();\n\n /**\n * Returns a list of all documents\n * @return the list of all documents\n */\n int[] allDocs();\n\n\n\n /**\n * Add word to a document\n * @param doc the document to add to\n * @param word the word to add\n */\n void addWordToDoc(int doc,VocabWord word);\n\n\n /**\n * Adds words to the given document\n * @param doc the document to add to\n * @param words the words to add\n */\n void addWordsToDoc(int doc,List<VocabWord> words);\n\n\n /**\n * Finishes saving data\n */\n void finish();\n\n /**\n * Total number of words in the index\n * @return the total number of words in the index\n */\n int totalWords();\n\n /**\n * For word vectors, this is the batch size for which to train on\n * @return the batch size for which to train on\n */\n int batchSize();\n\n /**\n * Iterate over each document\n * @param func the function to apply\n * @param exec exectuor service for execution\n */\n void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);\n}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodGetValues() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.getValues() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }", "public int getFieldIndex() { return _fldIndex; }", "List<FieldRestrictions> fieldRestrictions();", "public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}", "private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }", "abstract public FieldNames getFieldNames();", "@SuppressWarnings(\"Duplicates\")\n private IntArray[] getIntArrayRawKeys(int index) {\n IntArray[] rawKeys = null;\n\n // Before having to transform to array, use single value raw key for better performance\n int[] dictIds = new int[_numGroupByExpressions];\n\n for (int i = 0; i < _numGroupByExpressions; i++) {\n if (_isSingleValueColumn[i]) {\n int dictId = _singleValueDictIds[i][index];\n if (rawKeys == null) {\n dictIds[i] = dictId;\n } else {\n for (IntArray rawKey : rawKeys) {\n rawKey._elements[i] = dictId;\n }\n }\n } else {\n int[] multiValueDictIds = _multiValueDictIds[i][index];\n int numValues = multiValueDictIds.length;\n\n // Specialize multi-value column with only one value inside\n if (numValues == 1) {\n int dictId = multiValueDictIds[0];\n if (rawKeys == null) {\n dictIds[i] = dictId;\n } else {\n for (IntArray rawKey : rawKeys) {\n rawKey._elements[i] = dictId;\n }\n }\n } else {\n if (rawKeys == null) {\n rawKeys = new IntArray[numValues];\n for (int j = 0; j < numValues; j++) {\n int dictId = multiValueDictIds[j];\n rawKeys[j] = new IntArray(dictIds.clone());\n rawKeys[j]._elements[i] = dictId;\n }\n } else {\n int currentLength = rawKeys.length;\n int newLength = currentLength * numValues;\n IntArray[] newRawKeys = new IntArray[newLength];\n System.arraycopy(rawKeys, 0, newRawKeys, 0, currentLength);\n for (int j = 1; j < numValues; j++) {\n int offset = j * currentLength;\n for (int k = 0; k < currentLength; k++) {\n newRawKeys[offset + k] = new IntArray(rawKeys[k]._elements.clone());\n }\n }\n for (int j = 0; j < numValues; j++) {\n int startOffset = j * currentLength;\n int dictId = multiValueDictIds[j];\n int endOffset = startOffset + currentLength;\n for (int k = startOffset; k < endOffset; k++) {\n newRawKeys[k]._elements[i] = dictId;\n }\n }\n rawKeys = newRawKeys;\n }\n }\n }\n }\n\n if (rawKeys == null) {\n return new IntArray[]{new IntArray(dictIds)};\n } else {\n return rawKeys;\n }\n }", "public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem.out.println(\"Mongo Index Timer \"+Long.toString(stop));\n\t}", "public ServiceIndexesPerDateRecord() {\n super(ServiceIndexesPerDate.SERVICE_INDEXES_PER_DATE);\n }", "@Override\n public SparseArray<Field> getFieldsByID() {\n final SparseArray<Field> out = new SparseArray<Field>();\n synchronized (fields) {\n populateFieldCache();\n Collection<Field> values = fields.values();\n for (Field field : values) {\n // Cache is up-to-date at this point, so we don't need to hit the DB.\n out.put(field.getID(), field);\n }\n }\n return out;\n }", "public interface DBTypeMapper {\n public String getDBTypeName(Field field);\n}", "@Test //ExSkip\n public void fieldCollection() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.insertField(\" DATE \\\\@ \\\"dddd, d MMMM yyyy\\\" \");\n builder.insertField(\" TIME \");\n builder.insertField(\" REVNUM \");\n builder.insertField(\" AUTHOR \\\"John Doe\\\" \");\n builder.insertField(\" SUBJECT \\\"My Subject\\\" \");\n builder.insertField(\" QUOTE \\\"Hello world!\\\" \");\n doc.updateFields();\n\n FieldCollection fields = doc.getRange().getFields();\n\n Assert.assertEquals(6, fields.getCount());\n\n // Iterate over the field collection, and print contents and type\n // of every field using a custom visitor implementation.\n FieldVisitor fieldVisitor = new FieldVisitor();\n\n Iterator<Field> fieldEnumerator = fields.iterator();\n\n while (fieldEnumerator.hasNext()) {\n if (fieldEnumerator != null) {\n Field currentField = fieldEnumerator.next();\n\n currentField.getStart().accept(fieldVisitor);\n if (currentField.getSeparator() != null) {\n currentField.getSeparator().accept(fieldVisitor);\n }\n currentField.getEnd().accept(fieldVisitor);\n } else {\n System.out.println(\"There are no fields in the document.\");\n }\n }\n\n System.out.println(fieldVisitor.getText());\n testFieldCollection(fieldVisitor.getText()); //ExSkip\n }", "@SuppressWarnings(\"Duplicates\")\n private long[] getLongRawKeys(int index) {\n long[] rawKeys = null;\n\n // Before having to transform to array, use single value raw key for better performance\n long rawKey = 0;\n\n for (int i = _numGroupByExpressions - 1; i >= 0; i--) {\n int cardinality = _cardinalities[i];\n if (_isSingleValueColumn[i]) {\n int dictId = _singleValueDictIds[i][index];\n if (rawKeys == null) {\n rawKey = rawKey * cardinality + dictId;\n } else {\n int length = rawKeys.length;\n for (int j = 0; j < length; j++) {\n rawKeys[j] = rawKeys[j] * cardinality + dictId;\n }\n }\n } else {\n int[] multiValueDictIds = _multiValueDictIds[i][index];\n int numValues = multiValueDictIds.length;\n\n // Specialize multi-value column with only one value inside\n if (numValues == 1) {\n int dictId = multiValueDictIds[0];\n if (rawKeys == null) {\n rawKey = rawKey * cardinality + dictId;\n } else {\n int length = rawKeys.length;\n for (int j = 0; j < length; j++) {\n rawKeys[j] = rawKeys[j] * cardinality + dictId;\n }\n }\n } else {\n if (rawKeys == null) {\n rawKeys = new long[numValues];\n for (int j = 0; j < numValues; j++) {\n int dictId = multiValueDictIds[j];\n rawKeys[j] = rawKey * cardinality + dictId;\n }\n } else {\n int currentLength = rawKeys.length;\n int newLength = currentLength * numValues;\n long[] newRawKeys = new long[newLength];\n for (int j = 0; j < numValues; j++) {\n int startOffset = j * currentLength;\n System.arraycopy(rawKeys, 0, newRawKeys, startOffset, currentLength);\n int dictId = multiValueDictIds[j];\n int endOffset = startOffset + currentLength;\n for (int k = startOffset; k < endOffset; k++) {\n newRawKeys[k] = newRawKeys[k] * cardinality + dictId;\n }\n }\n rawKeys = newRawKeys;\n }\n }\n }\n }\n\n if (rawKeys == null) {\n return new long[]{rawKey};\n } else {\n return rawKeys;\n }\n }", "public interface DataConverter<JAVATYPE,METATYPE extends FieldDefinition> {\n /** Method invoked for a single JAVATYPE */\n JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE List. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE Set. This can be used to alter the set size / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n Set <JAVATYPE> convertSet(Set<JAVATYPE> oldSet, final METATYPE meta);\n\n /** Method invoked for an array of JAVATYPEs. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the array itself, not on the individual elements. */\n JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);\n\n /** Map-type methods. The tree walker converses the value parts of the map only. */\n public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);\n}", "interface MetadataFieldValues {\n\n @FunctionalInterface\n interface Factory {\n MetadataFieldValues create(String fieldName, FieldType fieldType);\n }\n\n boolean shouldAddValuesWhileIndexing();\n\n Map<String, Integer> distribution();\n\n ValueListComplete isComplete();\n\n void setValues(JsonNode values);\n\n void setComplete(ValueListComplete complete);\n\n void addValue(String value);\n\n void removeValue(String value);\n\n void reset();\n}", "public int fieldIndex(String fld) { if (flds_lu.containsKey(fld)) return flds_lu.get(fld); else return -1; }" ]
[ "0.62283075", "0.57872534", "0.5663462", "0.56244236", "0.5579898", "0.5398986", "0.53807575", "0.53729707", "0.53525335", "0.5340287", "0.5339657", "0.5329695", "0.52955717", "0.52894723", "0.5286939", "0.52701664", "0.5248359", "0.5233722", "0.52181256", "0.5204922", "0.5198661", "0.519741", "0.51892185", "0.51763046", "0.5133822", "0.5130276", "0.51283723", "0.51272947", "0.5110534", "0.50924414", "0.50877184", "0.5074535", "0.5072277", "0.50518847", "0.502552", "0.5017573", "0.49856395", "0.497995", "0.49686757", "0.49398735", "0.4935993", "0.49341843", "0.49257237", "0.4894489", "0.48882672", "0.48761782", "0.48697197", "0.4869714", "0.48652613", "0.4855586", "0.4855586", "0.4855186", "0.48522264", "0.48297486", "0.48280475", "0.4824942", "0.48053446", "0.48035857", "0.47983414", "0.4787145", "0.478388", "0.4782513", "0.47778374", "0.47717836", "0.47659817", "0.4751723", "0.47469532", "0.47429642", "0.47395805", "0.4729936", "0.47190508", "0.4718107", "0.4713575", "0.47063312", "0.470355", "0.47020414", "0.46883005", "0.46877405", "0.46864375", "0.4683188", "0.468262", "0.46802035", "0.46795616", "0.46786734", "0.46777278", "0.46758425", "0.46631566", "0.46625096", "0.4662024", "0.4659535", "0.46536773", "0.46451646", "0.46398196", "0.46397126", "0.462615", "0.46203378", "0.46177432", "0.46172482", "0.46135387", "0.4610393", "0.46051925" ]
0.0
-1
hebt angegebenen Betrag vom Konto ab
public boolean withdraw(Double amount) { if (amount < 0) { return false; } if (amount > this.WITHDRAW_LIMIT) { return false; } if (amount > this.balance) { return false; } this.balance = this.balance - amount; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buche(Betrag betrag) {\n Betrag temp = betrag.umrechnen(waehrung);\n saldo = new Betrag((double) saldo.addiere(temp) / 100, waehrung);\n auszug = auszug.concat(temp.toString() + \"\\n\");\n }", "Konto(Kunde zeichnungsberechtigter) {\n this.zeichnungsberechtigter.add(zeichnungsberechtigter);\n }", "public DecimalInput getBetrag() throws RemoteException\n {\n if (betrag != null)\n return betrag;\n \n SepaDauerauftrag t = getTransfer();\n double d = t.getBetrag();\n if (d == 0.0d) d = Double.NaN;\n betrag = new DecimalInput(d,HBCI.DECIMALFORMAT);\n\n Konto k = t.getKonto();\n betrag.setComment(k == null ? \"\" : k.getWaehrung());\n betrag.setMandatory(true);\n if (t.isActive())\n betrag.setEnabled(getBPD().getBoolean(\"valueeditable\",true));\n \n new KontoListener().handleEvent(null);\n\n return betrag;\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "@Override\r\n\tpublic void solicitarMonto(int monto) {\n\t\tSystem.out.println(\"Comprobar dinero dentro de la cuenta\");\r\n\t\tSystem.out.println(\"Leer monto\");\r\n\t}", "double getMonto();", "double getMonto();", "@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }", "public void gebuehren(double promille) {\n long gebuehren = (saldo.promille(promille) * saldo.getVorzeichen());\n auszug = auszug.concat(\"-\" + gebuehren + \" \" + waehrung.getKuerzel() + \" (gebuehren)\\n\");\n saldo = new Betrag(saldo.subtrahiere(gebuehren / 100) / 100, saldo.getWaehrung());\n }", "@Override\n\tpublic Double addDinero(double monto) {\n\t\treturn null;\n\t}", "void setMonto(double monto);", "void setMonto(double monto);", "public void setMonto(double monto) {\r\n\t\tthis.monto = monto;\r\n\t}", "public double getMontoDescuento(){\n return localMontoDescuento;\n }", "public Input getKontoAuswahl() throws RemoteException\n {\n if (this.kontoAuswahl != null)\n return this.kontoAuswahl;\n \n KontoListener kl = new KontoListener();\n MyKontoFilter filter = new MyKontoFilter();\n this.kontoAuswahl = new KontoInput(getTransfer().getKonto(),filter);\n this.kontoAuswahl.setName(i18n.tr(\"Persönliches Konto\"));\n this.kontoAuswahl.setRememberSelection(\"auftraege\",false);\n this.kontoAuswahl.setMandatory(true);\n this.kontoAuswahl.addListener(kl);\n this.kontoAuswahl.setEnabled(!getTransfer().isActive());\n\n // einmal ausloesen\n kl.handleEvent(null);\n\n if (!filter.found)\n this.kontoAuswahl.setComment(i18n.tr(\"Bitte tragen Sie IBAN/BIC in Ihrem Konto ein\"));\n\n return this.kontoAuswahl;\n }", "public TextInput getEmpfaengerKonto() throws RemoteException\n {\n if (empfkto != null)\n return empfkto;\n\n SepaDauerauftrag t = getTransfer();\n empfkto = new IBANInput(t.getGegenkontoNummer(),this.getEmpfaengerBic());\n empfkto.setMandatory(true);\n if (t.isActive())\n empfkto.setEnabled(getBPD().getBoolean(\"recktoeditable\",true));\n return empfkto;\n }", "public double getMonto() {\r\n\t\treturn monto;\r\n\t}", "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "public Transferencia(double monto, int plazo, int frecuencia) {\r\n\t\tsuper(monto);\r\n\t\tthis.plazo = plazo;\r\n\t\tthis.frecuencia = frecuencia;\r\n\t}", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "@Override\n\tpublic void mostrarDeposito() {\n\t\tSystem.out.println(\"Depósito: \"+depositoActual+\"litros\");\n\t}", "@Override\r\n\tpublic void gerarExtratoDetalhado(Conta conta) {\n\t\t\r\n\t\tDate agora = new Date();\r\n\r\n\t\tSystem.out.println(\"\\nData: \" + sdf.format(agora));\r\n\t\tSystem.out.println(\"\\nConta: \" + conta.getNumero());\r\n\t\tSystem.out.println(\"\\nAgencia: \" + conta.getAgencia().getNumero());\r\n\t\tSystem.out.println(\"\\nCliente: \" + conta.getCliente().getNome());\r\n\t\tSystem.out.println(\"\\nSaldo: R$\" + df.format(conta.getSaldo()));\r\n\t\tSystem.out.println(\"\\nTaxa Rendimento: \" + df.format(taxaRendimento) + \"%\");\r\n\t}", "@Override\n\tpublic void deposit() {\n\t\t\n\t}", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public SepaDauerauftrag getTransfer() throws RemoteException\n\t{\n if (transfer != null)\n return transfer;\n\n Object o = getCurrentObject();\n if (o != null && (o instanceof SepaDauerauftrag))\n return (SepaDauerauftrag) o;\n \n transfer = (SepaDauerauftrag) Settings.getDBService().createObject(SepaDauerauftrag.class,null);\n return transfer;\n\t}", "public void auszahlen(int i) {\n kontostand = kontostand + i;\n Bank.auszahlen(i);\n }", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "public void deposito (double valor) {\r\n\t\tsetSaldoConta(getLimiteCorrente()+getSaldoConta()+valor);\r\n\t}", "public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istKunde(p)){\r\n\t\t\r\n\t\t\t//Warenkorb des Benutzers abfragen\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\t\r\n\t\t\t//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen\r\n\t\t\tint gesamt = 0;\r\n\t\t\tMap<Artikel,Integer> inhalt = wk.getArtikel();\r\n\t\t\tfor(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tav.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());\r\n\t\t\t\t\t//Ereignis erstellen\r\n\t\t\t\t\tev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());\r\n\t\t\t\t} catch (ArticleNonexistantException anne){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tgesamt += (ent.getValue() * ent.getKey().getPreis());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Warenkorb für Rechnung erzeugen\r\n\t\t\tWarenkorb temp = new Warenkorb();\r\n\t\t\ttemp.setArtikel(wk.getArtikel());\r\n\t\t\t\r\n\t\t\t//Rechnung erzeugen\r\n\t\t\tRechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);\r\n\t\t\t\r\n\t\t\t//Warenkorb von Kunde leeren\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t\t\r\n\t\t\t//Rechnungsobjekt an C/GUI zurückgeben\r\n\t\t\treturn re;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb bezahlen\\\"\");\r\n\t\t}\r\n\t}", "public double getMontoSolicitado(){\n return localMontoSolicitado;\n }", "public abstract void calcuteTax(Transfer aTransfer);", "@Override\r\n public BoletoLocal onGerarBoleto(Contrato contrato, ConfiguracoesBoleto config) {\r\n int diaVencimento = contrato.getDiaVencimento();\r\n Calendar dataHj = Calendar.getInstance();\r\n\r\n //SE O DIA DO VENCIMENTO DO BOLETO FOR MENOR OU IGUAL\r\n // A DATA DE HJ GERA NORMAL, SE NÃO ELE GERA PRO PROXIMO MES\r\n if (dataHj.get(Calendar.DAY_OF_MONTH) <= diaVencimento) {\r\n\r\n } else {\r\n dataHj.add(Calendar.MONTH, 1);\r\n }\r\n\r\n dataHj.set(Calendar.DAY_OF_MONTH, diaVencimento);\r\n Calendar dataMaxima = Calendar.getInstance();\r\n dataMaxima.add(Calendar.DAY_OF_MONTH, 20);\r\n\r\n //SE A DATA FOR MAIOS QUE O MÁXIMO CONFIGURADO NÃO GERA NADA.\r\n if (dataHj.after(dataMaxima)) {\r\n System.out.println(\"data depois de 20 dias\");\r\n return null;\r\n }\r\n\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O CEDENTE.\r\n */\r\n Cedente cedente = new Cedente(config.getBanco().getNomeBeneficiado(), config.getDocBeneficiado());\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O SACADO.\r\n */\r\n Sacado sacado = new Sacado(contrato.getLocatario().getNome(), contrato.getLocatario().getDocumento());\r\n\r\n // Informando o endereço do sacado.\r\n org.jrimum.domkee.comum.pessoa.endereco.Endereco enderecoSac = new org.jrimum.domkee.comum.pessoa.endereco.Endereco();\r\n enderecoSac.setUF(UnidadeFederativa.valueOfSigla(contrato.getLocatario().getEndereco().getCodUf()));\r\n enderecoSac.setLocalidade(contrato.getLocatario().getEndereco().getCidade());\r\n enderecoSac.setCep(new CEP(contrato.getLocatario().getEndereco().getDesCep()));\r\n enderecoSac.setBairro(contrato.getLocatario().getEndereco().getDesBairro());\r\n enderecoSac.setLogradouro(contrato.getLocatario().getEndereco().getDesLogradouro());\r\n enderecoSac.setNumero(contrato.getLocatario().getEndereco().getDesNumero());\r\n sacado.addEndereco(enderecoSac);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O TÍTULO.\r\n */\r\n // Informando dados sobre a conta bancária do título.\r\n ContaBancaria contaBancaria = null;\r\n if (config.getBanco().getBanco() == BancosEnum.ITAU) {\r\n contaBancaria = new ContaBancaria(BancosSuportados.BANCO_ITAU.create());\r\n }\r\n\r\n if (contaBancaria == null) {\r\n System.out.println(\"Conta bancária não cadastrada\");\r\n return null;\r\n }\r\n\r\n contaBancaria.setNumeroDaConta(new NumeroDaConta(Integer.parseInt(config.getBanco().getContaNumero()), config.getBanco().getContaDigito()));\r\n contaBancaria.setCarteira(new Carteira(Integer.parseInt(config.getCarteira())));\r\n contaBancaria.setAgencia(new Agencia(Integer.parseInt(config.getBanco().getAgenciaNumero()), config.getBanco().getAgenciaDigito()));\r\n\r\n Titulo titulo = new Titulo(contaBancaria, sacado, cedente);\r\n titulo.setNumeroDoDocumento(config.getNumeroDocumento());\r\n titulo.setNossoNumero(config.getNossoNumero());\r\n titulo.setDigitoDoNossoNumero(config.getNossoNumeroDigito());\r\n titulo.setValor(contrato.getValor());\r\n titulo.setDataDoDocumento(new Date());\r\n\r\n titulo.setDataDoVencimento(dataHj.getTime());\r\n titulo.setTipoDeDocumento(TipoDeTitulo.DM_DUPLICATA_MERCANTIL);\r\n titulo.setAceite(Aceite.A);\r\n//\t\ttitulo.setDesconto(BigDecimal.ZERO);\r\n//\t\ttitulo.setDeducao(BigDecimal.ZERO);\r\n//\t\ttitulo.setMora(BigDecimal.ZERO);\r\n//\t\ttitulo.setAcrecimo(BigDecimal.ZERO);\r\n//\t\ttitulo.setValorCobrado(BigDecimal.ZERO);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O BOLETO.\r\n */\r\n Boleto boletoBank = new Boleto(titulo);\r\n\r\n boletoBank.setLocalPagamento(config.getLocalPagamento());\r\n boletoBank.setInstrucaoAoSacado(config.getInstrucaoSacado());\r\n boletoBank.setInstrucao1(config.getInstrucao1());\r\n boletoBank.setInstrucao2(config.getInstrucao2());\r\n boletoBank.setInstrucao3(config.getInstrucao3());\r\n boletoBank.setInstrucao4(config.getInstrucao4());\r\n boletoBank.setInstrucao5(config.getInstrucao5());\r\n boletoBank.setInstrucao6(config.getInstrucao6());\r\n boletoBank.setInstrucao7(config.getInstrucao7());\r\n boletoBank.setInstrucao8(config.getInstrucao8());\r\n\r\n /*\r\n\t\t * GERANDO O BOLETO BANCÁRIO.\r\n */\r\n // Instanciando um objeto \"BoletoViewer\", classe responsável pela\r\n // geração do boleto bancário.\r\n BoletoViewer boletoViewer = new BoletoViewer(boletoBank);\r\n\r\n // Alterado para pegar o path do sistema automático , gerando dentro\r\n // do projeto.\r\n // Gerando o arquivo. No caso o arquivo mencionado será salvo na mesma\r\n // pasta do projeto. Outros exemplos:\r\n // WINDOWS: boletoViewer.getAsPDF(\"C:/Temp/MeuBoleto.pdf\");\r\n // LINUX: boletoViewer.getAsPDF(\"/home/temp/MeuBoleto.pdf\");\r\n String pasta = \"/boletos\";\r\n\r\n String caminhoCompletoPasta = FacesUtil.getExternalContext().getRealPath(pasta) + \"/\";\r\n BoletoLocal boletoLocal = new BoletoLocal();\r\n contrato.getBoletos().add(boletoLocal);\r\n boletoLocal.setContrato(contrato);\r\n\r\n String nomeArquivoPDF = contrato.getLocatario().getNome().replace(\" \", \"_\") + boletoLocal.getMes() + boletoLocal.getAno() + \".pdf\";\r\n\r\n System.out.println(caminhoCompletoPasta + nomeArquivoPDF);\r\n File arquivoPdf = boletoViewer.getPdfAsFile(caminhoCompletoPasta + nomeArquivoPDF);\r\n\r\n boletoLocal.setPath(pasta + nomeArquivoPDF);\r\n\r\n super.save(boletoLocal);\r\n\r\n return boletoLocal;\r\n }", "public void setGegenkontoBLZ(String blz) throws RemoteException;", "public void ponerDinero(double platita){\r\n if (platita > 0)\r\n setMonto(getMonto() + platita);\r\n }", "private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }", "@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }", "public void setTarjeta(Payment cuenta){\n this.cuenta = cuenta;\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "@Override\n\tpublic void businessMoney() {\n\n\t}", "@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}", "@Override\n\tpublic void relizarCobro(double monto) {\n\t\tif (!loggedIn) {\n\t\t\t\n\t\t\tloggedInUser();\n\t\t}\n\t\t\n\t\t//cargar el monto de compra al medio de pago\n\t}", "public Payment getTarjeta(){\n return cuenta;\n }", "@Override\r\n\tprotected boolean puedeExtraer(double monto) {\n\t\treturn ((super.getSaldo() - monto) >= 0) ? true : false;\r\n\t}", "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }", "public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.currentTimeMillis());\n\t\tSystem.out.println(\"STATE B - Le festivalier \" + this.numFestivalier + \" a acheté sa place\");\n\t}", "public boolean depositarB(Double monto) {\n if(paractual.cuentaB.getEstado() == \"Activo\" && paractual.cuentaA.getSaldo() > 0) {\n // Pasamos saldo a B\n paractual.setSaldoB(paractual.cuentaB.getSaldo() + monto);\n return true;\n }\n return false;\n }", "public TarjetaDebito() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void benachrichtigeBeobachter() {\n\t\tfor (int i = 0; i < beobachter.size(); i++) {\r\n\t\t\tBeobachter b = (Beobachter)beobachter.get(i);\r\n\t\t\tb.aktualisieren(temperatur, feuchtigkeit, luftdruck);\r\n\t\t}\r\n\t}", "BigDecimal getSumaryTechoCveFuente(BudgetKeyEntity budgetKeyEntity);", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public double getMontoEstimado(){\n return localMontoEstimado;\n }", "@Override\n\tpublic void tranfermoney() {\n\t\tSystem.out.println(\"hsbc tranfermoney\");\n\t}", "private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }", "public void returnAct() {\r\n\t\t\r\n\t\tif(createWine() != null) {\r\n\t\t\t\r\n\t\t\ttext_amount =String.valueOf( cus.returnTransaction(createWine()));\r\n\t\t\twine_name.setText(name.getText());\r\n\t\t\tamount.setText(\" £ \" + text_amount + \" \" );\r\n\t\t\tbalance.setText(\" £ \" + isCredit((double)cus.getAccount() / 100.00) + \" \");\r\n\t\t\t\r\n\t\t\t//reset all textfield\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "@Override\n public void aktion(Hauptobjekt h) {\n System.out.println(\"Hin\");\n h.setAktuellerZustand(new ZweiterZustand());\n }", "Reserva Obtener();", "public void deposit();", "public void transferMoney() {\n\t\tSystem.out.println(\"HSBC---transferMoney\");\n\t}", "public Input getLetzteZahlung() throws RemoteException\n\t{\n\t\tif (letzteZahlung != null)\n\t\t\treturn letzteZahlung;\n\n\t\tSepaDauerauftrag t = getTransfer();\n Date d = t.getLetzteZahlung();\n\n letzteZahlung = new DateInput(d,HBCI.DATEFORMAT);\n letzteZahlung.setComment(\"\");\n letzteZahlung.setTitle(i18n.tr(\"Datum der letzten Zahlung\"));\n letzteZahlung.setText(i18n.tr(\"Bitte geben Sie das Datum der letzten Zahlung ein\"));\n letzteZahlung.addListener(new Listener() {\n public void handleEvent(Event event)\n {\n // Nur, um den Parser zu triggern\n letzteZahlung.getValue();\n }\n \n });\n\n if (t.isActive())\n letzteZahlung.setEnabled(getBPD().getBoolean(\"lastexeceditable\",true));\n \n return letzteZahlung;\n\t}", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "public void geldEinzahlen(long auf, double betrag) throws IllegalArgumentException, KontonummerNichtGefundenException {\n if (!kontoMap.containsKey(auf)) {\n throw new KontonummerNichtGefundenException(auf);\n }\n kontoMap.get(auf).einzahlen(betrag);\n }", "public void setBetrag(double betrag) throws RemoteException;", "public BankRekening() {\n setSaldo(0);\n }", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void depositar(double valor) {\n this.saldo += valor;\n }", "public double getMontoPedidoRechazado(){\n return localMontoPedidoRechazado;\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void actualisePrixDeVente(){\n\t\tArrayList<Catalogue> lis = new ArrayList<Catalogue>();\n\t\tfor (ITransformateur t : this.getTransfos()) {\n\t\t\tlis.add(t.getCatalogue());\n\t\t}\n\t\tthis.setCatalogues(lis);\n\t\tthis.setPrixDeVente();\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "@Override\n public String toString() {\n return String.format(\"Pizza %s, prezzo %f€\", this.gusto, this.prezzo);\n }", "AcctgTrans getAcctgTrans();", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void alteraBrilhoDeExibicao(float NovoBrilho){\n if (ligado)\n if(NovoBrilho >= 0 && NovoBrilho <= 10){\n brilho = NovoBrilho;\n System.out.println(\"Brilho:\" + NovoBrilho+ \"\\n\");\n \n } else if(NovoBrilho <= 0 && NovoBrilho >= -brilho){\n brilho += NovoBrilho;\n System.out.println(\"Brilho:\" + brilho + \"\\n\");\n }else\n System.out.println(\"Brilho invalido \\n\");\n else \n System.out.println(\"Driver desligado \\n\");\n }", "public void realizarDeposito(String codigo_cuenta, double monto) {\n try {\n Cuenta cuenta = obtenerCuenta(codigo_cuenta);\n double credito_total = cuenta.getCredito() + monto;\n PreparedStatement PrSt;\n String Query = \"UPDATE Cuenta SET Credito = ? WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setDouble(1, credito_total);\n PrSt.setString(2, codigo_cuenta);\n PrSt.executeUpdate();\n PrSt.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n }", "private String formatearMonto(String gstrLBL_TIPO, String gstrLBL_MONTO, String gstrLBL_MONEDA) {\n\t\tString montoFormateado=\"\";\n\t\t\n\t\tif(gstrLBL_MONEDA.equals(\"Soles\"))\n\t\t\tmontoFormateado=\"S/ \";\n\t\telse\n\t\t\tmontoFormateado=\"$ \";\n\t\t\n\t\tif(gstrLBL_TIPO.equals(\"Débito\"))\n\t\t\tmontoFormateado=montoFormateado+\"-\";\n\t\telse\n\t\t\tmontoFormateado=montoFormateado+\"+\";\n\t\t\n\t\tdouble prueba2=new Double(gstrLBL_MONTO);\n\t\tDecimalFormatSymbols simbolo=new DecimalFormatSymbols();\n\t\tsimbolo.setGroupingSeparator(',');\n\t\tsimbolo.setDecimalSeparator('.');\n\t\tDecimalFormat formatea=new DecimalFormat(\"###,###.##\",simbolo);\n\t\tgstrLBL_MONTO=formatea.format(prueba2);\n\t\tif(gstrLBL_MONTO.indexOf(\".\")!=-1){\n\t\t\tint decimales=(gstrLBL_MONTO.substring(gstrLBL_MONTO.indexOf(\".\")+1,gstrLBL_MONTO.length())).length();\n\t\t\tif(decimales==1)\n\t\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\"0\";\n\t\t}else\n\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\".00\";\n\t\t\n\t\tmontoFormateado=montoFormateado+gstrLBL_MONTO;\n\t\t\n\t\treturn montoFormateado;\n\t}", "@Override\n\tpublic void DepositMoney(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yatıracağınız para miktarını giriniz\");\n\t\tint newDepositMoney;\n\t\tnewDepositMoney=sc.nextInt();\n\t\tsc.nextLine();\n\t\tgamer.setWalletBalance(gamer.getWalletBalance()+newDepositMoney);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni bakiyeniz \"+gamer.getWalletBalance()+\" olarak güncellendi.\");\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate javax.swing.JTextField montoAbonadosTF() {\n\t\tif(montoAbonadosTF == null) {\n\t\t\tmontoAbonadosTF = new javax.swing.JTextField();\n\t\t\tmontoAbonadosTF.setPreferredSize(new java.awt.Dimension(105,20));\n\t\t\tmontoAbonadosTF.setEditable(false);\n\t\t\tmontoAbonadosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\tmontoAbonadosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\tmontoAbonadosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tmontoAbonadosTF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n\t\t\tmontoAbonadosTF.setFocusable(false);\n\n\t\t}\n\t\treturn montoAbonadosTF;\n\t}", "public String getTaxcopy() {\r\n return taxcopy;\r\n }", "@Override\n\tvoid money() {\n\t\t\n\t}", "@Override\r\n\tpublic double withdrawlDao(double money) throws EwalletException {\n\t\tif(money<temp.getCustBal()) {\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttry {\r\n\t\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Withdrawn :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" Low Balance :( \");\r\n\t\t\treturn temp.getCustBal();\r\n\t}", "private void makeTransfer(String withdrawAmt, String depositAcct){\n //assume this will come as numbers only (Keyboard restricted to numbers)\n Double transferAmt = Double.valueOf(withdrawAmt);\n\n //make transfer\n customer.transferFund(currAcctName, depositAcct, transferAmt);\n\n //reset transfer value\n ((EditText)findViewById(R.id.transferAmt)).setText(\"\");\n\n //update balance\n ((TextView) findViewById(R.id.fromAmt)).setText(customer.getBalanceString(currAcctName));\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "BigDecimal getOrigAmount();", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setCost(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET cost='\"+data.getCost()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "public interface SammelTransferBuchung extends Transfer, HibiscusDBObject\n{\n\t/**\n\t * Liefert den zugeordneten Sammel-Transfer.\n * @return Sammel-Transfer.\n * @throws RemoteException\n */\n public SammelTransfer getSammelTransfer() throws RemoteException;\n\n\t/**\n\t * Legt den zugehoerigen Sammel-Transfer fest.\n * @param s Sammel-Transfer.\n * @throws RemoteException\n */\n public void setSammelTransfer(SammelTransfer s) throws RemoteException;\n\n\t/**\n\t * Speichert die Kontonummer des Gegenkontos.\n * @param kontonummer\n * @throws RemoteException\n */\n public void setGegenkontoNummer(String kontonummer) throws RemoteException;\n\t\n\t/**\n\t * Speichert die BLZ des Gegenkontos.\n * @param blz\n * @throws RemoteException\n */\n public void setGegenkontoBLZ(String blz) throws RemoteException;\n\n\t/**\n\t * Speichert den Namen des Kontoinhabers des Gegenkontos.\n * @param name\n * @throws RemoteException\n */\n public void setGegenkontoName(String name) throws RemoteException;\n\n\t/**\n\t * Speichert den zu ueberweisenden Betrag.\n\t * @param betrag Betrag.\n\t * @throws RemoteException\n\t */\n\tpublic void setBetrag(double betrag) throws RemoteException;\n\t\n\t/**\n\t * Speichert den Zweck der Ueberweisung.\n\t * @param zweck Zweck der Ueberweisung.\n\t * @throws RemoteException\n\t */\n\tpublic void setZweck(String zweck) throws RemoteException;\n\t\n\t/**\n\t * Speichert Zeile 2 des Verwendungszwecks.\n\t * @param zweck2 Zeile 2 des Verwendungszwecks.\n\t * @throws RemoteException\n\t */\n\tpublic void setZweck2(String zweck2) throws RemoteException;\n \n /**\n * Liefert den Textschluessel der Buchung.\n * @return Textschluessel.\n * @throws RemoteException\n */\n public String getTextSchluessel() throws RemoteException;\n \n /**\n * Speichert den Textschluessel der Buchung.\n * @param schluessel Textschluessel.\n * @throws RemoteException\n */\n public void setTextSchluessel(String schluessel) throws RemoteException;\n\n /**\n * Speichert eine Liste erweiterter Verwendungszwecke.\n * @param list Liste erweiterter Verwendungszwecke.\n * @throws RemoteException\n */\n public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;\n}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "abstract void addDepositTransaction(Transaction deposit, Ui ui, String bankType) throws BankException;", "double getMoney();", "@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}" ]
[ "0.6827624", "0.6534126", "0.6497518", "0.6186799", "0.6020265", "0.59403074", "0.5931036", "0.5931036", "0.59128124", "0.58829683", "0.58333933", "0.58261144", "0.58261144", "0.5761026", "0.574777", "0.5737715", "0.5712759", "0.5705057", "0.56795716", "0.5621589", "0.5592177", "0.5586266", "0.55600166", "0.55514", "0.55196244", "0.5506092", "0.5504275", "0.54990923", "0.5466933", "0.5458026", "0.5445491", "0.5441198", "0.5437748", "0.5426872", "0.5422332", "0.54205805", "0.5401331", "0.5384706", "0.53843105", "0.53782344", "0.5377246", "0.537479", "0.5371659", "0.5368966", "0.5368791", "0.53594613", "0.53507644", "0.5347108", "0.5342287", "0.53383434", "0.5335091", "0.5333997", "0.53298205", "0.532926", "0.53186244", "0.5315896", "0.5313667", "0.5310168", "0.5299431", "0.5293413", "0.52865887", "0.52775604", "0.527637", "0.5275329", "0.52731097", "0.5269514", "0.5265494", "0.5263543", "0.52619016", "0.5261583", "0.52587426", "0.5253068", "0.52488923", "0.52482706", "0.5239116", "0.5239106", "0.5238865", "0.5237603", "0.52373475", "0.5236153", "0.52331704", "0.52276945", "0.5227456", "0.5216659", "0.5211044", "0.52096707", "0.5204966", "0.5195923", "0.5195884", "0.5193069", "0.5184033", "0.5183985", "0.51824933", "0.5179751", "0.51759577", "0.51718295", "0.51632875", "0.51596457", "0.5156487", "0.51553404", "0.51475745" ]
0.0
-1
write model to modelPath
@Override /** * Write the trained model back to stored location. */ public void cleanup( BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer) { if (peer.getPeerIndex() == peer.getNumPeers() - 1) { try { LOG.info(String.format("End of training, number of iterations: %d.", this.iterations)); LOG.info(String.format("Write model back to %s", inMemoryModel.getModelPath())); this.inMemoryModel.writeModelToFile(); } catch (IOException e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveToFile(File file, Model model) throws IOException;", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void saveDocument(SingleDocumentModel model, Path newPath);", "public void save(final IPath path) throws IOException {\r\n\t\t// This sets the model as contents in a new resource when using save as.\r\n\t\ttry {\r\n\t\t\tresource = resourceSet.getResource(URI.createPlatformResourceURI(\r\n\t\t\t\t\tpath.toString(), true), true);\r\n\t\t} catch (final Exception e) {\r\n\t\t\t// FIXME eigentlich sollte getResource schon eine Resource erzeugen\r\n\t\t\tresource = resourceSet.createResource(URI\r\n\t\t\t\t\t.createPlatformResourceURI(path.toString(), true));\r\n\t\t\tAssert.isTrue(false, \"Unerwartete Codeausführung.\");\r\n\t\t}\r\n\t\trecursiveSetNamesIfUnset(models);\r\n\t\tresource.getContents().clear();\r\n\t\tresource.getContents().addAll(models);\r\n\t\tfinal Map<String, Boolean> options = new HashMap<String, Boolean>();\r\n\t\toptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);\r\n\t\tresource.save(options);\r\n\t}", "public void saveToStream(OutputStream stream, Model model);", "@Override\r\n\tpublic void serialize(Model model, OutputStream outputStream) {\n\t\tResourceSet resourceSet = new ResourceSetImpl();\r\n\r\n\t\t// Register the default resource factory -- only needed for stand-alone!\r\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\r\n\t\t\t Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl()\r\n\t\t);\r\n\r\n\t\t// Get the URI of the model file.\r\n\t\t//URI uri = URI.createFileURI(new File(\"mylibrary.xmi\").getAbsolutePath());\r\n\t\tURI uri = URI.createURI(SPAGOBI_MODEL_URI);\r\n\t\t \r\n\t\t// Create a resource for this file.\r\n\t\tResource resource = resourceSet.createResource(uri);\r\n\t\t \r\n\t\t// Add the book and writer objects to the contents.\r\n\t\tresource.getContents().add(model);\r\n\t\r\n\t\t// Save the contents of the resource to the file system.\r\n\t\ttry {\r\n\t\t\t//resource.save(Collections.EMPTY_MAP);\r\n\t\t\tresource.save(outputStream, Collections.EMPTY_MAP);\r\n\t\t} catch (IOException e) {\r\n\t\t throw new RuntimeException(\"Impossible to serialize model [\" + model.getName() + \"]\", e);\r\n\t\t}\t\r\n\t}", "public void saveModel() {\n\t}", "protected void modelWrite(){\r\n\t\tthis.model.write(System.out);\r\n\t\tSystem.out.println(\"\\n -- model write finished --\\n\");\r\n\t\t\r\n\t}", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "public interface ModelWriter {\n\t\n\t/**\n\t * Writes a model to a file.\n\t * \n\t * @param file\n\t * the file to write the model to.\n\t * @param model\n\t * the model to write.\n\t */\n\tpublic void saveToFile(File file, Model model) throws IOException;\n\n\t/**\n\t * Writes a model to a stream.\n\t * \n\t * @param stream\n\t * the stream to write the model to.\n\t * @param model\n\t * the model to write.\n\t */\n\tpublic void saveToStream(OutputStream stream, Model model);\n\n}", "public void saveModel(IModel model, CommonTree modelDescriptor,\n String directory, String extension, boolean trim)\n {\n\n ICodeGenerator generator = CodeGeneratorFactory.getCodeGenerator(extension);\n\n if (generator == null)\n {\n if (LOGGER.isWarnEnabled())\n LOGGER.warn(\"Could not find a code generator for \" + extension);\n return;\n }\n\n String destination = null;\n try\n {\n /*\n * ok, now let's create the directory\n */\n File root = new File(getRuntime().getWorkingDirectory(),\n directory);\n destination = root.getCanonicalPath();\n\n if (!root.exists()) root.mkdirs();\n\n File toBeWritten = new File(root, model.getName() + \".\" + extension);\n destination = toBeWritten.getCanonicalPath();\n\n PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\n toBeWritten)));\n\n /*\n * now before we dump we should make sure that the buffer contents are\n * written\n */\n\n /*\n * we dump the full model\n */\n for (StringBuilder line : generator.generate(modelDescriptor, trim))\n pw.println(line.toString());\n\n pw.flush();\n pw.close();\n }\n catch (Exception ioe)\n {\n LOGGER\n .error(\"Could not write \" + model + \" to \" + destination + \" \", ioe);\n }\n }", "public void save() throws Exception{\n\t\tFileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\tsave.writeObject(lm_);\n\t\tsave.close();\n\t}", "public static void saveStory(StoryModel storyModel){\n try {\n File file = new File(getFilePath(storyModel.getStoryId()));\n file.createNewFile();\n FileOutputStream fos;\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(storyModel);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveModelAs() {\r\n \t\t// Updates station positions into data structure\r\n \t\tupdateStationPositions();\r\n \t\tint status = modelLoader.saveModel(model, mainWindow, null);\r\n \t\tswitch (status) {\r\n \t\t\tcase ModelLoader.SUCCESS:\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t\tbreak;\r\n \t\t\tcase ModelLoader.FAILURE:\r\n \t\t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t}", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "public void saveModel() {\r\n \t\tif (openedArchive == null) {\r\n \t\t\tsaveModelAs();\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\t// Updates station positions into data structure\r\n \t\tupdateStationPositions();\r\n \t\tint status = modelLoader.saveModel(model, mainWindow, openedArchive);\r\n \t\tswitch (status) {\r\n \t\t\tcase ModelLoader.SUCCESS:\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t\tbreak;\r\n \t\t\tcase ModelLoader.FAILURE:\r\n \t\t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t}", "protected void writeFile(Document model, FileWriter writer)\n throws IOException, Exception {\n writer.loadTemplate();\n\n String className = model.getDocumentElement().getAttribute(\"name\");\n writer.createOutFile(null, className); //pass in null as the package\n\n // use the global resolver\n writer.parse(model, resolver);\n }", "public void save() throws Exception {\n FileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n ObjectOutputStream save = new ObjectOutputStream(saveFile);\n save.writeObject(this);\n save.close();\n }", "void writeScenario(ScenarioModel model) throws ModelSerializationException, ModelConversionException;", "public void saveModel() {\n\n }", "public void writeStoryModel(SEModel model, File location, boolean backup) {\r\n\t\tthis.writeData(model, location, IoMode.STORY, backup);\r\n\t}", "void writeScenario(ScenarioModel model, OutputStream outputStream) throws ModelSerializationException, ModelConversionException;", "public static synchronized boolean writeObject(Object lModel, String lPath, String lName) {\n /*\n final File suspend_f = new File(lPath, lName);\n FileOutputStream fos = null;\n ObjectOutputStream oos = null;\n boolean keep = true;\n try\n {\n fos = new FileOutputStream (suspend_f, false);\n oos = new ObjectOutputStream(fos);\n oos.writeObject(lModel);\n } catch(Exception e)\n {\n keep = false;\n } finally\n {\n try\n {\n if (oos != null) oos.close();\n if (fos != null) fos.close();\n if (keep == false)suspend_f.delete();\n } catch (Exception e)\n {\n }\n }\n */\n return true;\n }", "public void saveModel(String outFile) {\n\t\ttry {\n\t\t\tmodel.write(new FileWriter(outFile), \"RDF/XML\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void save(ComputationGraph net) throws Exception {\r\n ModelSerializer.writeModel(net, locationToSave, saveUpdater);\r\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public void saveModel(VolunteerModel model) {\n facadeDAO.saveVolunteerModelToFile(model);\n }", "public void saveModel(String path) {\n try\n {\n for (int i=0; i<size; i++) {\n for (int j=0; j<size; j++) {\n PerformanceResultsPair resultsPair = resultsGrid[i][j];\n String directoryName = (i > j)?\n resultsPair.getP2FirstResults().getDescription():\n resultsPair.getP1FirstResults().getDescription();\n resultsPair.saveTo(path + FileUtil.FILE_SEPARATOR() + directoryName);\n }\n }\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not save the model\", e);\n }\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "public boolean save(Data model);", "public String exportModel(ModelContainer model, OWLDocumentFormat ontologyFormat) throws OWLOntologyStorageException {\n\t\tfinal OWLOntology aBox = model.getAboxOntology();\n\t\tfinal OWLOntologyManager manager = aBox.getOWLOntologyManager();\n\t\t\n\t\t// make sure the exported ontology has an ontologyId and that it maps to the modelId\n\t\tfinal IRI expectedABoxIRI = model.getModelId();\n\t\tOptional<IRI> currentABoxIRI = aBox.getOntologyID().getOntologyIRI();\n\t\tif (currentABoxIRI.isPresent() == false) {\n\t\t\tmanager.applyChange(new SetOntologyID(aBox, expectedABoxIRI));\n\t\t}\n\t\telse {\n\t\t\tif (expectedABoxIRI.equals(currentABoxIRI) == false) {\n\t\t\t\tOWLOntologyID ontologyID = new OWLOntologyID(Optional.of(expectedABoxIRI), Optional.of(expectedABoxIRI));\n\t\t\t\tmanager.applyChange(new SetOntologyID(aBox, ontologyID));\n\t\t\t}\n\t\t}\n\n\t\t// write the model into a buffer\n\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\t\tif (ontologyFormat != null) {\n\t\t\tmanager.saveOntology(aBox, ontologyFormat, outputStream);\n\t\t}\n\t\telse {\n\t\t\tmanager.saveOntology(aBox, outputStream);\n\t\t}\n\t\t\n\t\t// extract the string from the buffer\n\t\tString modelString = outputStream.toString();\n\t\treturn modelString;\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "private void saveindex() throws IOException {\n File dense = new File(DenseLayerPath + \"DenseLayer\" + \".class\");\n if (!dense.exists())\n dense.createNewFile();\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(dense));\n oos.writeObject(this);\n oos.close();\n }", "public static boolean save(Model m, String path) {\n\t\tElement rootEle = new Element(\"Graph\");\n\t\tDocument doc = new Document(rootEle);\n\n\t\t// save graph information for each module\n\t\tElement modulesEle = new Element(\"Modules\");\n\t\tfor (Module module : m.getModules()) {\n\t\t\tmodulesEle.addContent(getXML(module));\n\t\t}\n\t\trootEle.addContent(modulesEle);\n\n\t\t// save to disk\n\t\tXMLOutputter XMLOut = new XMLOutputter();\n\t\ttry {\n\t\t\tXMLOut.output(doc, new FileOutputStream(path));\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static void serialize(String filePath) throws IOException {\n if (filePath == null) {\n throw new IllegalArgumentException(\"Filepath cannot be null\");\n }\n\n List<Object> toSave = new ArrayList<>();\n toSave.add(models);\n if (userData != null) {\n toSave.add(userData);\n }\n\n try {\n FileOutputStream fos = new FileOutputStream(filePath, false);\n ObjectOutputStream out = new ObjectOutputStream(fos);\n out.writeObject(toSave);\n\n out.flush();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void write(String modelJson, Context context){\n\t\ttry {\n\t\t\t\n\t\t\tOutputStream outputStream = context.getApplicationContext()\n\t\t\t\t\t.openFileOutput(filename, Context.MODE_APPEND);\n\t\t\tOutputStreamWriter fileWriter = new OutputStreamWriter(outputStream);\n\t\t\tfileWriter.write(modelJson + \"\\r\\n\");\n\t\t\tfileWriter.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveModel(String entityOutput, String relationOutput, Map<String, Integer> entity2Id, Map<String, Integer> relation2Id){\n Map<String, double[]> entityMap = new HashMap<String, double[]>();\n Map<String, double[]> relationMap = new HashMap<String, double[]>();\n Iterator iteratorEntity = entity2Id.entrySet().iterator();\n while (iteratorEntity.hasNext()){\n Map.Entry entry = (Map.Entry)iteratorEntity.next();\n String entityName = entry.getKey().toString();\n int entityId = Integer.parseInt(entry.getValue().toString());\n entityMap.put(entityName, entityVectors.get(entityId));\n }\n Iterator iteratorRelation = relation2Id.entrySet().iterator();\n while (iteratorRelation.hasNext()){\n Map.Entry entry = (Map.Entry)iteratorRelation.next();\n String relationName = entry.getKey().toString();\n int relationId = Integer.parseInt(entry.getValue().toString());\n entityMap.put(relationName, relationVectors.get(relationId));\n }\n\n SerializeModelVectors modelEntity = new SerializeModelVectors(entityMap);\n WriteModel writer = new WriteModel();\n writer.write(entityOutput, modelEntity);\n\n SerializeModelVectors modelRelation = new SerializeModelVectors(relationMap);\n writer.write(relationOutput, modelRelation);\n\n\n }", "public static void writeuser(String modelJson, Context context){\n\t\ttry {\n\t\t\t\n\t\t\tOutputStream outputStream = context.getApplicationContext()\n\t\t\t\t\t.openFileOutput(filename, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter fileWriter = new OutputStreamWriter(outputStream);\n\t\t\tfileWriter.write(modelJson + \"\\r\\n\");\n\t\t\tfileWriter.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void saveAs() {\n writeFile.Export();\n }", "@Override\n public void modelStarted(ModelEvent me)\n {\n save(me.getSource(), _startDirectory);\n }", "@Override\n public void modelStopped(ModelEvent me)\n {\n save(me.getSource(), _stopDirectory);\n }", "public void outputModel(PrintStream out) {\n if (model != null) {\n model.write(out);\n }\n }", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }", "private void saveRoute(String path){\n if(vMaze == null)\n inputMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.getRouteFinder().save(path);\n\n mainMessage.setText(\"Successfully saved!\");\n stage.setScene(main);\n } catch (IOException e){\n inputMessage.setText(\"Unable to read file.\");\n }\n }", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "@Override\n\tpublic String put(KomisyonModel model) throws IOException {\n\t\treturn null;\n\t}", "void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;", "public void writeObject(Object obj, String path)throws IOException{\n FileOutputStream fos = new FileOutputStream(path);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n\n oos.writeObject(obj);\n oos.close();\n }", "private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}", "public void save() throws TransformerException {\n\t\tgenerator.saveToFile(saveLocation);\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void printModel(OutputStream os)\n\t{\n\t\tRDFDataMgr.write(os, model, Lang.TURTLE) ;\n\t}", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "void setModel(Model model);", "private void saveToDir(String name, Object obj) {\n\t\tFileOutputStream fileOut = null;\n\t\ttry {\n\t\t\tfileOut = new FileOutputStream(this.dir + \"/\" + name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(obj);\n\t\t\tout.close();\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred while saving the index file: \" + name);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void setOriginalModelPathFromModel(Model model) {\n originalModelPath = null;\n if(model.getInputFileName()!=null &&\n !model.getInputFileName().equals(\"\"))\n originalModelPath =\n (new java.io.File(model.getInputFileName())).getParent();\n else if(model.originalModelPath!=null &&\n !model.originalModelPath.equals(\"\"))\n originalModelPath = model.originalModelPath;\n }", "public File getModelDir() {\n\t\treturn new File(DataStore.getInstance().getValue(CodegenConstants.DATASTORE_MODEL_DIR));\n\t}", "public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveMatrixIO() {\n qMatrixFile.saveToFile(getQMatrix());\n sMatrixFile.saveToFile(getSMatrix());\n }", "public void save() throws Exception {\n // create a File object for the output file\n File outputFile = new File(MinuteUpdater.mapDir, this.fileName);\n // outputFile.mkdirs();\n outputFile.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(this);\n objectOutputStream.close();\n }", "private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }", "void save();", "void save();", "void save();", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public boolean put(@Nonnull String key, @Nonnull V model) {\n\t\tPreconditions.checkNotNull(key);\n\t\tPreconditions.checkNotNull(model);\n\t\t// don't care if the file already exist, it will be replaced\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\ttry {\n\t\t\tmObjectMapper.writeValue(jsonFile, model);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when writing \" + key, e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void writeLibraryModel(final LibraryModel library,\r\n\t\t\tfinal File location) {\r\n\t\tFileIO.this.writeData(library, location, IoMode.LIBRARY, true);\r\n\t}", "@Override\n public String toModelFilename(String name) {\n return toModelName(name);\n }", "private void saveEntity(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName, true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Path saveOrUpdatePath(Path path);", "public void save();", "public void save();", "public void save();", "public void save();", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void save(String path){\t\r\n\t\t\t FMParser.save(this, path);\r\n\t\t\t}", "private void setFile(Serializable object, String path) throws Exception {\t\t\n\t\t\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(object);\n objectOut.close(); \n\t\t\n\t}", "private synchronized void updateModel(IFile modelFile) {\n MoleculeExt format = MoleculeExt.valueOf( modelFile );\n if ( format.isSupported()) {\n\n IMoleculesFromFile model;\n if (modelFile.exists()) {\n\n try {\n switch(format) {\n case SDF: model = new MoleculesFromSDF(modelFile);\n break;\n case SMI: model = new MoleculesFromSMI(modelFile);\n break;\n default: return;\n }\n\n }\n catch (Exception e) {\n return;\n }\n cachedModelMap.put(modelFile, model);\n }\n else {\n cachedModelMap.remove(modelFile);\n }\n }\n }", "@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}", "public interface CDFFileWriter {\n\t\n\t/**\n\t * \n\t * @param model\n\t * @param filename\n\t * @return a registry to the cdf components that get written for \"model\"\n\t * @throws IOException\n\t */\n\tpublic void saveFile(ElectricPowerModel model, String filename) throws IOException;\t\n}", "void writeToPath(Path path, TypeSystem typeSystem) throws IOException, SAXException;", "public static void write() throws IOException {\n VelocityContext context = new VelocityContext();\n\n //Put the data model in context object\n context.put(\"packageName\", packageName);\n context.put(\"className\", className);\n List<Attribute> attributes = new ArrayList<>();\n attributes.add(new Attribute(\"id\", \"int\"));\n attributes.add(new Attribute(\"firstName\", \"String\"));\n attributes.add(new Attribute(\"lastName\", \"String\"));\n attributes.add(new Attribute(\"dob\", \"LocalDate\"));\n context.put(\"attributes\", attributes);\n\n //Merge the template with context data\n StringWriter stringWriter = new StringWriter();\n Velocity.mergeTemplate(\"class.vm\", context, stringWriter);\n\n //Write to file\n FileWriter fw = null;\n try {\n fw = new FileWriter(\"output/User.java\");\n fw.write(stringWriter.toString());\n } finally {\n if (fw != null) {\n fw.close();\n }\n }\n }", "void create(Model model) throws Exception;", "@Override\n public void writeExternal(ObjectOutput out) throws IOException {\n out.writeInt(model.rank());\n out.writeObject(model.userFeatures().toJavaRDD().collect());\n out.writeObject(model.productFeatures().toJavaRDD().collect());\n\n if (log.isDebugEnabled()) {\n log.debug(\"Rank, user features and product features of MatrixFactorizationModel were serialized \"\n + \"successfully.\");\n }\n }", "public void save(){\n try{\n Date date = new Date();\n \n PrintWriter writer = new PrintWriter(\"data.MBM\", \"UTF-8\");\n \n writer.println(\"version:\"+MBMDriver.version);\n writer.println(\"numworlds:\" + worlds.size());\n writer.println(\"lastclosed:\" + date.toString());\n writer.println(\"outDir:\"+outputDir.toPath());\n \n for(int i = 0; i < worlds.size(); i++){\n \n writer.println(\"MBMWORLD:\"+worlds.get(i).getWorldFile().getName()+\":\"+worlds.get(i).getName()+\":\"+worlds.get(i).getWorldFile().toPath()+\":\"+worlds.get(i).getLastBackupDate());\n }\n \n writer.close();\n }catch(FileNotFoundException e){\n System.out.println(\"ERROR: Failed to Find File\");\n }catch(UnsupportedEncodingException e){\n System.out.println(\"ERROR: Unsupported Encoding Exception\");\n }\n }", "private void writeModel(URNspec urn) throws IOException {\n\t\tmodelFormula = new StringBuffer();\n\t\tStringBuffer function = new StringBuffer();\n\t\tList<Actor> actorList = new ArrayList<Actor>();\n\t\tList<Actor> actHasWeight = new ArrayList<Actor>();\n\t\tList<String> actorTimesWeight = new ArrayList<String>();\n\n\t\tint sumQua = 0;\n\t\tint dNum = 100;\n\t\tfunction.append(modifyName(urn.getName()));\n\t\tfunction.append(Equal);\n\t\tfor (Iterator it = urn.getGrlspec().getActors().iterator(); it.hasNext();) {\n\t\t\tActor actor = (Actor) it.next();\n\t\t\tactorList.add(actor);\n\t\t\tif (actor.getImportanceQuantitative() != 0) {\n\t\t\t\tactHasWeight.add(actor);\n\t\t\t}\n\n\t\t} // for\n\t\tif (actorList.size() == 0) {\n\t\t\t// it's like there is one big actor weighted 100 containing anything\n\t\t\tmodelFormula = ModelWithoutActor(urn);\n\t\t} else {\n\t\t\tif (actHasWeight.size() == 0) {\n\n\t\t\t\tfor (int i = 0; i < actorList.size(); i++) {\n\t\t\t\t\tStringBuffer actorRe = new StringBuffer();\n\t\t\t\t\tactorRe.append(LeftBracker);\n\t\t\t\t\tactorRe.append(actorForMap.get(actorList.get(i)));\n\t\t\t\t\tactorRe.append(RightBracker);\n\t\t\t\t\tactorTimesWeight.add(actorRe + Times + \"100.0\");\n\t\t\t\t}\n\t\t\t\tsumQua = 100 * actorList.size();\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < actorList.size(); i++) {\n\t\t\t\t\tint actorQua = actorList.get(i).getImportanceQuantitative();\n\t\t\t\t\tStringBuffer actorRe = new StringBuffer();\n\t\t\t\t\tactorRe.append(LeftBracker);\n\t\t\t\t\tactorRe.append(actorForMap.get(actorList.get(i)));\n\t\t\t\t\tactorRe.append(RightBracker);\n\t\t\t\t\tactorTimesWeight.add(actorForMap.get(actorList.get(i)) + Times + actorQua);\n\t\t\t\t\tsumQua += actorQua;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString joined = String.join(\"+\", actorTimesWeight);\n\t\t\tmodelFormula.append(LeftBracker);\n\t\t\tmodelFormula.append(joined);\n\t\t\tmodelFormula.append(RightBracker);\n\t\t\tmodelFormula.append(Divide);\n\t\t\tmodelFormula.append(Integer.toString(Math.max(sumQua, dNum)));\n\t\t}\n\t\tfunction.append(modelFormula);\n\t\twrite(\"#The function of Model\\n\");\n\t\twrite(function.toString());\n\t\twrite(\"\\n\");\n\t}", "private static URI saveMinimalModelInFileSystem(ResourceSet resourceSet, EPackage minimalModel,\n\t\t\tString fullPathMinimalModel) {\n\t\tURI overlapURI = URI.createFileURI(fullPathMinimalModel);\n\t\tResource overlapResource = resourceSet.createResource(overlapURI, \"ecore\");\n\n\t\toverlapResource.getContents().add(minimalModel);\n\n\t\tDiagram d = createDiagram(minimalModel);\n\n\t\tURI diagUri = URI.createFileURI(fullPathMinimalModel + \"_diagram\");\n\t\tResource diagramResource = resourceSet.createResource(diagUri, \"ecore\");\n\t\td.setName(diagUri.lastSegment());\n\t\tdiagramResource.getContents().add(d);\n\t\ttry {\n\t\t\tdiagramResource.save(null);\n\t\t\toverlapResource.save(null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn diagUri;\n\t}", "private void writeObject(String filePath, Object obj) throws IOException {\n OutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n output.writeObject(obj);\n output.close();\n }", "public static boolean exportNotes(ExportModel model, String fileName) {\n try {\n FileOutputStream fileOutputStream = new FileOutputStream(new File(getBackupDirectory() + \"/\" + fileName + fileSuffix));\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(model);\n objectOutputStream.close();\n fileOutputStream.close();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "public void run() {\n\t\t\t\t\t\tFile tempFile;\n\t\t\t\t\t\tif (tempFileStack.size() >= numberOfFiles)\n\t\t\t\t\t\t\ttempFile = (File) tempFileStack.remove(0); // pop\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempFile = File.createTempFile(\n\t\t\t\t\t\t\t\t\t\t\"FM_\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ ((model.toString() == null) ? \"unnamed\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: model.toString()),\n\t\t\t\t\t\t\t\t\t\tfreemind.main.FreeMindCommon.FREEMIND_FILE_EXTENSION,\n\t\t\t\t\t\t\t\t\t\tpathToStore);\n\t\t\t\t\t\t\t\tif (filesShouldBeDeletedAfterShutdown)\n\t\t\t\t\t\t\t\t\ttempFile.deleteOnExit();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\t\tfreemind.main.Resources.getInstance()\n\t\t\t\t\t\t\t\t\t\t.logException(e);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmodel.saveInternal(tempFile, true /* =internal call */);\n\t\t\t\t\t\t\tmodel.getFrame()\n\t\t\t\t\t\t\t\t\t.out(Resources\n\t\t\t\t\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.format(\"automatically_save_message\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew Object[] { tempFile\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString() }));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\tfreemind.main.Resources.getInstance().logException(\n\t\t\t\t\t\t\t\t\te);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttempFileStack.add(tempFile); // add at the back.\n\t\t\t\t\t}", "private void saveSettings() {\n SettingsModel settingsModel = new SettingsModel();\n settingsModel.saveState(NJNPStartActivity.this);\n\n File NJNPSettingsDirectory = new File(NJNPConstants.DIRECTORY_PATH + NJNPConstants.SETTINGS_FOLDER);\n NJNPSettingsDirectory.mkdirs();\n\n File file = new File(NJNPSettingsDirectory.getPath(), NJNPConstants.SETTINGS_FILE_NAME);\n\n FileOutputStream fos = null;\n ObjectOutputStream os = null;\n try {\n fos = new FileOutputStream(file);\n os = new ObjectOutputStream(fos);\n os.writeObject(settingsModel);\n os.close();\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"File not found exception when saving settings: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"IO Exception when saving settings: \" + e.getMessage());\n }\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}", "public void saveMapping() {\n String userHome = System.getProperty(\"user.home\");\n String filePath = userHome + \"/\"+ System.currentTimeMillis() +\"-mapping.xml\";\n XMLExporter exporter = XMLExporter.getInstance();\n File file = new File(filePath);\n try {\n exporter.save(mappings, file);\n Logger.getLogger(MappingAppState.class.getName()).log(Level.INFO, \"Mapping saved as {0}\", filePath);\n } catch (IOException ex) {\n Logger.getLogger(MappingAppState.class.getName()).log(Level.SEVERE, \"Failed to save node!\", ex);\n }\n }", "public void saveFile(Model model, String fn) throws IOException {\n\t\tSystem.out.println(\"saveFile(\" + fn + \")\");\n\t\tPrintWriter out = new PrintWriter(new FileWriter(fn));\n\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<!DOCTYPE slideshow SYSTEM \\\"jabberpoint.dtd\\\">\");\n\t\tout.println(\"<slideshow>\");\n\n\t\tfor (int i=0; i<model.getSize(); i++) {\n\t\t\tSlide s = model.getSlide(i);\n\t\t\tout.println(\"<slide>\");\n\t\t\tout.print(\"<head><title>\");\n\t\t\tout.print(s.getTitle());\n\t\t\tout.println(\"</title></head>\");\n\n\t\t\tList v = s.getMs();\n\t\t\tfor (int n = 0; n<v.size(); n++) {\n\t\t\t\tM m = (M)v.get(n);\n\t\t\t\tif (m instanceof MText && m.getLevel() > 0) {\n\t\t\t\t\tout.print(\"<h\" + m.getLevel() + \">\");\n\t\t\t\t\tputText(out, ((MText)m).getText());\n\t\t\t\t\tout.println(\"</h\" + m.getLevel() + \">\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ignoring \" + m); }\n\t\t\t}\n\t\t\tout.println(\"</slide>\");\n\t\t}\n\t\tout.println(\"</slideshow>\");\n\t\tout.close();\n\t}" ]
[ "0.7461393", "0.6961926", "0.66581285", "0.6647093", "0.6625135", "0.65053207", "0.64561933", "0.64468235", "0.64407045", "0.6432542", "0.6384342", "0.637131", "0.631564", "0.63088787", "0.627141", "0.6258437", "0.62080485", "0.62056214", "0.61980295", "0.61647767", "0.60485744", "0.60363287", "0.603337", "0.601222", "0.6010195", "0.59652716", "0.5960597", "0.594315", "0.5913489", "0.58813155", "0.5848172", "0.5761396", "0.57515013", "0.5739989", "0.5696329", "0.5616843", "0.5613907", "0.5593868", "0.557797", "0.5576355", "0.55721796", "0.55056536", "0.5501017", "0.5488203", "0.5436786", "0.54210496", "0.5417189", "0.5405325", "0.5383869", "0.536373", "0.5340389", "0.5331162", "0.532467", "0.52921253", "0.5282088", "0.52602535", "0.5245973", "0.5243298", "0.52426255", "0.5240824", "0.52404237", "0.522673", "0.52265877", "0.5223", "0.52188903", "0.52174246", "0.52102673", "0.52081466", "0.52081466", "0.52081466", "0.52011555", "0.51817226", "0.51810634", "0.5173889", "0.51698124", "0.51670337", "0.51666385", "0.51602995", "0.51602995", "0.51602995", "0.51602995", "0.51220596", "0.51209164", "0.5108415", "0.50990325", "0.5082752", "0.5062307", "0.50540906", "0.5052082", "0.50393283", "0.5035722", "0.5034369", "0.5033572", "0.5033385", "0.50315505", "0.5020271", "0.50032675", "0.49918628", "0.49886027", "0.49882942", "0.49821422" ]
0.0
-1
load local data into memory
@Override public void bsp( BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer) throws IOException, SyncException, InterruptedException { LongWritable key = new LongWritable(); FloatVectorWritable value = new FloatVectorWritable(); while (peer.readNext(key, value)) { FloatVector v = value.getVector(); trainingSet.add(v); } if (peer.getPeerIndex() != peer.getNumPeers() - 1) { LOG.debug(peer.getPeerName() + ": " + trainingSet.size() + " training instances loaded."); } while (this.iterations++ < maxIterations) { this.inMemoryModel.setIterationNumber(iterations); // each groom calculate the matrices updates according to local data if (peer.getPeerIndex() != peer.getNumPeers() - 1) { calculateUpdates(peer); } else { // doing summation received updates if (peer.getSuperstepCount() > 0) { // and broadcasts previous updated weights mergeUpdates(peer); } } peer.sync(); if (maxIterations == Long.MAX_VALUE && isConverge) { if (peer.getPeerIndex() == peer.getNumPeers() - 1) peer.sync(); break; } } peer.sync(); if (peer.getPeerIndex() == peer.getNumPeers() - 1) mergeUpdates(peer); // merge last updates }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void massiveModeLoading( File dataPath );", "void loadData();", "void loadData();", "protected abstract void loadData();", "public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}", "public void loadFromLocalStorage() {\n\t\t\n\t}", "public abstract void loadData();", "public abstract void loadData();", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "public void load() ;", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "protected void loadData()\n {\n }", "public void load();", "public void load();", "protected boolean initLocalData() {\n return true;\n }", "void load();", "void load();", "public void load() {\n\t}", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "public void load() {\n }", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "public void setInMemory(boolean load);", "public static void load() {\n }", "private static void load(){\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 }", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "public abstract void load();", "private void loadMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (varTmpDir.exists()) {\n FileInputStream fileIn = new FileInputStream(varTmpDir);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n longTermMemory = (HashMap<String, BoardRecord>) in.readObject();\n in.close();\n fileIn.close();\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"File not found\");\n c.printStackTrace();\n return;\n }\n\n System.out.println(\"RECALLED LONG TERM MEMORIES FROM \" + brainLocation + \": \" + longTermMemory.toString());\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }", "@Override\n void load(String data) {\n }", "private void reloadData() throws IOException\n {\n /* Reload data from file, if it is modified after last scan */\n long mtime = loader.getModificationTime();\n if (mtime < lastKnownMtime) {\n return;\n }\n lastKnownMtime = mtime;\n\n InputStream in = loader.getInputStream();\n BufferedReader bin = new BufferedReader(new InputStreamReader(in));\n cache.clear();\n String line;\n while ((line = bin.readLine()) != null) {\n try {\n Map<String, Object> tuple = reader.readValue(line);\n updateLookupCache(tuple);\n } catch (JsonProcessingException parseExp) {\n logger.info(\"Unable to parse line {}\", line);\n }\n }\n IOUtils.closeQuietly(bin);\n IOUtils.closeQuietly(in);\n }", "public void load (){\n load(MAX_PREZ);\n }", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "@Override\n\tpublic D loadInBackground() {\n\t\tmData = createData();\n\t\treturn mData;\n\t}", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "void distributedSingleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "public void load() {\n handleLoad(false, false);\n }", "void loadData() throws SerializerException;", "@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }", "private void loadData() {\n this.financeDataList = new ArrayList<>();\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 }", "private void initDataLoader() {\n\t}", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Override\r\n\tpublic void load() {\n\t}", "public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void load() {\n load(false);\n }", "public void loadAllUserData(){\n\n }", "void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "public void load() {\n updater.load(-1); // -1 because Guest ID doesn't matter.\n }", "private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "public static void load() {\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Read memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n//\t\tSystem.out.println(\"index\"+Integer.parseInt(mar.substring(0, mar.length() - 2), 2));\r\n\t\tcontent.setStr(getBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)]);\r\n\t\t\r\n\t\twriteMBR(content);\r\n\t\tTraceINF.write(\"Read finished.\");\r\n\t}", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "@Test\n public void testSimpleLoad() throws Exception {\n runTest(\"testSimpleLoad\",\n new byte[][][]{\n new byte[][]{Bytes.toBytes(\"aaaa\"), Bytes.toBytes(\"cccc\")},\n new byte[][]{Bytes.toBytes(\"ddd\"), Bytes.toBytes(\"ooo\")},\n });\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public static void load() {\n\n System.out.print(\"Loading team data from file...\");\n\n try {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n\n FileInputStream fil = new FileInputStream(team_fil);\n ObjectInputStream in = new ObjectInputStream(fil);\n\n team_list = (ConcurrentHashMap<Integer, Team>) in.readObject();\n cleanTeams();\n\n fil.close();\n in.close();\n\n //Gå gjennom alle lagene og registrer medlemmene i team_members.\n Iterator<Team> lag = team_list.values().iterator();\n\n while (lag.hasNext()) {\n\n Team laget = lag.next();\n\n Iterator<TeamMember> medlemmer = laget.getTeamMembers();\n while (medlemmer.hasNext()) {\n registerMember(medlemmer.next().getCharacterID(), laget.getTeamID());\n }\n\n }\n\n System.out.println(\"OK! \" + team_list.size() + \" teams loaded.\");\n\n } catch (Exception e) {\n System.out.println(\"Error loading team data from file.\");\n }\n\n }", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public abstract void load() throws IOException;", "@Override\n public void load() {\n }", "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 }", "public void load(File source);", "private void loadData() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n String fromSymbols = sharedPreferences.getString(getString(R.string.cryto_key), getString(R.string.cryto_value));\n String toSymbols = sharedPreferences.getString(getString(R.string.currencies_key), getString(R.string.currencies_value));\n new FetchUrlTask().execute(fromSymbols, toSymbols);\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "@Override\n public void load() {\n }", "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "public List<String> load();", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "public static void importFromLocalSystem() throws IOException, InterruptedException {\r\n\t\tconf = new Configuration();\r\n\t\tfileSystem = FileSystem.get(conf);\r\n\t\tbase = Properties.getProperty(\"gh.json.cache.path\", DefaultProperties.GH_JSON_CACHE_PATH);\r\n\t\tfor (File file : jsonCacheDir.listFiles()) {\r\n\t\t\tif (file.getName().endsWith(\"buf-map\")) {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tHashMap<String, byte[]> repos = (HashMap<String, byte[]>) FileIO\r\n\t\t\t\t\t\t.readObjectFromFile(file.getAbsolutePath());\r\n\t\t\t\tArrayList<Thread> workers = new ArrayList<>();\r\n\t\t\t\tfor (String key : repos.keySet()) {\r\n\t\t\t\t\tImportTaskLocal t = new ImportTaskLocal(repos.get(key));\r\n\t\t\t\t\tworkers.add(t);\r\n\t\t\t\t\tt.start();\r\n\t\t\t\t}\r\n\t\t\t\tfor (Thread t : workers) {\r\n\t\t\t\t\tt.join();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "private void load(Object o) {\n \n }", "String [][] importData (String path);", "public Moment[] loadMomentsFile(){\n //Log.v(\"loadMain\", getApplicationContext().getFilesDir().getAbsolutePath());\n FileInputStream fin = null;\n Moment []pup = null;\n try {\n fin = openFileInput(MomentsFragment.MOMENTS_FILENAME);\n ObjectInputStream ois = new ObjectInputStream(fin);\n pup = (Moment [])ois.readObject();\n ois.close();\n fin.close();\n }catch (FileNotFoundException e) {\n //e.printStackTrace();\n Log.w(LOG_TAG, \"File not found, will be created once data is inserted\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (pup == null)\n return new Moment[0];\n return pup;\n }\n }", "@Override\n public void run() {\n load_remote_data();\n }", "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "private void reloadData() {\n if (DataFile == null)\n DataFile = new File(dataFolder, DATAFILENAME);\n Data = YamlConfiguration.loadConfiguration(DataFile);\n }", "@Override\n\tpublic void loadData(Bundle bundle) {\n\t}", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "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 abstract void loaded();", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "public void loadFirstData() throws Exception {\n\t}", "public Object load() {\n return null;\n }", "private static void loadSoFromInternalStorage(String fileName) throws UnsatisfiedLinkError {\n String path = System.getProperties().get(\"java.io.tmpdir\").toString().replace(\"/cache\", \"/files/\" + fileName);\n File file = new File(path);\n SecurityManager security = System.getSecurityManager();\n if (security != null) {\n security.checkLink(file.getAbsolutePath());\n }\n System.load(file.getAbsolutePath());\n }", "private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\n }", "public void loadMem(final String filepath) {\r\n loadMem(new File(filepath));\r\n }" ]
[ "0.7183373", "0.7145944", "0.7145944", "0.7028276", "0.69242305", "0.6801786", "0.679761", "0.679761", "0.67812073", "0.6762945", "0.6697079", "0.6675782", "0.6639662", "0.6639662", "0.66236615", "0.6611056", "0.6611056", "0.6499879", "0.6498621", "0.646097", "0.6369883", "0.63403463", "0.62751096", "0.6268079", "0.62620634", "0.62574697", "0.6176494", "0.61559325", "0.61447644", "0.61252624", "0.61213124", "0.6107527", "0.6069018", "0.60650367", "0.60212475", "0.6001205", "0.59906423", "0.59835935", "0.59647095", "0.5953301", "0.5939759", "0.5928222", "0.59268343", "0.5899312", "0.58974284", "0.58805656", "0.583481", "0.5828336", "0.58125246", "0.58097863", "0.5786845", "0.5779958", "0.57752466", "0.5765478", "0.5744565", "0.574047", "0.57342803", "0.57194334", "0.57120293", "0.5711335", "0.570994", "0.5707432", "0.57062846", "0.57041645", "0.569047", "0.56857574", "0.5675647", "0.56531334", "0.5647239", "0.5637531", "0.5611728", "0.5596444", "0.55888873", "0.5588834", "0.5588834", "0.5588834", "0.5581374", "0.5579495", "0.55775344", "0.5577318", "0.55755097", "0.5566857", "0.5565852", "0.556095", "0.55574507", "0.5544467", "0.5534029", "0.5531115", "0.5528961", "0.55167323", "0.55148834", "0.55022025", "0.5493419", "0.54798794", "0.54798794", "0.54767287", "0.54760945", "0.54753304", "0.54689634", "0.54629064", "0.54627436" ]
0.0
-1
Calculate the matrices updates according to local partition of data.
private void calculateUpdates( BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer) throws IOException { // receive update information from master if (peer.getNumCurrentMessages() != 0) { ParameterMessage inMessage = peer.getCurrentMessage(); FloatMatrix[] newWeights = inMessage.getCurMatrices(); FloatMatrix[] preWeightUpdates = inMessage.getPrevMatrices(); this.inMemoryModel.setWeightMatrices(newWeights); this.inMemoryModel.setPrevWeightMatrices(preWeightUpdates); this.isConverge = inMessage.isConverge(); // check converge if (isConverge) { return; } } FloatMatrix[] weightUpdates = new FloatMatrix[this.inMemoryModel.getSizeOfWeightmatrix()]; int matrixIdx = 0; for (List<FloatMatrix> aWeightMatrixList: this.inMemoryModel.weightMatrixLists) { for (FloatMatrix aWeightMatrix : aWeightMatrixList) { weightUpdates[matrixIdx++] = new DenseFloatMatrix( aWeightMatrix.getRowCount(), aWeightMatrix.getColumnCount()); } } // continue to train float avgTrainingError = 0.0f; for (int recordsRead = 0; recordsRead < batchSize; ++recordsRead) { FloatVector trainingInstance = getRandomInstance(); RecurrentLayeredNeuralNetwork.matricesAdd( weightUpdates, this.inMemoryModel.trainByInstance(trainingInstance)); avgTrainingError += this.inMemoryModel.trainingError; } avgTrainingError /= batchSize; // calculate the average of updates for (int i = 0; i < weightUpdates.length; ++i) { weightUpdates[i] = weightUpdates[i].divide(batchSize); } FloatMatrix[] prevWeightUpdates = this.inMemoryModel .getPrevMatricesUpdates(); ParameterMessage outMessage = new ParameterMessage(avgTrainingError, false, weightUpdates, prevWeightUpdates); peer.send(peer.getPeerName(peer.getNumPeers() - 1), outMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void calcAllMatrixSPP(int iNode1, int iNode2, int iNode3) {\n\t\tint [] iStates1 = m_iStates[iNode1];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fPartials2 = m_fPartials[m_iCurrentPartials[iNode2]][iNode2];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\n\t\tdouble sum, tmp;\n\n\t\tint u = 0;\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n\t\t\t\tint state1 = iStates1[k];\n\n int w = l * m_nMatrixSize;\n\n\t\t\t\tif (state1 < m_nStates) {\n\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\ttmp = fMatrices1[w + state1];\n\n\t\t\t\t\t\tsum = 0.0;\n\t\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\t\tsum += fMatrices2[w] * fPartials2[v + j];\n\t\t\t\t\t\t\tw++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfPartials3[u] = tmp * sum;\n\t\t\t\t\t\tu++;\n\t\t\t\t\t}\n\n\t\t\t\t\tv += m_nStates;\n\t\t\t\t} else {\n\t\t\t\t\t// Child 1 has a gap or unknown state so don't use it\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tsum = 0.0;\n\t\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\t\tsum += fMatrices2[w] * fPartials2[v + j];\n\t\t\t\t\t\t\tw++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfPartials3[u] = sum;\n\t\t\t\t\t\tu++;\n\t\t\t\t\t}\n\n\t\t\t\t\tv += m_nStates;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void calcAllMatrixSSP(int iNode1, int iNode2, int iNode3) {\n\t\tint [] iStates1 = m_iStates[iNode1];\n\t\tint [] iStates2 = m_iStates[iNode2];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n\t\t\t\tint state1 = iStates1[k];\n\t\t\t\tint state2 = iStates2[k];\n\n\t\t\t\tint w = l * m_nMatrixSize;\n\n if (state1 < m_nStates && state2 < m_nStates) {\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices1[w + state1] * fMatrices2[w + state2];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\n\t\t\t\t} else if (state1 < m_nStates) {\n\t\t\t\t\t// child 2 has a gap or unknown state so treat it as unknown\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices1[w + state1];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\t\t\t\t} else if (state2 < m_nStates) {\n\t\t\t\t\t// child 2 has a gap or unknown state so treat it as unknown\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices2[w + state2];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// both children have a gap or unknown state so set partials to 1\n\n\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\tfPartials3[v] = 1.0;\n\t\t\t\t\t\tv++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "void updateDistMatrix(long timeStamp) {\n\n\t\t\t// for each alive landmark, when its ping results are received by\n\t\t\t// the source node,\n\t\t\t// we start the clustering computation process\n\t\t\t// TODO: remove landmarks that return a subset of results 10-12\n\t\t\tLong timer = Long.valueOf(timeStamp);\n\n\t\t\tif (!pendingHSHLandmarks.containsKey(timer)\n\t\t\t\t\t|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {\n\t\t\t\tSystem.err.println(\"$: Null elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHSHRecord CurList = pendingHSHLandmarks.get(timer);\n\t\t\tint NoOfLandmarks = CurList.IndexOfLandmarks.size();\n\t\t\tif(NoOfLandmarks<=0){\n\t\t\t\tSystem.err.println(\"$: Empty elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;\n\t\t\tif (LatRecords == null) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tint receivedLandmarks = LatRecords.keySet().size();\n\t\t\t// empty or incomplete records\n\t\t\tif (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {\n\t\t\t\tSystem.err.println(\"$: Null LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: total landmarks: \" + NoOfLandmarks\n\t\t\t\t\t+ \", received from \" + receivedLandmarks);\n\t\t\t// use the IndexOfLandmarks as the index of nodes\n\n\t\t\tif (CurList.DistanceMatrix == null\n\t\t\t\t\t|| CurList.DistanceMatrix.length != NoOfLandmarks) {\n\t\t\t\tCurList.DistanceMatrix = null;\n\t\t\t\tCurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];\n\t\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\t\tfor (int j = 0; j < NoOfLandmarks; j++) {\n\t\t\t\t\t\tCurList.DistanceMatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill elements\n\t\t\tIterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords\n\t\t\t\t\t.entrySet().iterator();\n\n\t\t\twhile (entrySet.hasNext()) {\n\t\t\t\tEntry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet\n\t\t\t\t\t\t.next();\n\t\t\t\t// empty lists\n\t\t\t\tif (tmp.getValue() == null || tmp.getValue().size() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// ===============================================================\n\t\t\t\tAddressIF srcNode = tmp.getKey();\n\t\t\t\t// find the index of landmarks\n\t\t\t\tint from = CurList.IndexOfLandmarks.indexOf(srcNode);\n\t\t\t\tIterator<RemoteState<AddressIF>> ier = tmp.getValue()\n\t\t\t\t\t\t.iterator();\n\t\t\t\tif (from < 0) {\n\t\t\t\t\t// already removed landmarks!\n\t\t\t\t\tSystem.out.println(\"already removed landmarks!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\tRemoteState<AddressIF> NP = ier.next();\n\n\t\t\t\t\tif (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {\n\t\t\t\t\t\t// not landmarks\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());\n\n\t\t\t\t\tdouble rtt = NP.getSample();\n\t\t\t\t\tif (to < 0 || rtt < 0) {\n\t\t\t\t\t\tSystem.err.println(\"$: failed to find the landmarks!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.print(\" <\"+to+\", \"+from+\", \"+rtt+\"> \");\n\t\t\t\t\t\t// Note: symmetric RTT\n\t\t\t\t\t\tif (CurList.DistanceMatrix[to][from] > 0) {\n\t\t\t\t\t\t\tdouble avgRTT;\n\t\t\t\t\t\t\tif (rtt > 0) {\n\t\t\t\t\t\t\t\tavgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tavgRTT = CurList.DistanceMatrix[to][from];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = avgRTT;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = avgRTT;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO: missing elements\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = rtt;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = rtt;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ======================================================\n\n\t\t\tboolean markZero = false;\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int column = 0; column < NoOfLandmarks; column++) {\n\t\t\t\t\tif (i == column) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (CurList.DistanceMatrix[i][column] > 0) {\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sum < 0.7 * NoOfLandmarks) {\n\t\t\t\t\tmarkZero = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (markZero) {\n\t\t\t\t// CurList.DistanceMatrix=null;\n\t\t\t\tSystem.err.println(\"$: incomplete CurList.DistanceMatrix!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n\\n$: HSH: Start HSH clustering computation process!\");\n\n\t\t\t// TODO: find accurate clustering number\n\t\t\tint cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);\n\n\t\t\tif(cluNum<=0){\n\t\t\t\tSystem.err.println(\"the clustering number is <=0\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t// version control for dimensions\n\t\t\tif (CurList.S != null && CurList.S.length == cluNum) {\n\n\t\t\t} else {\n\t\t\t\tCurList.version = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\t// initialize the matrixes for computation\n\t\t\tCurList.H = new double[NoOfLandmarks][cluNum];\n\t\t\tCurList.S = new double[cluNum][cluNum];\n\t\t\t// CurList.Coord = new double[cluNum];\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.H[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < cluNum; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.S[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update coordinate vectors\n\t\t\tMatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,\n\t\t\t\t\tCurList.DistanceMatrix, CurList.H, CurList.S);\n\t\t\tCurList.alreadyComputedClustering = true;\n\n\t\t\t// TODO: H,S is Null\n\t\t\tif (CurList.H == null || CurList.S == null) {\n\t\t\t\tSystem.err.println(\"$: after HSH computation, NULL results!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// after centralized computation, the core node should send its H &\n\t\t\t// S to all the landmark nodes\n\t\t\tissueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {\n\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Core node has issued its H & S to all landmarks.\");\n\t\t\t\t}\n\t\t\t});\n\t\t}", "void update() {\n matrix();\n }", "abstract public void updatePositionsAfterBetaReduction();", "public void update() {\n\n double[][] newU = new double[n][n];\n double[][] newV = new double[n][n];\n double[][] a = new double[n][n];\n long newTime = System.currentTimeMillis();\n int dt = (int) (newTime - currentTime);\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n\n //pogoji za rob\n //nastavljamo\n if (i == 0 || j == 0 || i == n - 1 || j == n - 1) {\n a[i][j] = edgeCondition;\n newU[i][j] = edgeCondition;\n newV[i][j] = edgeCondition;\n } \n\n //sicer\n else {\n a[i][j] = c * c / (h * h) * (u[i - 1][j] + u[i + 1][j] + u[i][j - 1] + u[i][j + 1] - 4 * u[i][j]) - ( k * v[i][j]);\n\n \n //nova hitrost je stara + sprememba\n newV[i][j] = v[i][j] + a[i][j] * (double)dt / 1000.0 ;\n\n //nova pozicija je stara + sprememba\n newU[i][j] = u[i][j] + v[i][j] * (double)dt / 1000.0;\n }\n }\n }\n \n currentTime = newTime;\n \n \n\n u = newU;\n v = newV;\n \n // printMatrix();\n \n \n \n try{\n image.colorImage(image.getHeight(), image.getWidth(), u);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void calcMatrix() {\n \n FockState rowState = new FockState(_systemSize, _epsilon, _mass);\n FockState opedState = new FockState(_systemSize, _epsilon, _mass);\n Integer column;\n int[] momenta = new int[_phiPow-1]; \n for(int row=0; row<_numStates; row++) {\n \n // Run through the matrix rows\n \t// Set the row state and create the row Map\n \t\n rowState.setAsIndex(row);\n Map<Integer, Double> rowMap = new HashMap<Integer, Double>();\n \t\t_elements.add(row, rowMap);\n\n \t// Reset the momenta combinations array\n \t\n \tfor(int i=0; i<(_phiPow-1); i++) {\n momenta[i]=0;\n } \n for(int j=0; j<_momCombs; j++) {\n \n // Run through the various momenta combinations\n \n for(int opType=0; opType<_opCombs; opType++) {\n \n // Run through the various operator combinations\n \n opedState.makeSameAs(rowState);\n applyOperators(opedState, momenta, opType); \n if(opedState.isValid()==true) {\n \t\n \t// Calculate the column\n \t\n \tcolumn = opedState.calcIndex(); \n \tif((column != null) && (column < _numStates)) {\n \t\t\n \t\t// If the resulting state is valid and within the cutoff, store the result\n \t\t\n \t\tstore(row, column, momenta);\n \n \t} \t\n } \n }\n \n // Increment the momenta label array unless this is the final run through\n \n if(j != (_momCombs-1)) {\n \tincrementMomentaLabel(momenta);\n } \n } \n }\n \n }", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }", "public void run() {\n try {\n PSTableGroup.registerThread();\n //get tables\n ClientTable tableL = PSTableGroup.getTableOrDie(0);\n ClientTable tableR = PSTableGroup.getTableOrDie(1);\n ClientTable tableLoss = PSTableGroup.getTableOrDie(2);\n // Initialize MF solver\n int totalNumWorkers = getTotalNumWorker();\n int globalWorkerId = getGlobalWorkerId(localThreadId);\n\n initMF(tableL, tableR);\n PSTableGroup.globalBarrier();\n long start = System.currentTimeMillis();\n //run mf solver\n for(int iter = 0; iter < numIterations; iter++) {\n if(globalWorkerId == 0) {\n System.out.println(\"Iteration \" + String.valueOf(iter + 1) + \"/\" + String.valueOf(numIterations));\n }\n //clear loss function table\n DenseRow lossRow = (DenseRow)tableLoss.get(0);\n tableLoss.inc(0, globalWorkerId, - lossRow.get(globalWorkerId));\n // Divide matrix elements across workers, and perform SGD\n double stepSize = initStepSize * Math.pow(stepSizeOffset + iter, - stepSizePow);\n\n MatrixLoader.Element ele = dataMatrix.getNextEl(globalWorkerId);\n while(ele.isLastEl == false) {\n sgdElement(ele.row, ele.col, ele.value, stepSize, globalWorkerId, tableL, tableR, tableLoss);\n ele = dataMatrix.getNextEl(globalWorkerId);\n }\n //output loss function\n if(globalWorkerId == 0) {\n lossRow = (DenseRow)tableLoss.threadGet(0);\n double loss = 0;\n for(int t = 0; t < totalNumWorkers; t++) {\n loss += lossRow.get(t);\n }\n System.out.println(\"loss function = \" + String.valueOf(loss));\n }\n PSTableGroup.clock();\n }\n long end = System.currentTimeMillis();\n if(globalWorkerId == 0) {\n System.out.println(\"Total time is \" + String.valueOf((end - start) / 1000f));\n }\n // Let stale values finish propagating (performs staleness+1 clock()s)\n PSTableGroup.globalBarrier();\n PSTableGroup.deregisterThread();\n\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void calcAllMatrixPPP(int iNode1, int iNode2, int iNode3) {\n\t\tdouble [] fPartials1 = m_fPartials[m_iCurrentPartials[iNode1]][iNode1];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fPartials2 = m_fPartials[m_iCurrentPartials[iNode2]][iNode2];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\t\tdouble sum1, sum2;\n\n\t\tint u = 0;\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n int w = l * m_nMatrixSize;\n\n\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\tsum1 = sum2 = 0.0;\n\n\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\tsum1 += fMatrices1[w] * fPartials1[v + j];\n\t\t\t\t\t\tsum2 += fMatrices2[w] * fPartials2[v + j];\n\n\t\t\t\t\t\tw++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfPartials3[u] = sum1 * sum2;\n\t\t\t\t\tu++;\n\t\t\t\t}\n\t\t\t\tv += m_nStates;\n\t\t\t}\n\t\t}\n\t}", "abstract public Vector3[][] update();", "@Override\r\n\tpublic double[] computeLocalUsingPreviousObservations(double states[][]) {\r\n\t\treturn computeLocalUsingPreviousObservations(states, false);\r\n\t}", "private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }", "public void update(double[][] data) {\n for (double[] x : data) {\n update(x);\n }\n }", "protected void updateLocalData(Building[] data){\n new DBHandler(cx).updateBuildings(data);\n }", "private void mergeUpdates(\n BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)\n throws IOException {\n int numMessages = peer.getNumCurrentMessages();\n boolean converge = false;\n if (numMessages == 0) { // converges\n converge = true;\n return;\n }\n\n double avgTrainingError = 0;\n FloatMatrix[] matricesUpdates = null;\n FloatMatrix[] prevMatricesUpdates = null;\n\n while (peer.getNumCurrentMessages() > 0) {\n ParameterMessage message = peer.getCurrentMessage();\n if (matricesUpdates == null) {\n matricesUpdates = message.getCurMatrices();\n prevMatricesUpdates = message.getPrevMatrices();\n } else {\n RecurrentLayeredNeuralNetwork.matricesAdd(matricesUpdates,\n message.getCurMatrices());\n RecurrentLayeredNeuralNetwork.matricesAdd(prevMatricesUpdates,\n message.getPrevMatrices());\n }\n\n avgTrainingError += message.getTrainingError();\n }\n\n if (numMessages > 1) {\n avgTrainingError /= numMessages;\n for (int i = 0; i < matricesUpdates.length; ++i) {\n matricesUpdates[i] = matricesUpdates[i].divide(numMessages);\n prevMatricesUpdates[i] = prevMatricesUpdates[i].divide(numMessages);\n }\n }\n\n this.inMemoryModel.updateWeightMatrices(matricesUpdates);\n this.inMemoryModel.setPrevWeightMatrices(prevMatricesUpdates);\n\n // check convergence\n if (peer.getSuperstepCount() > 0\n && iterations % convergenceCheckInterval == 0) {\n if (prevAvgTrainingError < curAvgTrainingError) {\n // error cannot decrease any more\n converge = true;\n }\n // update\n prevAvgTrainingError = curAvgTrainingError;\n LOG.info(\"Training error: \" + curAvgTrainingError + \" at \" + (iterations)\n + \" iteration.\");\n curAvgTrainingError = 0;\n }\n curAvgTrainingError += avgTrainingError / convergenceCheckInterval;\n this.isConverge = converge;\n\n if (iterations < maxIterations) {\n // broadcast updated weight matrices\n for (String peerName : peer.getAllPeerNames()) {\n ParameterMessage msg = new ParameterMessage(0, converge,\n this.inMemoryModel.getWeightMatrices(),\n this.inMemoryModel.getPrevMatricesUpdates());\n if (!peer.getPeerName().equals(peerName))\n peer.send(peerName, msg);\n }\n }\n }", "void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }", "void updateStableBuffer(LinkedList<double[]> stableStates, double[] nextMi) {\n\t\t// Recycle matrices at the end\n\t\tdouble[] stableState;\n\t\tif(stableStates.size() > maxLookback) {\n\t\t\tstableState = stableStates.removeLast();\n\t\t}\n\t\telse {\n\t\t\tstableState = new double[nStates];\n\t\t}\n\t\t\n\t\tdouble[] prevState = stableStates.getFirst();\n\t\tfor(int ix = 0; ix < nStates; ++ix) {\n\t\t\tif(maxStateLengths[ix] > 1) {\n\t\t\t\tint trans = selfTransitions[ix];\n\t\t\t\tif(trans != -1) {\n\t\t\t\t\tif (Double.isInfinite(nextMi[trans]))\n\t\t\t\t\t\tstableState[ix] = prevState[ix];\n\t\t\t\t\telse\n\t\t\t\t\t\tstableState[ix] = prevState[ix] + nextMi[trans];\t\t\t\t\n\t\t\t\t\t//log.info(String.format(\"stableState[%d] = %f = %f + %f\", ix, stableState[ix], prevState[ix], nextMi[trans]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Now add this to the beginning.\n\t\tstableStates.addFirst(stableState);\n\t}", "public Vector3[][] update() {\n\t\t\tint count = positions.size();\n\t\t\tint orientationsSize = orientations.size();\n\t\t\tif (orientationsSize < count)\n\t\t\t\tcount = orientationsSize;\n\t\t\t\n\t\t\t// Pop from queues to results\n\t\t\tVector3[][] result = new Vector3[count][2];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tresult[i][0] = positions.poll();\n\t\t\t\tresult[i][1] = orientations.poll();\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }", "protected abstract float[] computeLeafModelMatrix();", "private void updateLists() {\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n MemoryBlock memBlock = (MemoryBlock) memoryBlocks.get(i);\r\n\r\n if (memBlock.isChanged(this.lastChanged[i]) || memoryUpdateState[i]) {\r\n Vector<MemoryInt> memVector = memBlock.getMemoryVector();\r\n\r\n if (memVector != null) memoryLists[i].setListData(memVector);\r\n\r\n // if memory block has changed, do also redraw next time\r\n // in order to remove indication\r\n memoryUpdateState[i] = memBlock.isChanged(this.lastChanged[i]);\r\n this.lastChanged[i] = memBlock.lastChanged();\r\n }\r\n }\r\n }", "private void multiLeafUpdate()\r\n {\n \t\tfor (int i=0;i<this.allCols.size();i++)\r\n \t{\r\n \t\t\tif (this.allCols.get(i).endsWith(HEADER))\r\n \t\t\t{\r\n \t\t\t\tString headerCol=this.allCols.get(i);\r\n \t\t\t\tString col=this.allCols.get(i).replace(HEADER, \"\");\r\n \t\t\t\t\r\n \t\t\t\tthis.requete.append(\"\\n UPDATE \"+this.tempTableA+\" SET i_\"+headerCol+\"=i_\"+col+\" WHERE i_\"+headerCol+\" IS NULL and i_\"+col+\" IS NOT NULL;\");\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n }", "private final void setupLocal() {\n _topLocal = true;\n // Check for global vs local work\n if( _nlo >= 0 && _nlo < _nhi-1 ) { // Have global work?\n // Note: some top-level calls have no other global work, so\n // \"topLocal==true\" does not imply \"nlo < nhi-1\".\n int selfidx = H2O.SELF.index();\n if( _nlo < selfidx ) _nleft = remote_compute(_nlo, selfidx );\n if( selfidx+1 < _nhi ) _nrite = remote_compute(selfidx+1,_nhi);\n }\n _lo = 0; _hi = _fr.firstReadable().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n if( _fr.hasAppendables() )\n _fs = new Futures();\n init(); // Setup any user's shared local structures\n }", "public void update() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n Point point = getPointAtLocation(i, j);\n WorldItem item = point.getContainedItem();\n calculatePointTemp(point);\n point.update();\n if (item instanceof FlammableItem) {\n updateIgnition(point);\n } else if (item instanceof SimulatedSensor) {\n updateAlarm(point);\n }\n }\n }\n }", "public synchronized void update(@NonNull INDArray array) {\n Preconditions.checkArgument(!array.isView() || array.elementWiseStride() != 1, \"View can't be used in DeviceLocalNDArray\");\n\n val numDevices = Nd4j.getAffinityManager().getNumberOfDevices();\n val device = Nd4j.getAffinityManager().getDeviceForCurrentThread();\n val currentArray = backingMap.get(device);\n boolean wasDelayed = false;\n\n if (Arrays.equals(currentArray.shapeInfoJava(), array.shapeInfoJava())) {\n // if arrays are the same - we'll just issue memcpy\n for (int k = 0; k < numDevices; k++) {\n val lock = locksMap.get(k);\n try {\n lock.writeLock().lock();\n val v = backingMap.get(k);\n if (v == null) {\n if (!wasDelayed) {\n delayedArray = array.dup(array.ordering()).detach();\n wasDelayed = true;\n }\n updatesMap.get(k).set(device);\n continue;\n }\n\n Nd4j.getMemoryManager().memcpy(v.data(), array.data());\n Nd4j.getExecutioner().commit();\n } finally {\n lock.writeLock().unlock();\n }\n }\n } else {\n // if arrays are not the same - we'll issue broadcast call\n broadcast(array);\n }\n }", "@Override\n public void bsp(\n BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)\n throws IOException, SyncException, InterruptedException {\n LongWritable key = new LongWritable();\n FloatVectorWritable value = new FloatVectorWritable();\n while (peer.readNext(key, value)) {\n FloatVector v = value.getVector();\n trainingSet.add(v);\n }\n\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n LOG.debug(peer.getPeerName() + \": \" + trainingSet.size() + \" training instances loaded.\");\n }\n \n while (this.iterations++ < maxIterations) {\n this.inMemoryModel.setIterationNumber(iterations);\n \n // each groom calculate the matrices updates according to local data\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n calculateUpdates(peer);\n } else {\n // doing summation received updates\n if (peer.getSuperstepCount() > 0) {\n // and broadcasts previous updated weights\n mergeUpdates(peer);\n }\n }\n\n peer.sync();\n\n if (maxIterations == Long.MAX_VALUE && isConverge) {\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n peer.sync();\n break;\n }\n }\n\n peer.sync();\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n mergeUpdates(peer); // merge last updates\n }", "private void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n if( _fs != null ) // Block on all other pending tasks, also\n _fs.blockForPending();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = _nlo, nhi = _nhi; // Save these before copyOver crushes them\n if( _res == null ) _nlo = -1; // Flag for no local results *at all*\n else if( _res != this ) // There is a local result, and its not self\n copyOver(_res); // So copy into self\n if( nlo==0 && nhi == H2O.CLOUD.size() ) // All-done on head of whole MRTask tree?\n _fr.closeAppendables(); // Final close ops on any new appendable vec\n }", "@Override\r\n protected void compute() {\r\n //if count != 0 || splitA.length == 1 then go, else for loop to make splitA.length subtasks to run splitArrayB and then they all call mergeAB\r\n if(global_count == 0){\r\n splitArrayB();\r\n }\r\n if(global_count != 0 || splitA.length == 1){\r\n mergeAB();\r\n }\r\n else{\r\n List<ConcurrentMerge> subtasks = new ArrayList<>();\r\n ConcurrentMerge temp;\r\n for(int i = 0; i < splitA.length; i++){\r\n global_count++;\r\n temp = new ConcurrentMerge(A, B, splitA, splitB, C, global_count);\r\n subtasks.add(temp);\r\n }\r\n invokeAll(subtasks);\r\n }\r\n }", "public void update() {\n\t\tfor (Entry<String, Integer> entry : countMap.entrySet()) {\n\t\t\tcountMap.put(entry.getKey(), 0);\n\t\t}\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = newGrid[i][j];\n\t\t\t\tc.setRow(i);\n\t\t\t\tc.setCol(j);\n\t\t\t\tblocks[i][j].setFill(c.getColor());\n\t\t\t\tcurrentGrid[i][j] = newGrid[i][j];\n\t\t\t}\n\t\t}\n\t\tempty(newGrid);\n\t}", "static void update(int[][] matrix){\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\t\tint n = matrix.length;\n int m = matrix[0].length;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0 && matrix[i][j]==0){\n rowFlag =true;\n }\n if(j==0 && matrix[i][j]==0){\n colFlag = true;\n }\n if(matrix[i][j]==0){\n matrix[0][j] = 0;\n matrix[i][0] = 0;\n }\n }\n }\n for(int i=1;i<n;i++){\n for(int j=1;j<m;j++){\n if(matrix[i][0]==0||matrix[0][j]==0){\n matrix[i][j]=0;\n }\n }\n }\n if(rowFlag){\n for(int i=0;i<m;i++){\n matrix[0][i] =0 ;\n }\n }\n if(colFlag){\n for(int j=0;j<n;j++){\n matrix[j][0] = 0;\n }\n }\n\n\t}", "public void updateData() {}", "public DMatrix computeZ(final int na, final int ka, \n final float[][] u, final float[][] f, final float[][] g) {\n Parallel.setParallel(true);\n final DMatrix z = new DMatrix(na,na);\n //final double[][] z = new double[na][na];\n //F'F+G'S'SG+F'SG+G'S'F\n final Warper warp = new Warper();\n final float r = (float)((int)(warp.squeezing(1.0f,u)+1.0f));//Round up to the nearest integer.\n BandPassFilter bpf = constructBPF(r);\n int nu2 = u.length;\n final int nu1 = u[0].length;\n int ng2 = g.length;\n int ng1 = g[0].length;\n final float[][] uu = warp.upSampleLinear(nu1,1.0f,0.0f,u,r);\n Stopwatch sw = new Stopwatch();\n sw.start( );\n /*Parallel.loop(na,new Parallel.LoopInt() {\n public void compute(int ia) {\n int lagi = ka+ia;\n //for (int ia=0,lagi=ka; ia<na; ++ia,++lagi) {\n System.out.println(\"ia = \"+ia);\n float[][] dfi = delay(lagi,f);\n float[][] dgi = delay(lagi,g);\n float[][] sdgi = warp.applyS(r,nu1,uu,dgi);\n for (int ja=0,lagj=ka; ja<(ia+1); ++ja,++lagj) {\n float[][] dfj = delay(lagj,f);\n float[][] dgj = delay(lagj,g);\n float[][] sdgj = warp.applyS(r,nu1,uu,dgj);\n double ffij = dot(dfi,dfj);\n double gssgij = dot(sdgi,sdgj);\n double fsgij = -dot(dfi,sdgj);\n double gsfij = -dot(sdgi,dfj);\n double zij = ffij + gssgij + gsfij + fsgij;//z.get(ia,ja);\n //z[ia][ja] = zij;//+z[ia][ja];\n z.set(ia,ja,zij);\n }\n }\n });\n //}\n //Z is symmetric\n for (int ia=0,lagi=ka; ia<na; ++ia,++lagi) {\n for (int ja=0,lagj=ka; ja<ia+1; ++ja,++lagj) {\n //z[ja][ia] = z[ia][ja];\n z.set(ja,ia,z.get(ia,ja));\n }\n }\n sw.stop();\n //System.out.println(z.toString());\n System.out.println(\"time to construct z is \"+sw.time());\n System.out.println(\"Z is symmetric? \"+z.isSymmetric());\n */\n //F'F\n for (int ia=0,lagi=ka; ia<na; ++ia,++lagi) {\n System.out.println(\"ia = \"+ia);\n float[][] dfi = delay(lagi,f);\n for (int ja=0,lagj=ka; ja<na; ++ja,++lagj) {\n float[][] dfj = delay(lagj,f);\n double zij = dot(dfi,dfj) + z.get(ia,ja);\n z.set(ia,ja,zij);\n }\n }\n //G'S'SG\n for (int ia=0,lagi=ka; ia<na; ++ia,++lagi) {\n System.out.println(\"ia = \"+ia);\n float[][] dgi = delay(lagi,g);\n float[][] sldgi = warp.applyS(u,dgi);\n for (int ja=0,lagj=ka; ja<na; ++ja,++lagj) {\n float[][] dgj = delay(lagj,g);\n float[][] sldgj = warp.applyS(u,dgj);\n double zij = dot(sldgi,sldgj) + z.get(ia,ja);\n z.set(ia,ja,zij);\n }\n }\n //-F'SG+-G'S'F\n for (int ia=0,lagi=ka; ia<na; ++ia,++lagi) {\n System.out.println(\"ia = \"+ia);\n float[][] dfi = delay(lagi,f);\n float[][] dgi = delay(lagi,g);\n float[][] sldgi = warp.applyS(u,dgi);\n for (int ja=0,lagj=ka; ja<na; ++ja,++lagj) {\n float[][] dfj = delay(lagj,f);\n float[][] dgj = delay(lagj,g);\n float[][] sldgj = warp.applyS(u,dgj);\n double fsldgij = -dot(dfi,sldgj);\n double zij = fsldgij + z.get(ia,ja);\n z.set(ia,ja,zij);\n double zji = fsldgij + z.get(ja,ia);\n z.set(ja,ia,zji);\n }\n }\n\n //Stabilize Z to be symmetric positive definite\n for (int ia=0; ia<na; ++ia)\n //z[ia][ia] = _sfac*z[ia][ia];\n z.set(ia,ia,z.get(ia,ia)*_sfac);\n //DMatrix mz = new DMatrix(z);\n return z;\n }", "public abstract Map<Integer, QuantDataset> updatedDatasets();", "public int perform_LMVM() {\n if (_inequality_width > 0) {\n int nvars = _fb.Size() * 2;\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars / 2; i++) {\n x[i] = _va.get(i);\n x[i + _fb.Size()] = _vb.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars / 2; i++) {\n _va.set(i, x[i]);\n _vb.set(i, x[i + _fb.Size()]);\n _vl.set(i, _va.get(i) - _vb.get(i));\n }\n \n return 0;\n } else {\n \n int nvars = _fb.Size();\n double[] x = new double[nvars];\n \n // INITIAL POINT\n for (int i = 0; i < nvars; i++) {\n x[i] = _vl.get(i);\n }\n \n // int info = BLMVMSolve(x, nvars);\n \n for (int i = 0; i < nvars; i++) {\n _vl.set(i, x[i]);\n }\n \n return 0;\n }\n }", "public void updateOccupancy() {\n currentOccupancyMatrix = new int[numRows][numCols];\n\n int i, j;\n Bag people = station.area.getAllObjects();\n for (int x = 0; x < people.size(); x++) {\n Double2D location = ((Person) people.get(x)).getLocation();\n i = (int) (location.getY() / (station.area.getHeight() / numRows));\n j = (int) (location.getX() / (station.area.getWidth() / numCols));\n if (j >= numCols) {\n j = numCols - 1;\n }\n occupancyMatrix[i][j]++;\n currentOccupancyMatrix[i][j]++;\n //System.out.println(\"updated\");\n }\n }", "public void recalculateStatistics() {\n\tthis.resetNodes();\n\tfor (LayoutNode n: this.getNodeList()) \n\t if (!n.isLocked()) \n\t\tupdateMinMax(n.getX(), n.getY());\n }", "private void updateDataFields(final Function<Table<?>, Result<? extends Record>> fetcher) {\n final long updateData = System.nanoTime();\n for (final Map.Entry<Table<? extends Record>, IRTable> entry : jooqTableToIRTable.entrySet()) {\n final Table<? extends Record> table = entry.getKey();\n final IRTable irTable = entry.getValue();\n final long start = System.nanoTime();\n final Result<? extends Record> recentData = fetcher.apply(table);\n Objects.requireNonNull(recentData, \"Table Result<?> was null\");\n final long select = System.nanoTime();\n irTable.updateValues(recentData);\n final long updateValues = System.nanoTime();\n LOG.info(\"updateDataFields for table {} took {} ns to fetch {} rows from DB, \" +\n \"and {} ns to reflect in IRTables\",\n table.getName(), (select - start), recentData.size(), (System.nanoTime() - updateValues));\n }\n compiler.updateData(irContext, backend);\n LOG.info(\"compiler.updateData() took {}ns to complete\", (System.nanoTime() - updateData));\n }", "public static int[][] getGridAndTotalPopulation(int[][] grid, UnchangedInfo info, String version) {\n\t\t// step 1\n\t\tRectangle censusRect = info.censusRect;\n\t\tCensusGroup[] blocks = info.input;\n\t\tint size = info.size;\n\t\tint x = info.x;\n\t\tint y = info.y;\n\t\t\n\t\tif(version.equals(\"-v3\")) {\n\t\t\tfloat censusX = censusRect.right - censusRect.left;\n\t\t\tfloat censusY = censusRect.top - censusRect.bottom;\n\t\t\tint gridX, gridY;\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tgridX = (int) ((blocks[j].longitude - censusRect.left) * x / censusX);\n\t\t\t\tgridY = (int) ((blocks[j].latitude - censusRect.bottom) * y / censusY);\n\t\t\t\tif(gridX == x)\n\t\t\t\t\tgridX--;\n\t\t\t\tif(gridY == y)\n\t\t\t\t\tgridY--;\n\t\t\t\tgrid[gridX][gridY] += blocks[j].population;\n\t\t\t}\n\t\t} else if (version.equals(\"-v4\")){ // version equals v4\n\t\t\tgrid = fjPool.invoke(new BuildGrid(info, 0, size, fjPool));\n\t\t} else { // version 5\n\t\t\tBuildGridLocked lockedGrid = new BuildGridLocked(info, 0, size, fjPool);\n\t\t\tgrid = lockedGrid.grid;\n\t\t\t\n\t\t}\n\t\t// step 2\n\t\tfor(int a = 0; a < grid.length; a++) {\n\t\t\tfor(int b = grid[a].length - 1; b >= 0; b--) {\n\t\t\t\tif(a == 0 && b != grid[a].length - 1) \n\t\t\t\t\tgrid[a][b] += grid[a][b + 1];\n\t\t\t\telse if(a != 0 && b == grid[a].length - 1) \n\t\t\t\t\tgrid[a][b] += grid[a - 1][b];\n\t\t\t\telse if(a != 0 && b != grid[a].length - 1)\n\t\t\t\t\tgrid[a][b] += grid[a - 1][b] + grid[a][b + 1] - grid[a - 1][b + 1];\n\t\t\t}\t\n\t\t}\n\t\tinfo.totalPop = grid[info.x - 1][0];\n\t\treturn grid;\n\t}", "private void updateALUTableScorboard() {\n\t\t// Get a copy of the memory stations\n\t\t// ALUStation[] temp_alu = alu_rs;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < _lstFuStatusScorboard2.size(); i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\t// String busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\" );\n\t\t\t// _FunctionUnitsModel.setColumnIdentifiers( new Object[]{\"Cycle\",\n\t\t\t// \"Name\",\"Busy\", \"Op\", \"Fi\", \"Fj\", \"Fk\", \"Qj\",\"Qk\",\"Rj\",\"Rk\"} );\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getTime(), i, 0);\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFu_name(), i, 1);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getBusy(), i, 2);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getOp(), i, 3);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFi(), i, 4);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFj(), i, 5);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFk(), i, 6);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQj(), i, 7);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQk(), i, 8);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRj(), i, 9);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRk(), i, 10);\n\t\t}\n\t}", "void updateData();", "private final void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n _profile._remoteBlkDone = System.currentTimeMillis();\n _fs.blockForPending();\n _profile._localBlkDone = System.currentTimeMillis();\n // Finally, must return all results in 'this' because that is the API -\n // what the user expects\n int nlo = subShift(H2O.SELF.index());\n int nhi = _nhi; // Save before copyOver crushes them\n if( _res == null ) _nhi=-1; // Flag for no local results *at all*\n else if( _res != this ) { // There is a local result, and its not self\n _res._profile = _profile; // Use my profile (not childs)\n copyOver(_res); // So copy into self\n }\n closeLocal();\n if( nlo==0 && nhi == H2O.CLOUD.size() ) {\n // Do any post-writing work (zap rollup fields, etc)\n _fr.reloadVecs();\n for( int i=0; i<_fr.numCols(); i++ )\n _fr.vecs()[i].postWrite();\n postGlobal();\n }\n }", "INDArray getBoardScores() {\n //creez un vector ce va contine aceste scoruri si va putea fi folosit la antrenare\n INDArray boardScores = Nd4j.zeros(1, size * size);\n\n //creez o copie a tablei pentru a o putea modifica\n Stone[][] boardCopy = Board.getBoard(), board = new Stone[size][size];\n\n //gasesc recursiv scorurile tablei curente\n float[][] boardScoresFloat = new float[size][size];\n //simulez o mutare a jucatorului\n int stonesNr = Board.getStonesNr();\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++){\n Chain chain = new Chain();\n Stone stone = new Stone(color ? \"black\" : \"white\", chain);\n stone.setPosition(i, j);\n for (int k = 0; k < boardCopy.length; k++) {\n board[k] = Arrays.copyOf(boardCopy[k], boardCopy[k].length);\n }\n int[] lib = Control.verifyLiberties(board, stone, i, j);\n if(board[i][j] == null && lib[0] + lib[1] != 0){\n int depth = 0;\n int dif = size / 2;\n boardScoresFloat[i][j] = getQScore(board, i, j, depth, depth)\n + new Random().nextInt(1000 / stonesNr) - (500 / stonesNr)\n - abs(i - dif) - abs(j - dif);\n }\n else{\n boardScoresFloat[i][j] = -5000;\n }\n }\n\n //normalizez vectorul\n //aflu norma vectorului de valori\n double sum = 0;\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++)\n sum += boardScoresFloat[i][j] * boardScoresFloat[i][j];\n sum = Math.sqrt(sum);\n //aplic norma\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++)\n boardScoresFloat[i][j] /= sum;\n\n //inserez rezultatele gasite intr-un INDArray\n int poz = 0;\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++){\n boardScores.putScalar(new int[]{0, poz}, boardScoresFloat[i][j]);\n poz++;\n }\n //System.out.println(boardScores);\n return boardScores;\n }", "void updateLength(int[][] dataMatrix, String[] tokenFileArray, int[][] updatedMatrix){\n\t\tfor(int i = 0; i < dataMatrix.length; i++){\n\t\t\tint lengthOfClone = getCloneLength(dataMatrix[i][2], dataMatrix[i][3], tokenFileArray); //getLength\n\t\t\taddLength(updatedMatrix, dataMatrix[i][0], lengthOfClone); //add the length\n\t\t}\n\t}", "public void updateValues() {\n\t\tlightResistances = new float[width][height];\n\t\twalls = new boolean[width][height];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tlightResistances[x][y] = map[x][y].getLighting();\n\t\t\t\twalls[x][y] = map[x][y].isWall();\n\t\t\t}\n\t\t}\n\t}", "public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}", "@Override\n\tpublic void processInstruction(ExecutionContext ec) {\n\t\tlong t1 = System.currentTimeMillis();\n\n\t\tSparkExecutionContext sec = (SparkExecutionContext) ec;\n\n\t\tCacheType type = _type;\n\t\tString rddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\tString bcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\tString betterRddVar = rddVar + \"_filtered\";\n\t\tString betterBcastVar = bcastVar + \"_filtered\";\n\t\tMatrixCharacteristics mcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\tMatrixCharacteristics mcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\tboolean needRepartitionNow = needRepartitionNow(sec);\n\t\tboolean needFilterNow = needFilterNow(sec);\n\t\tString dVarName = null; // TODO added by czh 检查是否是dVar\n\t\tif (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tdVarName = DWhileStatement.getDVarNameFromTmpVar(bcastVar);\n\t\t\tSystem.out.println(\"in delta mapmm: \" + dVarName);\n\t\t} else if (_needCache) {\n\t\t\tdVarName = bcastVar;\n\t\t}\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"G\")) {\n\t\t\tDWhileProgramBlock.midT2 = System.currentTimeMillis();\n\t\t}\n\n\t\t// TODO added by czh 删\n\t\t_outputEmpty = false;\n\n\t\t//get input rdd with preferred number of partitions to avoid unnecessary repartitionNonZeros\n\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> in1;\n\t\tif (_needCache && (hasRepartitioned.contains(rddVar) || hasFiltered.contains(rddVar)) && !needRepartitionNow\n\t\t\t\t&& DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 在dwhile中, 做过repartition或filter且当前不需要repartition时取 betterRddVar\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(betterRddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t} else {\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t}\n\n\t\t//investigate if a repartitioning - including a potential flip of broadcast and rdd\n\t\t//inputs - is required to ensure moderately sized output partitions (2GB limitation)\n\t\tif (requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\tint numParts2 = getNumRepartitioning(type.getFlipped(), mcBc, mcRdd);\n\t\t\tif (numParts2 > numParts) { //flip required\n\t\t\t\ttype = type.getFlipped();\n\t\t\t\trddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\t\t\tbcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\t\t\tmcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\t\t\tmcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar);\n\t\t\t\tLOG.warn(\"Mapmm: Switching rdd ('\" + bcastVar + \"') and broadcast ('\" + rddVar + \"') inputs \"\n\t\t\t\t\t\t+ \"for repartitioning because this allows better control of output partition \"\n\t\t\t\t\t\t+ \"sizes (\" + numParts + \" < \" + numParts2 + \").\");\n\t\t\t}\n\t\t}\n\n\t\tif (_needCache && needRepartitionNow) {\n\t\t\tSystem.out.println(\"repartitioning... \" + bcastVar);\n\t\t\thasRepartitioned.add(rddVar);\n\n\t\t\t// repartitionNonZeros in2\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\n\t\t\tMatrixBlock newIn2Block = LibMatrixReorg.repartitionNonZerosWithEmpty(\n\t\t\t\t\tsec, in2Block, true, dVarName, in1.getNumPartitions(), mcRdd);\n\t\t\tif (!sec.containsVariable(betterBcastVar)) {\n\t\t\t\tsec.setVariable(betterBcastVar, new MatrixObject(sec.getMatrixObject(bcastVar)));\n\t\t\t}\n\t\t\tsec.cleanupBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t\t// repartitionNonZeros in1\n\t\t\tString orderName = DWhileStatement.getRepartitionOrderName(dVarName);\n\t\t\tPartitionedBroadcast<MatrixBlock> order = sec.getBroadcastForVariable(orderName);\n\t\t\tin1 = in1.mapPartitionsToPair(new RepartitionMapFunction(order));\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.getMatrixCharacteristics(betterRddVar).setCols(newIn2Block.getNumRows());\n\t\t\tin1 = sec.persistRdd(rddVar, in1, MEMORY_AND_DISK);\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, orderName);\n\n\t\t\tSystem.out.println(\" done\");\n\n\t\t} else if (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 若在之前的迭代已repartition in1, 则调整 in2 顺序\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tMatrixBlock newIn2Block =\n\t\t\t\t\tLibMatrixReorg.repartitionByOrderWithEmpty(sec, in2Block, new MatrixBlock(), true, dVarName);\n\n\t\t\tint selectSum = Arrays.stream(newIn2Block.getSelectBlock().getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t\tif (!ec.containsVariable(betterBcastVar)) {\n\t\t\t\tMatrixObject mb = new MatrixObject(sec.getMatrixObject(bcastVar));\n\t\t\t\tec.setVariable(betterBcastVar, mb);\n\t\t\t}\n\t\t\tsec.unpersistBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t} else if (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 设置 in2.selectBlock\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tString selectName = DWhileStatement.getSelectName(dVarName);\n\t\t\tMatrixBlock select = sec.getMatrixObject(selectName).acquireReadAndRelease();\n\t\t\tfloat blockSize = OptimizerUtils.DEFAULT_BLOCKSIZE;\n\t\t\tint brlen = (int) Math.ceil(in2Block.getNumRows() / blockSize);\n//\t\t\tFilterBlock selectBlock = sec.getMatrixObject(selectName).acquireReadAndRelease().getFilterBlock();\n\n\t\t\tFilterBlock selectBlock = new FilterBlock(brlen, 1);\n\t\t\tselectBlock.initData();\n\t\t\tfor (int bi = 0; bi < brlen; bi++) {\n\t\t\t\tboolean flag = false;\n\t\t\t\tfor (int i = (int) (bi * blockSize); i < (bi + 1) * blockSize && i < in2Block.getNumRows(); i++) {\n\t\t\t\t\tif (select.getValue(i, 0) != 0) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tselectBlock.setData(bi, 0, 1);\n\t\t\t\t} else {\n\t\t\t\t\tselectBlock.setData(bi, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint selectSum = Arrays.stream(selectBlock.getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tin2Block.setSelectBlock(selectBlock);\n\t\t\tsec.setMatrixOutput(bcastVar, in2Block);\n\t\t}\n\n\t\t//get inputs\n\t\tif (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tbcastVar = betterBcastVar;\n\t\t}\n\t\tPartitionedBroadcast<MatrixBlock> in2 = sec.getBroadcastForVariable(bcastVar);\n\n\t\t//empty input block filter\n\t\tif (!_outputEmpty)\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\n\t\tif (needFilterNow) {\n\t\t\tSystem.out.print(\"filtering... \" + bcastVar);\n\t\t\thasFiltered.add(rddVar);\n\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\t\t\tsec.persistRdd(rddVar, in1, StorageLevels.MEMORY_AND_DISK);\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, bcastVar);\n\t\t\tif (hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t\tsec.addLineageBroadcast(betterRddVar, DWhileStatement.getRepartitionOrderName(dVarName));\n\t\t\t}\n\n\t\t\tSystem.out.println(\" done\");\n\t\t}\n\n\t\t//execute mapmm and aggregation if necessary and put output into symbol table\n\t\tif (_aggtype == SparkAggType.SINGLE_BLOCK) {\n\t\t\tJavaRDD<MatrixBlock> out = in1.map(new RDDMapMMFunction2(type, in2));\n\t\t\tMatrixBlock out2 = RDDAggregateUtils.sumStable(out);\n\n\t\t\t//put output block into symbol table (no lineage because single block)\n\t\t\t//this also includes implicit maintenance of matrix characteristics\n\t\t\tsec.setMatrixOutput(output.getName(), out2, getExtendedOpcode());\n\n\t\t} else { //MULTI_BLOCK or NONE\n\t\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> out;\n\t\t\tif (requiresFlatMapFunction(type, mcBc)) {\n\t\t\t\tif (requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\t\t\tLOG.warn(\"Mapmm: Repartition input rdd '\" + rddVar + \"' from \" + in1.getNumPartitions() + \" to \"\n\t\t\t\t\t\t\t+ numParts + \" partitions to satisfy size restrictions of output partitions.\");\n\t\t\t\t\tin1 = in1.repartition(numParts);\n\t\t\t\t}\n\t\t\t\tout = in1.flatMapToPair(new RDDFlatMapMMFunction(type, in2));\n\t\t\t} else if (preservesPartitioning(mcRdd, type))\n\t\t\t\tout = in1.mapPartitionsToPair(new RDDMapMMPartitionFunction(type, in2), true);\n\t\t\telse\n\t\t\t\tout = in1.mapToPair(new RDDMapMMFunction(type, in2));\n\n\t\t\t//empty output block filter\n\t\t\tif (!_outputEmpty)\n\t\t\t\tout = out.filter(new FilterNonEmptyBlocksFunction());\n\n\t\t\tif (_aggtype == SparkAggType.MULTI_BLOCK)\n\t\t\t\tout = RDDAggregateUtils.sumByKeyStable(out, false);\n\n\t\t\t//put output RDD handle into symbol table\n\t\t\tsec.setRDDHandleForVariable(output.getName(), out);\n\t\t\tsec.addLineageRDD(output.getName(), rddVar);\n\t\t\tsec.addLineageBroadcast(output.getName(), bcastVar);\n\n\t\t\tif (needRepartitionNow || needFilterNow) {\n\t\t\t\tsec.unpersistRdd(rddVar);\n\t\t\t}\n\n\t\t\t//update output statistics if not inferred\n\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t}\n\n\t\t// TODO added by czh debug\n\t\tsec.getMatrixInput(output.getName());\n\t\tsec.releaseMatrixInput(output.getName());\n\t\tlong t2 = System.currentTimeMillis();\n\t\tSystem.out.println(\"mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"TG\")) {\n\t\t\tDWhileProgramBlock.midT1 = System.currentTimeMillis();\n\t\t}\n\t}", "public void update() {\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tb[r][c].update(this);\n\t\t\t}\n\t\t}\n\t}", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "private void declareArrays() {\n int iNumTimesteps = m_oLegend.getNumberOfTimesteps(),\n i, j, k;\n \n //Create arrays to hold raw data.\n mp_fLiveTreeVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fSnagVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses]; \n mp_iLiveTreeCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_iSnagCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fLiveTreeDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fSnagDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fTallestLiveTrees = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n mp_fTallestSnags = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n \n //Initialize all values with 0s\n for (i = 0; i < mp_fTallestLiveTrees.length; i++) {\n for (j = 0; j < mp_fTallestLiveTrees[i].length; j++) {\n for (k = 0; k < mp_fTallestLiveTrees[i][j].length; k++) {\n mp_fTallestLiveTrees[i][j][k] = 0;\n mp_fTallestSnags[i][j][k] = 0;\n }\n }\n }\n \n for (i = 0; i < m_iNumSpecies; i++) {\n for (j = 0; j <= iNumTimesteps; j++) {\n mp_fLiveTreeDBHTotal[i][j] = 0;\n mp_fSnagDBHTotal[i][j] = 0;\n for (k = 0; k < m_iNumSizeClasses; k++) {\n mp_iLiveTreeCounts[i][j][k] = 0;\n mp_iSnagCounts[i][j][k] = 0;\n mp_fLiveTreeVolumeTotals[i][j][k] = 0;\n mp_fSnagVolumeTotals[i][j][k] = 0;\n }\n }\n }\n }", "@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }", "public org.apache.spark.mllib.linalg.Matrix toLocalMatrix () { throw new RuntimeException(); }", "public abstract double initialize(double[][] rawData, int clusterCount);", "public void recalc() {\n\t\tMapping mapping = getConsumerProductMatrix();\n\t\tif (mapping == null) {\n\t\t\treturn; // there is nobody to calculate recommendation for\n\t\t}\n\t\tSparseMatrix<Float64> Ct = makeC(mapping.matrix).transpose();\n\t\tSparseMatrix<Float64> B = makeB(mapping.matrix);\n\t\tSparseMatrix<Float64> CR0 = makeCR0(mapping.matrix.getNumberOfRows());\n\n\t\tSparseMatrix<Float64> PR = null;\n\t\tSparseMatrix<Float64> CR = CR0;\n\n\t\tint iterations =\n\t\t\tConfigService.CONFIG_SERVICE.getConfig(\n\t\t\t\tServerConfigKey.RECOMMENDATION_ITERATIONS).get();\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tPR = CR.times(B);\n\t\t\tCR = PR.times(Ct).plus(CR0);\n\t\t}\n\n\t\tsaveRecommendations(mapping, PR);\n\t}", "private final void resetIsosurfaceBoundary() {\n \tif (debug) System.out.print(\"fast marching evolution: iso-surface reinit\\n\");\n\n \tfloat[] nbdist = new float[6];\n \tboolean[] nbflag = new boolean[6];\n \tboolean boundary;\n \tfloat[] tmp = new float[nx*ny*nz];\n \tboolean[] processed = new boolean[nx*ny*nz];\n \t\n\t\tfor (int xyz = 0; xyz<nx*ny*nz; xyz++) if (mask[xyz]) {\n\t\t\t\n\t\t\tboundary = false;\n\t\t\tfor (int l=0; l<6; l++) {\n\t\t\t\tnbdist[l] = UNKNOWN;\n\t\t\t\tnbflag[l] = false;\n\t\t\t\t\n\t\t\t\tint xyznb = xyz + xoff[l] + yoff[l] + zoff[l];\n\t\t\t\tif (segmentation[xyznb]!=segmentation[xyz] && mask[xyznb]) {\n\t\t\t\t\t// compute new distance based on processed neighbors for the same object\n\t\t\t\t\tnbdist[l] = Numerics.abs(mgdmfunctions[0][xyznb]);\n\t\t\t\t\tnbflag[l] = true;\n\t\t\t\t\tboundary = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (boundary) {\n\t\t\t\ttmp[xyz] = isoSurfaceDistance(mgdmfunctions[0][xyz], nbdist, nbflag);\n\t\t\t\tprocessed[xyz] = true;\n\t\t\t}\n\t\t}\n\t\t// once all the new values are computed, copy into original GDM function (sign is not important here)\n\t\tfor (int xyz = 0; xyz<nx*ny*nz; xyz++) {\n\t\t\tif (processed[xyz]) mgdmfunctions[0][xyz] = tmp[xyz];\n\t\t\telse mgdmfunctions[0][xyz] = UNKNOWN;\n\t\t}\n\t\t\t\n return;\n }", "public Matrix calculate();", "@Override\r\n\tpublic void compute() {\r\n\r\n\t\t// compute s1, s2 secret shares for all the parties\r\n\t\t// s1s2[i] - pair(s1 SecretShare, s2 SecretShare) for party i\r\n\t\tArrayList<ArrayList<SecretShare>> s1s2 = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (GateIO in : this.input) {\r\n\t\t\tArrayList<SecretShare> theShares = new ArrayList<SecretShare>();\r\n\t\t\ttheShares.add(0, in.getValue().get(0)); // s1\r\n\t\t\ttheShares.add(1, in.getValue().get(1)); // s2\r\n\t\t\ts1s2.add(in.getIndex(), theShares);\r\n\t\t\t// System.out.println(\"party \" + in.getIndex());\r\n\t\t\t// System.out.println(\"s1 = \" + in.getValue().get(0));\r\n\t\t\t// System.out.println(\"s2 = \" + in.getValue().get(1));\r\n\r\n\t\t}\r\n\r\n\t\t// compute locally - s1*s2\r\n\t\tArrayList<SecretShare> localMults = new ArrayList<SecretShare>();\r\n\t\tfor (int i = 0; i < s1s2.size(); i++) {\r\n\t\t\tlocalMults.add(i, new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t\t\tmodField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t\t// System.out.println(new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t// modField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t}\r\n\r\n\t\t// share the local multiplications between the parties\r\n\t\t// localMultShare[i] - the secrets shares of party i new secret(mult)\r\n\t\tArrayList<ArrayList<SecretShare>> localMultsShare = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (int i = 0; i < localMults.size(); i++) {\r\n\t\t\tlocalMultsShare.add(i, new ArrayList<SecretShare>());\r\n\t\t}\r\n\r\n\t\tfor (SecretShare mult : localMults) {\r\n\t\t\tArrayList<SecretShare> yiShares = Polynomial\r\n\t\t\t\t\t.createShareSecret(mult.y);\r\n\t\t\t// for (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t// System.out.println(\"i = \" + i + \" y = \" + yiShares.get(i));\r\n\t\t\t// }\r\n\t\t\tfor (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t\tArrayList<SecretShare> tmp = localMultsShare.get(i);\r\n\t\t\t\ttmp.add(yiShares.get(i));\r\n\t\t\t\tlocalMultsShare.set(i, tmp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// System.out.println(\"start\");\r\n\t\t// for (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t// for (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t// System.out.println((localMultsShare.get(i)).get(j));\r\n\t\t// }\r\n\t\t// }\r\n\t\t// System.out.println(\"end\");\r\n\r\n\t\t// compute the outPut = Yi * Zi\r\n\t\tthis.result = new ArrayList<GateIO>();\r\n\t\tfor (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t\tGateIO out = new GateIO(i);\r\n\r\n\t\t\tint outYValue = 0;\r\n\t\t\tfor (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t\t\toutYValue += computeZi(j + 1)\r\n\t\t\t\t\t\t* ((localMultsShare.get(i)).get(j)).y;\r\n\t\t\t}\r\n\t\t\tout.value.add(new SecretShare(i + 1, modField(outYValue)));\r\n\t\t\tthis.result.add(out);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < this.result.size(); i++) {\r\n\t\t\t// System.out.println(this.result.get(i).value.get(0));\r\n\t\t}\r\n\r\n\t}", "private void update(ArrayList<Triple<Integer, Integer, Integer>> miniBatch, ArrayList<Triple<Integer, Integer, Integer>> corruptedTriples, double margin, double learningRate, double C, int k){\n ArrayList<double[]> copyEntityVectors = (ArrayList<double[]>) entityVectors.clone();\n ArrayList<double[]> copyRelationVectors = (ArrayList<double[]>) relationVectors.clone();\n ArrayList<double[]> copyNormalVectors = (ArrayList<double[]>) normalVectors.clone();\n\n for(int i = 0; i < miniBatch.size(); i ++){\n int head = miniBatch.get(i).getLeft();\n int relation = miniBatch.get(i).getMiddle();\n int tail = miniBatch.get(i).getRight();\n int headC = corruptedTriples.get(i).getLeft();\n int tailC = corruptedTriples.get(i).getRight();\n double[] normalVector = copyNormalVectors.get(relation);\n double[] headVector = copyEntityVectors.get(head);\n double[] relationVector = copyRelationVectors.get(relation);\n double[] tailVector = copyEntityVectors.get(tail);\n double[] headCVector = copyEntityVectors.get(headC);\n double[] tailCVector = copyEntityVectors.get(tailC);\n double[] projectHead = helper.planeProjection(headVector, normalVector); // project vector to a plane\n double[] projectTail = helper.planeProjection(tailVector, normalVector); // project vector to a plane\n double[] projectHeadC = helper.planeProjection(headCVector, normalVector); // project vector to a plane\n double[] projectTailC = helper.planeProjection(tailCVector, normalVector); // project vector to a plane\n\n Boolean orthogonal = helper.checkOrthogonal(relationVector, normalVector);\n double dotProduct = helper.dotProduct(relationVector, normalVector);\n\n double distanceL2 = helper.distanceL2(projectHead, relationVector, projectTail, k);\n double distanceL2C = helper.distanceL2(projectHeadC, relationVector, projectTailC, k);\n double loss = distanceL2 + margin - distanceL2C;\n if (loss > 0){\n double[] newHeadVector = new double[k];\n double[] newRelationVector = new double[k];\n double[] newTailVector = new double[k];\n double[]newNormalVector = new double[k];\n for (int j = 0; j< k; j++){\n double delta = 2*(projectTail[j] - projectHead[j] -relationVector[j]);\n double deltaC = 2*(projectTailC[j] - projectHeadC[j] - relationVector[j]);\n double constraintR = 0;\n double constraintN = 0;\n if (orthogonal == false){\n constraintR = 2 *C * dotProduct *normalVector[j]; // constraints if the relation vector and the normal vector is not orthogonal for relation vector\n constraintN = 2* C * dotProduct *relationVector[j]; // constraints if not orthogonal for normal vector\n }\n double newHead = headVector[j] + learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector, second step chain rule\n double newRelation = relationVector[j] + learningRate * (delta - deltaC) - constraintR; // relation vector is not affected by normal vector, second step chain rule\n double newTail = tailVector[j] - learningRate * delta * (1 - Math.pow(normalVector[j], 2)); // the partial derivative includes normal vector\n double newNormal = normalVector[j] - constraintN; // update normal vector if not orthogonal\n newHeadVector[j] = newHead;\n newRelationVector[j] = newRelation;\n newTailVector[j] = newTail;\n newNormalVector[j] = newNormal;\n }\n double[] normedHeadVector = helper.norm(newHeadVector);\n double[] normedRelationVector = helper.norm(newRelationVector);\n double[] normedTailVector = helper.norm(newTailVector);\n double[] normedNormalVector = helper.norm(newNormalVector);\n copyEntityVectors.set(head, normedHeadVector);\n copyEntityVectors.set(tail, normedTailVector);\n copyRelationVectors.set(relation, normedRelationVector);\n copyNormalVectors.set(relation, normedNormalVector);\n }\n }\n entityVectors = copyEntityVectors;\n relationVectors = copyRelationVectors;\n normalVectors = copyNormalVectors;\n }", "public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}", "@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2, int nodeIndex3) {\n\n calculatePartialsPartialsPruning(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1], matrices[currentMatricesIndices[nodeIndex1]][nodeIndex1],\n partials[currentPartialsIndices[nodeIndex2]][nodeIndex2], matrices[currentMatricesIndices[nodeIndex2]][nodeIndex2],\n partials[currentPartialsIndices[nodeIndex3]][nodeIndex3]);\n//\t\tSystem.out.println(nodeIndex3\n//\t\t\t+ \"\\t\"\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex3]][nodeIndex3])\n//\t\t\t+ \"\\n\"\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1])\n//\t\t\t+ \"\\t\"\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex2]][nodeIndex2])\n//\t\t\t+ \"\\nIndex:\" + Arrays.toString(currentPartialsIndices)\n//\t\t\t+ \"\\nP0 C1:\" + Arrays.toString(partials[0][nodeIndex1])\n//\t\t\t+ \"\\nP0 C2:\" + Arrays.toString(partials[0][nodeIndex2])\n//\t\t\t+ \"\\nP0 N3:\" + Arrays.toString(partials[0][nodeIndex3])\n//\t\t\t+ \"\\nP1 C1:\" + Arrays.toString(partials[1][nodeIndex1])\n//\t\t\t+ \"\\nP1 C2:\" + Arrays.toString(partials[1][nodeIndex2])\n//\t\t\t+ \"\\nP1 N3:\" + Arrays.toString(partials[1][nodeIndex3]) + \"\\n\"\n//\n//\t\t);\n// if(Double.isNaN(partials[currentPartialsIndices[nodeIndex3]][nodeIndex3][0])){\n// \t\n// \t\tSystem.out.println(nodeIndex3\n//\t\t\t+ \"\\t\"\n//\t\t\t+ \"\\n\" +Arrays.toString(currentMatricesIndices) \n//\t\t\t+ \"\\n\" +nodeIndex1 +\"\\t\"+ nodeIndex2\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex3]][nodeIndex3])\n//\t\t\t+ \"\\n\"\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex1]][nodeIndex1])\n//\t\t\t+ \"\\t\"\n//\t\t\t+ Arrays.toString(partials[currentPartialsIndices[nodeIndex2]][nodeIndex2])\n//\t\t\t+ \"\\nIndex:\" + Arrays.toString(currentPartialsIndices)\n//\t\t\t+ \"\\nP0 C1:\" + Arrays.toString(partials[0][nodeIndex1])\n//\t\t\t+ \"\\nP0 C2:\" + Arrays.toString(partials[0][nodeIndex2])\n//\t\t\t+ \"\\nP0 N3:\" + Arrays.toString(partials[0][nodeIndex3])\n//\t\t\t+ \"\\nP1 C1:\" + Arrays.toString(partials[1][nodeIndex1])\n//\t\t\t+ \"\\nP1 C2:\" + Arrays.toString(partials[1][nodeIndex2])\n//\t\t\t+ \"\\nP1 N3:\" + Arrays.toString(partials[1][nodeIndex3]) + \"\\n\"\n//\t\t\t);\n// }\n// \n if (useScaling) {\n scalePartials(nodeIndex3);\n }\n\n\n }", "public void sample_V() {\n\t\t//Note, sumV and sumVVT are update in the update function itself. Hence, when\n\t\t//sample_V is called after the 1 iteration of all vertices, we already have the sum.\n\t\t\n\t\t//meanV = (SUM V_j)/N\n\t\tRealVector meanV = params.sumV.mapMultiply(1.0/datasetDesc.getNumItems());\n\t\t//meanS = (SUM (V_j*V_j')/N)\n\t\tRealMatrix meanS = params.sumVVT.scalarMultiply(1.0/datasetDesc.getNumItems());\n\t\t\n\t\t//mu0 = (beta0*mu0 + meanV)/(beta0 + N)\n\t\tRealVector mu0_ = (params.mu0_V.mapMultiply(params.beta0_V).add(meanV)).mapDivide((params.beta0_V + datasetDesc.getNumItems()));\n\t\t\n\t\tdouble beta0_ = params.beta0_V + datasetDesc.getNumItems();\n\t\tint nu0_ = params.nu0_V + datasetDesc.getNumItems();\n\t\t\n\t\t//W0 = inv( inv(W0) + N*meanS + (beta0*N/(beta0 + N))(mu0 - meanU)*(mu0 - meanU)'\n\t\tRealVector tmp = params.mu0_V.subtract(meanV);\n\t\tRealMatrix mu0_d_meanV_T = tmp.outerProduct(tmp); \n\t\tmu0_d_meanV_T = mu0_d_meanV_T.scalarMultiply((params.beta0_V*datasetDesc.getNumItems()/(params.beta0_V + datasetDesc.getNumItems())));\n\t\tRealMatrix invW0_ = params.invW0_V.add(params.sumVVT).add(mu0_d_meanV_T);\n\n\t\t//Update all the values.\n\t\tparams.mu0_V = mu0_;\n\t\tparams.beta0_V = beta0_;\n\t\tparams.nu0_V = nu0_;\n\t\tparams.invW0_V = invW0_;\n\t\tparams.W0_V = (new LUDecompositionImpl(invW0_)).getSolver().getInverse();\n\t\t\n\t\t//Sample lambda_V and mu_V from the Gaussian Wishart distribution\n\t\t// http://en.wikipedia.org/wiki/Normal-Wishart_distribution#Generating_normal-Wishart_random_variates\n\t\t//Draw lambda_V from Wishart distribution with scale matrix w0_U.\n\t\tparams.lambda_V = sampleWishart(params.invW0_V, params.nu0_V);\n\t\t//Compute cov = inv(beta0*lambda) \n\t\tRealMatrix cov = (new LUDecompositionImpl(params.lambda_V.scalarMultiply(params.beta0_V))).getSolver().getInverse();\n\t\t//Draw mu_V from multivariate normal dist with mean mu0_V and covariance inv(beta0_V*lambda)\n\t\tMultivariateNormalDistribution dist = new MultivariateNormalDistribution(params.mu0_V.toArray(), \n\t\t\t\tcov.getData());\n\t\tparams.mu_V = new ArrayRealVector(dist.sample());\n\t\t\n\t\t//Reset the sum of latent factors.\n\t\tparams.sumV.mapMultiply(0);\n\t\tparams.sumVVT.scalarMultiply(0);\n\t}", "public void sync(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\tArrayList<DHTNode> dependentNodes = dynamoRing.getNPredecessors(myNode, REPLICATION_COUNT-1);\n\t\tdependentNodes.add(myNode);\n\t\tSparseArray<String> dependentNodeMap = new SparseArray<String>();\n\t\tHashMap<String, KeyVal> resultMap = new HashMap<String, KeyVal>();\n\t\tfor(int i=0;i<dependentNodes.size();i++)\t// Ideally it should contact only N-1 successors and N-1 predecessors\n\t\t\t\t\t\t\t\t\t\t\t\t\t// but for total node count = 5 and replica count = 2, this\n\t\t\t\t\t\t\t\t\t\t\t\t\t// number spans through all the nodes\n\t\t\tdependentNodeMap.put(dependentNodes.get(i).getAddress(), dependentNodes.get(i).getId());\n\t\t\n\t\tArrayList<DHTNode> nodeList = dynamoRing.getAllNodes();\n\t\tfor(int i=0;i<nodeList.size();i++){\n\t\t\tif(nodeList.get(i)==myNode)\n\t\t\t\tcontinue;\n\t\t\tArrayList<KeyVal> keyValList = readDHTAllFromNode(nodeList.get(i));\n\t\t\tfor(int j=0;j<keyValList.size();j++){\n\t\t\t\tKeyVal keyVal = keyValList.get(j);\n\t\t\t\tint responsibleNodeAddress = dynamoRing.getResponsibleNode(keyVal.getKey()).getAddress();\n\t\t\t\tif(dependentNodeMap.get(responsibleNodeAddress)==null)\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tif(resultMap.get(keyVal.getKey())==null){\n\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tint oldVersion = Integer.parseInt(resultMap.get(keyVal.getKey()).getVersion());\n\t\t\t\t\t\tint newVersion = Integer.parseInt(keyVal.getVersion());\n\t\t\t\t\t\tif(newVersion > oldVersion)\n\t\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tIterator<Entry<String, KeyVal>> resultIterator = resultMap.entrySet().iterator();\n\t\twhile(resultIterator.hasNext()){\n\t\t\tEntry<String, KeyVal> nextEntry = resultIterator.next();\n\t\t\tKeyVal keyVal = nextEntry.getValue();\n\t\t\twriteLocalKeyVal(keyVal.getKey(), keyVal.getVal(), keyVal.getVersion());\n\t\t}\n\t\t\n\t}", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix cache () { throw new RuntimeException(); }", "int updateAllComponents(RecordSet inputRecords);", "static void updateGrid(int[][] G, int[][][] P){\n \n \n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (P[i][j][0]==1){ //if there's only one candidate left in P[i][j][0]\n if (G[i][j]==0){ //double check it's not filled already\n for (int k=1; k<G[i].length; k++){ //enter loop to check the THIRD DIMENSION\n if (P[i][j][k]==1){ //grab the index number of the last candidate\n G[i][j] = k; //SMACK\n }\n }\n }\n }\n \n }\n \n }\n \n \n }", "public void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif(oldInfo.calcInfo!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldInfo.calcInfo.calc();\n\t\t\t\t\t\t\toldInfo.calcInfo=null;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Filter particles\n\t\t\t\t\t\tfor(int id:oldInfo.keySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tParticleInfo pInfo=oldInfo.get(id);\n\t\t\t\t\t\t\tif(filter.acceptParticle(id, pInfo))\n\t\t\t\t\t\t\t\tnewInfo.put(id,pInfo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void calculate(double[] theta) {\r\n dvModel.vectorToParams(theta);\r\n\r\n double localValue = 0.0;\r\n double[] localDerivative = new double[theta.length];\r\n\r\n TwoDimensionalMap<String, String, SimpleMatrix> binaryW_dfsG,binaryW_dfsB;\r\n binaryW_dfsG = TwoDimensionalMap.treeMap();\r\n binaryW_dfsB = TwoDimensionalMap.treeMap();\r\n TwoDimensionalMap<String, String, SimpleMatrix> binaryScoreDerivativesG,binaryScoreDerivativesB ;\r\n binaryScoreDerivativesG = TwoDimensionalMap.treeMap();\r\n binaryScoreDerivativesB = TwoDimensionalMap.treeMap();\r\n Map<String, SimpleMatrix> unaryW_dfsG,unaryW_dfsB ;\r\n unaryW_dfsG = new TreeMap<String, SimpleMatrix>();\r\n unaryW_dfsB = new TreeMap<String, SimpleMatrix>();\r\n Map<String, SimpleMatrix> unaryScoreDerivativesG,unaryScoreDerivativesB ;\r\n unaryScoreDerivativesG = new TreeMap<String, SimpleMatrix>();\r\n unaryScoreDerivativesB= new TreeMap<String, SimpleMatrix>();\r\n\r\n Map<String, SimpleMatrix> wordVectorDerivativesG = new TreeMap<String, SimpleMatrix>();\r\n Map<String, SimpleMatrix> wordVectorDerivativesB = new TreeMap<String, SimpleMatrix>();\r\n\r\n for (TwoDimensionalMap.Entry<String, String, SimpleMatrix> entry : dvModel.binaryTransform) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n binaryW_dfsG.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(numRows, numCols));\r\n binaryW_dfsB.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(numRows, numCols));\r\n binaryScoreDerivativesG.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(1, numRows));\r\n binaryScoreDerivativesB.put(entry.getFirstKey(), entry.getSecondKey(), new SimpleMatrix(1, numRows));\r\n }\r\n for (Map.Entry<String, SimpleMatrix> entry : dvModel.unaryTransform.entrySet()) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n unaryW_dfsG.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n unaryW_dfsB.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n unaryScoreDerivativesG.put(entry.getKey(), new SimpleMatrix(1, numRows));\r\n unaryScoreDerivativesB.put(entry.getKey(), new SimpleMatrix(1, numRows));\r\n }\r\n if (op.trainOptions.trainWordVectors) {\r\n for (Map.Entry<String, SimpleMatrix> entry : dvModel.wordVectors.entrySet()) {\r\n int numRows = entry.getValue().numRows();\r\n int numCols = entry.getValue().numCols();\r\n wordVectorDerivativesG.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n wordVectorDerivativesB.put(entry.getKey(), new SimpleMatrix(numRows, numCols));\r\n }\r\n }\r\n\r\n // Some optimization methods prints out a line without an end, so our\r\n // debugging statements are misaligned\r\n Timing scoreTiming = new Timing();\r\n scoreTiming.doing(\"Scoring trees\");\r\n int treeNum = 0;\r\n MulticoreWrapper<Tree, Pair<DeepTree, DeepTree>> wrapper = new MulticoreWrapper<Tree, Pair<DeepTree, DeepTree>>(op.trainOptions.trainingThreads, new ScoringProcessor());\r\n for (Tree tree : trainingBatch) {\r\n wrapper.put(tree);\r\n }\r\n wrapper.join();\r\n scoreTiming.done();\r\n while (wrapper.peek()) {\r\n Pair<DeepTree, DeepTree> result = wrapper.poll();\r\n DeepTree goldTree = result.first;\r\n DeepTree bestTree = result.second;\r\n\r\n StringBuilder treeDebugLine = new StringBuilder();\r\n Formatter formatter = new Formatter(treeDebugLine);\r\n boolean isDone = (Math.abs(bestTree.getScore() - goldTree.getScore()) <= 0.00001 || goldTree.getScore() > bestTree.getScore());\r\n String done = isDone ? \"done\" : \"\";\r\n formatter.format(\"Tree %6d Highest tree: %12.4f Correct tree: %12.4f %s\", treeNum, bestTree.getScore(), goldTree.getScore(), done);\r\n System.err.println(treeDebugLine.toString());\r\n if (!isDone){\r\n // if the gold tree is better than the best hypothesis tree by\r\n // a large enough margin, then the score difference will be 0\r\n // and we ignore the tree\r\n\r\n double valueDelta = bestTree.getScore() - goldTree.getScore();\r\n //double valueDelta = Math.max(0.0, - scoreGold + bestScore);\r\n localValue += valueDelta;\r\n\r\n // get the context words for this tree - should be the same\r\n // for either goldTree or bestTree\r\n List<String> words = getContextWords(goldTree.getTree());\r\n\r\n // The derivatives affected by this tree are only based on the\r\n // nodes present in this tree, eg not all matrix derivatives\r\n // will be affected by this tree\r\n backpropDerivative(goldTree.getTree(), words, goldTree.getVectors(),\r\n binaryW_dfsG, unaryW_dfsG,\r\n binaryScoreDerivativesG, unaryScoreDerivativesG,\r\n wordVectorDerivativesG);\r\n\r\n backpropDerivative(bestTree.getTree(), words, bestTree.getVectors(),\r\n binaryW_dfsB, unaryW_dfsB,\r\n binaryScoreDerivativesB, unaryScoreDerivativesB,\r\n wordVectorDerivativesB);\r\n\r\n }\r\n ++treeNum;\r\n }\r\n\r\n double[] localDerivativeGood;\r\n double[] localDerivativeB;\r\n if (op.trainOptions.trainWordVectors) {\r\n localDerivativeGood = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsG.valueIterator(), unaryW_dfsG.values().iterator(),\r\n binaryScoreDerivativesG.valueIterator(),\r\n unaryScoreDerivativesG.values().iterator(),\r\n wordVectorDerivativesG.values().iterator());\r\n\r\n localDerivativeB = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsB.valueIterator(), unaryW_dfsB.values().iterator(),\r\n binaryScoreDerivativesB.valueIterator(),\r\n unaryScoreDerivativesB.values().iterator(),\r\n wordVectorDerivativesB.values().iterator());\r\n } else {\r\n localDerivativeGood = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsG.valueIterator(), unaryW_dfsG.values().iterator(),\r\n binaryScoreDerivativesG.valueIterator(),\r\n unaryScoreDerivativesG.values().iterator());\r\n\r\n localDerivativeB = NeuralUtils.paramsToVector(theta.length,\r\n binaryW_dfsB.valueIterator(), unaryW_dfsB.values().iterator(),\r\n binaryScoreDerivativesB.valueIterator(),\r\n unaryScoreDerivativesB.values().iterator());\r\n }\r\n\r\n // correct - highest\r\n for (int i =0 ;i<localDerivativeGood.length;i++){\r\n localDerivative[i] = localDerivativeB[i] - localDerivativeGood[i];\r\n }\r\n\r\n // TODO: this is where we would combine multiple costs if we had parallelized the calculation\r\n value = localValue;\r\n derivative = localDerivative;\r\n\r\n // normalizing by training batch size\r\n value = (1.0/trainingBatch.size()) * value;\r\n ArrayMath.multiplyInPlace(derivative, (1.0/trainingBatch.size()));\r\n\r\n // add regularization to cost:\r\n double[] currentParams = dvModel.paramsToVector();\r\n double regCost = 0;\r\n for (int i = 0 ; i<currentParams.length;i++){\r\n regCost += currentParams[i] * currentParams[i];\r\n }\r\n regCost = op.trainOptions.regCost * 0.5 * regCost;\r\n value += regCost;\r\n // add regularization to gradient\r\n ArrayMath.multiplyInPlace(currentParams, op.trainOptions.regCost);\r\n ArrayMath.pairwiseAddInPlace(derivative, currentParams);\r\n\r\n }", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "private void fillObservationsDataFast() {\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n// int variateCount = this.workbookStudy.getVariates().size();\n \n List<String> factorsReturn = getFactoresReturnList();\n \n fillFactorLabelDataOptimized(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n \n// List<Measurement> measurementList = workbookStudy.getMeasurements();\n \n// log.info(\"Getting Data Trial ...\");\n// List<Object> dataList;\n// if(! workbookStudy.getVariates().isEmpty()){\n// dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n// }else{\n// dataList = new ArrayList<Object>();\n// }\n// log.info(\"Getting Data Trial Done...\");\n// \n// \n// log.info(\"Getting List of Obsunit ...\");\n// List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n// log.info(\"Getting List of Obsunit...\");\n// int rowIndex = 0;\n// for (Obsunit obsUnit : obsunits) {\n// Measurement measurement = measurementList.get(rowIndex);\n// measurement.initMeasurementData(variateCount);\n//\n// assignMeasurementData(measurement, obsUnit, dataList);\n// rowIndex++;\n// }\n }", "@Override\n\tpublic void calculatePartials(int nodeIndex1, int nodeIndex2,\n\t\t\tint nodeIndex3, int[] matrixMap) {\n\t\tthrow new RuntimeException(\"calculatePartials is not implemented using matrixMap\");\n\n\t}", "public void mainProcess(java.util.ArrayList<double[]> dataPoint, String dist) throws Exception {\n double[][] S = initAP(dataPoint);\r\n// double[][] S = readData(fn);\r\n double[][] A = new double[N][N];\r\n double[][] R = new double[N][N];\r\n //////////////////////////////////////\r\n\tfor(int m=0; m<iter; m++) {\r\n// System.out.println(m);\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n double max = -1e100;\r\n for(int kk=0; kk<k; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n for(int kk=k+1; kk<N; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n R[i][k] = (1-lambda)*(S[i][k] - max) + lambda*R[i][k];\r\n }\r\n }\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n if(i==k) {\r\n double sum = 0.0;\r\n for(int ii=0; ii<i; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=i+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*sum + lambda*A[i][k];\r\n } else {\r\n double sum = 0.0;\r\n int maxik = Math.max(i, k);\r\n int minik = Math.min(i, k);\r\n for(int ii=0; ii<minik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=minik+1; ii<maxik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=maxik+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*Math.min(0.0, R[k][k]+sum) + lambda*A[i][k];\r\n }\r\n }\r\n }\r\n }\r\n \r\n//\tdouble E[N][N] = {0};\r\n double[][] E = new double[N][N];\r\n\r\n//\tvector<int> center;\r\n java.util.ArrayList<Integer> center = new java.util.ArrayList<>();\r\n for(int i=0; i<N; i++) {\r\n E[i][i] = R[i][i] + A[i][i];\r\n if(E[i][i]>0) {\r\n center.add(i);\r\n }\r\n }\r\n// int idx[N] = {0};\r\n int idx[] = new int[N];\r\n\r\n\tfor(int i=0; i<N; i++) {\r\n int idxForI = 0;\r\n double maxSim = -1e100;\r\n for(int j=0; j<center.size(); j++) {\r\n int c = center.get(j);\r\n if (S[i][c]>maxSim) {\r\n maxSim = S[i][c];\r\n idxForI = c;\r\n }\r\n }\r\n idx[i] = idxForI;\r\n }\r\n// java.util.HashMap<Integer, String> colorMap = new java.util.HashMap<>();\r\n java.util.HashMap<Integer, Integer> idcMap = new java.util.HashMap<>();\r\n java.util.HashSet<Integer> idSet = new java.util.HashSet<>();\r\n for(int i=0; i<N; i++) {\r\n idcMap.put(i, idx[i]);\r\n idSet.add(idx[i]);\r\n// System.out.println(idx[i]+1);\r\n\t}\r\n java.io.FileWriter out = new java.io.FileWriter(dist);\r\n java.util.HashMap<Integer, String> colorMap = getColorMap(idSet);\r\n for(int i=0; i<N; i++){\r\n double d[] = dataPoint.get(i);\r\n if(idSet.contains(i)){\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(i)+\"\\n\");\r\n }\r\n else{\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i))+\"\\n\");\r\n }\r\n// System.out.println(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i)));\r\n }\r\n out.close();\r\n// System.out.println(colorMap);\r\n /////////////////////////////////////////\r\n }", "private boolean recalculateMedoids(int[] assignment, List<T> medoids,\n\t\t\tList<List<T>> output, List<T> data) {\n\t\tboolean changed = false;\n\t\tfor (int i = 0; i < numberOfClusters; i++) {\n\t\t\tList<T> cluster = output.get(i);\n\t\t\tcluster.clear();\n\t\t\tfor (int j = 0; j < assignment.length; j++) {\n\t\t\t\tif (assignment[j] == i) {\n\t\t\t\t\tcluster.add(data.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cluster.size() == 0) { // new random, empty medoid\n\t\t\t\tmedoids.set(i, data.get(rg.nextInt(data.size())));\n\t\t\t\tchanged = true;\n\t\t\t} else {\n\t\t\t\tT medoid = medoids.get(i);\n\t\t\t\tdouble bestDistance = totalDistance(cluster, medoid);\n\t\t\t\tfor (T possibleMedoid : cluster) {\n\t\t\t\t\tif (possibleMedoid == medoid) continue;\n\t\t\t\t\tdouble distance = totalDistance(cluster, possibleMedoid);\n\t\t\t\t\tif (distance < bestDistance) {\n\t\t\t\t\t\tbestDistance = distance;\n\t\t\t\t\t\tmedoid = possibleMedoid;\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmedoids.set(i, medoid);\n\t\t\t}\n\t\t}\n\t\treturn changed;\n\t}", "private void recalculateAllRoutes() {\n robotModels.parallelStream().forEach(m -> m.recalculateRoute(target, obstacles));\n }", "void _apply(float[] f, float[] t, Mismatch mm, int[] subset) throws PAModelException\n\t{\n\t\tint[] fndx = _bus.getFromBus(), tndx = _bus.getToBus();\n\t\tfor(int i : subset)\n\t\t{\n\t\t\tmm.add(fndx[i], f[i]);\n\t\t\tmm.add(tndx[i], t[i]);\n\t\t}\n\t}", "protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }", "private void scanMatrixStructure() {\n dofs = computeDofs();\n nnz = computeNNZ();\n int[] IAaux = new int[nnz];\n JA = new int[nnz];\n HA = new double[nnz];\n\n IAaux[0] = 0;\n int si = 1;\n int sj = 0;\n blocks = new double[elems.length][][][];\n for (int i = 0; i < elems.length; i++) {\n Element elem = elems[i];\n int nBlockRow = 1; // number of blocks in a row\n for (int k = 0; k < elem.TT.length; k++) {\n if (elem.TT[k] > -1) {\n nBlockRow++;\n }\n }\n\n blocks[i] = new double[nBlockRow][][]; // alocation of row matrixes\n int[] indexes = new int[nBlockRow];\n blocks[i][0] = ((Implicit)elem.ti).ADiag;\n indexes[0] = elem.index;\n nBlockRow = 1;\n for (int k = 0; k < elem.TT.length; k++) {\n if (elem.TT[k] > -1) {\n blocks[i][nBlockRow] = ((Implicit)elem.ti).ANeighs[k].A;\n indexes[nBlockRow] = elems[elem.TT[k]].index;\n nBlockRow++;\n }\n }\n\n // sorting of matrix at rows acording to element indexes (bublesort)\n double[][] aux;\n int pom;\n for (int p = 0; p < nBlockRow - 1; p++) {\n for (int q = 0; q < nBlockRow - 1; q++) {\n if (indexes[q] > indexes[q + 1]) {\n aux = blocks[i][q];\n blocks[i][q] = blocks[i][q + 1];\n blocks[i][q + 1] = aux;\n pom = indexes[q];\n indexes[q] = indexes[q + 1];\n indexes[q + 1] = pom;\n }\n }\n }\n\n // create sparse structure\n int n = elem.getNEqs() * elem.nBasis;\n for (int k = 0; k < n; k++) {\n for (int q = 0; q < nBlockRow; q++) {\n int[] glob = elems[indexes[q]].gIndex;\n for (int j = 0; j < glob.length; j++) { // row cycle\n JA[sj] = glob[j];\n sj++;\n }\n }\n IAaux[si] = sj;\n si++;\n }\n }\n\n IA = new int[si];\n System.arraycopy(IAaux, 0, IA, 0, si);\n IAaux = null;\n\n // Find the indices to the diagonal entries for ILU(0)\n diagind = findDiagonalIndices(dofs, JA, IA);\n }", "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n assertEquals(stat1, repo.getLocalStatistics(K1, null));\n assertEquals(stat1, repo.getLocalStatistics(K2, AffinityTopologyVersion.ZERO));\n\n repo.clearLocalPartitionsStatistics(K1, null);\n\n assertNull(repo.getLocalStatistics(K1, AffinityTopologyVersion.ZERO));\n assertEquals(stat2, repo.getLocalStatistics(K2, null));\n }", "public int[][] calGrid(CensusData data){\n\t\tGridThread[] gt = new GridThread[THREAD_NUM];\n\t\tint[][] result = new int[y + 1][x + 1];\n\t\tint[] xOrY = new int[]{x, y};\n\t\tString[][] lock = new String[y + 1][x + 1];\n\t\tfor(int i = 0; i < y + 1; i++) {\n\t\t\tfor(int j = 0; j < x + 1; j++) {\n\t\t\t\tlock[i][j] = i + \",\" + j;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < THREAD_NUM - 1; i++) {\n\t\t\tint lo = i * (data.data_size / THREAD_NUM);\n\t\t\tint hi = (i + 1) * (data.data_size / THREAD_NUM);\n\t\t\tgt[i] = new GridThread(lo, hi, lock, result, map, xOrY, data);\n\t\t\tgt[i].start();\n\t\t}\n\t\tint lo = (THREAD_NUM -1 ) * (data.data_size / THREAD_NUM);\n\t\tgt[THREAD_NUM - 1] = new GridThread(lo, data.data_size, lock, result, map, xOrY, data);\n\t\tgt[THREAD_NUM - 1].start();\n\t\tfor(int i = 0; i < THREAD_NUM; i++) {\n\t\t\ttry {\n\t\t\t\tgt[i].join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "protected void execute() {\n\n\t\ttry {\n\t\t\tmatrixC = new Integer[matrixA.length][matrixA.length];\n\t\t\tWorkerThread2[] threads = new WorkerThread2[matrixA.length]; // Criando as threads\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i] = new WorkerThread2(i, matrixA, matrixB, matrixC);\n\t\t\t\tthreads[i].start();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i].join();\n\t\t\t}\n\t\t}catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t}", "private Matrix performPlanarCalibration(ArrayList<double[]> points2d_in, ArrayList<double[]> points3d_in, int planeID) {\n\t\tint numberOfPoints = points2d_in.size();\n\t\tMatrix A = new Matrix(numberOfPoints * 2, 8);\n\t\tMatrix B = new Matrix(numberOfPoints * 2, 1);\n\t\tint coordinateIndex = 0;\n\t\tif (planeID == 0) coordinateIndex = 1;\n\t\tif (planeID == 1) coordinateIndex = 0;\n\t\tfor (int i = 0; i < numberOfPoints; i++) {\n\t\t\tint c = 0;\n\t\t\tA.set(2*i, c++, points3d_in.get(i)[coordinateIndex]);\n\t\t\tA.set(2*i, c++, points3d_in.get(i)[2]);\n\t\t\tA.set(2*i, c++, 1.0);\n\t\t\tA.set(2*i, c++, 0.0);\n\t\t\tA.set(2*i, c++, 0.0);\n\t\t\tA.set(2*i, c++, 0.0);\n\t\t\tA.set(i << 1, c++, -points2d_in.get(i)[0] * points3d_in.get(i)[coordinateIndex]);\n\t\t\tA.set(i << 1, c++, -points2d_in.get(i)[0] * points3d_in.get(i)[2]);\n\t\t\tc = 0;\n\t\t\tA.set(i * 2 + 1, c++, 0.0);\n\t\t\tA.set(i * 2 + 1, c++, 0.0);\n\t\t\tA.set(i * 2 + 1, c++, 0.0);\n\t\t\tA.set(i * 2 + 1, c++, points3d_in.get(i)[coordinateIndex]);\n\t\t\tA.set(i * 2 + 1, c++, points3d_in.get(i)[2]);\n\t\t\tA.set(i * 2 + 1, c++, 1.0);\n\t\t\tA.set(i * 2 + 1, c++, -(points2d_in).get(i)[1] * (points3d_in).get(i)[coordinateIndex]);\n\t\t\tA.set(i * 2 + 1, c++, -(points2d_in).get(i)[1] * (points3d_in).get(i)[2]);\n\t\t\tB.set(i * 2, points2d_in.get(i)[0]);\n\t\t\tB.set(i * 2 + 1, points2d_in.get(i)[1]);\n\t\t}\n\t\tMatrix x = A.inverse().mul(B);\n\t\tMatrix prj = new Matrix(3, 3);\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tprj.set(i / 3, i % 3, x.get(i, 0));\n\t\t}\n\t\tprj.set(2, 2, 1.0);\n\t\tMatrix P = new Matrix(3, 4);\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tint c = 0;\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (j == planeID)\n\t\t\t\t\tP.set(i, j, 0.0);\n\t\t\t\telse\n\t\t\t\t\tP.set(i, j, prj.get(i, c++));\n\t\t\t}\n\t\t}\n\t\treturn P;\n\t}", "private void performMT() {\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int i, j, k, m;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n final int xdim = newDimLengths[0];\r\n final int ydim = newDimLengths[1];\r\n final int zdim = (newDimLengths.length == 3) ? newDimLengths[2] : 1;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n fireProgressStateChanged( -1, null, \"Centering data before FFT algorithm ...\");\r\n center(realData, imagData);\r\n }\r\n\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n\r\n //System.out.println(\"Number of Threads: \" + nthreads);\r\n if (threadStopped) {\r\n return;\r\n }\r\n /**\r\n * Initialize the progress step.\r\n */\r\n if (image25D) {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim) / Math.log(2.0))));\r\n } else {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim * zdim) / Math.log(2.0))));\r\n }\r\n\r\n final CountDownLatch doneSignalX = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_YZ);\r\n for (i = 0; i < nthreads; i++) {\r\n \tfinal int nslices;\r\n \tif (zdim < nthreads) {\r\n \t if (i < zdim) {\r\n \t\t nslices = 1;\r\n \t }\r\n \t else {\r\n \t\t nslices = 0;\r\n \t }\r\n \t}\r\n \telse {\r\n nslices = zdim / nthreads;\r\n \t} \r\n final int sliceLen = xdim * ydim;\r\n final int start = i * nslices * sliceLen;\r\n final int end = start + 1;\r\n final int length = (i + 1) * nslices * sliceLen;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, 1, xdim, length, dir);\r\n doneSignalX.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalX.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n final CountDownLatch doneSignalY = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_ZX);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices;\r\n final int end = (i + 1) * nslices;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim, xdim * ydim, xdim * ydim * zdim, dir);\r\n doneSignalY.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalY.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (dimNumber == 3) {\r\n final CountDownLatch doneSignalZ = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_XY);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices * xdim;\r\n final int end = (i + 1) * nslices * xdim;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim * ydim, xdim * ydim * zdim, xdim * ydim * zdim, dir);\r\n doneSignalZ.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalZ.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n fireProgressStateChanged( -1, null, \"Centering data after inverse FFT ...\");\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n \r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t\trealData[i] = realData[i] / newSliceSize;\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n\r\n }", "public abstract void rowsUpdated(int firstRow, int endRow);", "public void sample_U() {\n\t\t//Note, sumU and sumUUT are update in the update function itself. Hence, when\n\t\t//sample_U is called after the 1 iteration of all vertices, we already have the sum.\n\t\t\n\t\t//meanU = (SUM U_i)/N\n\t\tRealVector meanU = params.sumU.mapMultiply(1.0/datasetDesc.getNumUsers());\n\t\t//meanS = (SUM (U_i*U_i')/N)\n\t\tRealMatrix meanS = params.sumUUT.scalarMultiply(1.0/datasetDesc.getNumUsers());\n\t\t\n\t\t//mu0 = (beta0*mu0 + meanU)/(beta0 + N)\n\t\tRealVector mu0_ = (params.mu0_U.mapMultiply(params.beta0_U).add(meanU)).mapDivide((params.beta0_U + datasetDesc.getNumUsers()));\n\t\t\n\t\tdouble beta0_ = params.beta0_U + datasetDesc.getNumUsers();\n\t\tint nu0_ = params.nu0_U + datasetDesc.getNumUsers();\n\t\t\n\t\t//W0 = inv( inv(W0) + N*meanS + (beta0*N/(beta0 + N))(mu0 - meanU)*(mu0 - meanU)'\n\t\tRealVector tmp = params.mu0_U.subtract(meanU);\n\t\tRealMatrix mu0_d_meanU_T = tmp.outerProduct(tmp); \n\t\tmu0_d_meanU_T = mu0_d_meanU_T.scalarMultiply((params.beta0_U*datasetDesc.getNumUsers()/(params.beta0_U + datasetDesc.getNumUsers())));\n\t\tRealMatrix invW0_ = params.invW0_U.add(params.sumUUT).add(mu0_d_meanU_T);\n\t\t\n\t\t//Update all the values.\n\t\tparams.mu0_U = mu0_;\n\t\tparams.beta0_U = beta0_;\n\t\tparams.nu0_U = nu0_;\n\t\tparams.invW0_U = invW0_;\n\t\tparams.W0_U = (new LUDecompositionImpl(invW0_)).getSolver().getInverse();\n\t\t\n\t\t//Sample lambda_U and mu_U from the Gaussian Wishart distribution\n\t\t// http://en.wikipedia.org/wiki/Normal-Wishart_distribution#Generating_normal-Wishart_random_variates\n\t\t//Draw lambda_U from Wishart distribution with scale matrix w0_U.\n\t\tparams.lambda_U = sampleWishart(params.invW0_U, params.nu0_U);\n\t\t//Compute cov = inv(beta0*lambda) \n\t\tRealMatrix cov = (new LUDecompositionImpl(params.lambda_U.scalarMultiply(params.beta0_U))).getSolver().getInverse();\n\t\t//Draw mu_U from multivariate normal dist with mean mu0_U and covariance inv(beta0*lambda)\n\t\tMultivariateNormalDistribution dist = new MultivariateNormalDistribution(params.mu0_U.toArray(), \n\t\t\t\tcov.getData());\n\t\tparams.mu_U = new ArrayRealVector(dist.sample());\n\t\t\n\t\t//Reset the sum of latent factors.\n\t\tparams.sumU.mapMultiply(0);\n\t\tparams.sumUUT.scalarMultiply(0);\n\t}", "public abstract void update(Grid theOldGrid, Grid theNewGrid);", "private static void mergeNext() {\n\t\tString ids[] = getMinGeneIds();\n\t\tString minI = ids[0];\n\t\tString minJ = ids[1];\n\t\tString newEntry = createNewEntry(minI, minJ);\n\t\tTreeMap<String, Double> prevI = distanceMatrix.remove(minI);\n\t\tTreeMap<String, Double> prevJ = distanceMatrix.remove(minJ);\n\t\tminMatrix.remove(minI);minMatrix.remove(minJ);\n\t\tallClusters.remove(minI);allClusters.remove(minJ);\n\t\tTreeMap<String, Double> newTemp = new TreeMap<String, Double>(); \n\t\tfor(String c: allClusters) {\n\t\t\tTreeMap<String, Double> temp = distanceMatrix.get(c);\n\t\t\ttemp.remove(minI);temp.remove(minJ);\n\t\t\tdouble dist1 = prevI.get(c);\n\t\t\tdouble dist2 = prevJ.get(c);\n\t\t\tif(dist1 < dist2) {\n\t\t\t\tnewTemp.put(c,dist1);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist1);\n\t\t\t\ttemp.put(newEntry, dist1);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist1);\n\t\t\t} else {\n\t\t\t\tnewTemp.put(c,dist2);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist2);\n\t\t\t\ttemp.put(newEntry, dist2);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist2);\n\t\t\t}\n\t\t\tdistanceMatrix.put(c, temp);\n\t\t}\n\t\tdistanceMatrix.put(newEntry, newTemp);\n\t\tallClusters.add(newEntry);\n\t\ttotalCluster = allClusters.size();\n\t}", "public void updateExtraTransformMatrix(float[] fArr) {\n }", "public synchronized void updateAllocationIdsFromMaster(final Set<String> activeAllocationIds,\n final Set<String> initializingAllocationIds) {\n assignedAllocationIds.removeIf(\n aId -> activeAllocationIds.contains(aId) == false && initializingAllocationIds.contains(aId) == false);\n assignedAllocationIds.addAll(activeAllocationIds);\n assignedAllocationIds.addAll(initializingAllocationIds);\n for (String activeId : activeAllocationIds) {\n if (inSyncLocalCheckpoints.containsKey(activeId) == false) {\n inSyncLocalCheckpoints.put(activeId, UNASSIGNED_SEQ_NO);\n }\n }\n inSyncLocalCheckpoints.removeAll(key -> assignedAllocationIds.contains(key) == false);\n }", "public void responsibities(){\n\n // calculate the r matrix \n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv = X.get(n);\n for (int k=0 ; k<K ; ++k){\n RealVector[] voxels = sv.getVoxels();\n double E = 0.0;\n for (RealVector vox : voxels){\n RealVector diff = vox.subtract(m[k]);\n E = E + nu[k]*W[k].operate(diff).dotProduct(diff);\n }\n lnRho[k] = X.getD()/beta[k] + lnPi[k] + 0.5*lnLambdaTilde[k] - Dln2Pi2 - 0.5*E;\n }\n double[] rs = normalizeLogP(lnRho);\n for (int k=0 ; k<K ; ++k){\n r.setEntry(n, k, rs[k]);\n }\n }\n }", "@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }", "void synchronizeHostData(INDArray array);", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "protected void createWeightMatrix(Folksonomy trainingData) throws Exception\n\t{\n\t\tint i, j, k;\n\t\tint num_tag = trainingData.numTags();\n\t\tint num_user = trainingData.numUsers();\n\t\tint num_item = trainingData.numItems();\n\t\tint num_temp, itemIndex, tagIndex;\n\t\tUserTagProfile utp;\n\t\tAnnotatedItem ai;\n\t\tArrayList<Integer> tags;\n\t\tweight_ti = new SparseMatrix(num_tag, num_item);\n\t\tweight_ut = new SparseMatrix(num_user, num_tag);\n\t\tint[] t_sum = new int[num_tag];\n\t\tint[] u_sum = new int[num_user];\n\t\tfor (i = 0; i < num_user; i++)\n\t\t{\n\t\t\tutp = trainingData.getUserProfile(trainingData.getUserByIndex(i));\n\t\t\tnum_temp = utp.numItems();\n\t\t\tfor (j = 0; j < num_temp; j++)\n\t\t\t{\n\t\t\t\tai = utp.getAnnotatedItem(j);\n\t\t\t\ttags = ai.getTags();\n\t\t\t\titemIndex = trainingData.getItemIndex(ai.getItemId());\n\t\t\t\tfor (k = 0; k < tags.size(); k++)\n\t\t\t\t{\n\t\t\t\t\ttagIndex = trainingData.getTagIndex(tags.get(k));\n\t\t\t\t\tt_sum[tagIndex] += 1;\n\t\t\t\t\tweight_ti.set(tagIndex, itemIndex,\n\t\t\t\t\t\t\tweight_ti.at(tagIndex, itemIndex) + 1);\n\t\t\t\t\tweight_ut.set(i, tagIndex, weight_ut.at(i, tagIndex) + 1);\n\t\t\t\t}\n\t\t\t\tu_sum[i] += ai.numTags();\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < num_tag; i++)\n\t\t{\n\t\t\tfor (j = 0; j < num_item; j++)\n\t\t\t{\n\t\t\t\tif (weight_ti.containRowCol(i, j))\n\t\t\t\t\tweight_ti.set(i, j, weight_ti.at(i, j) / t_sum[i]);\n\t\t\t}\n\t\t\tfor (k = 0; k < num_user; k++)\n\t\t\t{\n\t\t\t\tif (weight_ut.containRowCol(k, i))\n\t\t\t\t\tweight_ut.set(k, i, weight_ut.at(k, i) / u_sum[k]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic int[][] computeAssignments( final double[][] matrix )\n\t{\n\t\tfinal int nlines = matrix.length;\n\t\tif ( nlines == 0 )\n\t\t{\n\t\t\t// no spot\n\t\t\treturn new int[][] { {} };\n\t\t}\n\t\tfinal int ncols = matrix[ 0 ].length;\n\t\tif ( nlines <= 1 && ncols <= 1 )\n\t\t\treturn new int[][] { {} };\n\n\t\t// subtract minimum value from rows and columns to create lots of zeroes\n\t\treduceMatrix( matrix );\n\n\t\t// non negative values are the index of the starred or primed zero in\n\t\t// the row or column\n\t\tfinal int[] starsByRow = new int[ matrix.length ];\n\t\tArrays.fill( starsByRow, -1 );\n\t\tfinal int[] starsByCol = new int[ matrix[ 0 ].length ];\n\t\tArrays.fill( starsByCol, -1 );\n\t\tfinal int[] primesByRow = new int[ matrix.length ];\n\t\tArrays.fill( primesByRow, -1 );\n\n\t\t// 1s mean covered, 0s mean not covered\n\t\tfinal int[] coveredRows = new int[ matrix.length ];\n\t\tfinal int[] coveredCols = new int[ matrix[ 0 ].length ];\n\n\t\t// star any zero that has no other starred zero in the same row or\n\t\t// column\n\t\tinitStars( matrix, starsByRow, starsByCol );\n\t\tcoverColumnsOfStarredZeroes( starsByCol, coveredCols );\n\n\t\twhile ( !allAreCovered( coveredCols ) )\n\t\t{\n\n\t\t\tint[] primedZero = primeSomeUncoveredZero( matrix, primesByRow, coveredRows, coveredCols );\n\n\t\t\twhile ( primedZero == null )\n\t\t\t{\n\t\t\t\t// keep making more zeroes until we find something that we can\n\t\t\t\t// prime (i.e. a zero that is uncovered)\n\t\t\t\tmakeMoreZeroes( matrix, coveredRows, coveredCols );\n\t\t\t\tprimedZero = primeSomeUncoveredZero( matrix, primesByRow, coveredRows, coveredCols );\n\t\t\t}\n\n\t\t\t// check if there is a starred zero in the primed zero's row\n\t\t\tfinal int columnIndex = starsByRow[ primedZero[ 0 ] ];\n\t\t\tif ( -1 == columnIndex )\n\t\t\t{\n\n\t\t\t\t// if not, then we need to increment the zeroes and start over\n\t\t\t\tincrementSetOfStarredZeroes( primedZero, starsByRow, starsByCol, primesByRow );\n\t\t\t\tArrays.fill( primesByRow, -1 );\n\t\t\t\tArrays.fill( coveredRows, 0 );\n\t\t\t\tArrays.fill( coveredCols, 0 );\n\t\t\t\tcoverColumnsOfStarredZeroes( starsByCol, coveredCols );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\t// cover the row of the primed zero and uncover the column of\n\t\t\t\t// the starred zero in the same row\n\t\t\t\tcoveredRows[ primedZero[ 0 ] ] = 1;\n\t\t\t\tcoveredCols[ columnIndex ] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// ok now we should have assigned everything\n\t\t// take the starred zeroes in each column as the correct assignments\n\n\t\tfinal int[][] retval = new int[ matrix.length ][];\n\t\tfor ( int i = 0; i < starsByCol.length; i++ )\n\t\t{\n\t\t\tretval[ i ] = new int[] { starsByCol[ i ], i };\n\t\t}\n\t\treturn retval;\n\n\t}" ]
[ "0.58393556", "0.5804161", "0.58023417", "0.57616156", "0.57610536", "0.5577702", "0.54752606", "0.5472715", "0.54566216", "0.54511464", "0.54409665", "0.5436339", "0.5400433", "0.53854245", "0.53831166", "0.5353626", "0.5331179", "0.5310277", "0.5275458", "0.5226846", "0.52137434", "0.519672", "0.51826227", "0.5170727", "0.5165206", "0.5162365", "0.5152405", "0.5148941", "0.51409924", "0.5139528", "0.5137855", "0.51253927", "0.5102431", "0.5094498", "0.50869167", "0.5051589", "0.5049009", "0.504838", "0.5028256", "0.50203764", "0.49919632", "0.49877954", "0.4975425", "0.49681073", "0.49661672", "0.49643454", "0.4959567", "0.4957788", "0.49548924", "0.49514404", "0.4947966", "0.4939048", "0.49259928", "0.49222255", "0.49215052", "0.49166986", "0.49115896", "0.49032205", "0.4895009", "0.48945403", "0.48868686", "0.48795763", "0.48742834", "0.4874032", "0.4872836", "0.4860259", "0.4853724", "0.48415026", "0.4835673", "0.48159045", "0.48118386", "0.48064202", "0.48026714", "0.48018637", "0.47968847", "0.47942403", "0.47915748", "0.47855493", "0.47793168", "0.47713247", "0.4768187", "0.47623983", "0.47545442", "0.4754531", "0.475426", "0.47526366", "0.47521", "0.47503257", "0.47447386", "0.4744294", "0.47416922", "0.47407794", "0.47237948", "0.4714643", "0.47090974", "0.47073644", "0.47028705", "0.4701622", "0.46986723", "0.46979052" ]
0.6141819
0
Merge the updates according to the updates of the grooms.
private void mergeUpdates( BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer) throws IOException { int numMessages = peer.getNumCurrentMessages(); boolean converge = false; if (numMessages == 0) { // converges converge = true; return; } double avgTrainingError = 0; FloatMatrix[] matricesUpdates = null; FloatMatrix[] prevMatricesUpdates = null; while (peer.getNumCurrentMessages() > 0) { ParameterMessage message = peer.getCurrentMessage(); if (matricesUpdates == null) { matricesUpdates = message.getCurMatrices(); prevMatricesUpdates = message.getPrevMatrices(); } else { RecurrentLayeredNeuralNetwork.matricesAdd(matricesUpdates, message.getCurMatrices()); RecurrentLayeredNeuralNetwork.matricesAdd(prevMatricesUpdates, message.getPrevMatrices()); } avgTrainingError += message.getTrainingError(); } if (numMessages > 1) { avgTrainingError /= numMessages; for (int i = 0; i < matricesUpdates.length; ++i) { matricesUpdates[i] = matricesUpdates[i].divide(numMessages); prevMatricesUpdates[i] = prevMatricesUpdates[i].divide(numMessages); } } this.inMemoryModel.updateWeightMatrices(matricesUpdates); this.inMemoryModel.setPrevWeightMatrices(prevMatricesUpdates); // check convergence if (peer.getSuperstepCount() > 0 && iterations % convergenceCheckInterval == 0) { if (prevAvgTrainingError < curAvgTrainingError) { // error cannot decrease any more converge = true; } // update prevAvgTrainingError = curAvgTrainingError; LOG.info("Training error: " + curAvgTrainingError + " at " + (iterations) + " iteration."); curAvgTrainingError = 0; } curAvgTrainingError += avgTrainingError / convergenceCheckInterval; this.isConverge = converge; if (iterations < maxIterations) { // broadcast updated weight matrices for (String peerName : peer.getAllPeerNames()) { ParameterMessage msg = new ParameterMessage(0, converge, this.inMemoryModel.getWeightMatrices(), this.inMemoryModel.getPrevMatricesUpdates()); if (!peer.getPeerName().equals(peerName)) peer.send(peerName, msg); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime() % aPassengerArrival.getTimePeriod() == 0){\n \n aBuildingManager.updatePassengerRequestsOnFloor(onFloor, aPassengerArrival.getNumPassengers(),\n aPassengerArrival.getDestinationFloor());\n } \n }\n }\n }", "private void updateRooms(DataSnapshot roomsSnap) {\n // assuming there will not be many rooms that show up on the user's page setting to\n // an empty HashTable each time there's a change will not disrupt performance much.\n rooms.clear();\n for (DataSnapshot roomSnap : roomsSnap.getChildren()) {\n // adds the roomID and room to\n String roomID = roomSnap.getKey();\n Room room = roomSnap.getValue(Room.class);\n rooms.put(roomID, room);\n }\n\n if (rooms.size() == 0) {\n String noActiveRoomsText = \"No active rooms in this area. Please check again later.\";\n Toast.makeText(this, noActiveRoomsText, Toast.LENGTH_SHORT).show();\n }\n\n // Populates the join room ListView with all the appropriate room informatoin\n RoomAdapter roomAdapter = new RoomAdapter(this, rooms);\n roomList.setAdapter(roomAdapter);\n }", "public void mergeRooms(Vector<Integer> roomThatWasMatched2) {\n\t\tint room = roomThatWasMatched2.get(0);\r\n\t\tfor (int m=1; m<roomThatWasMatched2.size(); m++) { //notice that index 0 is for the room we are using\r\n\t\t\tmaze.map.remove(roomsThatWereMatched.get(m));\r\n//\t\t\tstartPaths.remove(roomThatWasMatched2.get(m));\r\n//\t\t\tdestinationPaths.remove(roomThatWasMatched2.get(m));\r\n\t\t\tfor ( Map.Entry<Integer, Vector<Edge>> entry: startPaths.entrySet() ) {\r\n\t\t\t\tVector<Edge> vectorOfEdges = entry.getValue();\r\n\t\t\t\tfor (int test=0; test<vectorOfEdges.size(); test++) { \r\n\t\t\t\t\tif( roomThatWasMatched2.get(m) == vectorOfEdges.get(test).StartRoom ){\r\n\t\t\t\t\t\tlog.debug(\"room \"+roomThatWasMatched2.get(m)+\" merged with \"+room);\r\n\t\t\t\t\t\tvectorOfEdges.get(test).StartRoom = room;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( roomThatWasMatched2.get(m) == vectorOfEdges.get(test).DestinationRoom ){\r\n\t\t\t\t\t\tlog.debug(\"room \"+roomThatWasMatched2.get(m)+\" merged with \"+room);\r\n\t\t\t\t\t\tvectorOfEdges.get(test).DestinationRoom = room;\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}", "void update(Room room);", "private synchronized void update() {\n if (upToDate) return; // nothing to do\n productionAndConsumption.clear();\n netProduction.clear();\n goodsUsed.clear();\n ProductionMap production = new ProductionMap();\n for (ColonyTile colonyTile : colony.getColonyTiles()) {\n List<AbstractGoods> p = colonyTile.getProduction();\n if (!p.isEmpty()) {\n production.add(p);\n ProductionInfo info = new ProductionInfo();\n info.addProduction(p);\n productionAndConsumption.put(colonyTile, info);\n for (AbstractGoods goods : p) {\n goodsUsed.add(goods.getType());\n netProduction.incrementCount(goods.getType().getStoredAs(), goods.getAmount());\n }\n }\n }\n\n GoodsType bells = colony.getSpecification().getGoodsType(\"model.goods.bells\");\n int unitsThatUseNoBells = colony.getSpecification().getInteger(\"model.option.unitsThatUseNoBells\");\n int amount = Math.min(unitsThatUseNoBells, colony.getUnitCount());\n ProductionInfo bellsInfo = new ProductionInfo();\n bellsInfo.addProduction(new AbstractGoods(bells, amount));\n productionAndConsumption.put(this, bellsInfo);\n netProduction.incrementCount(bells, amount);\n\n for (Consumer consumer : colony.getConsumers()) {\n Set<Modifier> modifier = consumer.getModifierSet(\"model.modifier.consumeOnlySurplusProduction\");\n List<AbstractGoods> goods = new ArrayList<AbstractGoods>();\n for (AbstractGoods g : consumer.getConsumedGoods()) {\n goodsUsed.add(g.getType());\n AbstractGoods surplus = new AbstractGoods(production.get(g.getType()));\n if (modifier.isEmpty()) {\n surplus.setAmount(surplus.getAmount() + getGoodsCount(g.getType()));\n } else {\n surplus.setAmount((int) FeatureContainer.applyModifierSet(surplus.getAmount(),\n null, modifier));\n }\n goods.add(surplus);\n }\n ProductionInfo info = null;\n if (consumer instanceof Building) {\n Building building = (Building) consumer;\n AbstractGoods output = null;\n GoodsType outputType = building.getGoodsOutputType();\n if (outputType != null) {\n goodsUsed.add(outputType);\n output = new AbstractGoods(production.get(outputType));\n output.setAmount(output.getAmount() + getGoodsCount(outputType));\n }\n info = building.getProductionInfo(output, goods);\n } else if (consumer instanceof Unit) {\n info = ((Unit) consumer).getProductionInfo(goods);\n } else if (consumer instanceof BuildQueue) {\n info = ((BuildQueue<?>) consumer).getProductionInfo(goods);\n }\n if (info != null) {\n production.add(info.getProduction());\n production.remove(info.getConsumption());\n for (AbstractGoods g : info.getProduction()) {\n netProduction.incrementCount(g.getType().getStoredAs(), g.getAmount());\n }\n for (AbstractGoods g : info.getConsumption()) {\n netProduction.incrementCount(g.getType().getStoredAs(), -g.getAmount());\n }\n productionAndConsumption.put(consumer, info);\n }\n }\n this.productionAndConsumption = productionAndConsumption;\n this.netProduction = netProduction;\n upToDate = true;\n }", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }", "public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }", "private void updateMergedEntry() {\n // Check if the type has changed\n if (!identicalTypes && !typeRadioButtons.isEmpty() && typeRadioButtons.get(0).isSelected()) {\n mergedEntry.setType(leftEntry.getType());\n } else {\n mergedEntry.setType(rightEntry.getType());\n }\n\n // Check the potentially different fields\n for (Field field : differentFields) {\n if (!radioButtons.containsKey(field)) {\n // May happen during initialization -> just ignore\n continue;\n }\n if (radioButtons.get(field).get(LEFT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, leftEntry.getField(field).get()); // Will only happen if field exists\n } else if (radioButtons.get(field).get(RIGHT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, rightEntry.getField(field).get()); // Will only happen if field exists\n } else {\n mergedEntry.clearField(field);\n }\n }\n }", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n updateRooms(dataSnapshot);\n }", "public void updateRoomChanges_DB() throws SQLException{\n \n //update all rooms\n for(int i=0;i<roomCounter;i++){\n String sqlstmt = \"UPDATE \\\"APP\\\".\\\"HOTELROOMS\\\" \"\n + \"SET ISAVAILABLE = \"+myHotel[i].getStatus()\n + \", OCCUPANT = '\" + myHotel[i].getOccupant()\n + \"', GUESTID = \" + myHotel[i].getOccupantID()\n + \" , STARTDATE = '\"+ myHotel[i].getStartDate()\n + \"', ENDDATE = '\"+ myHotel[i].getEndDate()\n + \"' WHERE ROOMNUMBER = \" + myHotel[i].getRoomNum();\n \n cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n }\n \n }", "public void updateRoom(Room room);", "private void populateRooms(){\n\n for(int i = 0; i<squares.size(); i++){\n for(int j = 0; j<squares.get(i).size(); j++){\n if(squares.get(i).get(j) != null) {\n getRoom(squares.get(i).get(j).getColor()).addSquare(squares.get(i).get(j));\n squares.get(i).get(j).setRoom(getRoom(squares.get(i).get(j).getColor()));\n\n }\n }\n }\n }", "private void update() {\n gsm.update();\n }", "public void merge() {\n\t\tfor(int i = 1;i<crystalQuantity.length;i++) {\n\t\t\tif (crystalQuantity[i] >= 2) { \n\t\t\t\tcrystalQuantity[i] -= 2; // remove two of the current tier\n\t\t\t\tcrystalQuantity[i+1] += 1; // add one of the new tier\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<dustQuantity.length;i++) {\n\t\t\tif (dustQuantity[i] >= 2) { \n\t\t\t\tdustQuantity[i] -= 2; // remove two of the current tier\n\t\t\t\tcrystalQuantity[i+1] += 1; // add one of the new tier\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(!automerge) {\n\t\t\tcollection();\n\t\t}\n\t\t\n\t}", "private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}", "public void automerge() {\n\t\tif (automerge) {\n\t\t\tfor(int i = 0; i<create_modifier+1;i++) {\n\t\t\t\tmerge();\n\t\t\t}\n\t\tif(autoidentify) {\n\t\t\tauto_identify_crystal(autoIdentifyTier); // replace this eventually\n\t\t}\n\t\t\t//collection();\n\t\t}\n\t}", "protected void updateLocalData(Building[] data){\n new DBHandler(cx).updateBuildings(data);\n }", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }", "private void updatePolygons() {\n for ( Polygon p : polygons ) {\n p.update();\n }\n }", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "@Override\r\n\tpublic ArrayList<List<ConcurrentHashMap<String, Object>>> update(Nationals religions) {\n\t\treturn null;\r\n\t}", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "private void addUpdateablesToGameLoop(){\n GameLoop.getInstance().addUpdateables(playerController.getPlayers().get(0));\n for (Enemy e : enemyController.getEnemies()){\n GameLoop.getInstance().addUpdateables(e);\n }\n\n GameLoop.getInstance().addUpdateables(foodController.getFood().get(0));\n }", "public void update()\n {\n //Update the asteroids\n for (int i = 0; i < numAsteroids; i++)\n {\n asteroids[i].update(i);\n }\n }", "public static void mergeJsonIntoBase(List<Response> r1, List<Response> r2){\n //List of json objects in the new but not old json\n List<String> toAdd = new ArrayList<>();\n for(int i = 0; i < r1.size(); i ++){\n String r1ID = r1.get(i).getId();\n for(int j = 0; j < r2.size(); j ++){\n String r2ID = r2.get(j).getId();\n if(r1ID.equals(r2ID)){\n compareJson(r1.get(i), r2.get(j));\n }else{\n if (!toAdd.contains(r2ID)) {\n toAdd.add(r2ID);\n }\n }\n }\n }\n //Add all new elements into the base element\n List<Response> remainderToAdd = getElementListById(toAdd, r2);\n\n for(Response r: remainderToAdd){\n r1.add(r);\n }\n }", "public Vector3[][] update() {\n\t\t\tint count = positions.size();\n\t\t\tint orientationsSize = orientations.size();\n\t\t\tif (orientationsSize < count)\n\t\t\t\tcount = orientationsSize;\n\t\t\t\n\t\t\t// Pop from queues to results\n\t\t\tVector3[][] result = new Vector3[count][2];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tresult[i][0] = positions.poll();\n\t\t\t\tresult[i][1] = orientations.poll();\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}", "public void update() {\r\n for (SGSystem sys : systems.toArray(new SGSystem[0])) {\r\n sys.update();\r\n }\r\n }", "public static void updateAllergy(final Context context, final HashMap<String, String> data) {\n\n // Set initial state\n loader.setVisibility(View.VISIBLE);\n allergyRecyclerViewList.setVisibility(View.GONE);\n\n // Url\n String url = ServiceUrls.KEY_HEALTHBOOK_ALLERGIES\n .concat(StringConstants.KEY_UPDATE)\n .concat(data.get(StringConstants.KEY_ALLERGY_P_ID));\n\n // Set Data\n final HashMap<String, Object> postData = new HashMap<>();\n postData.put(StringConstants.KEY_ALLERGY_ID, Integer.valueOf(data.get(StringConstants.KEY_ALLERGY_ID)));\n postData.put(StringConstants.KEY_ALLERGY_TYPE, data.get(StringConstants.KEY_ALLERGY_TYPE));\n postData.put(StringConstants.KEY_ALLERGY_KIND_OF_REACTION, data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n postData.put(StringConstants.KEY_START_DATE,\n DateTimeUtils.convertTimestampToUTC(Long.valueOf(data.get(StringConstants.KEY_ALLERGY_DATE_OF_ONSET))));\n postData.put(StringConstants.KEY_COMMENT, data.get(StringConstants.KEY_COMMENT));\n\n // Set Headers\n final HashMap<String, String> headers = new HashMap<>();\n headers.put(StaticConstants.KEY_AUTHORIZATION, StaticConstants.KEY_BEARER.concat(\" \")\n .concat(SharedPreferenceService.getValue(context, StringConstants.KEY_TOKEN)));\n\n if (Validation.isConnected(context)) {\n\n // API Call\n APICallService.PutAPICall(activity, context, url, postData, headers, new APIInterface() {\n\n @Override\n public void onSuccess(JSONObject response) {\n\n try {\n\n /**\n * Fetch and Update Local Database\n */\n Allergy mAllergyModel =\n Allergy.find(Allergy.class, \"p_id = ?\", data.get(StringConstants.KEY_ALLERGY_P_ID)).get(0);\n\n mAllergyModel.setReaction(data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n mAllergyModel.setStartDate(\n DateTimeUtils.convertTimestampToDate(Long.valueOf(data.get(StringConstants.KEY_ALLERGY_DATE_OF_ONSET))));\n mAllergyModel.setComment(data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n mAllergyModel.save();\n\n // Notify adapter\n readAllergyList(context);\n\n } catch (Exception e) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Log error\n ErrorHandlers.handleError(activity);\n Crashlytics.logException(e);\n }\n }\n\n @Override\n public void onError(VolleyError error) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n }\n });\n\n } else {\n\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Internet Not Available\n ErrorHandlers.handleInternetConnectionFailure(activity);\n }\n }", "private OtherChargesDTO[] updateOtherCharges(OtherChargesDTO[] newOthers , OtherChargesDTO[] availOthers){\n\t\t\n\t\tfor(int i = 0; i < newOthers.length; i++){\t\t\t\t\n\t\t\tfor(int j = 0; j < availOthers.length; j++){\n\t\t\t\tif(newOthers[i].getStationCode().equals(availOthers[j].getStationCode())){\n\t\t\t\t\tif(newOthers[i].getGsc() != 0)\n\t\t\t\t\t\tavailOthers[j].setGsc(newOthers[i].getGsc());\n\t\t\t\t\tif(newOthers[i].getLrCharge() != 0)\n\t\t\t\t\t\tavailOthers[j].setLrCharge(newOthers[i].getLrCharge());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn availOthers;\n\t}", "private void refreshUnreadCounters() {\n Set<String> roomIdsList;\n\n synchronized (mUpdatedRoomIdList) {\n roomIdsList = new HashSet<>(mUpdatedRoomIdList);\n mUpdatedRoomIdList.clear();\n }\n // refresh the unread counter\n for (String roomId : roomIdsList) {\n Room room = mStore.getRoom(roomId);\n\n if (null != room) {\n room.refreshUnreadCounter();\n }\n }\n }", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "public void combineHotelData(ThreadSafeHotelData singleHotelData){\n\t\tlock.lockWrite();\n\t\ttry{\n\t\t\treviewMap.putAll(singleHotelData.getReviewMap());\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockWrite();\n\t\t}\n\t}", "public final void updatesComplete()\r\n\t\t{\r\n\t\t\t// get the builder to build itself\r\n\t\t\tCreate();\r\n\r\n\t\t\t// inform the parent\r\n\t\t\tsuper.updatesComplete();\r\n\t\t}", "public void update() {\n\t\tupdateParticles();\n\t\tupdateSprings();\n\n\t\tif (groups != null) {\n\t\t\tfor (VParticleGroup g : groups) {\n\t\t\t\tg.update();\n\t\t\t}\n\t\t}\n\t}", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "public void updateRound() {\n\t\t//System.out.println(\" Updating the round...\");\n\t\tif (loads.size() < 1)\n\t\t\treturn;\n\n\t\tArrayList<AidLoad> tempLoads = new ArrayList<AidLoad>(loads);\n\n\t\tfor (int i = 1; i < tempLoads.size(); i++) {\n\t\t\tAidLoad p = tempLoads.get(i - 1);\n\t\t\tdouble dist = Double.MAX_VALUE;\n\t\t\tint best = -1;\n\n\t\t\tfor (int j = i; j < tempLoads.size(); j++) {\n\t\t\t\tAidLoad pj = tempLoads.get(j);\n\t\t\t\tdouble pjdist = pj.deliveryLocation.distance(p.deliveryLocation);\n\t\t\t\tif (pjdist < dist) {\n\t\t\t\t\tdist = pjdist;\n\t\t\t\t\tbest = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAidLoad closestLoad = tempLoads.remove(best);\n\t\t\ttempLoads.add(i, closestLoad);\n\t\t}\n\t\tmyLoad = tempLoads;\n\t}", "private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<String,Room>();\r\n\t\t\r\n\t\tArrayList<Coordinates> spaEntrances = new ArrayList<Coordinates>();\r\n\t\tspaEntrances.add(grid[5][6].getCoord());\r\n\r\n\t\tArrayList<Coordinates> theatreEntrances = new ArrayList<Coordinates>();\r\n\t\ttheatreEntrances.add(grid[13][2].getCoord());\r\n\t\ttheatreEntrances.add(grid[10][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> livingRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tlivingRoomEntrances.add(grid[13][5].getCoord());\r\n\t\tlivingRoomEntrances.add(grid[16][9].getCoord());\r\n\r\n\t\tArrayList<Coordinates> observatoryEntrances = new ArrayList<Coordinates>();\r\n\t\tobservatoryEntrances.add(grid[21][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> patioEntrances = new ArrayList<Coordinates>();\r\n\t\tpatioEntrances.add(grid[5][10].getCoord());\r\n\t\tpatioEntrances.add(grid[8][12].getCoord());\r\n\t\tpatioEntrances.add(grid[8][16].getCoord());\r\n\t\tpatioEntrances.add(grid[5][18].getCoord());\r\n\r\n\t\t// ...\r\n\t\tArrayList<Coordinates> poolEntrances = new ArrayList<Coordinates>();\r\n\t\tpoolEntrances.add(grid[10][17].getCoord());\r\n\t\tpoolEntrances.add(grid[17][17].getCoord());\r\n\t\tpoolEntrances.add(grid[14][10].getCoord());\r\n\r\n\t\tArrayList<Coordinates> hallEntrances = new ArrayList<Coordinates>();\r\n\t\thallEntrances.add(grid[22][10].getCoord());\r\n\t\thallEntrances.add(grid[18][13].getCoord());\r\n\t\thallEntrances.add(grid[18][14].getCoord());\r\n\r\n\t\tArrayList<Coordinates> kitchenEntrances = new ArrayList<Coordinates>();\r\n\t\tkitchenEntrances.add(grid[6][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> diningRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tdiningRoomEntrances.add(grid[12][18].getCoord());\r\n\t\tdiningRoomEntrances.add(grid[16][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> guestHouseEntrances = new ArrayList<Coordinates>();\r\n\t\tguestHouseEntrances.add(grid[20][20].getCoord());\r\n\r\n\t\t// setup entrances map\r\n\t\tthis.roomEntrances = new HashMap<Coordinates, Room>();\r\n\t\tfor (LocationCard lc : this.listOfLocationCard) {\r\n\t\t\tString name = lc.getName();\r\n\t\t\tRoom r;\r\n\t\t\tif (name.equals(\"Spa\")) {\r\n\t\t\t\tr = new Room(name, lc, spaEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : spaEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Theatre\")) {\r\n\t\t\t\tr = new Room(name, lc,theatreEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : theatreEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"LivingRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,livingRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : livingRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Observatory\")) {\r\n\t\t\t\tr = new Room(name, lc,observatoryEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : observatoryEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Patio\")) {\r\n\t\t\t\tr = new Room(name,lc, patioEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : patioEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Pool\")) {\r\n\t\t\t\tr = new Room(name,lc,poolEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : poolEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Hall\")) {\r\n\t\t\t\tr = new Room(name, lc,hallEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : hallEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Kitchen\")) {\r\n\t\t\t\tr = new Room(name, lc,kitchenEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : kitchenEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"DiningRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,diningRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : diningRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"GuestHouse\")) {\r\n\t\t\t\tr = new Room(name, lc,guestHouseEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : guestHouseEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void update()\n\t{\n\t\tgrid.draw();\n\t\tmonsterSpawner.update();\n\t\tjewelSpawner.update();\n\t\t\n\t\tint numOnCenter = 0;\n\t\tfor (Player player : players)\n\t\t\tif (player.getSprite().onCenterArea())\n\t\t\t\tnumOnCenter++;\n\t\tfor (Player player : players) {\n\t\t\tif (numOnCenter < 2 && player.getSprite().onCenterArea())\n\t\t\t\tplayer.addScore(Clock.getSeconds());\n\t\t\tplayer.update();\n\t\t}\n\t\tfor (Iterator<Projectile> iterator = projectiles.iterator(); iterator.hasNext();) {\n\t\t\tProjectile projectile = iterator.next();\n\t\t\tif (!projectile.exists())\n\t\t\t\titerator.remove();\n\t\t\telse\n\t\t\t\tprojectile.update();\n\t\t}\n\t\t\n\t\tui.update();\n\t\tfor (int i = traps.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tTrap trap = traps.get(i);\n\t\t\ttrap.update();\n\t\t\tif (!trap.exists())\n\t\t\t{\n\t\t\t\ttraps.remove(i);\n\t\t\t\tgrid.removeEntity(trap.getCurrentTile());\n\t\t\t}\n\t\t}\n\t}", "public void update(GL2 gl){\r\n\t\t// Not implemented, chunks are immutable\r\n\t}", "private void updateVehicles() {\n OffloaderSyncAdapter.syncImmediately(getContext());\n Log.w(LOG_TAG, \"updateVehicles: \");\n }", "private void geldigeStatusMelding(List<MeldingInfo> meldingenInfo, Melding melding, List<Status> statussen) {\n\n // Doorloop alle statussen en selecteer de melding als de status overeenkomt.\n for(Status status: statussen) {\n if(melding.getStatus().equals(status)){\n // Statussen zijn gelijk. Voeg melding aan groep met meldingen toe.\n MeldingInfo meldingInfo = getMeldingInfo(melding);\n meldingenInfo.add(meldingInfo);\n }\n }\n }", "@Override\n\t\t\tpublic void onGET(OgemaHttpRequest req) {\n\t\t\t\tupdate(appController.getActiveRooms(), req);\n\t\t\t}", "@Override\n\tpublic void merge(MutableAggregationBuffer buffer1, Row buffer2) {\n\t\tif (buffer1.getString(0) == null) {\n\t\t\tbuffer1.update(0, buffer2.getString(0));\n\t\t} else\n\t\t\tbuffer1.update(0, buffer1.getString(0) + \",\" + buffer2.getString(0));\n\n\t\tbuffer1.update(1, buffer1.getLong(1) + buffer2.getLong(1));\n\t\tbuffer1.update(2, buffer1.getLong(2) + buffer2.getLong(2));\n\n\t}", "@Test\r\n\tpublic final void testUpdateRoom() {\n\t\tboolean success = roomServices.addRoom(expected2);\r\n\t\t// check if added successfully\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the id from database since it autoincrements\r\n\t\tRoom copy = roomServices.getRoomByName(expected2.getName());\r\n\t\texpected3.setId(copy.getId());\r\n\t\t// set new data\r\n\t\tcopy.setName(expected3.getName());\r\n\t\tcopy.setLocation(expected3.getLocation());\r\n\t\t// update database\r\n\t\tsuccess = roomServices.updateRoom(copy);\r\n\t\tassertTrue(success);\r\n\t\t// need to copy the current version from database\r\n\t\tRoom actual = roomServices.getRoomById(expected2.getId());\r\n\t\t// check content of data\r\n\t\tassertEquals(expected3, actual);\r\n\t\t// delete room on exit\r\n\t\troomServices.deleteRoom(actual);\r\n\t}", "@Override\n public void update(ArrayList<League> leagues) {\n\n }", "public QbUpdate all();", "public void update() {\n\t\tfor (Entry<String, Integer> entry : countMap.entrySet()) {\n\t\t\tcountMap.put(entry.getKey(), 0);\n\t\t}\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = newGrid[i][j];\n\t\t\t\tc.setRow(i);\n\t\t\t\tc.setCol(j);\n\t\t\t\tblocks[i][j].setFill(c.getColor());\n\t\t\t\tcurrentGrid[i][j] = newGrid[i][j];\n\t\t\t}\n\t\t}\n\t\tempty(newGrid);\n\t}", "public void updateStats() {\n ObservableList<Node> children = gpLocations.getChildren();\n for (int i = 0; i < gpLocations.getChildren().size() / 2; i++)\n for (Node n : children)\n if (gpLocations.getRowIndex(n) == i + 1 && gpLocations.getColumnIndex(n) == 1) {\n Text t = (Text) n;\n t.setText(String.format(\n \"\\t\\t%.1f\", activeCar.getCurrentLocation().getDistanceToLocation(locations.get(i))));\n }\n\n children = gpCars.getChildren();\n for (int j = 0; j < gpCars.getChildren().size() / 2; j++)\n for (Node m : children)\n if (gpCars.getRowIndex(m) == j + 1 && gpCars.getColumnIndex(m) == 1) {\n Text tmpM = (Text) m;\n tmpM.setText(String.format(\"\\t\\t%.1f\", cars.get(j).getTime()));\n }\n\n children = gridPane.getChildren();\n for (Node o : children)\n if (gridPane.getRowIndex(o) == 5 && gpCars.getColumnIndex(o) == 0) {\n Text tmpO = (Text) o;\n tmpO.setText(\"Active Car\\t\" + activeCar.getIdentifier() + \" \" + activeCar.getEnd().getName());\n }\n }", "public JsonObjectBuilder update() {\n\t\tDeque<RSSFeedItem> pulledData = pullFeed();\n\t\tif (pulledData == null || pulledData.isEmpty()) return null;\n\t\t\n\t\tDeque<RSSFeedItem> newData = null;\n\t\t\n\t\tRSSFeedItem newItem;\n\t\twhile (!pulledData.isEmpty()) {\n\t\t\tnewItem = pulledData.removeLast();\n\t\t\tif (!itemDeque.contains(newItem)) {\n\t\t\t\t\n\t\t\t\t// Initialize\n\t\t\t\tif (newData == null) newData = new ArrayDeque<>();\n\t\t\t\t\n\t\t\t\tnewData.add(newItem);\n\t\t\t\titemDeque.push(newItem);\n\t\t\t\t\n\t\t\t\tif (itemDeque.size() > RSSParser.maxItemsStored) {\n\t\t\t\t\titemDeque.removeLast();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (newData == null) return null;\n\t\treturn getObjectBuilder(newData);\n\t}", "private static void mergingSync() {\n Observable.merge(getDataSync(1), getDataSync(2)).blockingForEach(System.out::println);\n }", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "private void updateMhoLocationList() {\n\n\t\t//clear all the mhos in mhoLocations\n\t\tmhoLocations.clear();\n\n\t\t//add the locations of all the mhos in mhoLocations\n\t\tfor (int i = 1; i < 11; i++)\n\t\t\tfor (int j = 1; j < 11; j++) \n\t\t\t\tif(newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmhoLocations.add(i);\n\t\t\t\t\tmhoLocations.add(j);\n\t\t\t\t}\n\t}", "public void update()\r\n\t{\r\n\t\tList<Unit> deadButNotFinished = new ArrayList<Unit>();\r\n\t\t//first check for dead units\r\n\t\tfor(int i = 0; i < units.size();)\r\n\t\t\tif(units.get(i).getState() == MapItemState.Dead && units.get(i).finished()) {\r\n\t\t\t\towner.notifySweepAndPruneUnitRemoved(units.remove(i));\r\n\t\t\t} else if(units.get(i).getState().equals(MapItemState.Dead)) {\r\n\t\t\t\tdeadButNotFinished.add(units.remove(i));\r\n\t\t\t} else {\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\r\n\t\t//don't do anything if there are no units\r\n\t\tif(units.size() <= 0 && deadButNotFinished.size() <= 0)\r\n\t\t{\r\n\t\t\tinCombat = false;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t//if(!(units.get(0) instanceof Gate))\r\n\t\t\t//System.out.println(\"Unit position == \" + units.get(0).getPosition().getX() + \", \" + units.get(0).getPosition().getY());\r\n\t\t\r\n\t\t//first get the max radius\r\n\t\tdouble maxRad = 0;\r\n\t\tPosition center = this.getCenter();\r\n\t\tfor(Unit u : units)\r\n\t\t{\r\n\t\t\tdouble rad = Math.sqrt(center.distanceSquared(u.getPosition())) + u.getCombatStrategy().getRange();\r\n\t\t\tif(rad > maxRad)\r\n\t\t\t\tmaxRad = rad;\r\n\t\t}\r\n\t\t\r\n\t\t//this is to prevent units from doing a run by on accident\r\n\t\tif(maxRad < owner.getWidth())\r\n\t\t\tmaxRad = owner.getWidth();\r\n\t\t\r\n\t\tAABB box = new AABB(center.getX() - maxRad, center.getY() - maxRad, \r\n\t\t\t\tcenter.getX() + maxRad, center.getY() + maxRad);\r\n\t\tList<Unit> unitsInRange = owner.getUnitsIn(box);\r\n\t\tList<Unit> alliesInRange = new ArrayList<Unit>();\r\n\t\t//remove friendly units\r\n\t\tfor(int i = 0; i < unitsInRange.size();)\r\n\t\t\tif(unitsInRange.get(i).getOwner().equals(units.get(0).getOwner()))\r\n\t\t\t\talliesInRange.add(unitsInRange.remove(i));\r\n\t\t\telse\r\n\t\t\t\ti++;\r\n\t\t\r\n\t\t//if there are units, we're in combat!\r\n\t\tif(unitsInRange.size() > 0)\r\n\t\t{\r\n\t\t\t//for efficiency reasons\r\n\t\t\tUnit[] unitsInRangeArray = unitsInRange.toArray(new Unit[unitsInRange.size()]);\r\n\t\t\tUnit[] alliesInRangeArray = alliesInRange.toArray(new Unit[alliesInRange.size()]);\r\n\t\t\tfor(Unit u : units)\r\n\t\t\t\tu.getCombatStrategy().fight(unitsInRangeArray, alliesInRangeArray);\r\n\t\t\tinCombat = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tinCombat = false;\r\n\t\t\t//figure out which direction we're going\r\n\t\t\tboolean forward = true;\r\n\t\t\tif (origin.getTransformation().getPosition().distanceSquared(\r\n\t\t\t\t\towner.getPosition(1).getPosition()) < origin.getTransformation().getPosition()\r\n\t\t\t\t\t.distanceSquared(owner.getPosition(0).getPosition()))\r\n\t\t\t\tforward = false;\r\n\t\t\t\r\n\t\t\t//we're gonna move straight forward because I said so -Connor\r\n\t\t\tdouble wayTheFuckOutThere = 100000000;\r\n\t\t\tdouble min = 1;\r\n\t\t\t\r\n\t\t\t//for efficiency reasons\r\n\t\t\tHashMap<Unit, Transformation> closestPoints = new HashMap<Unit, Transformation>();\r\n\t\t\t\r\n\t\t\t//go through each unit and see how far it's going to go\r\n\t\t\tfor(int i = 0; i < units.size();)\r\n\t\t\t{\r\n\t\t\t\tUnit u = units.get(i);\r\n\t\t\t\tdouble pos = u.getPositionAlongCurve();\r\n\t\t\t\tNode target = owner.getNodes()[0];\r\n\t\t\t\tif(target.equals(origin))\r\n\t\t\t\t\ttarget = owner.getNodes()[1];\r\n\t\t\t\t//check to see if we've made it to the node we're going for\r\n\t\t\t\t//also, don't allow entering the node if the gate is still up\r\n\t\t\t\tif(((forward && Math.abs(1 - pos) <= 0.01) || (!forward && Math.abs(pos) <= 0.01)) && \r\n\t\t\t\t\t\t(owner.getGate(target) == null || owner.getGate(target).getState().equals(MapItemState.Dead) \r\n\t\t\t\t\t\t\t\t|| u.getOwner().equals(owner.getGate(target).getOwner())))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(target.getOwner() == null || target.isContested() || !target.getOwner().equals(u.getOwner()))\r\n\t\t\t\t\t\ttarget.setInvader(u.getOwner());\r\n\t\t\t\t\tu.setTransformation(target.getTransformation());\r\n\t\t\t\t\ttarget.addUnit(u);\r\n\t\t\t\t\towner.notifySweepAndPruneUnitRemoved(units.remove(i));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t//if we're close enough but the gate isn't down\r\n\t\t\t\telse if((forward && Math.abs(1 - pos) <= 0.01) || (!forward && Math.abs(pos) <= 0.01))\r\n\t\t\t\t{\r\n\t\t\t\t\tTransformation t = owner.getPosition(pos);\r\n\t\t\t\t\tclosestPoints.put(u, t);\r\n\t\t\t\t\tu.setState(MapItemState.Idle);\r\n\t\t\t\t\tu.getMovementStrategy().setTarget(u.getTransformation());\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\r\n\t\t\t\tTransformation t = owner.getPosition(pos);\r\n//\t\t\t\tif(Math.abs(t.getRotation()) < .001){\r\n//\t\t\t\t\tSystem.out.println(\"t's rotation is 0\");\r\n//\t\t\t\t}\r\n\t\t\t\tclosestPoints.put(u, t);\r\n\t\t\t\tdouble angle = t.getRotation();\r\n\t\t\t\tif(!forward)\r\n\t\t\t\t\tangle -= Math.PI;\r\n\t\t\t\tdouble m = u.getMovementStrategy().setTarget(\r\n\t\t\t\t\t\tnew Transformation(u.getPosition().add(\r\n\t\t\t\t\t\t\t\twayTheFuckOutThere * Math.cos(angle),\r\n\t\t\t\t\t\t\t\twayTheFuckOutThere * Math.sin(angle)), angle));\r\n\t\t\t\tif(m < min)\r\n\t\t\t\t\tmin = m;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//go through each unit and set its actual target\r\n\t\t\tdouble dis = wayTheFuckOutThere*min;\r\n\t\t\tfor(int i = 0; i < units.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tdouble angle = closestPoints.get(units.get(i)).getRotation();\r\n\t\t\t\tif(!forward)\r\n\t\t\t\t\tangle -= Math.PI;\r\n//\t\t\t\tTransformation t = owner.getPosition(owner.getClosestPointRatio(closestPoints.get(i)\r\n//\t\t\t\t\t\t\t\t.getPosition().add(dis * Math.cos(angle),dis * Math.sin(angle)))); \r\n\t\t\t\tTransformation t = new Transformation(units.get(i).getPosition().add(dis*Math.cos(angle), dis*Math.sin(angle)), angle);\r\n\t\t\t\tunits.get(i).getMovementStrategy().setTarget(t);\r\n\t\t\t}\r\n\t\t\tinCombat = false;\r\n\t\t}\r\n\t\t\r\n\t\tfor(Unit u : units)\r\n\t\t{\r\n\t\t\tu.getMovementStrategy().move();\r\n\t\t\tu.updateMapItem();\r\n\t\t}\r\n\t\t\r\n\t\t//add the dead but not finished units back in\r\n\t\t//also call update for them so they may finish their abilities\r\n\t\tfor(Unit u : deadButNotFinished)\r\n\t\t{\r\n\t\t\tu.updateMapItem();\r\n\t\t\tunits.add(u);\r\n\t\t}\r\n\t\t\r\n\t\tfor(Unit u : unitsInNeedOfRemoval)\r\n\t\t{\r\n\t\t\tunits.remove(u);\r\n\t\t\towner.notifySweepAndPruneUnitRemoved(u);\r\n\t\t}\r\n\t\tunitsInNeedOfRemoval.clear();\r\n\t}", "@Override\n public void updateAll(MiniGame game)\n {\n // MAKE SURE THIS THREAD HAS EXCLUSIVE ACCESS TO THE DATA\n try\n {\n game.beginUsingData();\n \n // WE ONLY NEED TO UPDATE AND MOVE THE MOVING TILES\n for (int i = 0; i < movingTiles.size(); i++)\n {\n // GET THE NEXT TILE\n MahjongSolitaireTile tile = movingTiles.get(i);\n \n // THIS WILL UPDATE IT'S POSITION USING ITS VELOCITY\n tile.update(game);\n \n // IF IT'S REACHED ITS DESTINATION, REMOVE IT\n // FROM THE LIST OF MOVING TILES\n if (!tile.isMovingToTarget())\n {\n movingTiles.remove(tile);\n }\n }\n \n // IF THE GAME IS STILL ON, THE TIMER SHOULD CONTINUE\n if (inProgress())\n {\n // KEEP THE GAME TIMER GOING IF THE GAME STILL IS\n endTime = new GregorianCalendar();\n }\n }\n finally\n {\n // MAKE SURE WE RELEASE THE LOCK WHETHER THERE IS\n // AN EXCEPTION THROWN OR NOT\n game.endUsingData();\n }\n }", "public void allBookings() {\n\t\t\tint i = 0;\r\n\t\t\tint k = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tint roomNum; //Room number\r\n\t\t\tint buffNum; //buff room number\r\n\t\t\tint index = 0; //saves the index of the date stored in the arraylist dateArray\r\n\t\t\tBooking buff; //Booking buffer to use\r\n\t\t\tRooms roomCheck;\r\n\t\t\tArrayList<LocalDate> dateArray = new ArrayList<LocalDate>(); //Saves the booking dates of a room\r\n\t\t\tArrayList<Integer> nights = new ArrayList<Integer>(); //Saves the number of nights a room is booked for\r\n\t\t\t\r\n\t\t\twhile(i < RoomDetails.size()) { //Looping Room Number-wise\r\n\t\t\t\troomCheck = RoomDetails.get(i);\r\n\t\t\t\troomNum = roomCheck.getRoomNum();\r\n\t\t\t\tSystem.out.print(this.Name + \" \" + roomNum);\r\n\t\t\t\twhile(k < Bookings.size()) { //across all bookings\r\n\t\t\t\t\tbuff = Bookings.get(k);\r\n\t\t\t\t\twhile(j < buff.getNumOfRoom()) { //check each booked room\r\n\t\t\t\t\t\tbuffNum = buff.getRoomNumber(j);\r\n\t\t\t\t\t\tif(buffNum == roomNum) { //If a booking is found for a specific room (roomNum)\r\n\t\t\t\t\t\t\tdateArray.add(buff.getStartDate()); //add the date to the dateArray\r\n\t\t\t\t\t\t\tCollections.sort(dateArray); //sort the dateArray\r\n\t\t\t\t\t\t\tindex = dateArray.indexOf(buff.getStartDate()); //get the index of the newly add date\r\n\t\t\t\t\t\t\tnights.add(index, buff.getDays()); //add the number of nights to the same index as the date\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tprintOccupancy(dateArray, nights); //print the occupancy of the room\r\n\t\t\t\tk=0;\r\n\t\t\t\tdateArray.clear(); //cleared to be used again\r\n\t\t\t\tnights.clear(); //cleared to be used again\r\n\t\t\t}\r\n\t\t}", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "public void mergeConflictedFiles(final Map<String, NewData> conflictedFiles)\n \t{\n \t\tList<String> working = new LinkedList<String>();\n \t\tList<String> conflicted = new LinkedList<String>();\n \t\tString s=\"\";\n \t\tPatch diff = new Patch();\n \t\t\n \t\tfor(String str:conflictedFiles.keySet()){\n \t\t\n \t\t\tBufferedReader reader = new BufferedReader(new StringReader(conflictedFiles.get(str).getFileContent()));\n \t\t\ttry {\n \t\t\t\twhile ((s = reader.readLine()) != null)\n \t\t\t\t\tconflicted.add(s);\n \t\t\t} catch (IOException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\t\n \t\tFile f = new File(this.getRoot() + File.separatorChar +str);\n \t\tif(!f.exists()){\n \t\t\tthis.pCreateFile(this.getRoot() + File.separatorChar +str);\t\n \t\t\tworking=conflicted;\n \t\t}\n \t\telse{\n \t\tworking = this.readFile(this.getRoot()+ File.separatorChar +str);\n \t\t\n \t\tdiff=this.getSnapshot().getDiff(working, conflicted);\n \t\t\n \t\tfor(Delta delta:diff.getDeltas()){\t\n \t\t\n\t\t\tfor(int i=delta.getRevised().getPosition(), j=0;j<delta.getRevised().getLines().size();++i,++j)\n\t\t\t\tworking.set(i, working.get(i)+\" <<<O==merge==R>>> \"+delta.getRevised().getLines().get(j));\n \t\t\t}\n \t\t}\n \t\tthis.getFilelist().get(str).putAll(conflictedFiles.get(str).getLclock());\n \t\t\n \t\tthis.writeFile(this.getRoot()+ File.separatorChar +str, working);\n \t\t\n \t\tworking.clear();\n \t\tconflicted.clear();\n \t\t}\n \t}", "public abstract void mergeToGlobalStats(SolrQueryRequest req,\n List<ShardResponse> responses);", "public void updateGeometries(Collection<? extends Geometry> adds, Collection<? extends Geometry> removes)\n {\n // Get the active time spans here to avoid a deadlock between the\n // TimeManager monitor and myUnprocessedGeometryLock.\n myPendingActiveTimeSpans = myTimeManager.getActiveTimeSpans();\n boolean timeAgnostic;\n\n // new adds and removes will be processed immediately, so make sure\n // that they are not in a list waiting to be processed.\n myUnprocessedGeometryLock.lock();\n try\n {\n if (!myUnprocessedAdds.isEmpty())\n {\n myUnprocessedAdds.removeAll(adds);\n myUnprocessedAdds.removeAll(removes);\n }\n\n // In order to ensure that the removes are not added to the\n // unprocessed adds until distribution is complete, keep the\n // unprocessed adds locked during distribution.\n distributeGeometries(adds, removes);\n\n if (!removes.isEmpty())\n {\n myProcessorBuilder.getPickManager().removeGeometries(removes);\n }\n\n if (!myTimeAgnostic && myCoveredPrimaryTimeSpans.isEmpty() && myCoveredSecondaryTimeSpans.isEmpty()\n && myUnprocessedAdds.isEmpty())\n {\n boolean inactiveTimed = false;\n if (!myInactiveGeometries.isEmpty())\n {\n for (final ProcessorDistributionKey key : myInactiveGeometries.keySet())\n {\n if (!key.getTimeSpan().isTimeless())\n {\n inactiveTimed = true;\n break;\n }\n }\n }\n if (!inactiveTimed)\n {\n removeTimeListeners();\n }\n }\n\n timeAgnostic = myTimeAgnostic;\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n\n /* Make sure there were no missed updates between setting\n * myPendingActiveTimSpans and adding the time listeners. */\n if (!timeAgnostic)\n {\n myActiveTimeSpanChangeListener.activeTimeSpansChanged(myTimeManager.getActiveTimeSpans());\n }\n }", "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "void merge();", "public void merge(ExprWalkerInfo ewi) {\n if (ewi == null) {\n return;\n }\n for (Entry<String, List<ExprNodeDesc>> e : ewi.getFinalCandidates()\n .entrySet()) {\n List<ExprNodeDesc> predList = pushdownPreds.get(e.getKey());\n if (predList != null) {\n predList.addAll(e.getValue());\n } else {\n pushdownPreds.put(e.getKey(), e.getValue());\n }\n }\n for (Entry<String, List<ExprNodeDesc>> e : ewi.getNonFinalCandidates()\n .entrySet()) {\n List<ExprNodeDesc> predList = nonFinalPreds.get(e.getKey());\n if (predList != null) {\n predList.addAll(e.getValue());\n } else {\n nonFinalPreds.put(e.getKey(), e.getValue());\n }\n }\n newToOldExprMap.putAll(ewi.getNewToOldExprMap());\n }", "public void update()\n\t{\n\t\tif(pList.size()==0)\n\t\t\treturn;\n\t\tfor(int i = 0; i < pList.size(); i++)\n\t\t{\n\t\t\tPerson p = pList.get(i);\n\t\t\tif(p.destination.floorNumber>this.floorNumber)\n\t\t\t{\n\t\t\t\tup = true;\n\t\t\t}\n\t\t\telse if(p.destination.floorNumber<this.floorNumber)\n\t\t\t{\n\t\t\t\tdown = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpList.remove(i);\n\t\t\t}\n\t\t}\n\t\tif(up)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.UPPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event,0);\n\t\t}\n\t\tif(down)\n\t\t{\n\t\t\tevent.id = ElevatorEvent.DOWNPRESSED;\n\t\t\tevent.token.attr[0]=this.floorNumber;\n\t\t\tSim.schedule(event, 0);\n\t\t}\n\t}", "public void updateDisplayRoom() {\n roomDisplayArray = new String[roomHeight][roomWidth];\n initalizeRoomDisplayArray();\n addDoorsToRoomDisplayArray();\n addContentsToRoomDisplayArray();\n }", "public static void updateBuildings(GUI_Street[] streets, TileOwners owners){\n for (int i = 0; i < streets.length; i++) {\n streets[i].setHouses(owners.getTileHouses(i));\n if (owners.getTileHotel(i) == 1){\n streets[i].setHotel(true);\n } else {\n streets[i].setHotel(false);\n streets[i].setHouses(owners.getTileHouses(i));\n }\n }\n\n }", "public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }", "private void update(long now){\n // call the GameMode manage() method\n if (MadBalls.isHost()) MadBalls.getGameMode().manage(now);\n\n ArrayList<GameObject> copiedGameObjects = new ArrayList<>(gameObjects.values());\n ArrayList<GameObject> shouldBeCheckedGameObjects = new ArrayList<>();\n quadtree.clear();\n\n // update objects\n for (GameObject obj : copiedGameObjects){\n obj.update(now);\n // remove dead objects\n if (obj.isDead()) {\n deadGameObjects.put(obj.getID(), obj);\n gameObjects.remove(obj.getID());\n }\n // prepare for collision checking for alive objects\n else {\n if (obj.isMobile()){\n shouldBeCheckedGameObjects.add(obj);\n }\n quadtree.insert(obj);\n }\n }\n\n// if (!isHost) return;\n // spawn items\n if (MadBalls.isHost()) itemSpawner.spawn(now);\n\n // collision checking\n List<GameObject> collidableObjects = new ArrayList();\n ArrayList<GameObject> checked = new ArrayList<>();\n\n for (GameObject checking : shouldBeCheckedGameObjects){\n if (!MadBalls.isHost() && !MadBalls.getMultiplayerHandler().getLocalPlayer().getRelevancy(checking.getTranslateX(), checking.getTranslateY(), 250, 250)) {\n continue;\n }\n collidableObjects.clear();\n quadtree.retrieve(collidableObjects, checking);\n for (GameObject target : collidableObjects){\n// for (GameObject target : copiedGameObjects.values()){\n if (target != checking && !checked.contains(target) && !target.hasChild(checking) && !target.hasOwner(checking)){\n checking.checkCollisionWith(target);\n }\n }\n checked.add(checking);\n }\n\n // check winner\n MadBalls.getGameMode().checkWinner(now);\n }", "private void twoOptSwap(int i, int j, Chemin chemin, Chemin chemin2, ArrayList<String> noeudsUpdate, HashMap<String, Integer> ordreNoeuds, Tournee tournee, Map<String, Map<String, Chemin>> plusCourtsChemins ) {\n\t\t//On mets les chemins compris entre i et j dans l'ordre inverse de parcours pour connecter la tournee\n\t\t//On met aussi les 2 chemins avec les noeuds extremes inter-changes\n\t\tList<Chemin> listeTmp = new ArrayList<Chemin>();\n\t\tfor(int count = 0; count < noeudsUpdate.size()-1; ++count) {\n\t\t\tint ascending = i+count+1;\n\t\t\tlisteTmp.add(tournee.getPlusCourteTournee().get(ascending));\n\t\t}\n\t\tfor(int count = 0; count< noeudsUpdate.size()-1; ++count) {\n\t\t\tint ascending = i+count+1;\n\t\t\tint descending = i+noeudsUpdate.size()-count-1;\n\t\t\tString premiere = listeTmp.get(count).getPremiere().getId();\n\t\t\tString derniere = listeTmp.get(count).getDerniere().getId();\n\t\t\tChemin newChemin = plusCourtsChemins.get(derniere).get(premiere);\n\t\t\ttournee.getPlusCourteTournee().set(descending, newChemin);\n\t\t\tordreNoeuds.replace(derniere, ascending);\n\t\t\tSystem.out.print(count+\".\"+tournee.getPlusCourteTournee().get(ascending).getPremiere().getId()+\"->\"+tournee.getPlusCourteTournee().get(ascending).getDerniere().getId()+\" / \");\n\t\t}\n\t\tChemin newChemin1 = plusCourtsChemins.get(chemin.getPremiere().getId()).get(chemin2.getPremiere().getId());\n\t\tChemin newChemin2 = plusCourtsChemins.get(chemin.getDerniere().getId()).get(chemin2.getDerniere().getId());\n\t\ttournee.getPlusCourteTournee().set(i, newChemin1);\n\t\ttournee.getPlusCourteTournee().set(j, newChemin2);\n\t\tordreNoeuds.replace(chemin.getDerniere().getId(), j);\n\t}", "public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayList<>();\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (!UnitUtils.isCompleteValidUnit(airunit)) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t} else if (airForceTeamMap.get(airunitId).leaderUnit == null) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t}\n\t\t}\n\t\tfor (Integer invalidUnitId : invalidUnitIds) {\n\t\t\tairForceTeamMap.remove(invalidUnitId);\n\t\t}\n\t\t\n\t\t// new team\n\t\tfor (Unit airunit : airunits) {\n\t\t\tAirForceTeam teamOfAirunit = airForceTeamMap.get(airunit.getID());\n\t\t\tif (teamOfAirunit == null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), new AirForceTeam(airunit));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 리더의 위치를 비교하여 합칠 그룹인지 체크한다.\n\t\t// - 클로킹모드 상태가 다른 그룹은 합치지 않는다.\n\t\t// - 수리 상태의 그룹은 합치지 않는다.\n\t\tList<AirForceTeam> airForceTeamList = new ArrayList<>(new HashSet<>(airForceTeamMap.values()));\n\t\tMap<Integer, Integer> airForceTeamMergeMap = new HashMap<>(); // key:merge될 그룹 leaderID, value:merge할 그룹 leaderID\n\t\t\n\t\tint mergeDistance = AIR_FORCE_TEAM_MERGE_DISTANCE;\n\t\tif (InfoUtils.enemyRace() == Race.Terran) {\n\t\t\tmergeDistance += 120;\n\t\t}\n\t\tfor (int i = 0; i < airForceTeamList.size(); i++) {\n\t\t\tAirForceTeam airForceTeam = airForceTeamList.get(i);\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean cloakingMode = airForceTeam.cloakingMode;\n\t\t\tfor (int j = i + 1; j < airForceTeamList.size(); j++) {\n\t\t\t\tAirForceTeam compareForceUnit = airForceTeamList.get(j);\n\t\t\t\tif (compareForceUnit.repairCenter != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (cloakingMode != compareForceUnit.cloakingMode) { // 클로킹상태가 다른 레이쓰부대는 합쳐질 수 없다.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUnit airForceLeader = airForceTeam.leaderUnit;\n\t\t\t\tUnit compareForceLeader = compareForceUnit.leaderUnit;\n\t\t\t\tif (airForceLeader.getID() == compareForceLeader.getID()) {\n//\t\t\t\t\tSystem.out.println(\"no sense. the same id = \" + airForceLeader.getID());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (airForceLeader.getDistance(compareForceLeader) <= mergeDistance) {\n\t\t\t\t\tairForceTeamMergeMap.put(compareForceLeader.getID(), airForceLeader.getID());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 합쳐지는 에어포스팀의 airForceTeamMap을 재설정한다.\n\t\tfor (Unit airunit : airunits) {\n\t\t\tInteger fromForceUnitLeaderId = airForceTeamMap.get(airunit.getID()).leaderUnit.getID();\n\t\t\tInteger toForceUnitLeaderId = airForceTeamMergeMap.get(fromForceUnitLeaderId);\n\t\t\tif (toForceUnitLeaderId != null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), airForceTeamMap.get(toForceUnitLeaderId));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// team 멤버 세팅\n\t\tSet<AirForceTeam> airForceTeamSet = new HashSet<>(airForceTeamMap.values());\n\t\tfor (AirForceTeam airForceTeam : airForceTeamSet) {\n\t\t\tairForceTeam.memberList.clear();\n\t\t}\n\t\t\n\t\tList<Integer> needRepairAirunitList = new ArrayList<>(); // 치료가 필요한 유닛\n\t\tMap<Integer, Unit> airunitRepairCenterMap = new HashMap<>(); // 치료받을 커맨드센터\n\t\tList<Integer> uncloakedAirunitList = new ArrayList<>(); // 언클락 유닛\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (airunit.getHitPoints() <= 50) { // repair hit points\n\t\t\t\tAirForceTeam repairTeam = airForceTeamMap.get(airunitId);\n\t\t\t\tif (repairTeam == null || repairTeam.repairCenter == null) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airunit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tneedRepairAirunitList.add(airunitId);\n\t\t\t\t\t\tairunitRepairCenterMap.put(airunitId, repairCenter);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAirForceTeam airForceTeam = airForceTeamMap.get(airunit.getID());\n\t\t\tif (airForceTeam.cloakingMode && (airunit.getType() != UnitType.Terran_Wraith || airunit.getEnergy() < 15)) {\n\t\t\t\tuncloakedAirunitList.add(airunitId);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tairForceTeam.memberList.add(airunit);\n\t\t}\n\t\t\n\t\t// create separated team for no energy airunit\n\t\tfor (Integer airunitId : uncloakedAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam uncloackedForceTeam = new AirForceTeam(airunit);\n\t\t\tuncloackedForceTeam.memberList.add(airunit);\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, uncloackedForceTeam);\n\t\t}\n\t\t\n\t\t// create repair airforce team\n\t\tfor (Integer airunitId : needRepairAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam needRepairTeam = new AirForceTeam(airunit);\n\t\t\tneedRepairTeam.memberList.add(airunit);\n\t\t\tneedRepairTeam.repairCenter = airunitRepairCenterMap.get(airunit.getID());\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, needRepairTeam);\n\t\t}\n\t\t\n\t\t// etc (changing leader, finishing repair, achievement) \n\t\tSet<AirForceTeam> reorganizedSet = new HashSet<>(airForceTeamMap.values());\n\t\tachievementEffectiveFrame = 0;\n\t\tfor (AirForceTeam airForceTeam : reorganizedSet) {\n\t\t\t// leader 교체\n\t\t\tUnit newLeader = UnitUtils.getClosestUnitToPosition(airForceTeam.memberList, airForceTeam.getTargetPosition());\n\t\t\tairForceTeam.leaderUnit = newLeader;\n\t\t\t\n\t\t\t// repair 완료처리\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tif (!UnitUtils.isValidUnit(airForceTeam.repairCenter) || WorkerManager.Instance().getWorkerData().getNumAssignedWorkers(airForceTeam.repairCenter) < 3) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airForceTeam.leaderUnit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tairForceTeam.repairCenter = repairCenter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean repairComplete = true;\n\t\t\t\tfor (Unit airunit : airForceTeam.memberList) {\n\t\t\t\t\tif (airunit.getHitPoints() < airunit.getType().maxHitPoints() * 0.95) { // repair complete hit points\n\t\t\t\t\t\trepairComplete = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (repairComplete) {\n\t\t\t\t\tairForceTeam.repairCenter = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// achievement\n\t\t\tint achievement = airForceTeam.achievement();\n\t\t\taccumulatedAchievement += achievement;\n\t\t\tachievementEffectiveFrame = achievementEffectiveFrame + airForceTeam.killedEffectiveFrame * 100 - airForceTeam.damagedEffectiveFrame;\n\t\t}\n\t}", "private void updateGeneStatusDistributionData() {\n\t\tdouble[][][] value = gaTracker.getGeneValueDistribution();\n\t\tdouble[][][] status = gaTracker.getGeneStatusDistribution();\n\n\t\t/*\n\t\t * Collecting all data into one array, then replacing everything at once\n\t\t * to hopefully fix race condition in JFreeChart\n\t\t */\n\t\tdouble[][][][][] new_datasets = new double[geneCount][][][][];\n\n\t\tif (refreshWaiter.isReadyToRefresh()) {\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tnew_datasets[j] = new double[numAgentTypes][2][][];\n\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tdouble[][] newx = {gene_status_distribution_range, status[i][j]};\n\t\t\t\t\tnew_datasets[j][i][0] = newx;\n\t\t\t\t\tdouble[][] newy = {gene_value_distribution_range, value[i][j]};\n\t\t\t\t\tnew_datasets[j][i][1] = newy;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tString key = \"Agent \" + (i+1);\n\t\t\t\t\tgene_status_distribution_data[j].addSeries(key, new_datasets[j][i][0]);\n\t\t\t\t\tgene_value_distribution_data[j].addSeries(key, new_datasets[j][i][1]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If wait is true, there might be a deadlock pressing the stop button\n\t\t\trefreshWaiter.refresh(false);\n\t\t}\n\n\t}", "private void twoDateOccupancyQuery(String startDate, String endDate){\n List<String> emptyRooms = findEmptyRoomsInRange(startDate, endDate);\n List<String> fullyOccupiedRooms = findOccupiedRoomsInRange(startDate, endDate, emptyRooms);\n List<String> partiallyOccupiedRooms = \n (generateListOfAllRoomIDS().removeAll(emptyRooms)).removeAll(fullyOccupiedRooms);\n\n occupancyColumns = new Vector<String>();\n occupancyData = new Vector<Vector<String>>();\n occupancyColumns.addElement(\"RoomId\");\n occupancyColumns.addElement(\"Occupancy Status\");\n\n for(String room: emptyRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Empty\");\n occupancyData.addElement(row);\n }\n for(String room: fullyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Fully Occupied\");\n occupancyData.addElement(row);\n }\n for(String room: partiallyOccupiedRooms) {\n Vector<String> row = new Vector<String>();\n row.addElement(room);\n row.addElement(\"Partially Occupied\");\n occupancyData.addElement(row);\n }\n return;\n}", "public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}", "public void refreshGraphData() {\n\t\tLOGGER.finest(\"Finding builds to use for NeoLoad graphs. Currently I see \" + buildsAndDocs.size());\n\t\ttry {\n\t\t\tNeoLoadReportDoc doc = null;\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> newBuildsAndDocs = new LinkedHashMap<AbstractBuild<?, ?>, NeoLoadReportDoc>();\n\n\t\t\t// look through all builds of the job\n\t\t\tfor (final AbstractBuild<?, ?> build: project.getBuilds()) {\n\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t// if the correct file was found, and\n\t\t\t\t// only include successful builds.\n\t\t\t\tif (build != null && build.getResult() != null && build.getResult().isBetterThan(Result.FAILURE)) {\n\n\t\t\t\t\t// add the html results link to the build if it's not already there.\n\t\t\t\t\t// this is done here as well for builds that exist and don't already have the action.\n\t\t\t\t\t// this covers the case when the plugin is uninstalled, the action is lost,\n\t\t\t\t\t// and then the plugin is reinstalled.\n\t\t\t\t\tNeoResultsAction.addActionIfNotExists(build);\n\n\t\t\t\t\t// find the xml results file.\n\t\t\t\t\tdoc = findXMLResultsFile(build);\n\n\t\t\t\t\t// if the correct file was found\n\t\t\t\t\tif (doc != null) {\n\t\t\t\t\t\tnewBuildsAndDocs.put(build, doc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// switch out the data for the new view\n\t\t\tfinal Map<AbstractBuild<?, ?>, NeoLoadReportDoc> oldBuildsAndDocs = buildsAndDocs;\n\t\t\tbuildsAndDocs = newBuildsAndDocs;\n\t\t\toldBuildsAndDocs.clear();\n\t\t} catch (final Exception e) {\n\t\t\tLOGGER.log(Level.SEVERE, \"Error finding NeoLoad xml results. \" + e.getMessage(), e);\n\t\t}\n\n\t\tLOGGER.finer(\"Found \" + buildsAndDocs.size() + \" builds to use for NeoLoad graphs.\");\n\t}", "public void updateClientBadges()\n\t{\n\t\tString data = \"\";\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tdata += m_badges[i];\n\t\tServerMessage message = new ServerMessage(ClientPacket.BADGES_PACKET);\n\t\tmessage.addInt(0);\n\t\tmessage.addString(data);\n\t\tgetSession().Send(message);\n\t}", "Subdivision update(Subdivision subdivision);", "public void DispatchUpdates()\n {\n //Dispatch the updates.\n bBufferingUpdates = false;\n \n for(LaunchEntity entity : DispatchList)\n {\n for(LaunchServerSession session : Sessions.values())\n {\n if(session.CanReceiveUpdates())\n {\n session.SendEntity(entity);\n }\n }\n }\n }", "private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }", "public void mergeChanges(Gateway src) {\n if (src.genClient.getChangeLog() != null) {\n genClient.mergeChanges(new Gateway(src).getJSONObject(), src.genClient);\n }\n }", "public GoogleMobilityData update(GoogleMobilityData old, GoogleMobilityData updated) throws SQLException {\n\n String update = \"Update GoogleMobilityData SET Date=?, Country=?, Rec=?, \" +\n \" Grocery=?, Parks=?, Transit_Station=?, Work=?, Residential=?, \" +\n \" JHCountyStat_FipsCode=? WHERE Synthetic_Mobility_PK=?\";\n\n Connection connection = null;\n PreparedStatement insertStmt = null;\n try {\n connection = connectionManager.getConnection();\n // Companies has an auto-generated key. So we want to retrieve that key.\n insertStmt = connection.prepareStatement(update);\n\n int i = 1;\n insertStmt.setDate(i++, updated.getDate());\n insertStmt.setString(i++, updated.getCountry());\n insertStmt.setLong(i++, updated.getRec());\n insertStmt.setLong(i++, updated.getGrocery());\n insertStmt.setLong(i++, updated.getParks());\n insertStmt.setLong(i++, updated.getTransitStation());\n insertStmt.setLong(i++, updated.getWork());\n insertStmt.setLong(i++, updated.getResidential());\n insertStmt.setString(i++, updated.getJhCountyStatFipsCode());\n insertStmt.setLong(i++, old.getSyntheticMobilityPk());\n insertStmt.executeUpdate();\n\n old = null;\n\n return updated;\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (connection != null) {\n connection.close();\n }\n if (insertStmt != null) {\n insertStmt.close();\n }\n }\n }", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "public static void update() {\n\t\tfor (int index = matches.length - 1; index >= 0; index--) {\n\t\t\tMatch left = null, right = null;\n\t\t\ttry {\n\t\t\t\tleft = matches[getLeft(index)];\n\t\t\t\tright = matches[getRight(index)];\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (left.getWinner() != null)\n\t\t\t\tmatches[index].setTeam1(left.getWinner());\n\t\t\telse\n\t\t\t\tmatches[index].setTeam1(null);\n\t\t\tif (right.getWinner() != null)\n\t\t\t\tmatches[index].setTeam2(right.getWinner());\n\t\t\telse\n\t\t\t\tmatches[index].setTeam2(null);\n\t\t}\n\t}", "public void updateVillageStatus(Player p) {\n\t\tfor(Village v : getVillages(p)) {\n\t\t\tif(v.getStatus().equals(VillageStatus.StartUpgrading)) {\n\t\t\t\tv.updateStatus(VillageStatus.StillUpgrading);\n\t\t\t} else if (v.getStatus().equals(VillageStatus.StillUpgrading)) {\n\t\t\t\tv.upgradeVillageType();\n\t\t\t\tv.updateStatus(VillageStatus.VillageReady);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tv.updateStatus(VillageStatus.VillageReady);\n\t\t\t}\n\t\t}\n\t}", "public void generalUpdate() {\n\n\t\tif (player.isDead()) {\n\t\t\trespawnTimer++;\n\t\t\tif (respawnTimer > 90) {\n\t\t\t\treset();\n\t\t\t}\n\t\t}\n\t\tif (started) {\n\t\t\tplayer.generalUpdate();\n\n\t\t\tspawnCount++;\n\t\t\tif (spawnCount > 100) {\n\t\t\t\tcreateWall();\n\t\t\t\tspawnCount = 0;\n\t\t\t}\n\t\t}\n\n\t\tsky.generalUpdate();\n\t\tmountains.generalUpdate();\n\t\ttrees.generalUpdate();\n\n\t\t//Cycle through walls ArrayList and update each one\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tw.generalUpdate();\n\t\t}\n\t\t//Same thing with Ground objects\n\t\t\n\t\tfor (int i = 0; i < ground.size(); i++) {\n\t\t\tGround g = ground.get(i);\n\t\t\tg.generalUpdate();\n\n\t\t\t//Also check each for collision with player\n\t\t\t\n\t\t\tif (player.getBounds().overlaps(g.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//When walls go off screen, delete\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (w.getBounds().x < -64) {\n\t\t\t\twalls.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tc.generalUpdate();\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tif (c.getBounds().x <= player.getBounds().x) {\n\t\t\t\tscore++;\n\t\t\t\tcheckPoints.remove(i);\n\t\t\t\ti--;\n\t\t\t\tAssets.playSound(\"score\");\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (player.getBounds().overlaps(w.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t}\n\n\t}", "protected HashMap<String,List<MeasurementImpl>> mergeManualObservables(HashMap<String,List<MeasurementImpl>> staticOps, HashMap<String,Vector<String>> ontoOps){\r\n \tHashMap<String,List<MeasurementImpl>> ret = new HashMap<String,List<MeasurementImpl>>();\r\n \t\r\n \t//iterate over all known stages and merge into one List per stage\r\n \tfor(ExperimentStageBean sb : this.getStageBeans()){\r\n \t\t\r\n \t\tString stageName = sb.getName();\r\n \t\t//for every stage add the static Measurements defined by the Workflow\r\n \t\tList<MeasurementImpl> l;\r\n \t\tif((staticOps==null)||(staticOps.get(stageName)==null)){\r\n \t\t\tl = new ArrayList<MeasurementImpl>();\r\n \t\t}else{\r\n \t\t\tl = staticOps.get(stageName);\r\n \t\t}\r\n \t\t\r\n \t\t//as well as the Measurements added from the Ontology (and stored in the Experiment Executable)\r\n \t\tif(ontoOps!=null){\r\n \t\tOntologyHandlerImpl ontohandler = OntologyHandlerImpl.getInstance();\r\n \t\tfor(String propURI : ontoOps.get(stageName)){\r\n \t\t\t//query the authority to get the OntologyProperty by URI\r\n \t\t\tOntologyProperty ontoProp = ontohandler.getProperty(propURI);\r\n \t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tMeasurementImpl m = OntoPropertyUtil.createMeasurementFromOntologyProperty(ontoProp);\r\n\t\t\t\t\t\tl.add(m);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tlog.error(\"error building Measurement from OntologyProperty: \"+ontoProp + \" :: \" + e);\r\n\t\t\t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}\r\n \t\t\r\n \t\tret.put(stageName, l);\r\n \t}\r\n \r\n \treturn ret;\r\n }", "private void updateRoadStatus() {\n for (Road r : e.getRoadDirectory().getRoadList()) {\n if (destination.toLowerCase().contains(r.getRoadName().toLowerCase())) {\n roadNamejTextField.setText(r.getRoadName());\n }\n break;\n }\n for (Sensor data : e.getSensorDataDirectory().getSensorDataList()) {\n if (destination.toLowerCase().contains(data.getSensorStreetName().toLowerCase())) {\n roadStatusjTextField.setText(data.getSensorRoadStatus());\n weatherjTextField.setText(data.getSensorWeatherStatus());\n trafficjTextField.setText(data.getSensorTraffic());\n break;\n }\n }\n }", "private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }", "public synchronized List<Update<V>> getUpdates() {\n if (!isReadOnly() && updates == null) {\n updates = calculateUpdates();\n }\n return updates;\n }", "@Override\n public void processStimulus(Enumeration criteria) {\n quadParts.updateData(updater); // request an update of the geometry\n wakeupOn(timedelay);\n }", "void updateRoomStatus(long roomId, int status);", "private static Hotel canMergeStaticallyTypedDocumentsUpdated(String key) {\n return new Hotel()\n .hotelId(key)\n .hotelName(\"Secret Point Motel\")\n .description(null)\n .category(\"Economy\")\n .tags(Arrays.asList(\"pool\", \"air conditioning\"))\n .parkingIncluded(true)\n .lastRenovationDate(null)\n .rating(3)\n //.location(null)\n .address(new HotelAddress())\n .rooms(Collections.singletonList(\n new HotelRoom()\n .description(null)\n .type(\"Budget Room\")\n .baseRate(10.5)\n .bedOptions(\"1 Queen Bed\")\n .sleepsCount(2)\n .tags(new String[]{\"vcr/dvd\", \"balcony\"})\n ));\n }", "@SuppressWarnings(\"unchecked\")\t\n\tvoid merge() throws IOException\n\t{\n\t\tdouble startup = Util.curtime();\n\t\t_logMail.pf(\"Starting merge operation for dataset %s\\n\", _segDataQ.getDataSet());\n\t\tString dropcutoff = TimeUtil.nDaysBefore(_dayCode, 60);\n\t\t\n\t\tBufferedWriter pwrite = _segDataQ.getPathMan().getGimpWriter(_dayCode);\n\t\t\n\t\tint writecount = 0;\n\t\t\n\t\twhile(_segDataQ.hasNext())\n\t\t{\n\t\t\tSegmentPack bupnext = _segDataQ.nextPack();\n\t\t\t\n\t\t\twhile(!_sortFileMap.isEmpty() && _sortFileMap.firstKey().compareTo(bupnext.wtpid) < 0)\n\t\t\t{\n\t\t\t\t// This is a new WTP id that is not in the Master file, and was found for the first time today\n\t\t\t\tMap.Entry<String, List<String>> ent = _sortFileMap.pollFirstEntry();\n\t\t\t\t\n\t\t\t\tSegmentPack bupnew = _segDataQ.buildEmpty(ent.getKey());\n\t\t\t\tbupnew.integrateNewData(ent.getValue(), _dayCode);\n\t\t\t\twritecount += bupnew.write(pwrite, dropcutoff);\n\t\t\t\t_newUsers++;\n\t\t\t\t_newTotal++;\n\t\t\t}\n\t\t\t\n\t\t\tif(!_sortFileMap.isEmpty() && _sortFileMap.firstKey().equals(bupnext.wtpid))\n\t\t\t{\n\t\t\t\t// Here there is data in both the Master file and the day's slurped data\n\t\t\t\tMap.Entry<String, List<String>> ent = _sortFileMap.pollFirstEntry();\n\t\t\t\tbupnext.integrateNewData(ent.getValue(), _dayCode);\n\t\t\t\t_updateUsers++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t_noUpdateUsers++;\t\n\t\t\t}\n\t\t\t\n\t\t\t_newTotal++;\n\t\t\twritecount += bupnext.write(pwrite, dropcutoff);\n\t\t\t\n\t\t\tif((_segDataQ.getPollUserCount() % 10000) == 0)\n\t\t\t{\n\t\t\t\tUtil.pf(\".\");\n\t\t\t\t//double userpersec = bqueue.polledUsers /((Util.curtime()-startup)/1000);\n\t\t\t\t//Util.pf(\"Finished with %d users, %.03f users per second\\n\",\n\t\t\t\t//\tbqueue.polledUsers, userpersec);\n\t\t\t}\n\t\t}\n\t\t\n\t\tUtil.pf(\"\\n\");\n\t\t\n\t\twhile(!_sortFileMap.isEmpty())\n\t\t{\n\t\t\t// Write out remaining data.\n\t\t\tMap.Entry<String, List<String>> ent = _sortFileMap.pollFirstEntry();\n\t\t\t\n\t\t\tSegmentPack bupnew = _segDataQ.buildEmpty(ent.getKey());\n\t\t\tbupnew.integrateNewData(ent.getValue(), _dayCode);\t\t\t\n\t\t\t\t\t\n\t\t\t// TODO: this doesn't inform us about whether or not a user actually has any data associated with him\n\t\t\twritecount += bupnew.write(pwrite, dropcutoff);\t\n\t\t\t_newTotal++;\t\t\t\t\n\t\t}\n\t\t\n\t\tpwrite.close();\n\t\t\n\t\t// TODO: put these stats back in\n\t\t_logMail.pf(\"Finished merge, stats: \\n\\t%d updated users\\n\\t%d non-updated\\n\\t%d prev total\\n\\t%d new total\\n\",\n\t\t\t_updateUsers, _noUpdateUsers, _segDataQ.polledUsers, _newTotal);\n\t\t\n\t\t_logMail.pf(\"Master file size: \\n%d lines before\\n%d lines after\\n\", _segDataQ.linesRead, writecount);\n\t\t\n\t}", "public Pair<ProductionType,SoldierType> update() {\t\t\n\t\tif(current!=null) {\n\t\t\tnb_rounds--;\n\t\t\tif(nb_rounds==0) {\n\t\t\t\tnb_to_train--;\n\t\t\t\tPair<ProductionType,SoldierType> result = new Pair<ProductionType,SoldierType>(ProductionType.S,current.getType());\n\t\t\t\tif(nb_to_train==0)\n\t\t\t\t\tthis.nextTraining();\n\t\t\t\telse\n\t\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}else if(upgrade){\n\t\t\tnb_rounds--;\n\t\t\tif(nb_rounds==0) {\n\t\t\t\tnb_to_train--;\n\t\t\t\tthis.nextTraining();\n\t\t\t\tupgrade = false;\n\t\t\t\treturn new Pair<ProductionType,SoldierType>(ProductionType.U,null);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }", "public void updateFinalMaps() {\r\n\t\t//prints out probMap for each tag ID and makes new map with ln(frequency/denominator) for each\r\n\t\t//wordType in transMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> tagIDsFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.transMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.transMapTemp.get(key);\r\n\t\t\ttagIDsFinal.put(key, this.transMapTemp.get(key).map);\r\n\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\t\t\t\ttagIDsFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\tSystem.out.println(key + \": \" + key2 + \" \" + tagIDsFinal.get(key).get(key2));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//makes new map with ln(frequency/denominator) for each word in emissionMapTemp\r\n\t\tTreeMap<String, TreeMap<String, Float>> emissionMapFinal = new TreeMap<String, TreeMap<String, Float>>();\r\n\t\tfor (String key: this.emissionMapTemp.keySet()) {\r\n\t\t\tProbMap probMap = this.emissionMapTemp.get(key);\r\n\t\t\temissionMapFinal.put(key, this.emissionMapTemp.get(key).map);\r\n\t\t\tfor (String key2: probMap.map.keySet()) {\r\n\r\n\t\t\t\temissionMapFinal.get(key).put(key2, (float) Math.log(probMap.map.get(key2) / probMap.getDenominator()));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.transMap = tagIDsFinal;\r\n\t\tthis.emissionMap = emissionMapFinal;\t\t\r\n\t}", "void updateGarage(Garage updatedGarage);" ]
[ "0.613837", "0.59957236", "0.5955096", "0.56693506", "0.55438775", "0.55139256", "0.5381168", "0.5356706", "0.5347936", "0.53002155", "0.5259875", "0.5245757", "0.52315915", "0.5219282", "0.52134144", "0.52119327", "0.52105916", "0.5176863", "0.51741636", "0.51734895", "0.5167958", "0.5148549", "0.51273143", "0.5127008", "0.51182836", "0.5091163", "0.50905013", "0.50868046", "0.5064143", "0.5009234", "0.49956003", "0.49795783", "0.49725005", "0.4968463", "0.4961014", "0.4929196", "0.49191344", "0.49121535", "0.49079615", "0.49048212", "0.490001", "0.48832858", "0.48612508", "0.48474118", "0.4840994", "0.48358124", "0.48319143", "0.4821707", "0.48183715", "0.48048264", "0.48004177", "0.47959977", "0.47948238", "0.47852865", "0.47752383", "0.4765207", "0.4752737", "0.47439122", "0.47419873", "0.47419873", "0.47419873", "0.4730022", "0.47271743", "0.47271192", "0.47247803", "0.47118422", "0.4710971", "0.4709479", "0.4708021", "0.46947184", "0.46917146", "0.46884015", "0.46880665", "0.46870443", "0.4674661", "0.46713692", "0.466871", "0.46679536", "0.4667348", "0.46637294", "0.4661372", "0.46604526", "0.4658653", "0.4658446", "0.4657921", "0.4657921", "0.46566764", "0.4656248", "0.46528563", "0.4652138", "0.46509573", "0.464415", "0.46413627", "0.46401286", "0.46398687", "0.46393758", "0.46392035", "0.46355957", "0.46338865", "0.46276152", "0.46263674" ]
0.0
-1
Use LUSTestSetup decorator to run Jini LUS once for this test class.
public static Test suite() { final TestSuite ts = new TestSuite(); ts.addTestSuite(BuildAgentTest.class); return new DistributedMasterBuilderTest.LUSTestSetup(ts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeClass\n\tpublic void TestSetup() {\n\t}", "@BeforeEach\n void setup()\n {\n Liquid juice = new Liquid(\"applejuice\", 0.25, 2.00);\n j = new Juice(\"applejuice\", juice, 17.5,false);\n }", "@Override\r\n\tpublic void sssDoLwTestInit() {\n\r\n\t}", "@BeforeClass\n\tpublic static void setup() {\n\n\t}", "@BeforeClass\n public static void startUp() {\n // \"override\" parent startUp\n resourceInitialization();\n }", "@Before\n public void setup() {\n endpoint = new Endpoint();\n endpoint.setKey(1);\n endpoint.setUrl(URI.create(\"http://localhost/nmr\"));\n\n // Installation, synchronized against\n installation = new Installation();\n installation.setType(InstallationType.TAPIR_INSTALLATION);\n installation.addEndpoint(endpoint);\n\n // Populated Dataset\n dataset = prepareDataset();\n\n // RegistryUpdater, using mocked web service client implementation\n updater = new RegistryUpdater(datasetService, metasyncHistoryService);\n }", "@Before\r\n public void init() throws Exception {\r\n // Create a test listener that traces the test execution, and make sure it is used by the tests to\r\n // record their calls\r\n tracingTestListener = new TracingTestListener(originalTestListener);\r\n\r\n UnitilsJUnit3TestBase.setTracingTestListener(tracingTestListener);\r\n SpringUnitilsJUnit38TestBase.setTracingTestListener(tracingTestListener);\r\n\r\n UnitilsJUnit4TestBase.setTracingTestListener(tracingTestListener);\r\n SpringUnitilsJUnit4TestBase.setTracingTestListener(tracingTestListener);\r\n\r\n InjectionUtils.injectInto(tracingTestListener, Unitils.getInstance(), \"testListener\");\r\n }", "@BeforeClass\n public static void oneTimeSetup() {\n System.out.println(\"@BeforeClass - One Time Setup with\");\n // write your one time initialization code here\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}", "@Override\r\n\t@Before\r\n\tpublic void callSetup() throws Exception\r\n\t{\r\n\t\tsuper.callSetup();\r\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before public void setUp() {\n\t\tsetUp(new ParallelLogger());\n\t}", "@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }", "@BeforeClass\n\tpublic static void testSetup() {\n\t\t// do something before all tests\n\t}", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@BeforeTest\n\tpublic void setUp() {\n\t\tthis.lawn = new Lawn(4, 5);\n\t}", "@BeforeClass\n public static void classSetUp() {\n printTestClassHeader();\n uri = Const.ActionURIs.ADMIN_INSTRUCTORACCOUNT_ADD;\n // removeAndRestoreTypicalDataInDatastore();\n }", "@BeforeClass\n public static void setup() {\n stall_till_cloudsize(1);\n }", "@Before\n public void setup() {\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\texecutor = new RESTManager(URL);\n\t}", "@BeforeClass\n static public void setUpClass() {\n logger.info(\"Running Example Code Unit Tests...\\n\");\n }", "@BeforeMethod\n\tpublic void setup()\n\t{\n\t ExtentHtmlReporter reporter=new ExtentHtmlReporter(\"./Reports/naveen-report.html\");\n\t\t\n\t extent = new ExtentReports();\n\t \n\t extent.attachReporter(reporter);\n\t \n\t logger=extent.createTest(\"LoginTest\");\n\t}", "@Before\n public void initTest() {\n tmpDir=new File(\"/tmp/luc/test\");\n //Setup System properties\n System.getProperties().remove(JNILoader.customPathKEY); //remove any \"old\" stuff\n System.setProperty(JNILoader.customPathKEY,tmpDir.getAbsolutePath());\n }", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "@Before\r\n public void setUp() { \r\n ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());\r\n //ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(\".\")){});\r\n \t\r\n //helper.setUp();\r\n }", "public void setUp() {\n\n\t}", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@BeforeClass\n public static void setUpClass() {\n System.out.println(\"# Testing MetropolisSearch ...\");\n SearchTestTemplate.setUpClass();\n }", "@BeforeClass\n public static void setup() {\n System.out.println(\"*** Before Class ***\");\n }", "@Before public void setUp() { }", "@BeforeClass\n public static void setUpClass() {\n }", "@BeforeClass\n public static void setUpClass() {\n }", "@BeforeClass\n public static void setUpClass() {\n System.out.println(\"Inciant tests\");\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tmatrixAdditionCalculator = new MatrixAdditionCalculator();\n\n\t}", "@BeforeEach\n public void setup() {\n }", "@BeforeClass\n public static void setUpClass() throws Exception {\n JeniaTagger.analyzeAll(\"load\", true);\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tdataMunger = new DataMunger();\n\n\t}", "@BeforeTest\n\n public void Initialize() {\n\n\n}", "@BeforeEach\n\tvoid setup(){\n\t}", "@BeforeMethod\n\tpublic void setup()\n\t{\n\t ExtentHtmlReporter reporter=new ExtentHtmlReporter(\"./Reports/amazon.html\");\n\t\t\n\t extent = new ExtentReports();\n\t \n\t extent.attachReporter(reporter);\n\t \n\t logger=extent.createTest(\"LoginTest\");\n\t}", "@Before\r\n\tpublic void set_up(){\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Before\n public void setUp() throws Exception {\n cut = new LightScheduler();\n// spyLedController = new SpyLedController();\n// fakeTimeService = new FakeTimeService();\n }", "@BeforeClass\n public static void oneTimeSetUp() {\n\n }", "@BeforeAll\n static void setup() {\n log.info(\"@BeforeAll - executes once before all test methods in this class\");\n }", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "@BeforeClass\n\tpublic static void setupClass() throws JsonParseException, JsonMappingException, IOException, URISyntaxException {\n\t\tTEST_ENVIRONMENT.setupConfiguration();\n\t\tTEST_ENVIRONMENT.setupDbConnection();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t\tTEST_ENVIRONMENT.setupServer();\n\t}", "protected void setupLocal() {}", "@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }", "@Before\n\t public void setUp() {\n\t }", "@BeforeClass\n\t public void setUp() {\n\t }", "@Before\r\n\t public void setUp(){\n\t }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "void start() throws TestFailed\n {\n this.startSkeletons();\n }", "public abstract void initializeTestSuite();", "protected TeststepRunner() {}", "@BeforeClass\n public void beforeclass() {\n\t}", "@BeforeClass\n public static void startup()\n {\n _shutdown();\n }", "@BeforeClass\n public static void setUp() {\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}", "@Override\n public void setUp() {\n try {\n testEngine = MockupSAMLEngine.getInstance();\n } catch (SAMLEngineException e) {\n e.log();\n fail(e.toString());\n }\n }", "@Test\n public void testInitialize() {\n \n \n }", "@Before\n\tpublic void setupTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP\");\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n StressTestHelper.clearConfig();\r\n StressTestHelper.loadConfig(\"stress.xml\");\r\n StressTestHelper.loadConfig(\"com.topcoder.util.log\", \"logging.xml\");\r\n services = new DefaultUploadExternalServices();\r\n\r\n ManagersProvider managersProvider = (ManagersProvider) TestHelper.getFieldValue(TestHelper.getFieldValue(services,\r\n \"uploadServices\"), \"managersProvider\");\r\n uploadManager = (MockUploadManager) managersProvider.getUploadManager();\r\n screeningManager = (MockScreeningManager) managersProvider.getScreeningManager();\r\n\r\n // create a big file\r\n File file = new File(\"test_files/stress.jar\");\r\n if (file.exists()) {\r\n file.delete();\r\n }\r\n file.createNewFile();\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(file));\r\n for (int i = 0; i < 1000; i++) {\r\n for (int j = 0; j < 1000; j++) {\r\n bw.write(\"111111111111111111111111111111111111111111111\");\r\n }\r\n }\r\n bw.flush();\r\n bw.close();\r\n\r\n }", "@BeforeClass\n public void setUp() {\n }", "@BeforeClass\n public void setUp(){\n Driver.get().get(ConfigurationReader.getProperty(\"url\"));\n TryCloudUtil.LogInTryCloud(driver);\n }", "private StressTestHelper() {\n // Empty constructor.\n }", "@Before\n\tpublic void setUp() {\n\t}", "protected void setUp() {\n\t}", "@BeforeClass\n\tpublic static void setup() {\n\t\tLogger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\n\t\troot.setLevel(Level.INFO);\n\t}", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@BeforeClass\n\tpublic void setup() {\n\t\tSystem.out.println(\"Before Class Annotation\");\n\t}", "private void setup() throws Exception {\n\t}", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@BeforeClass\n public void setup()\n throws Exception {\n startZk();\n startController();\n startBroker();\n startKafka();\n }", "@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}", "public ULTest(String name) {\n\t\tsuper(name);\n\t}", "@BeforeMethod\r\n\tpublic void beforeMethod() {\r\n\t\t//initializeTestBaseSetup();\r\n\t}", "@BeforeClass(groups = { \"EtlNG\" })\n\tpublic void setUp() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected Exception: \", e);\n\t\t}\n\t}", "@BeforeClass\n\tpublic static void setupTestes()\n\t{\n\t\t\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP GERAL\");\n\t}", "@Before\n public void setup() throws Exception{\n \n System.setProperty(\"app.home\", BASE_DIR + \"/scribengin\");\n System.setProperty(\"vm.app.dir\", BASE_DIR + \"/scribengin\");\n \n localScribenginCluster = new LocalScribenginCluster(BASE_DIR) ;\n localScribenginCluster.clean(); \n localScribenginCluster.useLog4jConfig(\"classpath:scribengin/log4j/vm-log4j.properties\"); \n localScribenginCluster.start();\n registry = RegistryConfig.getDefault().newInstance().connect();\n shell = localScribenginCluster.getShell();\n \n }", "@BeforeClass\n public static void _startup()\n {\n // this test requires local storage to be enabled\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n System.setProperty(\"coherence.distributed.threads.min\", \"4\");\n\n AbstractFunctionalTest._startup();\n }", "@Before\n public void setup() throws Exception {\n mTestUtil.overrideAllowlists(true);\n // We need to turn the Consent Manager into debug mode\n mTestUtil.overrideConsentManagerDebugMode(true);\n mTestUtil.overrideMeasurementKillSwitches(true);\n mTestUtil.overrideAdIdKillSwitch(true);\n mTestUtil.overrideDisableMeasurementEnrollmentCheck(\"1\");\n mMeasurementManager =\n MeasurementManagerFutures.from(ApplicationProvider.getApplicationContext());\n\n // Put in a short sleep to make sure the updated config propagates\n // before starting the tests\n Thread.sleep(100);\n }", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "@BeforeClass\n public static void beforeClass() {\n }", "private void initJMeter() {\n\n JMeterUtils.setJMeterHome(PropertiesUtil.getBaseDir());\n JMeterUtils.loadJMeterProperties(PropertiesUtil.getJMeterPropertiesFile());\n JMeterUtils.initLogging();// you can comment this line out to see extra log messages of i.e. DEBUG level\n JMeterUtils.initLocale();\n userDefinedArguments = (Arguments) new ArgumentsPanel().createTestElement();\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "protected void setUp() {\n\n }", "@Before\n public void setUp () {\n }", "@BeforeClass(groups = { \"WorkflowNG\" })\n\tpublic void setUp() {\n\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected error or exception\", e);\n\t\t}\n\t}", "@Before\n public void setUp() {\n delegate = LocusdetailDelegateFactory.getLocusDetailDelegate();\n // Clear any existing caches of objects using the memory manager set in\n // the creation of the delegate.\n clearCaches();\n assertTrue(\"No delegate created\", delegate != null);\n }", "@Before\r\n public void setUp()\r\n {\r\n }" ]
[ "0.61831254", "0.61024916", "0.6057081", "0.6010495", "0.60073364", "0.59990954", "0.5986307", "0.5950125", "0.5949496", "0.5936", "0.5928299", "0.58855224", "0.5863404", "0.58484995", "0.58370215", "0.5820628", "0.5820628", "0.5820628", "0.5816522", "0.5804944", "0.58027375", "0.5793078", "0.5789833", "0.5786626", "0.5785629", "0.57778925", "0.57751536", "0.57654667", "0.5756372", "0.57558894", "0.5752904", "0.57524264", "0.5741664", "0.57341176", "0.57341176", "0.5727828", "0.57128096", "0.5705067", "0.57029295", "0.5702742", "0.5701014", "0.570072", "0.5699218", "0.5698902", "0.56902885", "0.5676337", "0.56756777", "0.5667913", "0.56553495", "0.5651834", "0.5648315", "0.564254", "0.56388265", "0.56226546", "0.56179494", "0.56105524", "0.56105524", "0.56105524", "0.56105524", "0.56105524", "0.56051046", "0.55982375", "0.5593085", "0.5588382", "0.5579408", "0.5577532", "0.55758476", "0.5573507", "0.55670375", "0.5565964", "0.5563182", "0.5562269", "0.55579805", "0.5552778", "0.5551774", "0.5550488", "0.5549613", "0.55470735", "0.5536412", "0.55306524", "0.55276567", "0.5527557", "0.55258536", "0.5518884", "0.55171007", "0.551373", "0.55130064", "0.55087924", "0.5502521", "0.55017287", "0.54981095", "0.54903126", "0.54856926", "0.54845154", "0.54844123", "0.548427", "0.5481854", "0.5479653", "0.54792637", "0.5477026" ]
0.5582783
64
This test requires a bunch of manual steps: 1. Build the ccagent.war (created via: ant waragent). 2. Deploy ccagent.war to a web server. 3. Manually launch agent via webstat ( 4. Manually run this test.
public void manual_testRestart() throws Exception { final ServiceRegistrar reg = DistributedMasterBuilderTest.findTestLookupService(20); assertNotNull("Couldn't find registrar.", reg); final Entry[] entries = SearchablePropertyEntries.getPropertiesAsEntryArray( new SearchablePropertyEntries( BuildAgentServiceImplTest.TEST_USER_DEFINED_PROPERTIES_FILE).getProperties() ); // work around timestamp prefix in build.type entry final int idxBuildTypeEntry = 3; assertEquals("Wrong entry in position where we expected to find 'build.type'.", BuildAgentServiceImplTest.ENTRY_NAME_BUILD_TYPE, ((PropertyEntry) entries[idxBuildTypeEntry]).name); entries[idxBuildTypeEntry] = new PropertyEntry(((PropertyEntry) entries[idxBuildTypeEntry]).name, "test"); final BuildAgentService agentService = (BuildAgentService) findAgent(reg, 3, true, entries); assertNotNull(agentService.getMachineName()); agentService.restart(false); // allow time for the relaunched agent to spin up and register Thread.sleep(60 * 1000); // verify first agent is dead try { agentService.getMachineName(); fail("Agent should be dead"); } catch (Exception e) { // good, this is what we want. } // find the newly relaunched agent final BuildAgentService agentService2 = (BuildAgentService) findAgent(reg, 3, true, entries); assertNotNull(agentService2.getMachineName()); agentService2.kill(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void smokeTest() throws Exception {\r\n\t\tcheckSite();\r\n\t}", "public void testDeployFromHttp() throws Exception {\n\t\t// normally this directory would be created by handleDeployForMcaFile()... but we are bypassing for testing\n\t\tunitTestDir.mkdir();\n\n\t\tHttpURLConnection connection = new MockHttpURLConnection(null);\n\t\tdeployer.handleRemoteMCA(unitTestDir, connection);\n\n\t\tvalidateMcaDeployedToWorkingDir();\n\n\t\t// cleanup temp dir\n\t\tFile tempDir = new File(\"temp\");\n\t\tassertTrue(tempDir.exists());\n\t\tdeployer.deleteDir(tempDir);\n\t\tassertFalse(tempDir.exists());\n\t}", "@Test\n\tpublic void testBasicDevStartup() throws InterruptedException, ClassNotFoundException, ExecutionException, TimeoutException {\n\t\ttestArgSetup(\"test\");\n\t\t\n\t\t//really just making sure we don't throw an exception...which catches quite a few mistakes\n\t\tDevelopmentServer server = new DevelopmentServer(true);\n\t\t//In this case, we bind a port\n\t\tserver.start();\n\t\t//we should depend on http client and send a request in to ensure operation here...\n\t\t\n\t\tserver.stop();\n\t}", "public void testTargetAwareDeployment() {\n final java.io.File appArchive = \n new java.io.File(APPLICATION);\n printAllDeployedComponents();\n //deployApplication(appArchive,getTargets());\n printAllDeployedComponents();\n //checkDeploymentPassed(\"stateless-simple\", getTargets());\n //undeployApplication(appArchive, getTargets());\n }", "@Test\n\tpublic void test_run() throws Exception {\n\t\tdeleteBasicItem(workspaceView, new GTTreePath(\"HelloApp\", \"test.HelloServlet\"), GTPreferences.TIMEOUT);\n\n\t\t/* New Servlet */\n\t\tworkspaceView.contextMenuNew(new GTTreePath(\"HelloApp\"), \"Servlet\").click();\n\t\tshell = new GTCadseShell(\"Servlet\");\n\t\tshell.findCadseFieldName().typeText(\"test.HelloServlet\");\n\t\tshell.findTextWithLabel(\"className\").typeText(\"HelloServlet\");\n\t\tshell.findTextWithLabel(\"packageName\").typeText(\"test\");\n\t\tshell.findTextWithLabel(\"relativeURL\").typeText(\"hello\");\n\t\tshell.capture(\"image072\");\n\t\tshell.close();\n\t}", "public static void main(String[] args) throws Exception {\n String webPortStr = System.getenv(\"PORT\");\r\n int webPort = (webPortStr != null && !webPortStr.isEmpty()) ? Integer.parseInt(webPortStr) : 8080;\r\n \r\n String baseDir = System.getProperty(\"app.base.dir\"); \r\n if(baseDir == null || baseDir.isEmpty()) {\r\n \tthrow new IllegalArgumentException(\"the property \\\"app.base.dir\\\" is not set. Make sure to set it using -Dapp.base.dir=<BASEDIR> .\");\r\n }\r\n \r\n TomcatWrapper tomcat = new TomcatWrapper(webPort, baseDir+\"/war/\", System.getProperty(\"java.io.tmpdir\")); \r\n tomcat.addWebApp(\"/\", new File(baseDir+LOCATION).getAbsolutePath());\r\n \r\n logger.info(\"configuring app with basedir: {}\" , new File(baseDir+LOCATION).getAbsolutePath());\r\n \r\n tomcat.start(); \r\n }", "@Override\n public void execute() throws BuildException\n {\n try {\n preprocessAttributes();\n String webContextURL = Utils.URL(secure, hostName, agent);\n execute(webContextURL);\n }\n catch(Exception e) {\n e.printStackTrace();\n throw new BuildException(e);\n }\n }", "public static void main(String[] args) throws Exception {\n\n String context = System.getProperty(\"rjrcontext\");\n String webAppDir = System.getProperty(\"rjrwebapp\");\n Integer port = Integer.getInteger(\"rjrport\");\n Integer sslport = Integer.getInteger(\"rjrsslport\");\n String webAppClassPath = System.getProperty(\"rjrclasspath\");\n String keystore = System.getProperty(\"rjrkeystore\");\n String password = System.getProperty(\"rjrpassword\");\n String keyPassword = System.getProperty(\"rjrkeypassword\");\n\n if (context == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrcontext\");\n }\n if (webAppDir == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrwebapp\");\n }\n if (port == null && sslport == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrport and/or -Drjrsslport\");\n }\n\n Server server = new Server();\n\n if (port != null) {\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.setPort(port);\n\n if (sslport != null) {\n connector.setConfidentialPort(sslport);\n }\n\n server.addConnector(connector);\n }\n\n if (sslport != null) {\n if (keystore == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeystore with -Drjrsslport\");\n }\n if (password == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrpassword with -Drjrsslport\");\n }\n if (keyPassword == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeypassword with -Drjrsslport\");\n }\n\n SslSocketConnector sslConnector = new SslSocketConnector();\n sslConnector.setKeystore(keystore);\n sslConnector.setPassword(password);\n sslConnector.setKeyPassword(keyPassword);\n\n sslConnector.setMaxIdleTime(30000);\n sslConnector.setPort(sslport);\n\n server.addConnector(sslConnector);\n }\n\n WebAppContext web = new WebAppContext();\n web.setContextPath(context);\n web.setWar(webAppDir);\n\n // Fix issue 7, File locking on windows/Disable Jetty's locking of static files\n // http://code.google.com/p/run-jetty-run/issues/detail?id=7\n // by disabling the use of the file mapped buffers. The default Jetty behavior is\n // intended to provide a performance boost, but run-jetty-run is focused on\n // development (especially debugging) of web apps, not high-performance production\n // serving of static content. Therefore, I'm not worried about the performance\n // degradation of this change. My only concern is that there might be a need to\n // test this feature that I'm disabling.\n web.setInitParams(Collections.singletonMap(\"org.mortbay.jetty.servlet.Default.useFileMappedBuffer\", \"false\"));\n\n if (webAppClassPath != null) {\n ProjectClassLoader loader = new ProjectClassLoader(web, webAppClassPath);\n web.setClassLoader(loader);\n }\n\n server.addHandler(web);\n\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\n MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);\n server.getContainer().addEventListener(mBeanContainer);\n mBeanContainer.start();\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(100);\n }\n return;\n }", "@Override\n public ITestbed create(ITasResolver tasResolver) {\n List<String> emChosenFeatures = Arrays.asList(\"Enterprise Manager\", \"WebView\");\n\n \n // Collector1 role\n EmRole collector1Role =\n new EmRole.LinuxBuilder(COLLECTOR1_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.COLLECTOR)\n .silentInstallChosenFeatures(emChosenFeatures)\n .dbhost(tasResolver.getHostnameById(MOM_ROLE_ID))\n .installDir(TasBuilder.LINUX_SOFTWARE_LOC+\"em_col\")\n .emPort(5005).emWebPort(8085).wvEmPort(8090)\n .nostartEM().nostartWV()\n .build();\n \n // MOM role\n EmRole momRole =\n new EmRole.LinuxBuilder(MOM_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.MANAGER)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n \n //CDV role\n EmRole cdvRole = new EmRole.LinuxBuilder(CDV_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.CDV)\n .silentInstallChosenFeatures(emChosenFeatures)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n\n // QAAppRole for Tomcat\n WebAppRole<TomcatRole> qaAppTomcatRole =\n new QaAppTomcatRole.Builder(QA_APP_TOMCAT_ROLE_ID, tasResolver)\n .cargoDeploy().contextName(\"qa-app\")\n .build(); \n\n // Tomcat Role\n TomcatRole tomcatRole =\n new TomcatRole.LinuxBuilder(TOMCAT_ROLE_ID, tasResolver).tomcatVersion(TomcatVersion.v70)\n .tomcatCatalinaPort(9091).webApp(qaAppTomcatRole).build();\n\n // Tomcat Agent Role\n IRole tomcatAgentRole =\n new AgentRole.LinuxBuilder(TOMCAT_AGENT_ROLE_ID, tasResolver).webAppServer(tomcatRole)\n .intrumentationLevel(AgentInstrumentationLevel.FULL).emRole(momRole)\n .build();\n \n \n // Configuration of Cdv machine\n TestbedMachine cdvMachine =\n TestBedUtils\n .createLinuxMachine(CDV_MACHINE_ID, EM_TEMPLATE_ID, cdvRole); \n \n // Configuration of Collector1 machine\n TestbedMachine emMachine =\n TestBedUtils\n .createLinuxMachine(EM_MACHINE_ID, EM_TEMPLATE_ID, momRole, collector1Role);\n\n\n // Configuration of Agent Machine\n TestbedMachine agentMachine =\n TestBedUtils.createLinuxMachine(AGENT_MACHINE_ID, AGENT_MACHINE_TEMPLATE_ID,\n tomcatRole, qaAppTomcatRole, tomcatAgentRole);\n \n return Testbed.create(this, cdvMachine, emMachine, agentMachine);\n\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tExtentReports report = new ExtentReports(\"Report08.html\");\r\n\t\tExtentTest test = report.startTest(\"TestCase08\");\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\r\n\t\tdriver.get(\"file:///D:/TestCases_11Feb/testcase8.html\");\r\n\t\tWebElement drop=driver.findElement(By.xpath(\"/html/body/div/button\"));\r\n\r\n\t\tActions actions=new Actions(driver);\r\n\t\tactions.moveToElement(drop).build().perform();\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.findElement(By.linkText(\"Google\")).click();\r\n\r\n\t\tThread.sleep(4000);\r\n\t\t\r\n\t\tif(driver.getTitle().equals(\"Google\"))\r\n\t\t{\r\n\t\tSystem.out.println(\"Google\");\r\n\t\ttest.log(LogStatus.PASS, \"Verified\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\tSystem.out.println(\"Failure\");\r\n\t\ttest.log(LogStatus.FAIL, \"Failed to move to Google page\");\r\n\t\t}\r\n\t\tThread.sleep(2000);\r\n\t\treport.endTest(test);\r\n\t\treport.flush();\r\n\t\tdriver.quit();\t\t\r\n\t\r\n\t\r\n\t}", "public static void main(String[] args) {\n boolean deterministic = Arguments.parseArguments(args);\n\n Runtime rt = Runtime.instance();\n Profile p = new ProfileImpl();\n ContainerController container = rt.createAgentContainer(p);\n\n try {\n VehicleAgent[] vehicles = createVehicles(10,10,10);\n startVehicles(vehicles, container);\n\n ControlTowerAgent controlTowerAgent = new ControlTowerAgent();\n AgentController controlTower = container.acceptNewAgent(ControlTowerAgent.getDFName(), controlTowerAgent);\n LoggerHelper.get().logInfo(\"START - Started control tower\");\n controlTower.start();\n\n ClientAgent clientAgent = new ClientAgent(\"johnny\", ControlTowerAgent.getDFName(), deterministic);\n AgentController client = container.acceptNewAgent(clientAgent.getClientName(), clientAgent);\n String deterministicInfo = deterministic ? \"deterministic\" : \"random\";\n LoggerHelper.get().logInfo(\"CLIENT - Started \" + deterministicInfo + \" client \" + clientAgent.getClientName());\n client.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tRuntime runtime =Runtime.instance();\n\t\t\tProfileImpl profileImpl =new ProfileImpl(false);\n\t\t\t\n\t\t\tprofileImpl.setParameter(ProfileImpl.MAIN_HOST, \"localhost\");\n\t\t\tAgentContainer clientContainer =runtime.createAgentContainer(profileImpl);\n\t\t\t\n\t\t\tAgentController clientController =clientContainer.createNewAgent(\"client\", agents.Client.class.getName(), new Object [] {});\n\t\t\n\t\t\tclientController.start();\n\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception {\n URL webRootLocation = MainView.class.getResource(\"/webapp/\"); //src/masin\n URI webRootUri = webRootLocation.toURI();\n\n WebAppContext context = new WebAppContext();\n context.setBaseResource(Resource.newResource(webRootUri));\n context.setContextPath(\"/\");\n context.setAttribute(\"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern\", \".*\");\n context.setConfigurationDiscovered(true);\n context.setConfigurations(new Configuration[]{\n new AnnotationConfiguration(),\n new WebInfConfiguration(),\n new WebXmlConfiguration(),\n new MetaInfConfiguration()\n });\n context.getServletContext().setExtendedListenerTypes(true);\n context.addEventListener(new ServletContextListeners());\n\n Server server = new Server(8080);\n server.setHandler(context);\n server.start();\n server.join();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void testEvent002() throws Exception {\n // start the bundle again and try deploy another bundle that cause a failure\n this.b.start();\n // wait a few seconds to make sure events are delivered.\n int count = 0;\n Event eventPrevious = null;\n Event eventCurrent = null;\n\n // clear all events in the eventfactory\n EventFactory.clearEvents();\n assertEquals(\"factory should not have any event\", 0, EventFactory.getEventSize());\n\n Map<String, Object> options = new HashMap<String, Object>();\n options.put(WEB_CONTEXT_PATH, \"/tw1\");\n options.put(Constants.BUNDLE_SYMBOLICNAME, \"org.osgi.test.cases.webcontainer.tw4\");\n\n // install the war file that uses the same WebContextPath\n log(\"install war file: tw4.war at context path /tw1\");\n Bundle b2 = installBundle(super.getWarURL(\"tw4.war\", options), false);\n try {\n b2.start();\n // emit the following events:\n // org/osgi/service/web/DEPLOYING the web extender has spotted the web application bundle and is starting it.\n // org/osgi/service/web/FAILED - a web extender cannot start the bundle, this will be fired after a DEPLOYING\n // event has been fired if the bundle cannot be started for any reason.\n // wait a few seconds to make sure events are delivered.\n count = 0;\n while(eventCurrent == null && count < WAITCOUNT) {\n eventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw4\", \"org/osgi/service/web/FAILED\");\n\t\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw4\", \"org/osgi/service/web/DEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n\n long startingTime = (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP);\n long failedTime = (Long)eventCurrent.getProperty(EventConstants.TIMESTAMP);\n\n assertEquals(\"org/osgi/service/web/DEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw4\", (String)eventPrevious.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(b2.getBundleId(), eventPrevious.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(b2, eventPrevious.getProperty(EventConstants.BUNDLE));\n assertEquals(b2.getVersion(), eventPrevious.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(b2.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startingTime);\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION));\n\n assertEquals(\"org/osgi/service/web/FAILED\", eventCurrent.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw4\", (String)eventCurrent.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(b2.getBundleId(), eventCurrent.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(b2, eventCurrent.getProperty(EventConstants.BUNDLE));\n assertEquals(b2.getVersion(), eventCurrent.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(b2.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(failedTime);\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n // remove this checking as spec doesn't mandate the exception property to be set.\n //assertNotNull((Throwable)eventCurrent.getProperty(EventConstants.EXCEPTION));\n assertNotNull(eventCurrent.getProperty(COLLISION));\n assertEquals(\"/tw1\", (String)eventCurrent.getProperty(COLLISION));\n assertNotNull(eventCurrent.getProperty(COLLISION_BUNDLES));\n assertTrue(\"check collision.bundles property contains \" + b2.getBundleId(), contains((Collection<Long>)eventCurrent.getProperty(COLLISION_BUNDLES), b2.getBundleId()));\n assertTrue(\"check collision.bundles property contains \" + this.b.getBundleId(), contains((Collection<Long>)eventCurrent.getProperty(COLLISION_BUNDLES), this.b.getBundleId()));\n\n // the extender information should be the same\n assertTrue(failedTime >= startingTime);\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE), eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_ID), eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME), eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION), eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n } finally {\n b2.uninstall();\n }\n }", "@Test\n public void serverStarts() {\n }", "@Before\r\n public void setUp() throws Exception {\n externalService = new HelloWorldServiceLauncher();\r\n externalService.createService();\r\n \r\n // Start the SCA contribution\r\n node = NodeFactory.newInstance().createNode(new Contribution(\"java-first\", \"../contribution-callback-promotion/target/itest-ws-contribution-callback-promotion.jar\"));\r\n node.start();\r\n \r\n // start the external client\r\n try {\r\n externalClient = new HelloWorldClientLauncher();\r\n externalClient.createClient();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw ex;\r\n }\r\n }", "@Test\n public void testDistClient()\n {\n generateEvents(\"dist-client-test\");\n checkEvents(true, false);\n }", "@Before\n public void setUp() throws Exception {\n CatalinaProperties.getProperty(\"props\");\n catalinaBase = new File(System.getProperty(\"java.io.tmpdir\"), \"dumpvalvetest\");\n Assert.assertTrue(\"Unable to create temporary directory\", catalinaBase.mkdirs());\n\n File appBase = new File(catalinaBase, \"webapps\");\n Assert.assertTrue(\"Unable to create appBase directory\", appBase.mkdirs());\n\n tomcat = new Tomcat();\n\n String protocol = \"org.apache.coyote.http11.Http11Protocol\";\n Connector connector = new Connector(protocol);\n connector.setAttribute(\"address\", InetAddress.getByName(\"localhost\").getHostAddress());\n connector.setPort(0);\n\n connector.setAttribute(\"connectionTimeout\", \"3000\");\n tomcat.getService().addConnector(connector);\n tomcat.setConnector(connector);\n\n tomcat.setBaseDir(catalinaBase.getAbsolutePath());\n tomcat.getHost().setAppBase(appBase.getAbsolutePath());\n Context ctx = tomcat.addContext(\"/echo\", System.getProperty(\"java.io.tmpdir\"));\n Tomcat.addServlet(ctx, \"EchoServlet\", new EchoServlet());\n ctx.addServletMapping(\"/*\", \"EchoServlet\");\n\n final FilterDef filterDef = new FilterDef();\n filterDef.setFilter(new DumpValveFilter());\n filterDef.setFilterName(\"DumpValveFilter\");\n ctx.addFilterDef(filterDef);\n final FilterMap filterMap = new FilterMap();\n filterMap.addURLPattern(\"/*\");\n filterMap.setFilterName(\"DumpValveFilter\");\n ctx.addFilterMap(filterMap);\n\n tomcat.start();\n }", "@Test(timeOut = DEFAULT_TEST_TIMEOUT * 2, groups = \"1\", enabled = false)\r\n \tpublic void bootstrapEc2CloudTest() throws Exception {\r\n \t \r\n \t\tfor (int i = 0; i < NUM_OF_MANAGEMENT_MACHINES; i++) {\r\n \t\t\t// The rest home page is a JSP page, which will fail to compile if there is no JDK installed. So use testrest instead\r\n \t\t\tassertWebServiceAvailable(new URL( restAdminUrl[i].toString() + \"/service/testrest\"));\r\n \t\t\tassertWebServiceAvailable(webUIUrl[i]);\r\n \t\t}\r\n \t \r\n \t\tString connectCommand = \"connect \" + restAdminUrl[0].toString() + \";\";\r\n \t \r\n \t URL machinesURL = getMachinesUrl(restAdminUrl[0].toString());\r\n \t assertEquals(\"Expecting \" + NUM_OF_MANAGEMENT_MACHINES + \" machines\", \r\n \t \t\tNUM_OF_MANAGEMENT_MACHINES, getNumberOfMachines(machinesURL));\r\n \t \r\n \t //running install application on simple\r\n \t String installCommand = new StringBuilder()\r\n \t .append(\"install-application \")\r\n \t .append(\"--verbose \")\r\n \t .append(\"-timeout \")\r\n \t .append(TimeUnit.MILLISECONDS.toMinutes(DEFAULT_TEST_TIMEOUT * 2)).append(\" \")\r\n\t .append((new File(ScriptUtils.getBuildPath(), \"examples/travel\").toString()).replace('\\\\', '/'))\r\n \t .toString();\r\n \t \r\n \t String output = CommandTestUtils.runCommandAndWait(connectCommand + installCommand);\r\n \t \r\n \t Assert.assertTrue(output.contains(INSTALL_TRAVEL_EXPECTED_OUTPUT));\r\n \r\n \t // Travel is started with 2 instances (1 tomcat, 1 cassandra) so we are expecting two more machine\r\n assertEquals(\"Expecting \" + (NUM_OF_MANAGEMENT_MACHINES+2) + \" machines\", \r\n NUM_OF_MANAGEMENT_MACHINES+2, getNumberOfMachines(machinesURL));\r\n \t \r\n \t \r\n \t //uninstall simple application\r\n \t String uninstallCommand = \"uninstall-application --verbose travel\";\r\n \t output = CommandTestUtils.runCommandAndWait(connectCommand + uninstallCommand);\r\n \t \r\n \t Assert.assertTrue(output.contains(UNINSTALL_TRAVEL_EXPECTED_OUTPUT));\r\n \t \r\n \t}", "@Test\r\n\tpublic void startapp() {\n\t\tdriver.get(\"http://q.door.fund/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\r\n\t\tString currentURL = driver.getCurrentUrl();\r\n\t\tAssert.assertTrue(currentURL.contains(\"q.door.fund\"));\r\n\t\tSystem.out.println(\"Application loaded\");\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/drivers/chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\n\t\t// Implicit wait\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the application\n\t\tString url = \"https://opensource-demo.orangehrmlive.com/\";\n\t\tdriver.get(url);\n\n\t\tString titlePage = driver.getTitle();\n\t\tint titleLength = titlePage.length();\n\n\t\tSystem.out.println(\"title of the page is\" + titlePage);\n\t\tSystem.out.println(\"title of the page is\" + titleLength);\n\n\t\tString actualUrl = driver.getCurrentUrl();\n\n\t\tif (actualUrl.equals(url)) {\n\t\t\tSystem.out.println(\"Verification succesfull the correct url is opened\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Verification failed an correct url is opened\");\n\n\t\t}\n\n\t\tSystem.out.println(\"Actual URL is: \" + actualUrl);\n\t\tSystem.out.println(\"Expected URL is: \" + url);\n\n\t\tString sourcePage = driver.getPageSource();\n\t\tint sourcePageLength = sourcePage.length();\n\t\tSystem.out.println(\"Length of source page: \" + sourcePageLength);\n\t\t//driver.quit();\n\t}", "public static void main(String[] args)\n/* */ {\n/* 124 */ if (catalinaHome == null) {\n/* 125 */ log.error(\"Must set 'catalina.home' system property\");\n/* 126 */ System.exit(1);\n/* */ }\n/* */ \n/* */ \n/* 130 */ int index = 0;\n/* */ for (;;) {\n/* 132 */ if (index == args.length) {\n/* 133 */ usage();\n/* 134 */ System.exit(1);\n/* */ }\n/* 136 */ if (\"-ant\".equals(args[index])) {\n/* 137 */ ant = true;\n/* 138 */ } else if (\"-common\".equals(args[index])) {\n/* 139 */ common = true;\n/* 140 */ } else if (\"-server\".equals(args[index])) {\n/* 141 */ server = true;\n/* 142 */ } else { if (!\"-shared\".equals(args[index])) break;\n/* 143 */ shared = true;\n/* */ }\n/* */ \n/* 146 */ index++;\n/* */ }\n/* 148 */ if (index > args.length) {\n/* 149 */ usage();\n/* 150 */ System.exit(1);\n/* */ }\n/* */ \n/* */ \n/* 154 */ if (ant) {\n/* 155 */ System.setProperty(\"ant.home\", catalinaHome);\n/* */ }\n/* */ \n/* 158 */ ClassLoader classLoader = null;\n/* */ try {\n/* 160 */ ArrayList<File> packed = new ArrayList();\n/* 161 */ ArrayList<File> unpacked = new ArrayList();\n/* 162 */ unpacked.add(new File(catalinaHome, \"classes\"));\n/* 163 */ packed.add(new File(catalinaHome, \"lib\"));\n/* 164 */ if (common) {\n/* 165 */ unpacked.add(new File(catalinaHome, \"common\" + File.separator + \"classes\"));\n/* */ \n/* 167 */ packed.add(new File(catalinaHome, \"common\" + File.separator + \"lib\"));\n/* */ }\n/* */ \n/* 170 */ if (server) {\n/* 171 */ unpacked.add(new File(catalinaHome, \"server\" + File.separator + \"classes\"));\n/* */ \n/* 173 */ packed.add(new File(catalinaHome, \"server\" + File.separator + \"lib\"));\n/* */ }\n/* */ \n/* 176 */ if (shared) {\n/* 177 */ unpacked.add(new File(catalinaHome, \"shared\" + File.separator + \"classes\"));\n/* */ \n/* 179 */ packed.add(new File(catalinaHome, \"shared\" + File.separator + \"lib\"));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 184 */ classLoader = ClassLoaderFactory.createClassLoader((File[])unpacked.toArray(new File[0]), \n/* 185 */ (File[])packed.toArray(new File[0]), null);\n/* */ }\n/* */ catch (Throwable t) {\n/* 188 */ ExceptionUtils.handleThrowable(t);\n/* 189 */ log.error(\"Class loader creation threw exception\", t);\n/* 190 */ System.exit(1);\n/* */ }\n/* 192 */ Thread.currentThread().setContextClassLoader(classLoader);\n/* */ \n/* */ \n/* 195 */ Class<?> clazz = null;\n/* 196 */ String className = args[(index++)];\n/* */ try {\n/* 198 */ if (log.isDebugEnabled())\n/* 199 */ log.debug(\"Loading application class \" + className);\n/* 200 */ clazz = classLoader.loadClass(className);\n/* */ } catch (Throwable t) {\n/* 202 */ ExceptionUtils.handleThrowable(t);\n/* 203 */ log.error(\"Exception creating instance of \" + className, t);\n/* 204 */ System.exit(1);\n/* */ }\n/* */ \n/* 207 */ Method method = null;\n/* 208 */ String[] params = new String[args.length - index];\n/* 209 */ System.arraycopy(args, index, params, 0, params.length);\n/* */ try {\n/* 211 */ if (log.isDebugEnabled())\n/* 212 */ log.debug(\"Identifying main() method\");\n/* 213 */ String methodName = \"main\";\n/* 214 */ Class<?>[] paramTypes = new Class[1];\n/* 215 */ paramTypes[0] = params.getClass();\n/* 216 */ method = clazz.getMethod(methodName, paramTypes);\n/* */ } catch (Throwable t) {\n/* 218 */ ExceptionUtils.handleThrowable(t);\n/* 219 */ log.error(\"Exception locating main() method\", t);\n/* 220 */ System.exit(1);\n/* */ }\n/* */ \n/* */ try\n/* */ {\n/* 225 */ if (log.isDebugEnabled())\n/* 226 */ log.debug(\"Calling main() method\");\n/* 227 */ Object[] paramValues = new Object[1];\n/* 228 */ paramValues[0] = params;\n/* 229 */ method.invoke(null, paramValues);\n/* */ } catch (Throwable t) {\n/* 231 */ t = ExceptionUtils.unwrapInvocationTargetException(t);\n/* 232 */ ExceptionUtils.handleThrowable(t);\n/* 233 */ log.error(\"Exception calling main() method\", t);\n/* 234 */ System.exit(1);\n/* */ }\n/* */ }", "public static void main(String[] args) {\n\t\t\n\t\tFakeWebServer server = new FakeWebServer();\n\t\t\n\t\tString pageA = server.request(\"PageA\");\n\t\tSystem.out.println(pageA);\n\t\t\n\t\tString pageB = server.request(\"PageB\");\n\t\tSystem.out.println(pageB);\n\t\t\n\t\tString malicious = server.request(\"<script> Script will execute when it gets back to client </script>\");\n\t\tSystem.out.println(malicious);\n\t\t\n\t}", "@Before\n\tpublic void setup() {\n\t\tdante.can(BrowseTheWeb.with(hisBrowser));\n\t}", "public static void premain(String agentArgs, Instrumentation inst) {\n log(\"Loaded as agent!\");\n\n (Installer.instance = new Installer(false)).loadWindow();\n\n Installer.instance.autoHide.setState(false);\n Installer.instance.autoHide.setVisible(false);\n\n Installer.instance.downloadStatus.setVisible(true);\n Installer.instance.progressBar.setVisible(true);\n\n /* Used to retrieve the game folder, contained in the jvm launched by MC client*/\n String args = System.getProperty(\"sun.java.command\");\n String split[] = args.split(\"--gameDir \");\n String gameDir = split[1].split(\"--\")[0].trim();\n\n log(String.format(\"Found gameDir: %s . Working on it to setup all the mods correctly...\", gameDir));\n\n\n //TODO: Check if this is effectively useuful\n\n// File modsFolder = new File(gameDir, \"mods\");\n// FileUtils.checkDirectory(modsFolder);\n\n /* Launches the update & download process */\n download(new File(gameDir), manifest_url, false);\n\n /* Removes the progress bar after everything has been downloaded */\n Installer.instance.frame.setSize(Installer.instance.frame.getWidth(), Installer.instance.frame.getHeight() - 69);\n\n if (Installer.instance.autoHide.getState()) {\n Installer.instance.frame.setVisible(false);\n }\n\n log(\"Finished setup.\");\n }", "public static void main(String[] argv)\n {\n int p = determinePort(argv, 10000);\n XmlRpc.setKeepAlive (true);\n SecureWebServer webserver = new SecureWebServer (p);\n\n try\n {\n webserver.addDefaultHandlers();\n webserver.start();\n }\n catch (Exception e)\n {\n System.err.println(\"Error running secure web server\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "public static void main(String[] args) throws StaleProxyException\n {\n AgentController Data=main1.createNewAgent(\"Data\",\"test.Data\",null);\n Data.start();\n }", "public void testLoadOnStartup() throws Exception {\n WebXMLString wxs = new WebXMLString();\n wxs.addServlet( \"servlet1\", \"one\", Servlet1.class );\n wxs.setLoadOnStartup( \"servlet1\" );\n wxs.addServlet( \"servlet2\", \"two\", Servlet2.class );\n wxs.addServlet( \"servlet3\", \"three\", Servlet3.class );\n \n ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );\n ServletUnitClient wc = sr.newClient();\n InvocationContext ic = wc.newInvocation( \"http://localhost/three\" );\n assertEquals( \"Initialized servlets\", \"Servlet1,Servlet3\", ic.getServlet().getServletConfig().getServletContext().getAttribute( \"initialized\" ) );\n }", "@Test\n public void test() throws Exception {\n ApplicationManager appManager = deployApplication(HelloWorld.class);\n\n // Start WhoFlow\n FlowManager flowManager = appManager.getFlowManager(\"WhoFlow\").start();\n flowManager.waitForStatus(true);\n\n // Send stream events to the \"who\" Stream\n StreamManager streamManager = getStreamManager(\"who\");\n streamManager.send(\"1\");\n streamManager.send(\"2\");\n streamManager.send(\"3\");\n streamManager.send(\"4\");\n streamManager.send(\"5\");\n\n try {\n // Wait for the last Flowlet processing 5 events, or at most 5 seconds\n RuntimeMetrics metrics = flowManager.getFlowletMetrics(\"saver\");\n metrics.waitForProcessed(5, 5, TimeUnit.SECONDS);\n } finally {\n flowManager.stop();\n Assert.assertFalse(flowManager.isRunning());\n }\n\n // Start Greeting service and use it\n ServiceManager serviceManager = appManager.getServiceManager(HelloWorld.Greeting.SERVICE_NAME).start();\n\n // Wait service startup\n serviceManager.waitForStatus(true);\n\n URL url = new URL(serviceManager.getServiceURL(), \"greet\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n Assert.assertEquals(HttpURLConnection.HTTP_OK, connection.getResponseCode());\n String response;\n try {\n response = new String(ByteStreams.toByteArray(connection.getInputStream()), Charsets.UTF_8);\n } finally {\n connection.disconnect();\n }\n Assert.assertEquals(\"Hello 5!\", response);\n }", "public static void main(String[] args) {\n Webserver server = new Webserver();\n server.run();\n }", "@Test\n public void testRebuildWebapp() throws Exception {\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"test\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"binary\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"binary/\" + FCR_METADATA)));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"archival-group\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"archival-group/binary\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"archival-group/container\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"test/child\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"test/nested-archival-group\")));\n assertEquals(OK.getStatusCode(), getStatus(getObjMethod(\"test/nested-binary\")));\n\n //verify containment relationships\n verifyContainment(\"\", asList(\"binary\", \"archival-group\", \"test\"));\n verifyContainment(\"archival-group\", asList(\"binary\", \"container\"));\n verifyContainment(\"test\", asList(\"child\", \"nested-archival-group\", \"nested-binary\"));\n }", "public TestLiveAgent createAgent1(boolean start) {\n\t\treturn createTestAgent(\"live1\", 5001, start);\n\t}", "public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\t String USERNAME = \"skbasha_F5ElKd\";\n\t\t String AUTOMATE_KEY = \"cmagQMTZkagUR19ygptM\";\n\t\t String url = \"https://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub-cloud.browserstack.com/wd/hub\";\n\t\t \n\t\t \n\t\t System.out.println(\"Hello world\");\n\t\t\n\t\tDesiredCapabilities dc = new DesiredCapabilities();\n\t\tdc.setCapability(\"os\", \"Windows\");\n\t\tdc.setCapability(\"os_version\", \"10\");\n\t\tdc.setCapability(\"browser\", \"Chrome\");\n\t\tdc.setCapability(\"browser_version\", \"89\");\n\t\tdc.setCapability(\"name\", \"Basha's First Test\");\n\t\t\n\t\tRemoteWebDriver driver = new RemoteWebDriver(new URL(url), dc);\n\t\t\n\t\tdriver.get(\"https://irctc.co.in\");\n\t\t\n\t\tSystem.out.println(driver.getTitle());\n\n\t}", "public static void main(String[] args) throws Exception {\n\n\t\tServer server = new Server(8080);\n\n\t\tWebAppContext bb = new WebAppContext();\n\t\tbb.setServer(server);\n\n\t\tbb.addFilter(GuiceFilter.class, \"/*\", EnumSet.allOf(DispatcherType.class));\n\n\t\tServletHolder holder = bb.addServlet(ServletContainer.class, \"/*\");\n\t\tholder.setInitParameter(\"javax.ws.rs.Application\", \"net.ludeke.rest.jersey.MyApplication\");\n\n\t\tbb.addServlet(holder, \"/*\");\n\t\tbb.setContextPath(\"/\");\n\t\tbb.setWar(\"src/main/webapp\");\n\n\t\tserver.setHandler(bb);\n\n\t\ttry {\n\t\t\tSystem.out.println(\">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP\");\n\t\t\tserver.start();\n\t\t\twhile (System.in.available() == 0) {\n\t\t\t\tThread.sleep(5000);\n\t\t\t}\n\t\t\tserver.stop();\n\t\t\tserver.join();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(100);\n\t\t}\n\t}", "public void testMain(Object[] args) \n\t{\n\t\t//----------------------------------------------------------------------\n\t\t// Verify SUCCESS of Journey\n\t\t// Grab Inspection Details and Report\n\t\t//----------------------------------------------------------------------\n\t\ttry {\t\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\thtml_thankYou().waitForExistence(20.0, 0.25);\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tString sPaymentSuccess_Text = (String)html_thankYou().getProperty(\".text\");\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tSystem.out.println(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \");\n\t\t\tlogTestResult(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \", true);\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t} catch (Exception e) {\t\t\t\n\t\t\tlogTestResult(\" There Is A Problem WIth The CONFIRMATION Page - Quote Text Is NULL, Payment Gateway Issue or The Page Structure Changed?\", false);\t\t\n\t\t}\n\t\t//----------------------------------------------------------------------\t\n\t\tSystem.out.println(\"Test Journey Completed\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tiE().close();\n\t\t//stop();\n\t\t//----------------------------------------------------------------------\t\n\t}", "private static void deployHECode(String targetDir) throws InterruptedException, IOException, Exception {\r\n\t\t// Build library\r\n\t\tProcessBuilder ps = new ProcessBuilder(\"make\", \"-C\", targetDir);\r\n\r\n\t\t//From the DOC: Initially, this property is false, meaning that the \r\n\t\t//standard output and error output of a subprocess are sent to two \r\n\t\t//separate streams\r\n\t\tps.redirectErrorStream(true);\r\n\r\n\t\tProcess pr = ps.start(); \r\n\t\t\r\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(pr.getInputStream()));\r\n\t\tString line;\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t System.out.println(line);\r\n\t\t}\r\n\t\tint result = pr.waitFor();\r\n\t\tSystem.out.println(\"ok!\");\r\n\r\n\t\tin.close();\r\n//\t\tint result = Runtime.getRuntime().exec(\"make -C \" + targetDir).waitFor();\r\n\t\tif(result == 0) {\r\n\t\t\tSystem.out.println(\"Build successful\");\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Service build unsuccessful\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testClassAndFileLinks() throws Exception\n\t{\n\t\tFile file = new File(System.getProperty(\"user.dir\"));\n\t\twhile (! file.getName().equals(\"swac-testbed\")) {\n\t\t\tfile = file.getParentFile();\n\t\t\tif (file == null)\n\t\t\t\tAssert.fail(\"Could not find create scenario scripts. Started from \" + System.getProperty(\"user.dir\") + \" and went up\");\n\t\t}\n\t\t\n\t\t// Find swac-assembly dir\n\t\tFile swacParent = file.getParentFile();\n\t\tif (swacParent == null)\n\t\t\tAssert.fail(\"Could not find create scenario scripts, no dir above swac-controller\");\n\t\t\n\t\tFile swacAssembly = new File(swacParent, \"swac-assembly\");\n\t\tif (swacAssembly == null || ! swacAssembly.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts, swac-assembly not parallel to swac-controller\");\n\t\t\n\t\t// Find windows and unix creat scenario scripts\n\t\tchar sep = File.separatorChar; \n\t\tFile swacAssemblyBin = new File(swacAssembly.getAbsolutePath() + sep + \"src\" + sep + \"main\" + sep + \"bin\");\n\t\tif (swacAssemblyBin == null || ! swacAssemblyBin.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts in swac-assembly/src/main/bin\");\n\t\t\n\t\tFile windowsScript = new File(swacAssemblyBin, \"swac-create-scenario.bat\");\n\t\tif (! windowsScript.exists())\n\t\t\tAssert.fail(\"Could not find windows create scenario script in swac-assembly/src/main/bin/swac-create-scenario.bat\");\n\t\t\n\t\tFile unixScript = new File(swacAssemblyBin, \"new-swac-create-scenario.sh\");\n\t\tif (! unixScript.exists())\n\t\t\tAssert.fail(\"Could not find unix create scenario script in swac-assembly/src/main/bin/new-swac-create-scenario.sh\");\n\n\n\t\t// Read in windows create scenario script, parse out file and class lists.\n\t\tSet<String> winFilesSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_name_templates\", windowsScript, winFilesSet);\n\t\tSet<String> winClassSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_classes\", windowsScript, winClassSet);\n\t\tAssert.assertEquals(\"For windows create scenario script, num of files != num of classes, file \" + winFilesSet.size() + \", classes \" + winClassSet.size(),\n\t\t\t\t\t\t\twinFilesSet.size(), winClassSet.size());\n\t\tMap<String, String> winFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(winFilesSet, winClassSet, winFileClassMap);\n\t\t\n\t\t// Read in unix create scenario script, parse out file and class lists. \n\t\t// Adjust some values to align with windows style to allow apple to apples comparisons\n\t\tSet<String> unixFilesSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Files\", unixScript, unixFilesSet);\n\t\tunixFilesSet = adjustUnixFiles(unixFilesSet, new LinkedHashSet<String>());\n\t\tSet<String> unixClassSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Classes\", unixScript, unixClassSet);\n\t\tunixClassSet = adjustUnixClasses(unixClassSet, new LinkedHashSet<String>());\n\t\tAssert.assertEquals(\"For unix create scenario script, num of files != num of classes, file \" + unixFilesSet.size() + \", classes \" + unixClassSet.size(),\n\t\t\t\tunixFilesSet.size(), unixClassSet.size());\n\t\tMap<String, String> unixFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(unixFilesSet, unixClassSet, unixFileClassMap); \n\n\t\t// Test if the classes in windows and unix scripts match up\n\t\tif (! winClassSet.equals(unixClassSet)) {\n\t\t\tLinkedHashSet<String> uniqueWindowClasses = new LinkedHashSet<String>(winClassSet);\n\t\t\tuniqueWindowClasses.removeAll(unixClassSet);\n\t\t\t\n\t\t\tLinkedHashSet<String> uniqueUnixClasses = new LinkedHashSet<String>(unixClassSet);\n\t\t\tuniqueUnixClasses.removeAll(winClassSet);\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\tif(! uniqueWindowClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique windows class(es): \").append(uniqueWindowClasses).append(\". \");\n\t\t\tif(! uniqueUnixClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique unix class(es): \").append(uniqueUnixClasses).append(\". \");\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t\t\n\t\t// Test if the files in windows and unix scripts match up\n\t\tStringBuilder sb = null;\n\t\tfor (Entry<String, String> winEntry : winFileClassMap.entrySet()) {\n\t\t\tString winFile = winEntry.getValue();\n\t\t\tString unixFile = unixFileClassMap.get(winEntry.getKey());\n\t\t\tif (! winFile.equals(unixFile)) {\n\t\t\t\tif (sb == null) {\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\t\t}\n\t\t\t\tsb.append(\"Different files specified for class '\" + winEntry.getKey() + \"': windows: '\" + winFile + \"', unix: '\" + unixFile + \"'. \");\n\t\t\t}\n\t\t}\n\t\tif (sb != null) {\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t}", "@BeforeTest\n\tpublic void StartReportbeforeTest() {\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\") + \"/test-output/casestudy_Reports.html\", true);\n\t\textent.addSystemInfo(\"Host Name\", \"TestMeApp\");\n\t\textent.addSystemInfo(\"Environment\", \"Selenium Testing\");\n\t\textent.addSystemInfo(\"User Name\", \"Group-1\");\n\n\t\tdriver = UtilityClass.getDriver(\"chrome\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://10.232.237.143:443/TestMeApp\");\n\n\t}", "public void doExport(IProgressMonitor monitor) throws ExportException\n\t{\n\t\tSubMonitor subMonitor = SubMonitor.convert(monitor, \"Creating War File\", 20);\n\t\tFile warFile = createNewWarFile();\n\t\tsubMonitor.worked(1);\n\t\tFile tmpWarDir = createTempDir();\n\t\tsubMonitor.worked(1);\n\t\tString appServerDir = exportModel.getServoyApplicationServerDir();\n\t\tsubMonitor.subTask(\"Copy root webapp files\");\n\t\tcopyRootWebappFiles(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy beans\");\n\t\tcopyBeans(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy plugins\");\n\t\tcopyPlugins(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy lafs\");\n\t\tcopyLafs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy all standard libraries\");\n\t\tfinal File targetLibDir = copyStandardLibs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy Drivers\");\n\t\tcopyDrivers(appServerDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy images\");\n\t\tcopyLibImages(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tmoveSlf4j(tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating web.xml\");\n\t\tcopyWebXml(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tcreateTomcatContextXML(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\taddServoyProperties(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tif (exportModel.isExportActiveSolution())\n\t\t{\n\t\t\tsubMonitor.subTask(\"Copy the active solution\");\n\t\t\tcopyActiveSolution(subMonitor.newChild(2), tmpWarDir);\n\t\t}\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Create properties for default admin page\");\n\t\tcreateAdminProperties(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy NGClient components\");\n\t\tcopyComponents(subMonitor, tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy exported components\");\n\t\tcopyExportedComponentsPropertyFile(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating/zipping the WAR file\");\n\t\tzipDirectory(tmpWarDir, warFile);\n\t\tsubMonitor.worked(2);\n\t\tdeleteDirectory(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tmonitor.done();\n\t\treturn;\n\t}", "public static void main(String[] args) { /* package name */\n /* Configuration Name */launchTester(\"cux.oracle.apps.per.bonus.specialawards.server\", \n \"DeptAwardsTransAMLocal\");\n }", "public static void main(String[] args) {\n PlanHomeCoach.run();\n }", "public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void testDescDeployment(String name) throws Throwable\n {\n log.info(\"/////DESC \" + name + \" started ////\");\n testDeployment(createDescriptorDeployment(name), name);\n }", "@Test\n\tpublic void issue_1152() {\n\n\t\tProjectFactory.newProject(\"cbr-blueprint\").version(CAMEL_2_17_0_REDHAT_630254).template(CBR).type(BLUEPRINT).create();\n\t\tString server = serverRequirement.getConfig().getName();\n\t\tFuseServerManipulator.startServer(server);\n\t\tFuseServerManipulator.addModule(server, \"cbr-blueprint\");\n\t\tAbstractWait.sleep(TimePeriod.NORMAL);\n\t\tFuseServerManipulator.removeAllModules(server);\n\t\tnew WaitUntil(new FuseLogContainsText(\"(CamelContext: cbr-example-context) is shutdown\"), TimePeriod.VERY_LONG);\n\t}", "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tWN.useProject(Cfg.projectName);\n\t\tEE.dnd(\"Database Connections->My Sample Database->sampledb->Tables->department (dba)\");\n\t\tWN.deployProject(new DeployOption().startParameter(Cfg.projectName)\n\t\t\t\t.server(\"My Unwired Server\")\n\t\t\t\t.serverConnectionMapping(\"My Sample Database,sampledb\"));\n\t\t\n\t\tWN.createWorkFlow(new WorkFlow().startParameter(Cfg.projectName).name(\"myWF\")\n\t\t\t\t.option(WorkFlow.SP_CLIENT_INIT)\n\t\t\t\t);\n\t\t\n\t\tWorkFlowEditor.addScreen(\"myscreen\");\n\t\tWorkFlowEditor.addWidget(\"myscreen\", new WFLink().label(\"link\")\n\t\t\t.newKey(\"link,string\")\n\t\t\t.defaultValue(\"danielva@sybase.com\")\n\t\t\t.logicalType(\"Email Address\"));\n\t\tWorkFlowEditor.link(\"Start Screen\",\"myscreen\");\n\t\t\n\t\tWN.createWorkFlowPackage(new WorkFlowPackage()\n\t\t.startParameter(WN.wfPath(Cfg.projectName, \"myWF\"))\n\t\t.unwiredServer(\"My Unwired Server\")\n\t\t.assignToUser(\"dt\")\n\t\t.verifyResult(\"Successfully deployed the workflow\", true));\n\t\n////Verify: 1.Android has tip:Unsupported action - that action is not currently supported.\n\t\n////2.used to BB6T:PASSED\n\tTestResult resultBB = Robot.run(\"tplan.Workflow.Controls.BB.Ctrl_Link_mailto_E2E_1.Script\");\n\tvpManual(\"DeviceTest\", true, resultBB.isPass()).performTest();\t\n\t}", "public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}", "@BeforeTest\n\tpublic void startReport() {\n\t\textent = new ExtentReports(System.getProperty(\"user.dir\")+\"//extent-reports//myreport.html\",true);\n\t\textent.addSystemInfo(\"Host Name\", \"LocalHost\");\n\t\textent.addSystemInfo(\"Environment\", \"QA\");\n\t\textent.addSystemInfo(\"User Name\", \"Prasanta\");\n\t\textent.loadConfig(new File(System.getProperty(\"user.dir\")+\"//ReportsConfig.xml\"));\n\t}", "public static void main(String[] args) throws HttpProcessException {\n getTest();\n }", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public static void main(String[] args) throws SecurityException, IOException {\n\t\tList<String> simulationAgents = new LinkedList<String>();\r\n\r\n\t\tif (args.length == 1) {\r\n\t\t\tString config_file = args[0];\r\n\t\t\tPath config_path = FileSystems.getDefault().getPath(args[0]).normalize().toAbsolutePath().getParent();\r\n\t\t\tSystem.out.println(config_path);\r\n\t\t\tYaml yaml = new Yaml();\r\n\t\t\tInputStream inputStream = new FileInputStream(config_file);\r\n\t\t\tScenarioConfig scenario = yaml.load(inputStream);\r\n\r\n\t\t\tinitLogging(scenario.getName());\r\n\r\n\t\t\tSystem.out.println(scenario);\r\n\t\t\ttry {\r\n\r\n\t\t\t\t// Obtenemos una instancia del entorno runtime de Jade\r\n\t\t\t\tRuntime rt = Runtime.instance();\r\n\r\n\t\t\t\t// Terminamos la máquinq virtual si no hubiera ningún contenedor de agentes\r\n\t\t\t\t// activo\r\n\t\t\t\trt.setCloseVM(true);\r\n\r\n\t\t\t\t// Lanzamos una plataforma en el puerto 8888\r\n\t\t\t\t// Y creamos un profile de la plataforma a partir de la cual podemos\r\n\t\t\t\t// crear contenedores\r\n\t\t\t\tProfile pMain = new ProfileImpl(null, 8888, null);\r\n\t\t\t\tSystem.out.println(\"Lanzamos una plataforma desde clase principal... \" + pMain);\r\n\r\n\t\t\t\t// Creamos el contenedor\r\n\t\t\t\tAgentContainer mc = rt.createMainContainer(pMain);\r\n\r\n\t\t\t\t// Creamos un RMA (la GUI de JADE)\r\n\t\t\t\tSystem.out.println(\"Lanzando el agente RMA en el contenedor main ...\");\r\n\t\t\t\tAgentController rma = mc.createNewAgent(\"rma\", \"jade.tools.rma.rma\", new Object[0]);\r\n\t\t\t\trma.start();\r\n\r\n\t\t\t\t// INICIALIZACIÓN DE LOS AGENTES\r\n\r\n\t\t\t\t// FishMarket\r\n\t\t\t\tAgentRefConfig marketConfig = scenario.getFishMarket();\r\n\t\t\t\tSystem.out.println(\"THIS\" + marketConfig);\r\n\t\t\t\tSystem.out.println(Paths.get(config_path.toString(), marketConfig.getConfig()));\r\n\t\t\t\tObject[] marketConfigArg = { Paths.get(config_path.toString(), marketConfig.getConfig()) };\r\n\t\t\t\tsimulationAgents.add(marketConfig.getName());\r\n\t\t\t\tAgentController market = mc.createNewAgent(marketConfig.getName(),\r\n\t\t\t\t\t\tpoa.agentes.AgenteLonja.class.getName(), marketConfigArg);\r\n\t\t\t\tmarket.start();\r\n\r\n\t\t\t\t// Buyers\r\n\t\t\t\tList<AgentRefConfig> buyers = scenario.getBuyers();\r\n\t\t\t\tif (buyers != null) {\r\n\t\t\t\t\tfor (AgentRefConfig buyer : buyers) {\r\n\t\t\t\t\t\tSystem.out.println(buyer);\r\n\t\t\t\t\t\tsimulationAgents.add(buyer.getName());\r\n\t\t\t\t\t\tObject[] buyerConfigArg = { Paths.get(config_path.toString(), buyer.getConfig()) };\r\n\t\t\t\t\t\tAgentController b = mc.createNewAgent(buyer.getName(),\r\n\t\t\t\t\t\t\t\tpoa.agentes.AgenteComprador.class.getName(), buyerConfigArg);\r\n\t\t\t\t\t\tb.start();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Sellers\r\n\t\t\t\tList<AgentRefConfig> sellers = scenario.getSellers();\r\n\t\t\t\tif (sellers != null) {\r\n\t\t\t\t\tfor (AgentRefConfig seller : sellers) {\r\n\t\t\t\t\t\tSystem.out.println(seller);\r\n\t\t\t\t\t\tsimulationAgents.add(seller.getName());\r\n\t\t\t\t\t\tObject[] sellerConfigArg = { Paths.get(config_path.toString(), seller.getConfig()) };\r\n\t\t\t\t\t\tAgentController b = mc.createNewAgent(seller.getName(),\r\n\t\t\t\t\t\t\t\tpoa.agentes.AgenteVendedor.class.getName(), sellerConfigArg);\r\n\t\t\t\t\t\tb.start();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\taddSniffer(mc, simulationAgents);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tRuntime runtime=Runtime.instance();\r\n\t\t\tProperties properties=new ExtendedProperties();\r\n\t\t\tproperties.setProperty(Profile.GUI, \"true\");\r\n\t\t\tProfile profile=new ProfileImpl(properties);\r\n\t\t\tAgentContainer mainContainer=runtime.createMainContainer(profile);\r\n\t\t\tmainContainer.start();\r\n\t\t} catch (ControllerException 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 exec() {\n\n try {\n\n String webDotXMLPath = webAppPath + \"/WEB-INF/web.xml\";\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory\n .newInstance();\n\n DocumentBuilder builder = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = builder.parse(new File(webDotXMLPath));\n DocumentType docType = doc.getDoctype();\n if (docType != null) {\n doc.removeChild(docType);\n }\n Element webAppElement = (Element) doc.getFirstChild();\n webAppElement.setAttribute(\"version\", \"2.4\");\n webAppElement.setAttribute(\"xmlns\",\n \"http://java.sun.com/xml/ns/j2ee\");\n webAppElement.setAttribute(\"xmlns:xsi\",\n \"http://www.w3.org/2001/XMLSchema-instance\");\n webAppElement\n .setAttribute(\n \"xsi:schemaLocation\",\n \"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\");\n\n OutputFormat of = new OutputFormat();\n of.setIndenting(true);\n of.setIndent(4); // 2-space indention\n of.setLineWidth(16384);\n\n OutputStream outputStream = new FileOutputStream(webDotXMLPath);\n Writer writer = new OutputStreamWriter(outputStream, \"utf-8\");\n\n XMLSerializer serializer = new XMLSerializer(writer, of);\n serializer.serialize(doc);\n\n writer.close();\n\n } catch (Exception e) {\n throw new RuntimeException(\"Processing failed\", e);\n }\n\n }", "@Test(priority=0) \r\n\tpublic void openApplication() { \r\n\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t}", "public Result loadWarFile(WebBundleDescriptor descriptor) {\n \n Result result = getInitializedResult();\n\tComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();\n\tcontext = getVerifierContext();\n try {\n // TODO : check whether this method is required?\n WebTestsUtil webTestsUtil = WebTestsUtil.getUtil(context.getClassLoader());\n// File f = Verifier.getArchiveFile(descriptor.getModuleDescriptor().\n// getArchiveUri());\n// if (f != null) {\n//\t webTestsUtil.extractJarFile(f);\n// }\n// else {\n// // dont bother about extracting JarFile\n// }\n\t //Sheetal: 09/30/02\n\t //dont need to call Verifier's appendCLWithWebInfContents() since J2EEClassLoader takes care of it\n\t //webTestsUtil.appendCLWithWebInfContents();\n } catch (Throwable e) {\n//\t e.printStackTrace();\n Verifier.debug(e);\n\t result.addErrorDetails(smh.getLocalString\n\t\t\t\t (\"tests.componentNameConstructor\",\n\t\t\t\t\t\"For [ {0} ]\",\n\t\t\t\t\tnew Object[] {compName.toString()}));\n result.addErrorDetails(smh.getLocalString\n\t\t(\"com.sun.enterprise.tools.verifier.tests.web.WebTest\" + \".Exception\",\n\t\t \"Error: Unexpected exception occurred [ {0} ]\",\n\t\t new Object[] {e.toString()}));\n } \n return result;\n }", "public static void main(String[] args) {\n\t\ttry { NetworkServerControl server = new NetworkServerControl(InetAddress.getByName(\"localhost\"),1527);\n\t\tserver.start(null);\n\t\tSystem.out.println(\"DB Server Started!\");\n\t\t//server.shutdown();\n\t\t//cn = DriverManager.getConnection(dbURL);\n\t\t} catch(Exception e) {System.out.println(\"Cannot Start DB Server!\"); }\n\t\t\n\t\tfinal JettyServer jettyServer = new JettyServer();\n\t\tString jetty_home = System.getProperty(\"jetty.home\",\".\");\n Server server = new Server(8080);\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/\");\n //webapp.setWar(jetty_home+\"/target/vrscloud-1.war\");\n webapp.setWar(\"ROOT.war\");\n server.setHandler(webapp);\n // server.start();\t\n\t\t\n\t\t\n jettyServer.setHandler(webapp);\t\n\t\t\n\t\tRunnable runner = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew ServerRunner(jettyServer);\n\t\t\t}\n\t\t};\n\t\tEventQueue.invokeLater(runner);\n\t}", "public void testEvent001() throws Exception {\n // clear all events in the eventfactory\n //EventFactory.clearEvents();\n //assertEquals(\"factory should not have any event\", 0, EventFactory.getEventSize());\n\n this.b.start();\n\n // expect emit of the following events:\n // org/osgi/service/web/DEPLOYING the web extender has spotted the web application bundle and is starting it.\n // org/osgi/service/web/DEPLOYED the web extender has finished starting the web application bundle. Formatted: Bullets and Numbering\n // wait a few seconds to make sure events are delivered.\n int count = 0;\n Event eventPrevious = null;\n Event eventCurrent = null;\n while(eventCurrent == null && count < WAITCOUNT) {\n eventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n\n assertEquals(\"event factory size should be 2\", 2, EventFactory.getEventSize());\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n\n long startingTime = (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP);\n long startedTime = (Long)eventCurrent.getProperty(EventConstants.TIMESTAMP);\n\n assertEquals(\"org/osgi/service/web/DEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventPrevious.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventPrevious.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventPrevious.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventPrevious.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startingTime);\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION));\n\n assertEquals(\"org/osgi/service/web/DEPLOYED\", eventCurrent.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventCurrent.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventCurrent.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventCurrent.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventCurrent.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startedTime);\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n // the extender information should be the same\n\n assertTrue(startedTime >= startingTime);\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE), eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_ID), eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME), eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION), eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n eventPrevious = null;\n eventCurrent = null;\n\n\n this.b.stop();\n // emit the following events:\n // org/osgi/service/web/UNDEPLOYING the web extender is stopping the web application bundle.\n // org/osgi/service/web/UNDEPLOYED a web extender has stopped the web application bundle.\n // wait a few seconds to make sure events are delivered.\n count = 0;\n while(eventCurrent == null && count < WAITCOUNT) {\n \teventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n assertEquals(\"org/osgi/service/web/UNDEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org/osgi/service/web/UNDEPLOYED\", eventCurrent.getTopic());\n assertTrue((Long)eventPrevious.getProperty(EventConstants.TIMESTAMP) >= startedTime);\n assertTrue((Long)eventCurrent.getProperty(EventConstants.TIMESTAMP) >= (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP));\n }", "public TestLiveAgent createAgent2(boolean start) {\n\t\treturn createTestAgent(\"live2\", 5002, start);\n\t}", "public static void main(String[] args) throws InterruptedException{\n\t\tWebDriverManager.chromedriver().setup();\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tdriver.get(\"http://localhost:3000/\");\n\t\tdriver.manage().window().maximize();\n\t\t//Test1(driver);\n\t\t//Test2(driver);\n\t\t//Test3(driver);\n\t\t//Test4(driver);\n\t\t//Test5(driver);\n\t\t//Test6(driver);\n\t\t//Test7(driver);\n\t\t//Test8(driver);\n\t\t//Test9(driver);\n\t\t//Test10(driver);\n\t\t//Test11(driver);\n\t\t//Test12(driver);\n\t\t//Test13(driver);\n\t\t//Test14(driver);\n\t\t//Test15(driver);\n\t\t//Test16(driver);\n\t\t//Test17(driver);\n\t\t//Test18(driver);\n\t\t//Test19(driver);\n\t\t//Test20(driver);\n\t}", "static void coverage()\n {\n new ServletUtils();\n }", "public void testConfigureExtender() throws Exception {\n\t\tThread.sleep(5 *1000);\r\n\t\t\r\n\t\tfor(Bundle bundle : bundleContext.getBundles()) {\r\n//\t\t\tLOG.error(bundle.getSymbolicName()+\" \"+bundle.getBundleContext().);\r\n\t\t}\r\n\r\n\t\t// the context path is modified by the Web extender's configuration fragment\r\n\t\ttestConnection(\"http://localhost:8080/manningcontextpathstrategy/hello.htm\");\t\r\n\t\t\r\n//\t\tfindBundle(\"org.springframework.osgi.web.extender\").stop();\r\n//\t\tThread.sleep(5 * 1000);\r\n//\t\tfindBundle(\"org.springframework.osgi.web.extender\").start();\r\n//\t\tThread.sleep(5 * 1000);\r\n\r\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException, ParseException, InterruptedException, Exception {\n InputStream stream = null;\n if (args.length > 0) {\n File file = new File(args[0]);\n if (file.isFile()) {\n stream = new FileInputStream(file);\n TestcaseRunner tr = new TestcaseRunner(0, stream);\n } else if (file.isDirectory()) {\n File[] files = file.listFiles();\n for(int i = 0; i < files.length; i++) {\n File f = files[i];\n if(f.isFile()) {\n stream = new FileInputStream(f);\n TestcaseRunner tr = new TestcaseRunner(i, stream);\n }\n }\n } else {\n System.err.println(\"Argument needs to be a file or a folder\");\n System.exit(-1);\n }\n return;\n } else {\n stream = App.class.getClassLoader().getResourceAsStream(\"merge_testcase.csv\");\n }\n\n SettingsParser.parse();\n\n if (profilingRun) { // For profiling\n\n LogManager.getLogManager().reset();\n\n for (int i = 0; i < 1000; i++) {\n runTest();\n }\n\n } else {\n\n WSServer ws = new WSServer(parseInt(SettingsParser.settings.get(\"websocket_port\").toString()));\n ws.start();\n\n BufferedReader sysin = new BufferedReader(new InputStreamReader(System.in));\n printHelp();\n mainloop:\n while (true) {\n String in = sysin.readLine();\n switch (in) {\n case \"q\":\n case \"quit\":\n case \"e\":\n case \"exit\":\n ws.stop();\n break mainloop;\n case \"t\":\n case \"test\":\n ws.stop();\n runTest();\n break mainloop;\n case \"f\":\n ws.stop();\n TestcaseRunner tr = new TestcaseRunner(0, stream);\n break mainloop;\n case \"h\":\n case \"help\":\n printHelp();\n break;\n default:\n System.out.println(\"Unknown command (\" + in + \")\");\n printHelp();\n break;\n }\n }\n }\n }", "@Test\n public void testReportFile() throws Exception {\n Jenkins jenkins = jenkinsRule.jenkins;\n WorkflowJob project = jenkins.createProject(WorkflowJob.class, \"cob-test\");\n\n project.setDefinition(new CpsFlowDefinition(new ScriptBuilder().getScript()));\n\n copyCoverageFile(\"coverage-with-data.xml\", \"coverage.xml\", project);\n try (OutputStream os = ensureWorkspaceExists(project).child(\"Main.java\").write(); PrintWriter pw = new PrintWriter(os)) {\n for (int i = 1; i <= 40; i++) {\n pw.println(\"line #\" + i);\n }\n }\n\n WorkflowRun run = jenkinsRule.buildAndAssertSuccess(project);\n\n jenkinsRule.assertLogContains(\"Publishing Cobertura coverage report...\", run);\n jenkinsRule.assertLogContains(\"Cobertura coverage report found.\", run);\n\n assertTrue(new File(project.getRootDir(), \"cobertura/Main_2ejava\").isFile());\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://demo.actitime.com/login.do\");\r\n\t\t//driver.get(\"http://localhost/login.do\");\r\n\t\t\r\n\t\t// access LoginPage POM class :--\r\n\t\t\r\n\t\tLoginPage login =new LoginPage(driver);\r\n\t\t\r\n\t\tlogin.setUserName(\"admin\");\r\n\t\tlogin.setPassword(\"manager\");\r\n\t\tlogin.loginClick();\r\n\t\t\r\n\t\t// access HomePage POM class :--\r\n\t\t\r\n\t\tHompage user=new Hompage(driver);\r\n\t\tThread.sleep(1000);\r\n\t\tuser.clickUser();\r\n\t\t\r\n\t\t// access UserList page class:--- \r\n\t\t\r\n\t\tUserListPage u=new UserListPage(driver);\r\n\t\t\r\n\t\tu.clickAddUser();\r\n\t\tThread.sleep(1000);\r\n\t\tu.setFirstName(\"rahul\");\r\n\t\tu.clickClose();\r\n\t\tu.clickOnAlert(driver);\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t}", "@Test\n public void testTemplate2() throws Exception {\n TemplateWebApplication webApp = new TemplateWebApplication(\"src/main/template2\");\n webApp.initialize();\n webApp.start();\n\n TemplateHttpServletRequest request = new TemplateHttpServletRequest();\n request.setWebApplication(webApp);\n request.setContextPath(\"\");\n request.setServletPath(\"/index.html\");\n request.setPathInfo(null);\n\n TemplateHttpServletResponse response = new TemplateHttpServletResponse();\n TemplateServletOutputStream outputStream = new TemplateServletOutputStream();\n response.setOutputStream(outputStream);\n outputStream.setResponse(response);\n\n webApp.service(request, response);\n\n assertEquals(200, response.getStatus());\n String responseString = new String(response.getResponseBody());\n assertTrue(responseString.contains(\"Hello Mojarra\"));\n }", "public static void main (String [] args) {\r\n TestNG runner= new TestNG();\r\n suitefiles=new ArrayList<String>();\r\n checkarguments(args);\r\n //suitefiles.add(\"C:\\\\data\\\\workspace\\\\webauto\\\\Suites.xml\");\r\n runner.setTestSuites(suitefiles);\r\n runner.run();\r\n }", "public void testMain(Object[] args) \n\t{\n\t\t// TODO Insert code here\n\t\tWN.useProject(Cfg.projectName);\n\t\t\n\t\tEE.runSQL(new ScrapbookCP().database(\"sampledb\")\n\t\t\t\t.type(\"Sybase_ASA_12.x\").name(\"My Sample Database\"), \n\t\t\t\tGlobalConfig.getRFTProjectRoot()+\"/testscript/Workflow/Screens/setup/add_a_b.sql\");\n\t\t\n\t\tEE.dnd(\"Database Connections->My Sample Database->sampledb->Tables->wf_ff_a (dba)\");\n\t\tEE.dnd(\"Database Connections->My Sample Database->sampledb->Tables->wf_ff_b (dba)\");\n\t\tWN.createRelationship(new Relationship()\n\t\t\t.startParameter(WN.mboPath(Cfg.projectName, \"Wf_ff_a\"))\n\t\t\t.target(\"Wf_ff_b\")\n\t\t\t.mapping(\"aid,aid\")\n\t\t\t.composite(\"true\")\n\t\t\t.type(Relationship.TYPE_OTM));\n\t\tWN.deployProject(new DeployOption().startParameter(Cfg.projectName)\n\t\t\t\t.server(\"My Unwired Server\")\n\t\t\t\t.mode(DeployOption.MODE_REPLACE)\n\t\t\t\t.serverConnectionMapping(\"My Sample Database,sampledb\"));\n\t\t\n\t\tWN.createWorkFlow(new WorkFlow().startParameter(Cfg.projectName)\n\t\t\t\t.name(\"myWF\")\n\t\t\t\t.option(WorkFlow.SP_SERVER_INIT)\n\t\t\t\t.mbo(\"Wf_ff_a\")\n\t\t\t\t.objectQuery(\"findByPrimaryKey\")\n\t\t\t\t.subject(\"dept_id=1\")\n\t\t\t\t.subjectMatchingRule(\"dept_id=\")\n\t\t\t\t.setParameterValue(\"aid,Subject,dept_id=\"));\n\t\t\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffa\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"WfffaDetail\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffacreate\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffadeleteinstance\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffaupdateinstance\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffb\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"WfffbDetail\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffbupdateinstance\")).performTest();\n\t\tvpManual(\"screen\", true, WorkFlowEditor.hasScreen(\"Wfffbadd\")).performTest();\n\t\tMainMenu.saveAll();\n\t\t\n\t\tWFCustomizer.runTest(new WorkFlowPackage()\n\t\t\t.startParameter(WN.filePath(Cfg.projectName, \"myWF\"))\n\t\t\t.unwiredServer(\"My Unwired Server\")\n\t\t\t.deployToServer(\"true\")\n\t\t\t.assignToSelectedUser(Cfg.deviceUser),\n\t\t\tcustomTestScript(), \n//\t\t\t\"tplan.Workflow.iconcommon.BB.server_dt_icon.Script\",\n\t\t\tnew CallBackMethod().receiver(WorkFlowEditor.class)\n\t\t\t.methodName(\"sendNotification\")\n\t\t\t.parameter(new Email()\n\t\t\t.unwiredServer(\"My Unwired Server\")\n\t\t\t.selectTo(Cfg.deviceUser)\n\t\t\t.subject(\"dept_id=1\")));\n\t\t\n\t\tsleep(1);\n\t\t//need to check data the backend DB\n\t\tvpManual(\"db\",1,getDB(\"select * from Wf_ff_b where bid = 4 and aid = 1 and bname ='Bfour' \")).performTest();\n\t\t\n\t\t\n//\t\tjava.util.List<String> clause = new ArrayList<String>();\n//\t\tclause.add(\"bid=4\");\n//\t\tclause.add(\"aid=1\");\n//\t\tclause.add(\"bname='Bfour'\");\n//\t\tvpManual(\"dbresult\", 1, CDBUtil.getRecordCount(\"localhost\", \"wf1\", \"Wf_ff_b\", clause)).performTest();\n\t}", "public static void main(String[] args) {\n\t\tClient client = Client.create();\n\t\tWebResource webResource = client.resource(\"http://10.14.129.6:8080/api/json\");\n\t\tSystem.out.println(\"changes made\");\n\t\tSystem.out.println(\"blah!\");\n\t\tSystem.out.println(\"blah! blah!\");\n\t}", "public void test5() throws Exception {\n //$NON-NLS-1$\n IFolder buildFolder = newTest(\"test5\");\n //$NON-NLS-1$\n String buildXMLPath = buildFolder.getFile(\"build.xml\").getLocation().toOSString();\n Properties properties = new Properties();\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"reference_location\", buildFolder.getFile(\"before\").getLocation().toOSString());\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"current_location\", buildFolder.getFile(\"after\").getLocation().toOSString());\n //$NON-NLS-1$\n properties.put(\"report_location\", buildFolder.getLocation().toOSString());\n //$NON-NLS-1$\n runAntScript(buildXMLPath, new String[] { \"run\" }, buildFolder.getLocation().toOSString(), properties);\n //$NON-NLS-1$ //$NON-NLS-2$\n assertFalse(\"allNonApiBundles must not exist\", buildFolder.getFolder(\"allNonApiBundles\").exists());\n //$NON-NLS-1$\n IFolder folder = buildFolder.getFolder(\"deltatest\");\n //$NON-NLS-1$\n assertTrue(\"deltatest folder must exist\", folder.exists());\n //$NON-NLS-1$\n folder = buildFolder.getFolder(\"deltatest1\");\n //$NON-NLS-1$\n assertTrue(\"deltatest1 folder must exist\", folder.exists());\n //$NON-NLS-1$ //$NON-NLS-2$\n assertTrue(\"report.xml file must be there\", folder.getFile(\"report.xml\").exists());\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\t\r\n\t\tChromeOptions chromeoptions=new ChromeOptions();\r\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://192.168.225.206:6878/wd/hub\"),chromeoptions);\r\n\t\t\r\n\t\tdriver.get(\"http://opensource.demo.orangehrmlive.com\");\r\n\t\tSystem.out.println(\"URL opened\");\r\n\r\n\t}", "public static void main(final String[] args) {\n\t\tServer server = new Server();\n\t\tSocketConnector connector = new SocketConnector();\n\t\tconnector.setPort(9090);\n\t\tserver.setConnectors(new Connector[] {connector});\n\n\t\tWebAppContext context = new WebAppContext();\n\t\tcontext.setServer(server);\n\t\tcontext.setContextPath(\"/biomedcalib\");\n\t\tcontext.setWar(\"src/main/webapp\");\n\n\t\tserver.addHandler(context);\n\t\ttry {\n\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\t\tWebDriver driver=new FirefoxDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t// open website\r\n\t\tdriver.get(\"https://adminfrontend.b2b-staging.thebestagent.pro/\");\r\n\t\tThread.sleep(2500);\r\n\r\n\t\t// log in\r\n\t driver.findElement(By.id(\"login-email\")).sendKeys(\"admin@antorica.com\");\r\n\t driver.findElement(By.id(\"login-password\")).sendKeys(\"cba321\");\r\n\t\tdriver.findElement(By.cssSelector(\".auth__login .button\")).click();\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t// open Agencies page\r\n\t\tdriver.findElement(By.linkText(\"Agencies\")).click();\r\n\t\tThread.sleep(1500);\r\n\t\t\r\n\t\t// looking for the ticketing fee preset link and clicking it\r\n\t driver.findElement(By.xpath(\"/html/body/div[2]/section[2]/div/div/table/tbody/tr[2]/td[2]/span/a\")).click();\r\n\t Thread.sleep(2500);\r\n\t \r\n\t\t// Looking for H1 \"Rules\" when clicked link page is opened\r\n\t\ttry {\r\n\t\t\tWebDriverWait h1title = new WebDriverWait(driver,3);\r\n\t\t\th1title.until(ExpectedConditions.textToBePresentInElementLocated(By.className(\"Index__title\"), \"Rules\"));\r\n\t\t\tSystem.out.println(\"H1 title 'Rules' found. As expected. PASS\");\r\n\t\t\t}\r\n\t\t \r\n\t\t catch(Exception fieldname) {\r\n\t\t\t System.out.println(\"H1 title not found. FAIL\");\r\n\t\t }\r\n\r\n\t // Following code captures the screenshot and place it in specified location\r\n\t TakesScreenshot ts = (TakesScreenshot)driver;\r\n\t\tFile scrFile = ts.getScreenshotAs(OutputType.FILE);\r\n\t\t\r\n\t\tString desiredName = \"D:/AlexP/Trash/TicketingFeeNameAsLinkOpensFeePage.png\";\r\n\t\tFile dstFile = new File(desiredName);\r\n\t int i = 0;\r\n\t\twhile (dstFile.exists ()) {\r\n\t\t i += 1;\r\n\t\t desiredName = \"D:/AlexP/Trash/TicketingFeeNameAsLinkOpensFeePage(\" + i + \").png\";\r\n\t\t dstFile = new File(desiredName);\r\n\t\t \r\n\t\t \t}\r\n\t\tSystem.out.println(\"Screenshot is taken, please check the folder D:/AlexP/Trash/\");\r\n\t\tFiles.copy(scrFile, dstFile); \r\n\t \r\n }", "@Test\n public void testServerApp() throws InterruptedException {\n\n }", "@Test\n @Deployment(resources = ApprovalProcess.RESOURCE)\n public void should_deploy() {\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\tDesktopOptions options = new DesktopOptions(); \n\t\toptions.setApplicationPath(\"C:\\\\Program Files (x86)\\\\HP\\\\Unified Functional Testing\\\\samples\\\\Flights Application\\\\FlightsGUI.exe\");\n\t\t\n\t\tWiniumDriver driver = new WiniumDriver(new URL(\"http://localhost:9999\"), options);\n\t\t\n\t\tdriver.findElement(By.id(\"agentName\")).sendKeys(\"John\");\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(\"HP\");\n\t\tdriver.findElement(By.id(\"okButton\")).click();\n\t\t\n\t\tWebDriverWait wait = new WebDriverWait(driver, 60);\n\t\twait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"John Smith\"))));\n\t\t\n\t\tdriver.close();\n\t\t\n\t}", "@Test\n\tpublic void launchSite()\t{\n\t\t\n\t\tSystem.setProperty(EdgeDriverService.EDGE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\MicrosoftWebDriver.exe\");\n\t\tEdgeDriver driver = new EdgeDriver();\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t}", "@Test\n\n public void updateWebHook() {\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tGeneralActions actions= new GeneralActions();\n\t\tWebDriver webdriver= actions.getDriver(Utility.getConfigValue(\"browser\"));\n\t\tactions.setDriver(webdriver);\n\t\tactions.getURL(Utility.getConfigValue(\"url\"));\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//go to tatoc page\n\t\twebdriver.findElement(By.partialLinkText(\"tatoc\")).click();\n\t\twebdriver.findElement(By.linkText(\"Basic Course\")).click();\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//\n\t\tJavascriptExecutor js;\n\t\tif(webdriver instanceof JavascriptExecutor){\n\t\t\tjs = (JavascriptExecutor)webdriver;\t\t\t\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalStateException(\"This driver does not support JavaScript!\");\n\t\t}\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//1 Grid Gate\n\t\tjs.executeScript(\"document.getElementsByClassName(\\\"greenbox\\\")[0].click();\");\n//--------------------------------------------------------------------------------------------------\n\t\t//Frame Dungeon\n\t\tString color1, color2;\n\t\tdo{\n\t\t\tcolor1 = (String) js.executeScript(\"return document.getElementById(\\\"main\\\").contentWindow.document.getElementById(\\\"answer\\\").className;\");\n\t\t\tcolor2 = (String) js.executeScript(\"return document.getElementById(\\\"main\\\").contentWindow.document.getElementById(\\\"child\\\").contentWindow.document.getElementById(\\\"answer\\\").className;\");\n\t\t\tif(color1.equals(color2))\n\t\t\t\tbreak;\n\t\t\tjs.executeScript(\"$(\\\"#main\\\").contents().find(\\\"a:contains(Repaint Box 2)\\\").click();\");\n\t\t\tThread.sleep(200);\n\t\t}while(true);\n\t\tjs.executeScript(\"$(\\\"#main\\\").contents().find(\\\"a:contains(Proceed)\\\").click();\");\n//---------------------------------------------------------------------------------------------------\n\t\t//3 Drag Around\n\t\twebdriver.get(\"http://10.0.1.86/tatoc/basic/drag\");\n\t\tjs.executeScript(\"document.getElementById(\\\"dropbox\\\").appendChild(document.getElementById(\\\"dragbox\\\"));\"+\n\t\t\t\t\"var d=document.getElementById(\\\"dragbox\\\");\"+\n\t\t\t\t\"d.style.position = \\\"absolute\\\";\"+\n\t\t\t\t\"d.style.left = document.getElementById(\\\"dropbox\\\").getBoundingClientRect().left;\"+\n\t\t\t\t\"$(\\\"a:contains(Proceed)\\\")[0].click();\");\t\n\t\t//--------------------------------------------------------------------------------------------------\n\t\t//4 Popup Windows\n\t\tString parent_window = webdriver.getWindowHandle();\n\t\t//driver.findElement(By.partialLinkText(\"Launch Popup Window\")).click();\n\t\tjs.executeScript(\"$(\\\"a:contains(Launch Popup Window)\\\").click();\");\n\t\tfor(String handle:webdriver.getWindowHandles()){\n\t\t\twebdriver.switchTo().window(handle);\n\t\t}\n\t\tjs.executeScript(\"document.getElementById(\\\"name\\\").value=\\\"vijay kumar\\\";\"+\n\t\t\t\t\"document.getElementById(\\\"submit\\\").click();\");\n\t\twebdriver.switchTo().window(parent_window);\n\t\tjs.executeScript(\"$(\\\"a:contains(Proceed)\\\").click();\");\n\t\t//--------------------------------------------------------------------------------------------------\n\t\t//5 Cookie Handling\n\t\tjs.executeScript(\"$(\\\"a:contains(Generate Token)\\\").click();\"+\n\t\t\t\t\"var token = document.getElementById(\\\"token\\\").innerText.split(\\\": \\\")[1];\"+\n\t\t\t\t\"\\\"Token=\\\"+token;\"+\n\t\t\t\t\"document.cookie=\\\"Token=\\\"+token;\"+\n\t\t\t\t\"$(\\\"a:contains(Proceed)\\\").click();\");\n//--------------------------------------------------------------------------------------------------\n\t\t//closing browser\n\t\twebdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\twebdriver.close();\n\t}", "public static void main(final String[] args) throws Exception {\n Resource.setDefaultUseCaches(false);\n Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.port\"));\n String SERVER_HOST = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.host\");\n String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.context_path\");\n \n final Server server = new Server(SERVER_PORT);\n System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString());\n System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST);\n System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH);\n \n\n // Configuring Apache CXF servlet and Spring listener \n final ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n final ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/\");\n context.addServlet(servletHolder, \"/\" + CONTEXT_PATH + \"/*\");\n context.addEventListener(new ContextLoaderListener());\n context.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n context.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n \n FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,\"/*\",EnumSet.allOf(DispatcherType.class));\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,\"*\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,\"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,\"GET,PUT,POST,DELETE,OPTIONS\");\n filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,\"5184000\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,\"true\");\n\n\n // Configuring Swagger as static web resource\n final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet());\n final ServletContextHandler swagger = new ServletContextHandler();\n swagger.setContextPath(\"/swagger\");\n swagger.addServlet(swaggerHolder, \"/*\");\n swagger.setResourceBase(new ClassPathResource(\"/webapp\").getURI().toString());\n\n final HandlerList handlers = new HandlerList();\n handlers.addHandler(swagger);\n handlers.addHandler(context);\n\n server.setHandler(handlers);\n server.start();\n server.join();\n }", "public boolean doRemoteSetupAndVerification() throws Exception {\n return true;\n }", "protected String generalHeadersQuickTest(Map<String, Object> options, String warName, boolean start, Bundle bundle)\n throws Exception {\n // specify install options\n String cp = options.get(WEB_CONTEXT_PATH) == null ? null\n : (String) options.get(WEB_CONTEXT_PATH);\n \n assertNotNull(\"Bundle bundle should not be null\", bundle);\n Manifest originalManifest = super.getManifestFromWarName(warName);\n\n // check manifest generated correctly\n BundleManifestValidator validator = new BundleManifestValidator(bundle,\n originalManifest, options, this.debug);\n try {\n validator.validate();\n } catch (IllegalArgumentException e) {\n fail(\"version format is valid - should not be getting an IllegalArgumentException\", e);\n } catch (Exception e) {\n fail(\"should not get any exception during validation\", e);\n }\n\n if (cp == null) {\n // let's find out the actual web-contextpath first since it is\n // generated by the system\n cp = bundle.getHeaders().get(WEB_CONTEXT_PATH);\n }\n \n if (cp != null) {\n cp = Util.attachSlash(cp);\n }\n\n if (!start) {\n // test unable to access pathes yet as it is not started\n assertTrue(\"Bundle status should be Installed or Resolved but not Active\", Bundle.RESOLVED == bundle.getState() \n || Bundle.INSTALLED == bundle.getState());\n assertFalse(\n \"Bundle not started yet - should not be able to access \"\n + cp, super.ableAccessPath(cp));\n bundle.start();\n \n }\n\n assertEquals(\"Bundle status should be Active\", Bundle.ACTIVE, bundle.getState());\n\n // make sure we don't run tests until the servletcontext is registered with service registry\n boolean register = super.checkServiceRegistered(cp);\n assertTrue(\"the ServletContext should be registered\", register);\n \n // rough test able to access the app\n assertTrue(\"should be able to access \" + cp, super.ableAccessPath(cp));\n\n try {\n // validate able to get Response of the home page and some dynamic page \n // correctly for the installed web app bundle\n checkPageContents(cp, warName);\n } catch (Exception e) {\n fail(\"should not be getting an exception here \" + e.getMessage());\n }\n \n return cp;\n }", "@Test\n\tpublic void cognitiveArchitectureStructureTest() {\n\t\ttry {\n\t\t\t// Create the agent\n\t\t\tString cognitiveAgentName = \"CognitiveAgent\";\n\n\t\t\t// Main codelet handler\n\t\t\tString mainCodeletHandlerName = \"MainProcessCodeletHandler\";\n\t\t\tString mainCodeletHandlerServiceAddress = cognitiveAgentName + \":\" + mainCodeletHandlerName;\n\n\t\t\t// Codelethandler Activate Concepts\n\t\t\tString activateConceptsCodeletTriggerName = \"ActivateConceptsCodeletHandlerTrigger\";\n\t\t\tString activateConceptsCodeletHandlerName = \"ActivateConceptsCodeletHandler\";\n\n\t\t\t// Codelethandler Create goals\n\t\t\tString createGoalsCodeletTriggerName = \"CreateGoalsCodeletHandlerTrigger\";\n\t\t\tString createGoalsCodeletHandlerName = \"CreateGoalsCodeletHandler\";\n\n\t\t\t// Codelethandler Activate beliefs\n\t\t\tString activateBeliefsCodeletTriggerName = \"ActivateBeliefsCodeletHandlerTrigger\";\n\t\t\tString activateBeliefsCodeletHandlerName = \"ActivateBeliefsCodeletHandler\";\n\n\t\t\t// CodeletHandler Propose Options\n\t\t\tString proposeOptionsCodeletTriggerName = \"ProposeOptionsCodeletHandlerTrigger\";\n\t\t\tString proposeOptionsCodeletHandlerName = \"ProposeOptionsCodeletHandler\";\n\n\t\t\t// CodeletHandler Propose Actions\n\t\t\tString proposeActionsCodeletTriggerName = \"ProposeActionsCodeletHandlerTrigger\";\n\t\t\tString proposeActionsCodeletHandlerName = \"ProposeActionsCodeletHandler\";\n\n\t\t\t// CodeletHandler Evaluate Options\n\t\t\tString evaluteOptionsCodeletTriggerName = \"EvaluateOptionsCodeletHandlerTrigger\";\n\t\t\tString evaluteOptionsCodeletHandlerName = \"EvaluateOptionsCodeletHandler\";\n\n\t\t\t// Codelet Select option (here, no codelethandler is executed, just a normal\n\t\t\t// codelet)\n\t\t\tString selectOptionCodeletName = \"SelectOptionCodelet\";\n\n\t\t\t// Codelet Execute Action\n\t\t\tString executeActionCodeletName = \"ExecuteActionCodelet\";\n\n\t\t\t// Memories\n\t\t\tString namespaceWorkingMemory = \"workingmemory\";\n\t\t\tString namespaceInternalStateMemory = \"internalstatememory\";\n\t\t\tString namespaceLongTermMemory = \"longtermmemory\";\n\n\t\t\t// Generate the configuration for the KORE system\n\t\t\tlog.info(\"Generate system configuration\");\n\t\t\t// Controller\n\t\t\tCellConfig cognitiveAgentConfig = CellConfig.newConfig(cognitiveAgentName)\n\t\t\t\t\t// Main codelethandler\n\t\t\t\t\t.addCellfunction(\n\t\t\t\t\t\t\tCellFunctionConfig.newConfig(mainCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t// Process codelethandlers\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateConceptsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(createGoalsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateBeliefsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeOptionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeActionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(evaluteOptionsCodeletHandlerName, CellFunctionCodeletHandler.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEWORKINGMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceWorkingMemory)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodeletHandler.ATTRIBUTEINTERNALMEMORYADDRESS,\n\t\t\t\t\t\t\t\t\tnamespaceInternalStateMemory))\n\t\t\t\t\t// Add main process codelets\n\t\t\t\t\t// Add trigger codelets\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateConceptsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"1\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(createGoalsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"2\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(activateBeliefsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"3\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeOptionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"4\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(proposeActionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"5\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig\n\t\t\t\t\t\t\t.newConfig(evaluteOptionsCodeletTriggerName, CellFunctionHandlerTriggerCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tmainCodeletHandlerServiceAddress)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"6\")\n\t\t\t\t\t\t\t.setProperty(CellFunctionHandlerTriggerCodelet.codeletHandlerServiceUriName,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName));\n\t\t\t// Direct codelets\n\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(selectOptionCodeletName,\n\t\t\t// OptionSelectorCodelet.class)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t// mainCodeletHandlerServiceAddress)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"7\"))\n\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(executeActionCodeletName,\n\t\t\t// ActionExecutorCodelet.class)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t// mainCodeletHandlerServiceAddress)\n\t\t\t// .setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, \"8\"));\n\n\t\t\t// Add the specific codelets\n\t\t\tString incrementServiceName = \"incrementservice\";\n\t\t\tString incrementDatapoint1 = \"incrementme1\";\n\t\t\tString incrementDatapoint2 = \"incrementme2\";\n\n\t\t\tcognitiveAgentConfig\n\t\t\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(incrementServiceName,\n\t\t\t\t\t// CFIncrementService.class)\n\t\t\t\t\t// .addManagedDatapoint(DatapointConfig.newConfig(CFIncrementService.ATTRIBUTEINCREMENTDATAPOINT,\n\t\t\t\t\t// namespaceWorkingMemory + \".\" + incrementDatapoint,\n\t\t\t\t\t// SyncMode.SUBSCRIBEWRITEBACK)))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet11\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet12\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet13\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet14\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet15\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet16\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint1));\n\n\t\t\tcognitiveAgentConfig\n\t\t\t\t\t// .addCellfunction(CellFunctionConfig.newConfig(incrementServiceName,\n\t\t\t\t\t// CFIncrementService.class)\n\t\t\t\t\t// .addManagedDatapoint(DatapointConfig.newConfig(CFIncrementService.ATTRIBUTEINCREMENTDATAPOINT,\n\t\t\t\t\t// namespaceWorkingMemory + \".\" + incrementDatapoint,\n\t\t\t\t\t// SyncMode.SUBSCRIBEWRITEBACK)))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet21\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateConceptsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet22\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + createGoalsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet23\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + activateBeliefsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet24\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet25\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + proposeActionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2))\n\t\t\t\t\t.addCellfunction(CellFunctionConfig.newConfig(\"IncrementCodelet26\", IncrementNumberCodelet.class)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTECODELETHANDLERADDRESS,\n\t\t\t\t\t\t\t\t\tcognitiveAgentName + \":\" + evaluteOptionsCodeletHandlerName)\n\t\t\t\t\t\t\t.setProperty(CellFunctionCodelet.ATTRIBUTEEXECUTIONORDER, 0)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESERVICENAME, incrementServiceName)\n\t\t\t\t\t\t\t.setProperty(IncrementNumberCodelet.ATTRIBUTESUBADDRESS, incrementDatapoint2));\n\n\t\t\tlog.debug(\"Start agent with config={}\", cognitiveAgentConfig);\n\n\t\t\tCellGatewayImpl cogsys = this.launcher.createAgent(cognitiveAgentConfig);\n\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.wait(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Write initial value on the incrementaddress\n\t\t\tcogsys.getCommunicator().write(\n\t\t\t\t\tDatapointBuilder.newDatapoint(namespaceWorkingMemory + \".\" + incrementDatapoint1).setValue(0));\n\t\t\tcogsys.getCommunicator().write(\n\t\t\t\t\tDatapointBuilder.newDatapoint(namespaceWorkingMemory + \".\" + incrementDatapoint2).setValue(0));\n\n\t\t\tlog.info(\"=== All agents initialized ===\");\n\n\t\t\t// memoryAgent.getCommunicator().write(Datapoint.newDatapoint(processDatapoint).setValue(new\n\t\t\t// JsonPrimitive(startValue)));\n\t\t\t// cogsys.getCommunicator().execute(cognitiveAgentName, mainCodeletHandlerName,\n\t\t\t// Arrays.asList(\n\t\t\t// Datapoint.newDatapoint(\"method\").setValue(\"executecodelethandler\"),\n\t\t\t// Datapoint.newDatapoint(\"blockingmethod\").setValue(new JsonPrimitive(true))),\n\t\t\t// 10000);\n\n\t\t\tJsonRpcRequest request1 = new JsonRpcRequest(\"executecodelethandler\", 1);\n\t\t\trequest1.setParameterAsValue(0, false);\n\n\t\t\tcogsys.getCommunicator().executeServiceQueryDatapoints(cognitiveAgentName, mainCodeletHandlerName, request1,\n\t\t\t\t\tcognitiveAgentName, mainCodeletHandlerName + \".state\",\n\t\t\t\t\tnew JsonPrimitive(ServiceState.FINISHED.toString()), 200000);\n\n\t\t\t// synchronized (this) {\n\t\t\t// try {\n\t\t\t// this.wait(1000);\n\t\t\t// } catch (InterruptedException e) {\n\t\t\t//\n\t\t\t// }\n\t\t\t// }\n\n\t\t\t// log.info(\"Read working memory={}\", cogsys.getDataStorage());\n\n\t\t\tint result1 = (int) (cogsys.getCommunicator().read(namespaceWorkingMemory + \".\" + incrementDatapoint1)\n\t\t\t\t\t.getValue().getAsDouble());\n\t\t\tint result2 = (int) (cogsys.getCommunicator().read(namespaceWorkingMemory + \".\" + incrementDatapoint1)\n\t\t\t\t\t.getValue().getAsDouble());\n\t\t\tint expectedResult1 = 6;\n\t\t\tint expectedResult2 = 6;\n\n\t\t\tlog.debug(\"correct value={}, actual value={}\", expectedResult1, result1);\n\n\t\t\tassertEquals(expectedResult1, result1);\n\n\t\t\tlog.debug(\"correct value={}, actual value={}\", expectedResult2, result2);\n\t\t\tassertEquals(expectedResult2, result2);\n\t\t\tlog.info(\"Test passed\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error testing system\", e);\n\t\t\tfail(\"Error\");\n\t\t}\n\n\t}", "@Test\r\n public void testAssaySecurity() throws Exception\r\n {\r\n log(\"Starting Assay security scenario tests\");\r\n setupEnvironment();\r\n setupPipeline(getProjectName());\r\n SpecimenImporter importer = new SpecimenImporter(TestFileUtils.getTestTempDir(), StudyHelper.SPECIMEN_ARCHIVE_A, new File(TestFileUtils.getTestTempDir(), \"specimensSubDir\"), TEST_ASSAY_FLDR_STUDY2, 1);\r\n importer.importAndWaitForComplete();\r\n defineAssay();\r\n uploadRuns(TEST_ASSAY_FLDR_LAB1, TEST_ASSAY_USR_TECH1);\r\n editResults();\r\n publishData();\r\n publishDataToDateBasedStudy();\r\n publishDataToVisitBasedStudy();\r\n editAssay();\r\n viewCrossFolderData();\r\n verifyStudyList();\r\n verifyRunDeletionRecallsDatasetRows();\r\n // TODO: Turn this on once file browser migration is complete.\r\n //verifyWebdavTree();\r\n goBack();\r\n }", "public static void main(String[] args) {\n inOrbitDestinationControllerTest();\n// inOrbitReplayControllerTest();\n\n }", "public static void main(String[] args) throws Exception {\n final Key key = KeyGenerator.getInstance(\"\").generateKey();\n\n final Environment env = new Environment();\n\n env.add(new Agent(\"alice\") {\n @Override\n public void task() throws Exception {\n final String text = \"I hope you get this message intact and in secret. Kisses, Alice.\";\n final byte[] pt = text.getBytes(StandardCharsets.UTF_8);\n send(\"bob\", pt);\n\n }\n });\n\n env.add(new Agent(\"bob\") {\n @Override\n public void task() throws Exception {\n\n }\n });\n\n env.connect(\"alice\", \"bob\");\n env.start();\n }", "private void initialDeploy() {\n }", "@Test\r\n\tpublic void MakeBeverageTest() throws InsuficientException, InterruptedException\r\n\t{\n\t\tmachine.MakeBeverage(\"Tea\", machine.GetOutlet(1));\r\n\t\tmachine.MakeBeverage(\"Tea\", machine.GetOutlet(0));\r\n\t\tSystem.out.println(\"Servered Successfully !!\");\r\n\t}", "public void setupBddWebApp(Scenario scenario) {\n basicSetup(scenario);\n updateWebdriver();\n }", "@BeforeClass\n public static void setUpBeforeAll() throws LifecycleException {\n server = EmbeddedServerFull\n .start(USER_DIR + \"/target/seedMaven-1.0-SNAPSHOT.war\",\n 8888, \"/app\");\n // Start the Selenium framework and pretend we're Firefox\n // If we don't, Angular will fallback to IE and fail\n driver = new HtmlUnitDriver(BrowserVersion.FIREFOX_38);\n // Enable JavaScript\n driver.setJavascriptEnabled(true);\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 }", "public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tBlackBox core = new BlackBox();\n\t\tcore.newEnvironment();\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * insert fire fighter agents\n\t\t\t * insert fire building tasks\n\t\t\t * insert fire station agents\n\t\t\t */\n\t\t\tcore.addAgent(FireFighter.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.variables\"));\n\t\t\tcore.addTask(FireBuildingTask.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.values\"));\n\t\t\tcore.addAgent(FireStation.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.central\"));\n\t\t\t\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcore.simulationStart();\n\t\t} catch (SimulatorException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\tfor(Variable var : core.getEnvironment().getVariables())\n\t\t{\n\t\t\tSystem.out.println(var.getClass());\n\t\t\tif(var instanceof Human){\n\t\t\t\tHuman h = (Human)var;\n\t\t\t\tSystem.out.println(\"Attributes of Human \"+h.getId());\n\t\t\t\tSystem.out.println(\"Strength \"+h.getStrength());\n\t\t\t\tSystem.out.println(\"Dexterity \"+h.getDexterity());\n\t\t\t\tSystem.out.println(\"Stamina \"+h.getStamina());\n\t\t\t\tSystem.out.println(\"Charisma \"+h.getCharisma());\n\t\t\t\tSystem.out.println(\"Appearance \"+h.getAppearance());\n\t\t\t\tSystem.out.println(\"Leadership \"+h.getLeadership());\n\t\t\t\tSystem.out.println(\"Intelligence \"+h.getIntelligence());\n\t\t\t\tSystem.out.println(\"Reasoning \"+h.getReasoning());\n\t\t\t\tSystem.out.println(\"Perception \"+h.getPerception());\n\t\t\t\tSystem.out.println(\"ph \"+((h.getStrength()-1)+(h.getDexterity()-1)+(h.getStamina()-1)));\n\t\t\t\tSystem.out.println(\"sc \"+((h.getCharisma()-1)+(h.getAppearance()-1)+(h.getLeadership()-1)));\n\t\t\t\tSystem.out.println(\"mn \"+((h.getIntelligence()-1)+(h.getReasoning()-1)+(h.getPerception()-1)));\n\t\t\t\tSystem.out.println(\"will \"+h.getWill());\n\t\t\t\tSystem.out.println(\"x \"+h.getX());\n\t\t\t\tSystem.out.println(\"y \"+h.getY());\n\t\t\t\tSystem.out.println(\"domain \"+h.getDomain().size());\n\t\t\t\tSystem.out.println();\n\t\t\t}else if(var instanceof FireStation){\n\t\t\t\tFireStation h = (FireStation)var;\n\t\t\t\tSystem.out.println(\"Attributes of the Fire Station \"+h.getId());\n\t\t\t\tSystem.out.println(\"x \"+h.getX());\n\t\t\t\tSystem.out.println(\"y \"+h.getY());\n\t\t\t\tSystem.out.println(\"domain \"+h.getDomain().size());\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tfor(Value val : core.getEnvironment().getValues())\n\t\t{\n\t\t\tSystem.out.println(val.getClass());\n\t\t\tFireBuildingTask t = (FireBuildingTask)val;\n\t\t\tSystem.out.println(\"Attributes of building \"+t.getId());\n\t\t\tSystem.out.println(\"Temperature \"+t.getTemperature());\n\t\t\tSystem.out.println(\"Floors \"+t.getFloors());\n\t\t\tSystem.out.println(\"Ground Area \"+t.getGroundArea());\n\t\t\tSystem.out.println(\"Success \"+t.getSuccess());\n\t\t\tSystem.out.println(\"HP \"+t.getBuildingHP());\n\t\t\tSystem.out.println(\"x \"+t.getX());\n\t\t\tSystem.out.println(\"y \"+t.getY());\n\t\t}*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void createNewComputerBuildSuccess() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n loginAndCreateBuild(computerBuild, loginRequest, SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n }", "@Test(groups = { \"v11\" })\n public void test2() {\n configureProject(\"PCTWSComp/test2/build.xml\");\n executeTarget(\"test\");\n }", "java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;", "@Test\n public void startApp2Do(){\n }", "public static void main(String[] args) throws Exception {\n try {\n String cxfServerFile = (new SharedConfig(\"AuthZService\")).getFilePath(\"server-cxf.xml\");\n new SpringBusFactory().createBus(\"file:\" + cxfServerFile);\n } catch (Exception ee) {\n throw new RuntimeException (ee);\n }\n \n AuthZStubSoapServer server = AuthZStubSoapServer.getInstance();\n server.startServer(false); \n }", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriver driver = new browser_methods().getDriver(\"chrome\");\r\n\t\tdriver.get(\"http://newtours.demoaut.com/\");\r\n\r\n\t}", "@BeforeAll\n public static void start() throws Exception {\n server = new Server(0);\n ((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);\n ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/foo\");\n server.setHandler(context);\n context.addServlet(new ServletHolder(TestServlet.class), \"/bar\");\n context.addServlet(new ServletHolder(TimeOutTestServlet.class), \"/timeout\");\n ((ServerConnector)server.getConnectors()[0]).setHost(\"localhost\");\n server.start();\n originalPort = ((ServerConnector)server.getConnectors()[0]).getLocalPort();\n LOG.info(\"Running embedded servlet container at: http://localhost:{}\", originalPort);\n // This property needs to be set otherwise CORS Headers will be dropped\n // by HttpUrlConnection\n System.setProperty(\"sun.net.http.allowRestrictedHeaders\", \"true\");\n }", "@Test\n public void smokeTest() throws AWTException {\n\n String[] browsers = {\"chrome\"};\n\n //Account must have internet device\n String userName = \"sstest01\";\n String accountWithUpgradeLinks = \"billpaytest05\";\n String passWord = \"Testing02\";\n String passWord2 = \"Testing01\";\n String last4Mac = \"B52A\";\n String zipCode = \"59102\";\n String https = \"https://\";\n String environment = \"ENGNEW\";\n String securityPreText = \"charternet:Chart3rn3t@\";\n String baseURL = \"www.engnew-spectrum.net\";\n\n for (String browser : browsers) {\n ExtentManager.createTest(browser + \" login\", \"Smoke Test\");\n WebDriver driver = PreTest.getBrowserDrivers(browser);\n //driver.get(\"HTTPS://pc.engnew-spectrum.net/\");\n driver.manage().window().maximize();\n driver.get(https + securityPreText + baseURL);\n driver.get(https + baseURL);\n\n //Ask Spectrum unauthenticated user\n ExtentManager.createTest(\"Ask spectrum should be available for unauthenticated users\", \"Smoke Test\");\n try {\n PgAskSpectrum.clickAskSpectrumChatButton(driver);\n //PgAskSpectrum.clickAskSpectrumChatButton(driver);\n AcAskSpectrum.verifyAskSpectrumWelcomeMessage(driver);\n PgAskSpectrum.clickSpectrumXButton(driver);\n PgAskSpectrum.clickSpectrumCloseButton(driver);\n } catch (AssertionError | Exception e){\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //create user name links\n ExtentManager.createTest(\"Verify create user name link on main page and left nav menu both go to create username page\", \"Smoke Test\");\n try {\n PgMenu.clickTopMenuButton(driver);\n PgMenu.clickCreateAUserNameButton(driver);\n PgForgotUsernamePassword.byPassZipCodeConfirmation(driver, zipCode);\n AcCreateUserName.verifyCreateUsernameTitle(driver);\n PgNavigation.clickSpectrumHeader(driver);\n PgLanding.clickCreateAUsernameButton(driver);\n AcCreateUserName.verifyCreateUsernameTitle(driver);\n driver.navigate().back();\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickSpectrumHeader(driver);\n }\n\n //Forgot username/password link\n try {\n ExtentManager.createTest(\"Verify clicking forgot username/pass navigates to forgot page\", \"Smoke Test\");\n PgLanding.clickForgotUserNameOrPassword(driver);\n AcForgotUsernamePassword.verifyGetUsernameOrPassword(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickSpectrumHeader(driver);\n PgLanding.clickForgotUserNameOrPassword(driver);\n }\n\n try {\n ExtentManager.createTest(\"Verify clicking 'get username radio button' goes to get username page\", \"Smoke Test\");\n PgForgotUsernamePassword.selectRadioButton(driver, \"get username\");\n PgForgotUsernamePassword.clickContinueButton(driver);\n AcGetUsername.verifyGetUsernameTitle(driver);\n driver.navigate().to(https+baseURL+\"/forgot\");\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickSpectrumHeader(driver);\n PgLanding.clickForgotUserNameOrPassword(driver);\n }\n\n try {\n ExtentManager.createTest(\"Verify clicking \\\"get Password radio button\\\" goes to get password page\", \"Smoke Test\");\n PgForgotUsernamePassword.selectRadioButton(driver, \"get password\");\n PgForgotUsernamePassword.clickContinueButton(driver);\n AcGetPassword.verifyGetPasswordTitle(driver);\n driver.navigate().to(https+baseURL+\"/forgot\");\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickSpectrumHeader(driver);\n PgLanding.clickForgotUserNameOrPassword(driver);\n }\n\n try {\n ExtentManager.createTest(\"Verify clicking \\\"get username and password radio button\\\" goes to get username and password page\", \"Smoke Test\");\n PgForgotUsernamePassword.selectRadioButton(driver, \"get username and password\");\n PgForgotUsernamePassword.clickContinueButton(driver);\n AcGetUsernameAndPassword.verifyGetUserAndPassTitle(driver);\n PgNavigation.clickSpectrumHeader(driver);\n\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickSpectrumHeader(driver);\n }\n\n ExtentManager.createTest(\"Verify User can sign in\", \"Smoke Test\");\n QuickActions.firstTimeLogin(driver, userName, passWord2, browser,environment);\n AcAccountSummary.waitForNoBillLoadingSpinner(driver);\n AcAccountSummary.ensureWhatsNewPopUpClosed(driver);\n //ensure CPNI compliant\n PgNavigation.clickVoiceLink(driver);\n QuickActions.ensureCPNICompliant(driver,last4Mac);\n\n //Account Summary\n ExtentManager.createTest(\"Verify Account Summary page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickAccountSummaryLink(driver);\n AcAccountSummary.verifyBillingHeader(driver);\n AcAccountSummary.ensureWhatsNewPopUpClosed(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Your Services and Equipment\n ExtentManager.createTest(\"Verify Your services and Equipment section includes icons for TV, Internet and Voice\", \"Smoke Test\");\n try {\n AcAccountSummary.verifyServiceAndEquipmentTVIcon(driver);\n AcAccountSummary.verifyServiceAndEquipmentInternetIcon(driver);\n AcAccountSummary.verifyServiceAndEquipmentVoiceIcon(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Your Services and Equipment links\n ExtentManager.createTest(\"Verify TV,Internet, and voice options all go to corresponding page\", \"Smoke Test\");\n try {\n //Verify TV\n PgAccountSummary.clickServicesAndEquipmentTVButton(driver);\n AcTV.verifyTVServicesAndEquipmentHeader(driver);\n //Verify internet\n PgNavigation.clickAccountSummaryLink(driver);\n PgAccountSummary.clickServicesAndEquipmentInternetButton(driver);\n AcInternet.verifyInternetServicesAndEquipmentHeader(driver);\n //Verify Voice\n PgNavigation.clickAccountSummaryLink(driver);\n PgAccountSummary.clickServicesAndEquipmentVoiceButton(driver);\n AcVoice.verifyVoiceServiceAndEquipmentHeader(driver);\n\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Billing\n ExtentManager.createTest(\"Verify Billing page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickBillingLink(driver);\n AcAccountSummary.ensureWhatsNewPopUpClosed(driver);\n AcBilling.makeAPaymentHeader(driver);\n AcBilling.verifyAutopayHeader(driver);\n AcBilling.verifyViewBillingStatementHeader(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //TV\n ExtentManager.createTest(\"Verify TV page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickTVLink(driver);\n AcTV.verifyTVServicesAndEquipmentHeader(driver);\n AcTV.verifyEquipmentHeader(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Internet\n ExtentManager.createTest(\"Verify Internet page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickInternetLink(driver);\n AcInternet.verifyInternetServicesAndEquipmentHeader(driver);\n AcInternet.verifyDevicesHeader(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n Common.sleep(5000);\n }\n\n ExtentManager.createTest(\"Verify Internet page has right section with Check Email, Go to Security Suite, with optionals of Access Cloud Drive and Manage Web Space\", \"Smoke Test\");\n try {\n AcInternet.verifyCheckEmailLink(driver);\n AcInternet.verifyGotoSecuritySuiteLink(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n Common.sleep(5000);\n }\n\n ExtentManager.createTest(\"Verify Internet page will contain status, message(based on connection), and troubleshoot button\", \"Smoke Test\");\n try {\n AcInternet.verifyInternetStatusHeader(driver, \"Connected\");\n AcInternet.verifyTroubleShootButton(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n Common.sleep(5000);\n }\n try {\n ExtentManager.createTest(\"Verify clicking device on Internet page will display device info with image,specs,and support.\", \"Smoke Test\");\n PgInternet.clickEquipmentBasedOnRowNumber(driver, \"1\");\n AcDeviceInfo.verifyDeviceImagePresence(driver);\n AcDeviceInfo.verifyProductSpecifications(driver, \".+\", \".+\");\n //Support modified and seems incomplete in engnew 3.55.0\n //AcDeviceInfo.verifySpecificationsTitle(driver);\n //AcDeviceInfo.verifySupportTitle(driver);\n AcDeviceInfo.verifyDeviceSupportLinkPresent(driver);\n PgNavigation.clickInternetLink(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgNavigation.clickInternetLink(driver);\n }\n\n try {\n ExtentManager.createTest(\"Verify Internet > Trouble shoot > click reset, displays loading modal and once completed shows Continue and Issue Resolved button\", \"Smoke Test\");\n PgInternet.clickTroubleShootButton(driver);\n //PgInternet.clickTroubleShootButton(driver);\n PgInternetTroubleshooting.clickResetModemButton(driver);\n AcInternetTroubleshooting.verifyModemResetModal(driver);\n AcInternetTroubleshooting.waitForModemResetCompletion(driver);\n AcInternetTroubleshooting.verifyModalContinueButtonPresent(driver);\n AcInternetTroubleshooting.verifyModalIssueResolvedButtonPresent(driver);\n\n ExtentManager.createTest(\"Verify when clicking \\\"Issue Resolved\\\" button user is navigated to Internet page\", \"Smoke Test\");\n PgInternetTroubleshooting.clickModalIssueResolvedButton(driver);\n AcInternet.verifyInternetServicesAndEquipmentHeader(driver);\n\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n PgInternet.closeModemResetModalIfPresent(driver);\n driver.navigate().to(https + baseURL);\n\n }\n //Voice\n ExtentManager.createTest(\"Verify Voice page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickVoiceLink(driver);\n AcVoice.verifyVoiceServiceAndEquipmentHeader(driver);\n AcVoice.verifyEquipmentHeader(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n\n }\n\n //Settings\n ExtentManager.createTest(\"Verify Settings page loads as expected\", \"Smoke Test\");\n try {\n PgNavigation.clickSettingsLink(driver);\n AcSettings.verifySettingsHeader(driver);\n AcSettings.verifyContactInfoHeader(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n\n }\n\n //Ask Spectrum\n ExtentManager.createTest(\"Verify Ask Spectrum can be minimized, reduced, and maximized</br>\" + \"Ask spectrum should be available for authenticated users\", \"Smoke Test\");\n try {\n PgAskSpectrum.clickAskSpectrumChatButton(driver);\n AcAskSpectrum.verifyAskSpectrumWelcomeMessage(driver);\n\n //get ask spectrum Y coordinate while maximized\n int maximizedY = AcAskSpectrum.getAskSpectrumCoordinate(driver, \"y\");\n PgAskSpectrum.clickSpectrumContractButton(driver);\n\n //ensures maximized chat is not still present before getting new coordinate\n Common.verifyElementNotVisible(driver, \"//button[@id= 'alme-contract-button']\", 5);\n //get ask spectrum Y coordinate while reduced for comparison\n int contractedY = AcAskSpectrum.getAskSpectrumCoordinate(driver, \"y\");\n\n //verify maximized Y value to reduced Y value, if reduced value is higher, then ask spectrum successfully went to contracted version and was originally at max version\n Comparison.verifyHigherIntValue(contractedY, maximizedY);\n PgAskSpectrum.clickSpectrumMinimizeButton(driver);\n\n //ensures reduced chat is not still present before getting new coordinate\n Common.verifyElementNotVisible(driver, \"//button[@id= 'alme-expand-button']\", 5);\n //get ask spectrum Y coordinate while minimized for comparison\n int minimizedY = AcAskSpectrum.getAskSpectrumCoordinate(driver, \"y\");\n //verify contracted Y value to minimized Y value, if minimized value is higher, then ask spectrum successfully minimized\n Comparison.verifyHigherIntValue(minimizedY, contractedY);\n\n\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //mail\n ExtentManager.createTest(\"Verify mail icon directs to correct page\", \"Smoke Test\");\n try {\n PgNavigation.clickmailLink(driver);\n String mailURL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\"https://mail2.(engprod|engnew|stage)-spectrum.net.*\", mailURL);\n driver.navigate().to(https+baseURL);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Voice online manager\n ExtentManager.createTest(\"Verify phone icon directs to correct page\", \"Smoke Test\");\n try {\n PgNavigation.clickVoiceOnlineManagerLink(driver);\n String voiceURL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\"https://www.(engprod|engnew|stage)-spectrum.net/voice/\", voiceURL);\n driver.navigate().to(https+baseURL);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Support\n ExtentManager.createTest(\"Verify support link directs to correct page\", \"Smoke Test\");\n try {\n PgNavigation.clickSupportLink(driver);\n String supportURL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\"https://www.(engnew|engprod|stage)-spectrum.net/support/\", supportURL);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //sign out\n ExtentManager.createTest(\"Verify Sign out link directs to correct page\", \"Smoke Test\");\n try {\n PgNavigation.clickSignOutLink(driver);\n AcLanding.verifySignInToGetStartedSection(driver);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Verify Search works as expected\n try {\n ExtentManager.createTest(\"Verify Search works as expected\", \"Smoke Test\");\n PgNavigation.clickSearchButtonIcon(driver);\n PgNavigation.enterTextSearchField(driver, \"hello\");\n PgNavigation.clickSearchButton(driver);\n Common.sleep(2000);\n AcSearchResults.verifySpectrumResultsHeader(driver, FALSE);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n\n //Verify if TV, Internet or Voice service is not included, upgrade link is present and directs to upgrade flow\n ExtentManager.createTest(\"Verify if TV, Internet or Voice service is not included, upgrade link is present and directs to upgrade flow\", \"Smoke Test\");\n try {\n PgNavigation.clickSpectrumHeader(driver);\n QuickActions.login(driver, accountWithUpgradeLinks, passWord2, browser);\n AcAccountSummary.waitForNoBillLoadingSpinner(driver);\n AcAccountSummary.ensureWhatsNewPopUpClosed(driver);\n PgAccountSummary.clickFirstAddServiceButton(driver);\n String URL = driver.getCurrentUrl();\n Comparison.verifyStringMatch(\".*ispectrum.com/buyflow.*\", URL);\n } catch (AssertionError | Exception e) {\n ExtentManager.stepReport(Status.FAIL, String.valueOf(e));\n }\n }\n }" ]
[ "0.5848333", "0.5840148", "0.5625283", "0.5533439", "0.5459762", "0.54370713", "0.5388323", "0.5346075", "0.5344957", "0.5334149", "0.53158844", "0.53139126", "0.5313888", "0.53102267", "0.5304668", "0.5257706", "0.5240712", "0.5225252", "0.5191263", "0.5182906", "0.51659787", "0.516429", "0.5146122", "0.5144876", "0.5122755", "0.5119982", "0.5118739", "0.5118669", "0.5117854", "0.5107687", "0.509312", "0.5069321", "0.50682795", "0.50578076", "0.50413394", "0.50378114", "0.50344706", "0.50283015", "0.50214255", "0.50205857", "0.50148714", "0.499356", "0.49903572", "0.49847525", "0.49838403", "0.49800205", "0.49798447", "0.49751678", "0.49642223", "0.49496737", "0.49451575", "0.49402222", "0.49335057", "0.4918134", "0.49179506", "0.49172547", "0.49106425", "0.4910617", "0.49103847", "0.4903051", "0.49019068", "0.48931068", "0.4891581", "0.48847887", "0.4873459", "0.48702547", "0.48694333", "0.48677397", "0.4866943", "0.48603365", "0.4859726", "0.48594186", "0.4857321", "0.48558247", "0.48549005", "0.4854725", "0.4852284", "0.48514414", "0.48396474", "0.48389843", "0.48331004", "0.48290834", "0.48283815", "0.48282036", "0.4826308", "0.48223963", "0.48084044", "0.48062444", "0.48035672", "0.4801286", "0.48008066", "0.48002222", "0.47980145", "0.47976875", "0.4793652", "0.47927916", "0.47860447", "0.4783353", "0.47825092", "0.47810087", "0.477814" ]
0.0
-1
TODO Autogenerated method stub
@Override public void start(Stage primaryStage) throws Exception { Parent main = FXMLLoader.load(getClass().getResource("MainForm.fxml")); scene = new Scene(main, 1000, 800); scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Return is redundant if he is on the end of objectBlock and the objectBlock of the method divided into several tokens.
private void checkForRedundantReturn(DetailAST aMethodObjectBlock) { final int methodChildCount = aMethodObjectBlock.getChildCount(); if (methodChildCount != 1) { final int placeForRedundantReturn = aMethodObjectBlock .getLastChild().getPreviousSibling().getType(); final int methodWithSingleChild = 2; if (methodChildCount > methodWithSingleChild) { handlePlacesForRedundantReturn(placeForRedundantReturn, aMethodObjectBlock); } else { if (!mAllowReturnInEmptyMethodsAndConstructors) { handlePlacesForRedundantReturn(placeForRedundantReturn, aMethodObjectBlock); } if (placeForRedundantReturn == TokenTypes.LITERAL_TRY) { submitRedundantReturnInTryCatch(aMethodObjectBlock .getFirstChild()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void compileReturnHelper() throws IOException {\n printToken(); // prints 'return'\n getNextToken();\n if (!Objects.equals(currentToken, SEMICOLON)) compileExpression();\n printToken();\n }", "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }", "public boolean visit(ReturnStatement returnStatement) {\n\t\tASTNode parent = returnStatement.getParent();\r\n\t\tStatement statementBeforeReturn = null;\r\n\t\tif(parent instanceof Block){\r\n\t\t\tBlock block = (Block)parent;\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Statement> statements = block.statements();\r\n\t\t\tint stSize = statements.size();\r\n\t\t\tint returnPos = 0;\r\n\t\t\tfor(int i=0; i<stSize; i++){\r\n\t\t\t\tObject statement = statements.get(i);\r\n\t\t\t\t//System.out.println(\"Statement...\");\r\n\t\t\t\t//System.out.println(statement);\r\n\t\t\t\tif(statement instanceof ReturnStatement){\r\n\t\t\t\t\treturnPos = i-1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(returnPos>0){\r\n\t\t\t\tstatementBeforeReturn = (Statement) statements.get(returnPos);\r\n\t\t\t}else{\r\n\t\t\t\tstatementBeforeReturn = (Statement) statements.get(0);\r\n\t\t\t\t/*if(Statement.METHOD_INVOCATION == statementBeforeReturn.getNodeType()){\r\n\t\t\t\t\t\r\n\t\t\t\t}*/\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(parent instanceof IfStatement){\r\n\t\t\tstatementBeforeReturn = (IfStatement) parent;\r\n\t\t\t//System.out.println(\"statementBeforeReturn: \"+statementBeforeReturn);\r\n\t\t} else{\r\n\t\t\tSystem.out.println(\"Unknown statement !!!\");\r\n\t\t}\r\n\t\tMethodLogInspectionResult result = new MethodLogInspectionResult();\r\n\t\tresults.add(result);\r\n\t\tif(currentPackage!=null){\r\n\t\t\tresult.setPackageName(currentPackage.getName().getFullyQualifiedName());\r\n\t\t}\r\n\t\tresult.setClassName(currentClassName);\r\n\t\tresult.setMethodName(currentMethodName);\r\n\t\t// check first statement\r\n\t\tString expectedFormat = currentClassName + \"#\" + currentMethodName + \":end\";\r\n\t\tif (statementBeforeReturn instanceof IfStatement) {\r\n\t\t\tLogInspectionResult r = LogStatementUtils.isLevelCheckedLogStatement((IfStatement) statementBeforeReturn,\r\n\t\t\t\t\texpectedFormat);\r\n\t\t\tresult.setLogInspectionResult(r);\r\n\t\t} else if (statementBeforeReturn instanceof ExpressionStatement) {\r\n\t\t\tLogInspectionResult r = LogStatementUtils.isLogStatement((ExpressionStatement) statementBeforeReturn,\r\n\t\t\t\t\texpectedFormat);\r\n\t\t\tresult.setLogInspectionResult(r);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public Snippet visit(MethodDeclaration n, Snippet argu) {\n\t\t Snippet _ret=null;\n\t\t\ttPlasmaCode = \"\";\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.returnType.accept(this, argu);\n\t String tempString = \"\";\n\t\t\tif(f2 != null){\n\t\t\t\t//System.out.println(\" \"+f2.expType+\" \"+f2.returnTemp);\n\t\t\t\ttempString = f2.expType.typeName;\n\t\t\t}else{\n\t\t\t\ttempString = \"void \";\n\t\t\t}\n\t Snippet f3 = n.identifier.accept(this, argu);\n\t String methodName = f3.expType.getTypeName();\n\t memberSig = new MethodSignature();\n\t\t\tmemberSig.methodName = methodName;\n\t\t\tcurrentMethod = currentClass.methods.get(methodName);\n\t\t\t\n\t\t\t\n\t\t\ttempCounter = tempZero;\n\t\t\tblockId = 1;\n\t\t\tcurrentBlock = 1;\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f5 = n.nodeOptional.accept(this, argu);\n\t // n.nodeToken3.accept(this, argu);\n\t memberSig = null;\n\t\t\tblockId = 0;\n\t\t\tcurrentBlock = 0;\n\t\t\t\n\t\t\tString tempFormal = \"\";\n\t\t\tif(f5 != null){\n\t\t\t\ttempFormal = f5.returnTemp+\",\";\n\t\t\t}else{\n\t\t\t\ttempFormal = \"\";\n\t\t\t}\n\t\t\t\n\t\t\ttempString+=\" \"+methodName+\" \"+\"( \"+tempFormal+\" int myUniquePlacePoint)\";\n\t\t\t\n\t\t\ttPlasmaCode += \"public static \"+tempString+\"\\n\";\n\t\t\t//String placeCheckString = \"final HashMap<Integer, HashSet<Integer>> globalPointerHashMap = new final HashMap<Integer, HashSet<Integer>>(4)\";\n\t\t\t//placeCheckString += \"final int maxPlaces = 4; \\n for(int i =0; i <maxPlaces; ++i){globalPointerHashMap.put(i, new HashSet<Integer>());}\";\n\t\t\tn.block.accept(this, argu);\n\t currentClassBody.methods += tPlasmaCode;\n\t\t\ttPlasmaCode = \"\";\n\t return _ret;\n\t }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void visitReturn(Quad obj) {\n if(obj.getOperator() == Operator.Return.RETURN_V.INSTANCE) {\n return;\n }\n Operand src = Return.getSrc(obj);\n Set r;\n if (obj.getOperator() == Return.THROW_A.INSTANCE) {\n r = thrown;\n } else {\n r = returned;\n }\n \n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n if (src instanceof RegisterOperand) {\n Register src_r = ((RegisterOperand)src).getRegister();\n addToSet(r, getRegister(src_r));\n } else \n if(src instanceof ConstOperand){\n // String constant\n Node n = handleConst((ConstOperand) src, new QuadProgramLocation(method, obj));\n //System.err.println(\"Before : \" + r);\n r.add(n);\n //System.err.println(\"Before : \" + r);\n } else {\n System.err.println(\"Unexpected \" + obj);\n }\n }", "public Snippet visit(MethodCallStatement n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\", \"\", null, false);\n\t\t\tSnippet f0 =n.methodCall.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp + \";\";\n\t\t\ttPlasmaCode+=generateTabs(blockDepth)+_ret.returnTemp+\"\\n\";\n\t return _ret;\n\t }", "private boolean isReturnStatement()\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.RETURN)\n\t\t{\n\t\t\tisValid = true;\n\t\t\tSystem.out.println(\"Return!\");\n\t\t}\t\n\t\t\n\t\treturn isValid;\n\t}", "private boolean check(TokenType tokType) {\r\n if(tokens.get(position).returnType() != tokType) {\r\n return false;\r\n }\r\n return true;\r\n }", "public Tipo visitBlock(DECAFParser.BlockContext ctx){\r\n\t\tTipo res=super.visitBlock(ctx);\r\n\t\tposition=tablaSimbolos.exit();\r\n\t\tif(ctx.children.size()==0){\r\n\t\t\ttablaSimbolos.addError(\"Missing instructions inside { }\");\r\n\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public int h(Block parambec)\r\n/* 29: */ {\r\n/* 30: 44 */ return F();\r\n/* 31: */ }", "public T caseBlock(Block object) {\r\n\t\treturn null;\r\n\t}", "public Token curr() throws SyntaxException {\n\t\tif (token==null)\n\t\t\tthrow new SyntaxException(pos,new Token(\"ANY\"),new Token(\"EMPTY\"));\n\t\treturn token;\n }", "final public IASTLiteralTextNode ppRestOfLine(boolean skip) throws ParseException {\r\n Token start = token, end = start;\r\n if (skip || !(start instanceof ASTToken))\r\n start = end = getNextToken();\r\n int startLine = start.beginLine;\r\n if (end.kind != EOF && end.beginLine == startLine) {\r\n while (true) {\r\n end = getNextToken();\r\n if (end.kind == EOF || end.beginLine != startLine)\r\n break;\r\n }\r\n }\r\n {if (true) return getLiteralTextNodeSpanningUpTo(start, end);}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public String getBlockEnd () {\n return BLOCK_END_PREFIX + objectName + BLOCK_END_SUFFIX;\n }", "protected String codeBlockSource(Block block) {\n block.removeFirstOperation(); // aload_0\n block.removeFirstOperation(); // aload_1\n block.removeFirstOperation(); // iload_2\n block.removeFirstOperation(); // invokespecial <init>\n\n if (getTopBlock().getOperations().size() == 1 &&\n getTopBlock().getOperations().get(0) instanceof ReturnView) {\n return null;\n }\n\n return super.codeBlockSource(block);\n }", "public static void typeCheckBlock(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tfor(int i = 0; i < node.size(); i++) {\n\t\t\tgamma.checkTypeAt(node, i, BunType.VoidType, false);\n\t\t}\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "public Snippet visit(DotIsLast n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t //return new Snippet(\"\", _ret.returnTemp+\".isLast()\", new X10Boolean(), false);\n\t return new Snippet(\"\", \"false\", new X10Boolean(), false);\n\t }", "Token current();", "@Override\r\n public String precondition() {\r\n return \"<html> The method call that returns an object is called twice in series. <br/>\" +\r\n \"Both method calls have no parameters, only return statements. <br/>\" +\r\n \"The object returned by the method call must be defined as a class. </html>\";\r\n }", "private void match(TokenType tokType) {\r\n if(tokens.get(position).returnType() != tokType) {\r\n \t\tSystem.out.println(position);\r\n parseError();\r\n }\r\n position++;\r\n }", "private boolean returnStatementAfterTypeCheckCodeFragment() {\n\t\tStatementExtractor statementExtractor = new StatementExtractor();\r\n\t\tList<Statement> allReturnStatementsWithinTypeCheckCodeFragment = statementExtractor.getReturnStatements(typeCheckCodeFragment);\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionWithinTypeCheckCodeFragment = new ArrayList<ReturnStatement>();\r\n\t\tfor(Statement statement : allReturnStatementsWithinTypeCheckCodeFragment) {\r\n\t\t\tReturnStatement returnStatement = (ReturnStatement)statement;\r\n\t\t\tif(returnStatement.getExpression() != null)\r\n\t\t\t\treturnStatementsHavingExpressionWithinTypeCheckCodeFragment.add(returnStatement);\r\n\t\t}\r\n\t\tif(returnStatementsHavingExpressionWithinTypeCheckCodeFragment.isEmpty())\r\n\t\t\treturn false;\r\n\t\t//get all return statements having an expression within method body\r\n\t\tList<Statement> allReturnStatementsWithinTypeCheckMethod = statementExtractor.getReturnStatements(typeCheckMethod.getBody());\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionWithinTypeCheckMethod = new ArrayList<ReturnStatement>();\r\n\t\tfor(Statement statement : allReturnStatementsWithinTypeCheckMethod) {\r\n\t\t\tReturnStatement returnStatement = (ReturnStatement)statement;\r\n\t\t\tif(returnStatement.getExpression() != null)\r\n\t\t\t\treturnStatementsHavingExpressionWithinTypeCheckMethod.add(returnStatement);\r\n\t\t}\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionOutsideTypeCheckMethod = new ArrayList<ReturnStatement>();\r\n\t\treturnStatementsHavingExpressionOutsideTypeCheckMethod.addAll(returnStatementsHavingExpressionWithinTypeCheckMethod);\r\n\t\treturnStatementsHavingExpressionOutsideTypeCheckMethod.removeAll(returnStatementsHavingExpressionWithinTypeCheckCodeFragment);\r\n\t\tfor(ReturnStatement returnStatement : returnStatementsHavingExpressionOutsideTypeCheckMethod) {\r\n\t\t\tif(returnStatement.getStartPosition() > typeCheckCodeFragment.getStartPosition()+typeCheckCodeFragment.getLength())\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public Block getEnd () {\n\t\treturn end;\n\t}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public Rule itBlock()\n \t{\n \t\treturn sequence(BRACKET_L, zeroOrMore(stmt()), BRACKET_R);\n \t}", "public boolean hasMoreTokens(){\n return !ended;\n }", "@Override\n public String visit(BlockStmt n, Object arg) {\n return null;\n }", "boolean hasNewBlock();", "boolean hasNewBlock();", "public void visit(StatementNoReturnExpr statementNoReturnExpr) {\n \tif (currentMethod == null) {\r\n\t\t\treport_error(\"Greska na liniji \" + statementNoReturnExpr.getLine() + \" : \" + \" RETURN iskaz ne sme postojati izvan tela globalnih f-ja!\" + currentMethod.getName(), null);\r\n \t}\r\n \telse { \r\n\t \tStruct currMethType = currentMethod.getType();\r\n\t \tif(!currMethType.compatibleWith(Tab.noType)){\r\n\t\t\t\treport_error(\"Greska na liniji \" + statementNoReturnExpr.getLine() + \" : \" + \" Tekuca metoda nije deklarisana kao VOID! \" + currentMethod.getName(), null);\r\n\t \t}\r\n \t}\r\n }", "@Override\r\n\tpublic void visit(BlockExpression blockExpression) {\n\r\n\t}", "boolean skipMethodName() {\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}", "private void parseReturnStatement() {\n check(Token.RETURN);\n\n if (EXPR_STARTERS.contains(nextToken.kind)) {\n Struct type = parseExpr().type;\n if (!(type.assignableTo(currentMethod.type))) {\n error(\"Invalid expression type in return statement\");\n }\n } else {\n if (currentMethod.type != SymbolTable.STRUCT_NONE) {\n error(\"Missing return value in return statement\");\n }\n }\n\n check(Token.SEMICOLON);\n\n code.put(Code.OP_EXIT);\n code.put(Code.OP_RETURN);\n }", "@Override\r\n public void visit(Block n, functionStruct fStruct) {\r\n n.f0.accept(this, fStruct);\r\n\r\n //String returnObject = n.f2.f0.toString(); //seems like we can return from stack\r\n }", "public Snippet visit(DotIdentifier n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t String object = n.identifier.accept(this, argu).expType.getTypeName();\n\t Symbol sym1 = getIdentifier(object, currentBlock, currentClassName);\n\t\t\tString refClass = \"\";\n\t\t\tif(sym1 == null)\n\t\t\t\trefClass = object; // Static reference\n\t\t\telse\n\t\t\t\trefClass = sym1.symbolType.getTypeName(); // Object reference\n\t n.nodeToken.accept(this, argu);\n\t String identifier = n.identifier1.accept(this, argu).expType.getTypeName();\n\t \n\t\t\tSymbol sym2 = getIdentifier(identifier, 0, refClass); \n\t\t\tString toAdd;\n\t\t\t\n\t\t\tif( !classes.containsKey(object)){\n\t\t\tif(!inAsync ){\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth)+generatePlaceCheckCode( \"myUniquePlacePoint\", object);\n\t\t\t}else{\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth)+generatePlaceCheckCode(asyncPoint , object);\n\t\t\t}\n\t\t\t}\n\t\t\treturn new Snippet(\"\", \"\"+object + \".\" + identifier, sym2.symbolType /* Not needed, but kept only as a cross check */, false);\n\t }", "@Override\n\tpublic Object visit(ASTReturnClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.println(\"return\");\n\t\tnode.childrenAccept(this, indent + 2);\n\t\treturn null;\n\t}", "public List<Token> getNextObject() {\r\n List<Token> tokens = new ArrayList<>(); // first create the list\r\n \r\n // skip all comments\r\n this.skipComments();\r\n \r\n int line = this.currentline; // get line\r\n \r\n while (line==this.currentline) { // track if line change\r\n \r\n // if no tokens to extract, then we return the extracted tokens\r\n if (!this.hasNextToken()) return tokens;\r\n \r\n // if empty tokens are accepted\r\n if (this.isAcceptEmptyToken()) {\r\n tokens.add(this.getNextToken()); // then add the token without check\r\n \r\n // else, check if the token is empty or not\r\n } else {\r\n Token token = this.getNextToken();\r\n String data = token.getData();\r\n if (!data.isEmpty()) tokens.add(token); // if not empty, add the token\r\n }\r\n \r\n }\r\n \r\n return tokens;\r\n }", "@Override\r\n\tpublic Object visitReturnStatement(ReturnStatement returnStatement,\r\n\t\t\tObject arg) throws Exception {\r\n//\t\treturn returnStatement.expression.visit(this, arg);\r\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\r\n\t}", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }", "public void visitRETURN(RETURN o){\n\t\tif (mg.getName().equals(Constants.CONSTRUCTOR_NAME)){// If we leave an <init> method\n\t\t\tif ((frame._this != null) && (!(mg.getClassName().equals(Type.OBJECT.getClassName()))) ) {\n\t\t\t\tconstraintViolated(o, \"Leaving a constructor that itself did not call a constructor.\");\n\t\t\t}\n\t\t}\n\t}", "public Block returnStart() {\n\t\treturn start;\n\t}", "public boolean isVoid()\r\n/* 146: */ {\r\n/* 147:177 */ return false;\r\n/* 148: */ }", "public void method() // trailing comment here\n {\n int a; /* non-trailing comment */ int b; /* trailing comment */\n // continuation trailing comment\n int c1; /* non-trailing comment */ int d2; /* trailing comment */\n // non-continuation comment\n }", "@Override\n public String visit(ContinueStmt n, Object arg) {\n return null;\n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "@Override\n public String visit(ReturnStmt n, Object arg) {\n return null;\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "@Override\n public String visit(BlockComment n, Object arg) {\n return null;\n }", "private void tokenEnd() {\n zzStartRead = tokenStartIndex;\n }", "@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}", "@Override\n public boolean isReturn() {\n return true;\n }", "public vx i()\r\n/* 185: */ {\r\n/* 186:212 */ return vx.a;\r\n/* 187: */ }", "public T caseSourceCodeLine(SourceCodeLine object)\n\t{\n\t\treturn null;\n\t}", "default boolean visitEnd() {\n\t\treturn true;\n\t}", "public IResult<LE> getLabeledEndResult(MethodDeclaration d);", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "private Block fixReturnStatement(Block block, Stack<Variable> variables) {\n for (ReturnStatement returnStat : block.nearestDescendants(ReturnStatement.class)) {\n String prev = lastElement;\n Expression e = returnStat.getExpression();\n Type type;\n if (!(e instanceof NameExpression) && (!(e instanceof MethodInvocation))) {\n System.err.println(\"You can only return Content in an inline code block, unknown expression: \" + e.toString());\n return block;\n } else {\n try {\n if (e instanceof NameExpression) {\n lastElement = ((NameExpression) e).name();\n type = e.getType();\n } else {\n // Check if we return Content\n NormalMethod method = (NormalMethod) ((MethodInvocation) e).getElement();\n type = method.returnType();\n if (type.name().equals(\"void\")) {\n returnStat.replaceWith(oFactory().createStatement(e));\n return block;\n }\n if (!subtypeOf(type, BASE_CLASS)) {\n System.err.println(\"You can only return Content in an inline code block, unknown expression: \" + e.toString());\n return block;\n }\n\n createAndAddLocalVar(type.name(), getVarName(), (Expression) e.clone(), variables, block);\n }\n } catch (LookupException e1) {\n System.err.println(e + \" has not been declared yet!\");\n lastElement = prev;\n return block;\n }\n\n block.removeStatement(returnStat);\n List<Expression> arguments = new ArrayList<>();\n arguments.add(eFactory().createNameExpression(lastElement));\n JavaMethodInvocation expr = eFactory().createNeioMethodInvocation(APPEND_CONTENT, eFactory().createNeioNameExpression(prev), arguments);\n block.addStatement(oFactory().createStatement(expr));\n // Resolve the right target using contexttypes\n try {\n Stack<Variable> vars = (Stack<Variable>) variables.clone();\n vars.pop();\n setThis(expr, expr.getTarget(), vars);\n block.removeStatement(expr.nearestAncestor(Statement.class));\n\n createAndAddLocalVar(type.name(), getVarName(), expr, variables, block);\n } catch (LookupException e1) {\n System.err.println(\"Error while setting this on \" + APPEND_CONTENT);\n }\n }\n }\n\n return block;\n }", "Decl getWhole();", "@Override\n public void outBlockStatement(BlockStatement node)\n {\n\n }", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "public void visitReturnInstruction(ReturnInstruction o){\n\t\tif (o instanceof RETURN){\n\t\t\treturn;\n\t\t}\n\t\tif (o instanceof ARETURN){\n\t\t\tif (stack().peek() == Type.NULL){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (! (stack().peek() instanceof ReferenceType)){\n\t\t\t\t\tconstraintViolated(o, \"Reference type expected on top of stack, but is: '\"+stack().peek()+\"'.\");\n\t\t\t\t}\n\t\t\t\treferenceTypeIsInitialized(o, (ReferenceType) (stack().peek()));\n\t\t\t\t//ReferenceType objectref = (ReferenceType) (stack().peek());\n\t\t\t\t// TODO: This can only be checked if using Staerk-et-al's \"set of object types\" instead of a\n\t\t\t\t// \"wider cast object type\" created during verification.\n\t\t\t\t//if (! (objectref.isAssignmentCompatibleWith(mg.getType())) ){\n\t\t\t\t//\tconstraintViolated(o, \"Type on stack top which should be returned is a '\"+stack().peek()+\"' which is not assignment compatible with the return type of this method, '\"+mg.getType()+\"'.\");\n\t\t\t\t//}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tType method_type = mg.getType();\n\t\t\tif (method_type == Type.BOOLEAN ||\n\t\t\t\t\tmethod_type == Type.BYTE ||\n\t\t\t\t\tmethod_type == Type.SHORT ||\n\t\t\t\t\tmethod_type == Type.CHAR){\n\t\t\t\tmethod_type = Type.INT;\n\t\t\t}\n\t\t\tif (! ( method_type.equals( stack().peek() ))){\n\t\t\t\tconstraintViolated(o, \"Current method has return type of '\"+mg.getType()+\"' expecting a '\"+method_type+\"' on top of the stack. But stack top is a '\"+stack().peek()+\"'.\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String visitReturnSt(ReturnStContext ctx){\n\t\treturn visit(ctx.getChild(1));\n\t}", "public Item a(Block parambec, Random paramRandom, int paramInt)\r\n/* 76: */ {\r\n/* 77: 99 */ return null;\r\n/* 78: */ }", "private Object magicVisit(ParseTree ctx, Node<TokenAttributes> CST_node) {\n current_node = CST_node;\n Object result = visit(ctx);\n current_node = CST_node;\n return result;\n }", "public boolean isOprUner() /*const*/{\n\t\treturn Tkn==TipeToken.Not;\n\t}", "public int methodName (...) {\r\n // method body with a return statement\r\n}", "public boolean isLastTokenMinus(){\r\n return _isLastTokenMinus;\r\n }", "private ELOperandToken getNextToken() {\r\n \t\tswitch (fState) {\r\n \t\tcase STATE_INITIAL: // Just started\r\n \t\t{\r\n \t\t\tint ch = readCharBackward();\r\n \t\t\tif (ch == -1) {\r\n \t\t\t\treturn ELOperandToken.EOF;\r\n \t\t\t}\r\n \t\t\tif (Character.isJavaIdentifierPart((char)ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readVarToken();\r\n \t\t\t}\r\n \t\t\tif (ch == '.') {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readSeparatorToken();\r\n \t\t\t}\r\n \t\t\tif (ch == ')') {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readMethodToken();\r\n \t\t\t}\r\n \t\t\treleaseChar();\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t}\r\n \t\tcase STATE_VAR: // Variable name is read - expecting a separator \r\n \t\t{\r\n \t\t\tint ch = readCharBackward();\r\n \t\t\tif (ch == -1) {\r\n \t\t\t\treturn ELOperandToken.EOF;\r\n \t\t\t}\r\n \t\t\tif (ch == '.') {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readSeparatorToken();\r\n \t\t\t}\r\n \t\t\treleaseChar();\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t}\r\n \t\tcase STATE_METHOD: // Method name and parameters are read - expecting a separator\r\n \t\t{\r\n \t\t\tint ch = readCharBackward();\r\n \t\t\tif (ch == -1) {\r\n \t\t\t\treturn ELOperandToken.EOF;\r\n \t\t\t}\r\n \t\t\tif (ch == '.') {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readSeparatorToken();\r\n \t\t\t}\r\n \t\t\treleaseChar();\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t}\r\n \t\tcase STATE_SEPARATOR: // Separator is read - expecting a var or method\r\n \t\t{\r\n \t\t\tint ch = readCharBackward();\r\n \t\t\tif (ch == -1) {\r\n \t\t\t\treturn ELOperandToken.EOF;\r\n \t\t\t}\r\n \t\t\tif (Character.isJavaIdentifierPart((char)ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readVarToken();\r\n \t\t\t}\r\n \t\t\tif (ch == ')') {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn readMethodToken();\r\n \t\t\t}\r\n \t\t\treleaseChar();\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t}\r\n \t\t}\r\n \t\treturn ELOperandToken.EOF;\r\n \t}", "private boolean isMethod() {\n return !line.contains(\"=\") && !line.contains(\".\") && !semicolon && line.contains(\"(\");\n }", "public boolean isMultiLine() {\n/* 1236 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public List<BlockPosition> e()\r\n/* 228: */ {\r\n/* 229:238 */ return this.j;\r\n/* 230: */ }", "protected void sequence_ReturnStmt(ISerializationContext context, ReturnStmt semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public Snippet visit(ReturnStatement n, Snippet argu) {\n\t\t Snippet _ret = new Snippet(\"\", \"\", null, false);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f1 = n.nodeOptional.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t \n\t \t\t\n\t \t\t\t/* ArrayINITCODE */\n\t\tif (arrayInitializer) {\n\t\t\tif(f1 == null){\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) +arrayInitializerBlock + \" null /*POSSIBLE ERROR*/\\n\";\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) +arrayInitializerBlock + f1.returnTemp\n\t\t\t\t+ \";\\n\";\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t// End of ARRAYINITCODE\n\t\t\tif (f1 == null) {\n\t\t\t\t_ret.returnTemp = \"return\" + \";\";\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) + _ret.returnTemp\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t} else {\n\t\t\t\t_ret.returnTemp = \"return \" + f1.returnTemp + \";\";\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) + _ret.returnTemp\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t}\n\n\t\t}\n\t \t\t\n\t \t\treturn _ret;\n\t }", "private void methodDeclaratorRest(Modifier modify, Type t, Token name, ClassType object)\r\n {\r\n modify.check(modify.methods | modify.access);\r\n MethodType x = member = new MethodType(modify.cur);\r\n\r\n x.comment = comment + '\\n';\r\n resetComment();\r\n\r\n x.type = t;\r\n returns = x.type;\r\n x.name = name;\r\n x.parameter = formalParameters();\r\n x.type.dim += bracketsOpt();\r\n\r\n if (nextSymbol == Keyword.THROWSSY)\r\n {\r\n lookAhead();\r\n x.throwing = qualidentList();\r\n }\r\n else\r\n x.throwing = new String[0];\r\n\r\n if (nextSymbol == Keyword.SEMICOLONSY)\r\n {\r\n if ((modify.cur & Keyword.NATIVESY.value) == 0)\r\n {\r\n if ( (object.modify & Keyword.ABSTRACTSY.value) == 0)\r\n error(\"missing modifier abstract\");\r\n\r\n if ( (modify.cur & modify.access) == 0)\r\n modify.add(Keyword.PUBLICSY.value);\r\n }\r\n\r\n x.scope = new Scope(object.scope, Scope.automatic, \"\");\r\n insertThis(object, x);\r\n lookAhead();\r\n }\r\n else\r\n {\r\n if ((object.modify & Keyword.ABSTRACTSY.value) == 0)\r\n {\r\n if ((x.modify & new Modifier().constructors) == 0)\r\n x.modify |= Keyword.PUBLICSY.value ;\r\n }\r\n\r\n Vector label = new Vector();\r\n label.add(Operation.newLabel() + \"\");\r\n x.scope = block(x, null, object.scope, label, Scope.MAIN, null, x.operation);\r\n }\r\n\r\n object.scope.declInsertOverload(x);\r\n \r\n member = null;\r\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "@Override\n public String visit(YieldStmt n, Object arg) {\n return null;\n }", "protected IElementType delegateLexing() {\n yypushback(yylength());\n syncPerlLexer();\n try {\n IElementType result = myPerlLexer.advance();\n CommentEndCalculator commentEndCalculator = getCommentEndCalculator();\n if (commentEndCalculator != null && (result == COMMENT_LINE || result == COMMENT_ANNOTATION)) {\n int endIndex = commentEndCalculator.getCommentEndOffset(myPerlLexer.yytext());\n if (endIndex > -1) {\n myPerlLexer.setTokenEnd(myPerlLexer.getTokenStart() + endIndex);\n }\n }\n syncMainLexer();\n return result;\n }\n catch (Exception ignore) {\n }\n throw new RuntimeException(\"Something bad happened\");\n }", "public Snippet visit(RegionConstant n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.identifier.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t //_ret.returnTemp = \"[\"+f2.returnTemp+\"]\";\n\t _ret.returnTemp = \"\"+f2.returnTemp+\"+1\";\n\t return _ret;\n\t }", "public Snippet visit(DotNext n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t // return new Snippet(\"\", _ret.returnTemp+\".next()\", new X10Place(), false);\n\t return new Snippet(\"\", \"0\", new X10Place(), false);\n\t }", "public int getNoTokensByLine() {\r\n\t\treturn this.noTokensByLine;\r\n\t}", "public Snippet visit(IdentifierRest n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeToken.accept(this, argu);\n\t _ret = n.identifier.accept(this, argu);\n\t\t\tidentifierList.add(_ret.returnTemp);\n\t\t\tfieldsCode += \",\"+ _ret.returnTemp;\n\t return _ret;\n\t }", "private void voidMethodDeclaratorRest(Modifier modify, MethodType x, ClassType object)\r\n {\r\n Scope scope = object.scope;\r\n\r\n x.parameter = formalParameters();\r\n if (nextSymbol == Keyword.THROWSSY)\r\n {\r\n lookAhead();\r\n x.throwing = qualidentList();\r\n }\r\n else\r\n x.throwing = new String[0];\r\n\r\n if (nextSymbol == Keyword.SEMICOLONSY)\r\n {\r\n if ((modify.cur & Keyword.NATIVESY.value) == 0)\r\n {\r\n if ( (x.modify & Keyword.ABSTRACTSY.value) == 0)\r\n error(\"missing modifier abstract\");\r\n\r\n if ( (modify.cur & modify.access) == 0)\r\n modify.add(Keyword.PUBLICSY.value);\r\n }\r\n\r\n x.scope = new Scope(scope, Scope.automatic, \"\");\r\n insertThis(object, x);\r\n lookAhead();\r\n }\r\n else\r\n {\r\n if ((x.modify & Keyword.ABSTRACTSY.value) == 0)\r\n {\r\n if ((x.modify & new Modifier().constructors) == 0)\r\n x.modify |= Keyword.PUBLICSY.value ;\r\n }\r\n\r\n Vector label = new Vector();\r\n label.add(Operation.newLabel() + \"\");\r\n x.scope = block(x, null, scope, label, Scope.MAIN, null, x.operation);\r\n }\r\n\r\n scope.declInsertOverload(x);\r\n }", "boolean hasFirstToken();", "public Snippet visit(NonEqualsExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" != \"+f2.returnTemp;\n\t return _ret;\n\t }", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public boolean endOfBlock () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n }\n return blockEnded;\n }", "public Object visitReturnStmt(GoIRReturnStmtNode node) {\n\t\t \treturn node.getChild().accept(this);\n\t}", "@Override\r\n\tpublic void endVisit(CompilationUnit node) {\r\n\t\tsuper.endVisit(node);\r\n\t\tWriteLine(n1() + \":\" + n2() + \":\" + N1() + \":\" + N2());\r\n\t\t//System.out.println(effort());\r\n\t}", "@Override\n public void endBlock() {\n }", "public LlvmValue visit(Block n){\n\t\tSystem.out.format(\"block****\\n\");\n\t\t\n\t\t//Verifica se existe algum elemento no block\n\t\tif(n.body != null){\n\t\t\tint i,j;\n\t\t\t\n\t\t\tj = n.body.size();\n\t\t\t//itera o block\n\t\t\tfor (util.List<Statement> body = n.body; body != null; body = body.tail){\n\t\t\t\t\n\t\t\t\t//System.out.format(\"@block body: %s\\n\", n.body.head);\n\t\t\t\t//Desce para cada parte do block\n\t\t\t\tbody.head.accept(this);\n\t\t\t}\t\n\t\t}\t\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean isSlimeChunk()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "public boolean eof() {\n\treturn !(tokenizer.hasMoreElements());\n }", "@Override\r\n\t\tpublic boolean equals(Object obj) {\r\n\t\t\tif (this == obj)\r\n\t\t\t\treturn true;\r\n\t\t\tif (obj == null)\r\n\t\t\t\treturn false;\r\n\t\t\tif (getClass() != obj.getClass())\r\n\t\t\t\treturn false;\r\n\t\t\tToken other = (Token) obj;\r\n\t\t\tif (!getOuterType().equals(other.getOuterType()))\r\n\t\t\t\treturn false;\r\n\t\t\tif (kind != other.kind)\r\n\t\t\t\treturn false;\r\n\t\t\tif (length != other.length)\r\n\t\t\t\treturn false;\r\n\t\t\tif (line != other.line)\r\n\t\t\t\treturn false;\r\n\t\t\tif (pos != other.pos)\r\n\t\t\t\treturn false;\r\n\t\t\tif (pos_in_line != other.pos_in_line)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true;\r\n\t\t}", "public boolean omitEnd() {\n return oEnd;\n }", "private ELOperandToken readMethodToken() {\r\n \t\tfState = STATE_METHOD;\r\n \t\tint endOfToken = index;\r\n \t\t\r\n \t\t// read the method parameters\r\n \t\tif (!skipMethodParameters()) \r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t\r\n \t\t// skip spaces between the method's name and it's parameters\r\n \t\tif (!skipSpaceChars())\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t// read the method name\r\n \t\tif (!skipMethodName())\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), ELOperandToken.EL_METHOD_TOKEN) : ELOperandToken.EOF);\r\n \t}" ]
[ "0.57197195", "0.56891304", "0.5632974", "0.56136554", "0.55707675", "0.55695975", "0.5535152", "0.55175185", "0.55094934", "0.55048394", "0.55022216", "0.5477083", "0.5381054", "0.5364458", "0.5346351", "0.5325321", "0.53192043", "0.53173393", "0.53059816", "0.5300683", "0.53006583", "0.5293422", "0.5290896", "0.52782404", "0.5264938", "0.5252111", "0.52476525", "0.5245989", "0.52286965", "0.5196689", "0.5196631", "0.5196631", "0.51811236", "0.517016", "0.51624906", "0.5139183", "0.51354945", "0.513511", "0.51299566", "0.51284254", "0.5124775", "0.51227915", "0.5122604", "0.51199156", "0.50923586", "0.508449", "0.50827956", "0.507975", "0.5079247", "0.50773484", "0.5071266", "0.50655097", "0.5063128", "0.50564116", "0.5054645", "0.5049092", "0.50474274", "0.5038776", "0.50343966", "0.5027819", "0.50267166", "0.5008183", "0.49959365", "0.49930024", "0.49923757", "0.49899477", "0.49868083", "0.4986555", "0.49832413", "0.49714494", "0.49661112", "0.49658552", "0.4960319", "0.49599883", "0.49591523", "0.4948246", "0.4947098", "0.49400342", "0.49387577", "0.4938687", "0.4936242", "0.49348387", "0.4929335", "0.49247006", "0.49183163", "0.49095276", "0.49083647", "0.4908351", "0.48987067", "0.48975566", "0.489743", "0.4887613", "0.48770538", "0.48756313", "0.48744047", "0.48720035", "0.48717755", "0.4871221", "0.4870327", "0.48690975" ]
0.63280684
0
Check the try, catch, finally object blocks on redundant return content.
private void submitRedundantReturnInTryCatch(DetailAST aTryAst) { DetailAST astBlockTry = aTryAst.getFirstChild(); handleBlocksTryCatchFinally(astBlockTry.getLastChild() .getPreviousSibling()); final int catchBlocksAmount = aTryAst .getChildCount(TokenTypes.LITERAL_CATCH); for (int i = 0; i < catchBlocksAmount; i++) { astBlockTry = astBlockTry.getNextSibling(); handleBlocksTryCatchFinally(astBlockTry.getLastChild() .getLastChild().getPreviousSibling()); } if (astBlockTry.getNextSibling() != null) { handleBlocksTryCatchFinally(astBlockTry.getNextSibling() .getLastChild().getLastChild().getPreviousSibling()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block getTryBlock();", "Block getFinallyBlock();", "private void handleBlocksTryCatchFinally(DetailAST aAstReturn) {\n\n\t\tif (aAstReturn != null) {\n\n\t\t\tif (aAstReturn.getType() == TokenTypes.LITERAL_RETURN) {\n\n\t\t\t\tlog(aAstReturn.getLineNo());\n\t\t\t}\n\t\t}\n\t}", "private void checkForRedundantReturn(DetailAST aMethodObjectBlock) {\n\n\t\tfinal int methodChildCount = aMethodObjectBlock.getChildCount();\n\n\t\tif (methodChildCount != 1) {\n\n\t\t\tfinal int placeForRedundantReturn = aMethodObjectBlock\n\t\t\t\t\t.getLastChild().getPreviousSibling().getType();\n\n\t\t\tfinal int methodWithSingleChild = 2;\n\n\t\t\tif (methodChildCount > methodWithSingleChild) {\n\n\t\t\t\thandlePlacesForRedundantReturn(placeForRedundantReturn,\n\t\t\t\t\t\taMethodObjectBlock);\n\t\t\t} else {\n\n\t\t\t\tif (!mAllowReturnInEmptyMethodsAndConstructors) {\n\t\t\t\t\thandlePlacesForRedundantReturn(placeForRedundantReturn,\n\t\t\t\t\t\t\taMethodObjectBlock);\n\t\t\t\t}\n\n\t\t\t\tif (placeForRedundantReturn == TokenTypes.LITERAL_TRY) {\n\t\t\t\t\tsubmitRedundantReturnInTryCatch(aMethodObjectBlock\n\t\t\t\t\t\t\t.getFirstChild());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static int doSomething() {\n try {\n return 1;\n } catch (Exception e) {\n return 2;\n } finally {\n // never use return in finally block\n // method will always return 9\n return 9;\n }\n\n }", "public static int getNewReturnWithFinally(){\n try {\n return 0;\n } finally {\n return 1;\n }\n }", "public static void moreCodeAfterFinallyException(){\n try {\n System.err.println(\"try\");\n if (true) {throw new RuntimeException();}\n } finally {\n System.err.println(\"finally\");\n }\n System.err.println(\"more\");\n }", "public static int finallyReturnWithException() {\n try {\n throw new RuntimeException();\n } finally {\n return 1;\n }\n }", "public static void finallyAfterReturn(){\n try {\n return;\n } finally {\n System.err.println(\"finally\");\n }\n }", "void doFinally();", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "void tryCleanup() throws Exception;", "private static boolean tryStatement_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"tryStatement_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = tryStatement_2_0(b, l + 1);\n if (!r) r = finallyPart(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }", "public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }", "public void testingTryCatch() {\r\n\t\tSystem.err.println(\"Class NewFeatures, method testingTryCatch called!\");\r\n\t\ttry (FileInputStream stream = new FileInputStream(\"hey\")) {\r\n\t\t\tSystem.out.println(\"Try/block accessed!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tThread.currentThread().getStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingTryCatch done!\");\r\n\t}", "public static TryExpression tryFinally(Expression body, Expression fault) { throw Extensions.todo(); }", "@Override\n public Void visit(TryStatement node, StatementVisitor mv) {\n \n BlockStatement tryBlock = node.getTryBlock();\n CatchNode catchNode = node.getCatchNode();\n BlockStatement finallyBlock = node.getFinallyBlock();\n \n if (catchNode != null && finallyBlock != null) {\n Label startCatch = new Label();\n Label endCatch = new Label(), handlerCatch = new Label();\n Label endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(noException);\n \n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n mv.enterWrapped();\n catchNode.accept(this, mv);\n mv.exitWrapped();\n mv.mark(endFinally);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n // various finally blocks\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n mv.visitTryCatchBlock(startCatch, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n } else if (catchNode != null) {\n Label startCatch = new Label(), endCatch = new Label(), handlerCatch = new Label();\n Label exceptionHandled = new Label();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(exceptionHandled);\n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n catchNode.accept(this, mv);\n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n } else {\n assert finallyBlock != null;\n Label startFinally = new Label(), endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startFinally);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endFinally);\n mv.goTo(noException);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startFinally, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n }\n \n return null;\n }", "private static boolean hasSynchronization(TryStatement statement) {\n return hasSynchronization(statement.getBody());\n }", "public static void finallyAfterNoException(){\n try {\n System.err.println(\"try\");\n } finally {\n System.err.println(\"finally\");\n }\n }", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "public static int catchExceptionWithInnerCatch(){\n int x =1;\n try {\n try {\n x*=2;\n if (true) {throw new RuntimeException();}\n x*=3;\n } catch (RuntimeException e) {\n x*=5;\n } finally {\n x*=7;\n }\n x*=11;\n } catch (Exception e) {\n x*=13;\n } finally {\n x*=17;\n }\n return x; // x== 2*5*7*11*17\n }", "public static TryExpression tryCatchFinally(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }", "private void checkReturnLeak(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if(d instanceof ReturnStmt) {\n ReturnStmt ret = (ReturnStmt) d;\n FlowAbstraction taint = isInTaintedSet(ret.getOp(), in);\n if(taint != null) {\n Unit source = taint.getSource();\n reporter.report(method, source, d);\n System.out.println(\"Reporter checkreturn leak\"+d);\n }\n }\n }", "public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "@Test\n public void unimplementedOps() throws Exception {\n testInfo(this.getClass().getSimpleName() + \" - notImplementedOps\");\n\n boolean error;\n\n error = false;\n try {\n print(account + \": Fetching bucket cors for \" + bucketName);\n s3.getBucketCrossOriginConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket policy for \" + bucketName);\n s3.getBucketPolicy(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket notification configuration for \" + bucketName);\n s3.getBucketNotificationConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket website configuration for \" + bucketName);\n s3.getBucketWebsiteConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n }", "private void buildTryStatement(TryStatementTree tryStatementTree) {\n currentBlock = createBlock(currentBlock);\n BlockTree finallyBlockTree = tryStatementTree.finallyBlock();\n if (finallyBlockTree != null) {\n currentBlock.isFinallyBlock = true;\n Block finallyBlock = currentBlock;\n build(finallyBlockTree);\n finallyBlock.addExitSuccessor(exitBlock());\n exitBlocks.push(currentBlock);\n }\n Block finallyOrEndBlock = currentBlock;\n Block beforeFinally = createBlock(currentBlock);\n List<Block> catches = new ArrayList<>();\n for (CatchTree catchTree : tryStatementTree.catches()) {\n currentBlock = createBlock(finallyOrEndBlock);\n build(catchTree.block());\n catches.add(currentBlock);\n }\n currentBlock = beforeFinally;\n build(tryStatementTree.block());\n if(currentBlock.exitBlock != null && currentBlock.exitBlock.isFinallyBlock) {\n for (Block catchBlock : catches) {\n currentBlock.exitBlock.addSuccessor(catchBlock);\n }\n } else {\n for (Block catchBlock : catches) {\n currentBlock.addSuccessor(catchBlock);\n }\n }\n build((List<? extends Tree>) tryStatementTree.resources());\n currentBlock = createBlock(currentBlock);\n currentBlock.elements.add(tryStatementTree);\n if (finallyBlockTree != null) {\n exitBlocks.pop();\n if(catches.isEmpty()) {\n currentBlock.addExitSuccessor(finallyOrEndBlock);\n }\n }\n for (Block catchBlock : catches) {\n currentBlock.addSuccessor(catchBlock);\n }\n }", "public boolean trySuccess()\r\n/* 52: */ {\r\n/* 53: 84 */ return trySuccess(null);\r\n/* 54: */ }", "private boolean weAreTooBrokenToWaitUntilWeAreAbleToCarryThisOut() {\n return (isLineWrappingInvalid() || isShowing() == false);\n }", "public ByteVector getCodeItemTryCatch() {\n\t\treturn codeItem.getCodeItemTryCatch();\n\t}", "public static void main(String[] args) {\n /**\n * Exception will occur here ,after catch block control will goto finally block\n */\n try {\n int i = 10 / 0;\n } catch (Exception e) {\n System.out.println(\"Inside 1st catch block\"+e.getMessage());\n } finally {\n System.out.println(\"Inside 1st finally block: Numeric overflow in the expression\");\n }\n /**\n * In this case exception won't .After executing try block control will go to finally block.\n */\n\n try{\n int i=10/10;\n }catch (Exception e){\n System.out.println(\"Inside 2nd catch block\"+e.getMessage());\n }finally {\n System.out.println(\"Inside 2nd finally block: code has reached 2nd finally block\");\n }\n }", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "public AstStmTry(AstStmBlock tryBlock, AstStmCatch catchBlock, AstStmBlock finallyBlock)\n\t{\n\t\tTryBlock\t\t= tryBlock;\n\t\tCatchBlock\t\t= catchBlock;\n\t\tFinallyBlock\t= finallyBlock;\n\t}", "@Override\r\n\tpublic void doFinally() throws Exception\r\n\t{\n\t\t\r\n\t}", "public void close() throws java.io.IOException {\n /*\n r8 = this;\n r0 = c;\n if (r0 != 0) goto L_0x0012;\n L_0x0004:\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r0 = java.lang.Thread.holdsLock(r0);\n if (r0 == 0) goto L_0x0012;\n L_0x000c:\n r0 = new java.lang.AssertionError;\n r0.<init>();\n throw r0;\n L_0x0012:\n r0 = okhttp3.internal.http2.Http2Stream.this;\n monitor-enter(r0);\n r1 = r8.a;\t Catch:{ all -> 0x0064 }\n if (r1 == 0) goto L_0x001b;\n L_0x0019:\n monitor-exit(r0);\t Catch:{ all -> 0x0064 }\n return;\n L_0x001b:\n monitor-exit(r0);\t Catch:{ all -> 0x0064 }\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r0 = r0.e;\n r0 = r0.b;\n r1 = 1;\n if (r0 != 0) goto L_0x004e;\n L_0x0025:\n r0 = r8.f;\n r2 = r0.size();\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 <= 0) goto L_0x003f;\n L_0x0031:\n r0 = r8.f;\n r2 = r0.size();\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 <= 0) goto L_0x004e;\n L_0x003b:\n r8.a(r1);\n goto L_0x0031;\n L_0x003f:\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r2 = r0.d;\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r3 = r0.c;\n r4 = 1;\n r5 = 0;\n r6 = 0;\n r2.a(r3, r4, r5, r6);\n L_0x004e:\n r2 = okhttp3.internal.http2.Http2Stream.this;\n monitor-enter(r2);\n r8.a = r1;\t Catch:{ all -> 0x0061 }\n monitor-exit(r2);\t Catch:{ all -> 0x0061 }\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r0 = r0.d;\n r0.f();\n r0 = okhttp3.internal.http2.Http2Stream.this;\n r0.m();\n return;\n L_0x0061:\n r0 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x0061 }\n throw r0;\n L_0x0064:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0064 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.Http2Stream.FramingSink.close():void\");\n }", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10555:1: ( ( 'try' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10556:1: ( 'try' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10556:1: ( 'try' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10557:1: 'try'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n match(input,60,FOLLOW_60_in_rule__XTryCatchFinallyExpression__Group__1__Impl21210); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "static byte[] a(com.loc.bc r6, java.lang.String r7) {\n /*\n r3 = 0\n r1 = 0\n r0 = 0\n byte[] r0 = new byte[r0]\n com.loc.bc$b r4 = r6.a(r7) // Catch:{ Throwable -> 0x0042, all -> 0x005b }\n if (r4 != 0) goto L_0x0016\n if (r3 == 0) goto L_0x0010\n r1.close() // Catch:{ Throwable -> 0x0078 }\n L_0x0010:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x007d }\n L_0x0015:\n return r0\n L_0x0016:\n java.io.InputStream r2 = r4.a() // Catch:{ Throwable -> 0x008e, all -> 0x0089 }\n if (r2 != 0) goto L_0x002c\n if (r2 == 0) goto L_0x0021\n r2.close() // Catch:{ Throwable -> 0x007f }\n L_0x0021:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0027 }\n goto L_0x0015\n L_0x0027:\n r1 = move-exception\n L_0x0028:\n r1.printStackTrace()\n goto L_0x0015\n L_0x002c:\n int r1 = r2.available() // Catch:{ Throwable -> 0x0091 }\n byte[] r0 = new byte[r1] // Catch:{ Throwable -> 0x0091 }\n r2.read(r0) // Catch:{ Throwable -> 0x0091 }\n if (r2 == 0) goto L_0x003a\n r2.close() // Catch:{ Throwable -> 0x0084 }\n L_0x003a:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0040 }\n goto L_0x0015\n L_0x0040:\n r1 = move-exception\n goto L_0x0028\n L_0x0042:\n r1 = move-exception\n r2 = r3\n r4 = r3\n L_0x0045:\n java.lang.String r3 = \"sui\"\n java.lang.String r5 = \"rdS\"\n com.loc.aq.b(r1, r3, r5) // Catch:{ all -> 0x008c }\n if (r2 == 0) goto L_0x0053\n r2.close() // Catch:{ Throwable -> 0x0073 }\n L_0x0053:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0059 }\n goto L_0x0015\n L_0x0059:\n r1 = move-exception\n goto L_0x0028\n L_0x005b:\n r0 = move-exception\n r2 = r3\n r4 = r3\n L_0x005e:\n if (r2 == 0) goto L_0x0063\n r2.close() // Catch:{ Throwable -> 0x0069 }\n L_0x0063:\n if (r4 == 0) goto L_0x0068\n r4.close() // Catch:{ Throwable -> 0x006e }\n L_0x0068:\n throw r0\n L_0x0069:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0063\n L_0x006e:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0068\n L_0x0073:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0053\n L_0x0078:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0010\n L_0x007d:\n r1 = move-exception\n goto L_0x0028\n L_0x007f:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0021\n L_0x0084:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x003a\n L_0x0089:\n r0 = move-exception\n r2 = r3\n goto L_0x005e\n L_0x008c:\n r0 = move-exception\n goto L_0x005e\n L_0x008e:\n r1 = move-exception\n r2 = r3\n goto L_0x0045\n L_0x0091:\n r1 = move-exception\n goto L_0x0045\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.loc.bs.a(com.loc.bc, java.lang.String):byte[]\");\n }", "public boolean isContentInvalid() {\n/* 1156 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected void dofinally(TaskResult taskResult){\n }", "public abstract String check() throws Exception;", "public final EObject ruleTryStatement() throws RecognitionException {\n EObject current = null;\n int ruleTryStatement_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_3=null;\n EObject lv_tryBlock_1_0 = null;\n\n EObject lv_catches_2_0 = null;\n\n EObject lv_finallyBlock_4_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 78) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3512:28: ( (otherlv_0= KEYWORD_43 ( (lv_tryBlock_1_0= ruleBlock ) ) ( (lv_catches_2_0= ruleCatch ) )* (otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) ) )? ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3513:1: (otherlv_0= KEYWORD_43 ( (lv_tryBlock_1_0= ruleBlock ) ) ( (lv_catches_2_0= ruleCatch ) )* (otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) ) )? )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3513:1: (otherlv_0= KEYWORD_43 ( (lv_tryBlock_1_0= ruleBlock ) ) ( (lv_catches_2_0= ruleCatch ) )* (otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) ) )? )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3514:2: otherlv_0= KEYWORD_43 ( (lv_tryBlock_1_0= ruleBlock ) ) ( (lv_catches_2_0= ruleCatch ) )* (otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) ) )?\n {\n otherlv_0=(Token)match(input,KEYWORD_43,FOLLOW_KEYWORD_43_in_ruleTryStatement7018); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getTryStatementAccess().getTryKeyword_0());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3518:1: ( (lv_tryBlock_1_0= ruleBlock ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3519:1: (lv_tryBlock_1_0= ruleBlock )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3519:1: (lv_tryBlock_1_0= ruleBlock )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3520:3: lv_tryBlock_1_0= ruleBlock\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getTryStatementAccess().getTryBlockBlockParserRuleCall_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBlock_in_ruleTryStatement7038);\n lv_tryBlock_1_0=ruleBlock();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getTryStatementRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"tryBlock\",\n \t\tlv_tryBlock_1_0, \n \t\t\"Block\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3536:2: ( (lv_catches_2_0= ruleCatch ) )*\n loop63:\n do {\n int alt63=2;\n alt63 = dfa63.predict(input);\n switch (alt63) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3537:1: (lv_catches_2_0= ruleCatch )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3537:1: (lv_catches_2_0= ruleCatch )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3538:3: lv_catches_2_0= ruleCatch\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getTryStatementAccess().getCatchesCatchParserRuleCall_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleCatch_in_ruleTryStatement7059);\n \t lv_catches_2_0=ruleCatch();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getTryStatementRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"catches\",\n \t \t\tlv_catches_2_0, \n \t \t\t\"Catch\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop63;\n }\n } while (true);\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3554:3: (otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) ) )?\n int alt64=2;\n alt64 = dfa64.predict(input);\n switch (alt64) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3555:2: otherlv_3= KEYWORD_78 ( (lv_finallyBlock_4_0= ruleBlock ) )\n {\n otherlv_3=(Token)match(input,KEYWORD_78,FOLLOW_KEYWORD_78_in_ruleTryStatement7074); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_3, grammarAccess.getTryStatementAccess().getFinallyKeyword_3_0());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3559:1: ( (lv_finallyBlock_4_0= ruleBlock ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3560:1: (lv_finallyBlock_4_0= ruleBlock )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3560:1: (lv_finallyBlock_4_0= ruleBlock )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3561:3: lv_finallyBlock_4_0= ruleBlock\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getTryStatementAccess().getFinallyBlockBlockParserRuleCall_3_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBlock_in_ruleTryStatement7094);\n lv_finallyBlock_4_0=ruleBlock();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getTryStatementRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"finallyBlock\",\n \t\tlv_finallyBlock_4_0, \n \t\t\"Block\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 78, ruleTryStatement_StartIndex); }\n }\n return current;\n }", "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14421:1: ( ( 'try' ) )\r\n // InternalDroneScript.g:14422:1: ( 'try' )\r\n {\r\n // InternalDroneScript.g:14422:1: ( 'try' )\r\n // InternalDroneScript.g:14423:2: 'try'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n match(input,89,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@jsweet.lang.Name(\"catch\")\r\n native public <U> Promise<U> Catch();", "public JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n // 5: nop \n // 6: lconst_0 \n // 7: nop \n // 8: iaload \n // 9: nop \n // 10: ldc2_w \"Lcom/sun/codemodel/JFormatter;\"\n // 13: nop \n // 14: fload_0 /* this */\n // 15: nop \n // 16: nop \n // 17: nop \n // 18: lload_2 \n // 19: nop \n // 20: iconst_0 \n // 21: nop \n // 22: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -----------------------------\n // 0 23 0 this Lcom/sun/codemodel/JTryBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.execute(StackMappingVisitor.java:935)\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.visit(StackMappingVisitor.java:398)\n // at com.strobel.decompiler.ast.AstBuilder.performStackAnalysis(AstBuilder.java:2030)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:108)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:210)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public static TryExpression makeTry(Class type, Expression body, Expression finally_, Expression fault, Iterable<CatchBlock> handlers) { throw Extensions.todo(); }", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "public static int catchingObjectNotReference(){\n int x=1;\n try{\n Throwable t = new Exception();\n throw t;\n }\n catch (RuntimeException re){x*=2;}\n catch(Exception e){x*=3;}\n catch(Throwable t){x*=5;}\n return x; // x==3\n }", "protected boolean checkCache()\n\t{\n\t\ttry {\n\t\t\tStream<String> lines = Files.lines(Paths.get(output.getAbsolutePath(), markerFile));\n\t\t\tString content = lines.collect(Collectors.joining());\n\t\t\t//System.out.println(content);\n\t\t\treturn content.equals(successString);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }", "public static boolean isOK() {return isOK;}", "private static String checkReturn(String code) {\n if (!code.contains(\"return\")) {\n long numberOfSemiColons = code.chars().filter(c -> c == ';').count();\n if (numberOfSemiColons <= 1 && !code.contains(\"throw\")) {\n return \"return \".concat(code);\n }\n }\n return code;\n }", "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15031:1: ( ( 'try' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15032:1: ( 'try' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15032:1: ( 'try' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15033:1: 'try'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n match(input,122,FOLLOW_122_in_rule__XTryCatchFinallyExpression__Group__1__Impl30415); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static String j() {\n Object object;\n Object object2;\n block23: {\n block25: {\n block24: {\n block22: {\n block21: {\n object2 = null;\n object = \"/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq\";\n FileReader fileReader = new FileReader((String)object);\n object = new BufferedReader(fileReader);\n object2 = ((BufferedReader)object).readLine();\n object2 = ((String)object2).trim();\n try {\n ((BufferedReader)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n break block25;\n catch (IOException iOException) {\n break block21;\n }\n catch (FileNotFoundException fileNotFoundException) {\n break block22;\n }\n catch (Throwable throwable) {\n object = null;\n object2 = throwable;\n break block23;\n }\n catch (IOException iOException) {\n object = null;\n object2 = iOException;\n }\n }\n ((Throwable)object2).printStackTrace();\n if (object == null) break block24;\n ((BufferedReader)object).close();\n catch (FileNotFoundException fileNotFoundException) {\n object = null;\n object2 = fileNotFoundException;\n }\n }\n ((Throwable)object2).printStackTrace();\n if (object == null) break block24;\n try {\n ((BufferedReader)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n }\n object2 = \"N/A\";\n }\n return object2;\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n if (object != null) {\n try {\n ((BufferedReader)object).close();\n }\n catch (IOException iOException) {\n iOException.printStackTrace();\n }\n }\n throw object2;\n }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "void check () {\r\n OzcError.setLineNumber (body.line_no);\r\n\r\n check_constructor:\r\n\r\n if (method.isNew () && !method.wasCalledSuper ()) {\r\n ClassType c = method.getDefinedClass ();\r\n ClassImplementation ci;\r\n if (c.isClassInterface ()) \r\n\tci = ((ClassInterface) c).getImplementation ();\r\n else \r\n\tci = (ClassImplementation) c;\r\n do {\r\n\tci = ci.getSuperClass ();\r\n\tif (ci == null || School.isSystem (ci)) break check_constructor;\r\n } while (!ci.hasConstructor ());\r\n\r\n OzcError.constructorMustCallSuper (method);\r\n }\r\n\r\n /* need return statement as last statement */\r\n try {\r\n body.check (this);\r\n } catch (Unreachable e) {\r\n Statement st = e.getStatement ();\r\n if (st != null) \r\n\tOzcError.unreachableSt (st);\r\n else if (method.isNew () && need_return)\r\n\tOzcError.unreachableLastSt (body.line_no);\r\n }\r\n }", "public void finalize() {\n\t\ttry {\n\t\t\tif (!socket.isClosed()) { \n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tLOG.info(\"finalizedSanityCheckFailed\", ex);\n\t\t}\n\t}", "static Certificate[] verifyBytes(byte[] var0, byte[] var1_3) throws GeneralSecurityException {\n block6 : {\n block5 : {\n var2_4 = null;\n var3_5 = null;\n var3_5 = var4_6 = Providers.startJarVerification();\n var2_4 = var4_6;\n var3_5 = var4_6;\n var2_4 = var4_6;\n var5_7 = new PKCS7((byte[])var0);\n var3_5 = var4_6;\n var2_4 = var4_6;\n var0 = var5_7.verify(var1_3 /* !! */ );\n if (var0 == null) ** GOTO lbl47\n var3_5 = var4_6;\n var2_4 = var4_6;\n if (((Object)var0).length == 0) ** GOTO lbl47\n var0 = var0[0];\n var3_5 = var4_6;\n var2_4 = var4_6;\n if ((var0 = var0.getCertificateChain(var5_7)) == null) ** GOTO lbl39\n var3_5 = var4_6;\n var2_4 = var4_6;\n if (var0.isEmpty()) break block5;\n var3_5 = var4_6;\n var2_4 = var4_6;\n var0 = var0.toArray(new X509Certificate[var0.size()]);\n Providers.stopJarVerification(var4_6);\n return var0;\n }\n var3_5 = var4_6;\n var2_4 = var4_6;\n try {\n var3_5 = var4_6;\n var2_4 = var4_6;\n var0 = new GeneralSecurityException(\"Verified SignerInfo certificate chain is emtpy\");\n var3_5 = var4_6;\n var2_4 = var4_6;\n throw var0;\nlbl39: // 1 sources:\n var3_5 = var4_6;\n var2_4 = var4_6;\n var3_5 = var4_6;\n var2_4 = var4_6;\n var0 = new GeneralSecurityException(\"Failed to find verified SignerInfo certificate chain\");\n var3_5 = var4_6;\n var2_4 = var4_6;\n throw var0;\nlbl47: // 2 sources:\n var3_5 = var4_6;\n var2_4 = var4_6;\n var3_5 = var4_6;\n var2_4 = var4_6;\n var0 = new GeneralSecurityException(\"Failed to verify signature: no verified SignerInfos\");\n var3_5 = var4_6;\n var2_4 = var4_6;\n throw var0;\n }\n catch (Throwable var0_1) {\n break block6;\n }\n catch (IOException var0_2) {\n var3_5 = var2_4;\n var3_5 = var2_4;\n var1_3 /* !! */ = new GeneralSecurityException(\"IO exception verifying jar cert\", var0_2);\n var3_5 = var2_4;\n throw var1_3 /* !! */ ;\n }\n }\n Providers.stopJarVerification(var3_5);\n throw var0_1;\n }", "private static byte[] a(org.apache.http.HttpResponse r4) throws java.lang.IllegalStateException, java.io.IOException {\n /*\n r0 = 1024(0x400, float:1.435E-42)\n byte[] r0 = new byte[r0]\n r1 = 0\n org.apache.http.HttpEntity r4 = r4.getEntity() // Catch:{ all -> 0x0030 }\n java.io.InputStream r4 = r4.getContent() // Catch:{ all -> 0x0030 }\n java.io.ByteArrayOutputStream r2 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x002e }\n r2.<init>() // Catch:{ all -> 0x002e }\n L_0x0012:\n int r1 = r4.read(r0) // Catch:{ all -> 0x002b }\n r3 = -1\n if (r1 == r3) goto L_0x001e\n r3 = 0\n r2.write(r0, r3, r1) // Catch:{ all -> 0x002b }\n goto L_0x0012\n L_0x001e:\n byte[] r0 = r2.toByteArray() // Catch:{ all -> 0x002b }\n if (r4 == 0) goto L_0x0027\n r4.close() // Catch:{ Exception -> 0x0027 }\n L_0x0027:\n r2.close() // Catch:{ Exception -> 0x002a }\n L_0x002a:\n return r0\n L_0x002b:\n r0 = move-exception\n r1 = r2\n goto L_0x0032\n L_0x002e:\n r0 = move-exception\n goto L_0x0032\n L_0x0030:\n r0 = move-exception\n r4 = r1\n L_0x0032:\n if (r4 == 0) goto L_0x0039\n r4.close() // Catch:{ Exception -> 0x0038 }\n goto L_0x0039\n L_0x0038:\n L_0x0039:\n if (r1 == 0) goto L_0x003e\n r1.close() // Catch:{ Exception -> 0x003e }\n L_0x003e:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.sdk.f.d.a(org.apache.http.HttpResponse):byte[]\");\n }", "@Test\n public void slide_catch_finaly() throws IOException {\n\n ByteArrayInputStream bais = null;\n try\n {\n byte[] bytes = new byte[100];\n bais = new ByteArrayInputStream(bytes);\n\n throw new IllegalArgumentException();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(\"Exception Исключение обработано\");\n }\n finally {\n System.out.println(\"Finaly execute\");\n if(bais!=null) {\n bais.close();\n System.out.println(\"Stream closed\");\n }\n }\n\n }", "private ChannelFuture checkException(ChannelPromise promise) {\n/* 624 */ Throwable t = this.lastException;\n/* 625 */ if (t != null) {\n/* 626 */ this.lastException = null;\n/* */ \n/* 628 */ if (promise.isVoid()) {\n/* 629 */ PlatformDependent.throwException(t);\n/* */ }\n/* */ \n/* 632 */ return (ChannelFuture)promise.setFailure(t);\n/* */ } \n/* */ \n/* 635 */ return (ChannelFuture)promise.setSuccess();\n/* */ }", "@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}", "public boolean proceedOnErrors() {\n return false;\n }", "private void a(String object) {\n Object object2;\n block20: {\n block19: {\n block18: {\n block17: {\n void var1_4;\n block16: {\n object2 = l$b.e();\n Object object3 = new File((String)object2);\n boolean bl2 = ((File)object3).exists();\n if (!bl2) {\n ((File)object3).mkdirs();\n }\n bl2 = false;\n object2 = null;\n String string2 = \"sensebot_log.txt\";\n File file = new File((File)object3, string2);\n boolean bl3 = true;\n FileOutputStream fileOutputStream = new FileOutputStream(file, bl3);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n object3 = \"utf-8\";\n object = ((String)object).getBytes((String)object3);\n bufferedOutputStream.write((byte[])object);\n try {\n bufferedOutputStream.close();\n return;\n }\n catch (Exception exception) {\n return;\n }\n catch (Throwable throwable) {\n object2 = bufferedOutputStream;\n break block16;\n }\n catch (Exception exception) {\n object2 = bufferedOutputStream;\n break block17;\n }\n catch (UnsupportedEncodingException unsupportedEncodingException) {\n object2 = bufferedOutputStream;\n break block18;\n }\n catch (FileNotFoundException fileNotFoundException) {\n object2 = bufferedOutputStream;\n break block19;\n }\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n if (object2 == null) throw var1_4;\n try {\n ((FilterOutputStream)object2).close();\n }\n catch (Exception exception) {\n throw var1_4;\n }\n throw var1_4;\n catch (Exception exception) {}\n }\n if (object2 == null) return;\n break block20;\n catch (UnsupportedEncodingException unsupportedEncodingException) {}\n }\n if (object2 == null) return;\n break block20;\n catch (FileNotFoundException fileNotFoundException) {}\n }\n if (object2 == null) return;\n }\n ((FilterOutputStream)object2).close();\n }", "public JCatchBlock _catch(final JClass exception) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: nop \n // 1: nop \n // 2: nop \n // 3: laload \n // 4: nop \n // 5: aconst_null \n // 6: nop \n // 7: aconst_null \n // 8: nop \n // 9: nop \n // 10: nop \n // 11: iconst_2 \n // 12: aload_0 /* this */\n // 13: getfield com/sun/codemodel/JTryBlock.body:Lcom/sun/codemodel/JBlock;\n // 16: areturn \n // 17: nop \n // 18: nop \n // 19: nop \n // 20: iconst_m1 \n // 21: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- --------- -------------------------------\n // 0 22 0 this Lcom/sun/codemodel/JTryBlock;\n // 0 22 1 exception Lcom/sun/codemodel/JClass;\n // 9 13 2 cb Lcom/sun/codemodel/JCatchBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public static void demoException() {\n\n try {\n print(1, \"hello\");\n String b = null;\n b.indexOf(\"a\");\n\n } catch (NullPointerException npe) {\n print(3, \"NPE\");\n } catch (Exception e) {\n print(4, \"Exception\");\n } finally {\n /** code will be executed anyway regardless of exception */\n print(2, \"finally\");\n // 做清理工作\n }\n\n try {\n print(1, \"hello\");\n int a = 2;\n a = a / 0;\n /** add a log file when an Exception occurs */\n } catch (NullPointerException npe) {\n print(3, \"NPE\");\n } catch (Exception e) {\n print(4, \"Exception\");\n } finally {\n /** code will be executed anyway regardless of exception */\n print(2, \"finally\");\n // 做清理工作\n }\n }", "public static boolean tryStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"tryStatement\")) return false;\n if (!nextTokenIs(b, TRY)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TRY_STATEMENT, null);\n r = consumeToken(b, TRY);\n p = r; // pin = 1\n r = r && report_error_(b, block(b, l + 1));\n r = p && tryStatement_2(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "private void verifyContent(String content) throws Exception {\n\t\t// try to read content into an XMLMemento\n\t\tXMLMemento.createReadRoot(new StringReader(content));\n\t}", "boolean hasException();", "@Override\n\tpublic boolean tryAgainOnEOF()\n\t{\n\t\treturn false;\n\t}", "protected boolean inSomeBlock() {\n return !enclosingBlocks.isEmpty();\n }", "@Override\n\tpublic void check() throws Exception {\n\t}", "private void m44337f() throws BaseException {\n Throwable th = this.f30622n;\n if (th != null) {\n if (th instanceof StreamClosedException) {\n throw new BaseException(1068, \"async reader closed!\");\n }\n DownloadUtils.m44505a(th, \"async_read\");\n }\n throw new BaseException(1069, \"async reader terminated!\");\n }", "public void checkReadLock() {\r\n return;\r\n }", "void checkClosed() throws SQLException {\n\n if (result == null) { throw Message.getSQLException(ErrorCode.OBJECT_CLOSED); }\n if (stat != null) {\n stat.checkClosed();\n }\n if (conn != null) {\n conn.checkClosed();\n }\n }", "public final synchronized int a() {\n /*\n r3 = this;\n monitor-enter(r3)\n int r0 = r3.c // Catch:{ all -> 0x0029 }\n r1 = -1\n if (r0 != r1) goto L_0x0025\n r0 = 0\n android.content.Context r1 = r3.b // Catch:{ NameNotFoundException -> 0x001c }\n java.lang.String r1 = r1.getPackageName() // Catch:{ NameNotFoundException -> 0x001c }\n android.content.Context r2 = r3.b // Catch:{ NameNotFoundException -> 0x001c }\n android.content.pm.PackageManager r2 = r2.getPackageManager() // Catch:{ NameNotFoundException -> 0x001c }\n android.content.pm.PackageInfo r1 = r2.getPackageInfo(r1, r0) // Catch:{ NameNotFoundException -> 0x001c }\n int r1 = r1.versionCode // Catch:{ NameNotFoundException -> 0x001c }\n r3.c = r1 // Catch:{ NameNotFoundException -> 0x001c }\n goto L_0x0025\n L_0x001c:\n com.google.android.play.core.internal.ag r1 = f1082a // Catch:{ all -> 0x0029 }\n java.lang.String r2 = \"The current version of the app could not be retrieved\"\n java.lang.Object[] r0 = new java.lang.Object[r0] // Catch:{ all -> 0x0029 }\n r1.b(r2, r0) // Catch:{ all -> 0x0029 }\n L_0x0025:\n int r0 = r3.c // Catch:{ all -> 0x0029 }\n monitor-exit(r3)\n return r0\n L_0x0029:\n r0 = move-exception\n monitor-exit(r3)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.core.assetpacks.cv.a():int\");\n }", "public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n java.io.FileDescriptor r0 = r1.getFD() // Catch:{ Exception -> 0x0044 }\n r0.sync() // Catch:{ Exception -> 0x0044 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x003d }\n L_0x001f:\n return\n L_0x0020:\n r0 = move-exception\n r1 = r2\n L_0x0022:\n r0.printStackTrace() // Catch:{ all -> 0x0042 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x002b }\n goto L_0x001f\n L_0x002b:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0030:\n r0 = move-exception\n r1 = r2\n L_0x0032:\n if (r1 == 0) goto L_0x0037\n r1.close() // Catch:{ Exception -> 0x0038 }\n L_0x0037:\n throw r0\n L_0x0038:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0037\n L_0x003d:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0042:\n r0 = move-exception\n goto L_0x0032\n L_0x0044:\n r0 = move-exception\n goto L_0x0022\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.syu.util.MySharePreference.sync():void\");\n }", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "public void trySafeMethod(){\n safeMethod();\n }", "public int getTryCatchBlockIndex() {\n/* 424 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }", "@Override\n public String visit(TryStmt n, Object arg) {\n return null;\n }", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "Boolean ignoreExceptions();", "public synchronized void close() {\n /*\n r4 = this;\n monitor-enter(r4);\n r1 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ IllegalArgumentException -> 0x0009 }\n if (r0 != 0) goto L_0x000e;\n L_0x0007:\n monitor-exit(r4);\n return;\n L_0x0009:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n L_0x000e:\n r0 = new java.util.ArrayList;\t Catch:{ all -> 0x000b }\n r2 = r4.k;\t Catch:{ all -> 0x000b }\n r2 = r2.values();\t Catch:{ all -> 0x000b }\n r0.<init>(r2);\t Catch:{ all -> 0x000b }\n r2 = r0.iterator();\t Catch:{ all -> 0x000b }\n L_0x001d:\n r0 = r2.hasNext();\t Catch:{ all -> 0x000b }\n if (r0 == 0) goto L_0x0038;\n L_0x0023:\n r0 = r2.next();\t Catch:{ all -> 0x000b }\n r0 = (com.whatsapp.util.bl) r0;\t Catch:{ all -> 0x000b }\n r3 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n if (r3 == 0) goto L_0x0036;\n L_0x002f:\n r0 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n r0.b();\t Catch:{ IllegalArgumentException -> 0x0044 }\n L_0x0036:\n if (r1 == 0) goto L_0x001d;\n L_0x0038:\n r4.h();\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ all -> 0x000b }\n r0.close();\t Catch:{ all -> 0x000b }\n r0 = 0;\n r4.m = r0;\t Catch:{ all -> 0x000b }\n goto L_0x0007;\n L_0x0044:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.close():void\");\n }", "protected boolean reallyCancel() throws Exception { return true; }", "@Override public final boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller ) {\n //if( _nleft != null ) _nleft.cancel(true); _nleft = null;\n //if( _nrite != null ) _nrite.cancel(true); _nrite = null;\n //if( _left != null ) _left.cancel(true); _left = null;\n //if( _rite != null ) _rite.cancel(true); _rite = null;\n _nleft = _nrite = null;\n _left = _rite = null;\n return super.onExceptionalCompletion(ex, caller);\n }", "private void checkClosedResultSet() {\n if(closed) {\n throw new IllegalStateException(\"Resultset is already closed\");\n }\n }", "public static String b(HttpURLConnection object) {\n Throwable throwable2222222;\n InputStream inputStream;\n block4: {\n inputStream = null;\n inputStream = ((URLConnection)object).getInputStream();\n object = r0.a(inputStream);\n {\n catch (Throwable throwable2222222) {\n break block4;\n }\n catch (IOException iOException) {}\n {\n int n10 = ((HttpURLConnection)object).getResponseCode();\n String string2 = \"hmsSdk\";\n StringBuilder stringBuilder = new StringBuilder();\n String string3 = \"When Response Content From Connection inputStream operation exception! \";\n stringBuilder.append(string3);\n stringBuilder.append(n10);\n object = stringBuilder.toString();\n y.f(string2, (String)object);\n }\n r0.a((Closeable)inputStream);\n return \"\";\n }\n r0.a((Closeable)inputStream);\n return object;\n }\n r0.a((Closeable)inputStream);\n throw throwable2222222;\n }", "public final PythonParser.try_stmt_return try_stmt() throws RecognitionException {\n PythonParser.try_stmt_return retval = new PythonParser.try_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token TRY159=null;\n Token COLON160=null;\n Token ORELSE161=null;\n Token COLON162=null;\n Token FINALLY163=null;\n Token COLON164=null;\n Token FINALLY165=null;\n Token COLON166=null;\n List list_e=null;\n PythonParser.suite_return trysuite = null;\n\n PythonParser.suite_return elsesuite = null;\n\n PythonParser.suite_return finalsuite = null;\n\n PythonParser.except_clause_return e = null;\n e = null;\n PythonTree TRY159_tree=null;\n PythonTree COLON160_tree=null;\n PythonTree ORELSE161_tree=null;\n PythonTree COLON162_tree=null;\n PythonTree FINALLY163_tree=null;\n PythonTree COLON164_tree=null;\n PythonTree FINALLY165_tree=null;\n PythonTree COLON166_tree=null;\n\n\n stmt stype = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:957:5: ( TRY COLON trysuite= suite[!$suite.isEmpty() && $suite::continueIllegal] ( (e+= except_clause )+ ( ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal] )? ( FINALLY COLON finalsuite= suite[true] )? | FINALLY COLON finalsuite= suite[true] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:957:7: TRY COLON trysuite= suite[!$suite.isEmpty() && $suite::continueIllegal] ( (e+= except_clause )+ ( ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal] )? ( FINALLY COLON finalsuite= suite[true] )? | FINALLY COLON finalsuite= suite[true] )\n {\n root_0 = (PythonTree)adaptor.nil();\n\n TRY159=(Token)match(input,TRY,FOLLOW_TRY_in_try_stmt3838); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TRY159_tree = (PythonTree)adaptor.create(TRY159);\n adaptor.addChild(root_0, TRY159_tree);\n }\n COLON160=(Token)match(input,COLON,FOLLOW_COLON_in_try_stmt3840); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON160_tree = (PythonTree)adaptor.create(COLON160);\n adaptor.addChild(root_0, COLON160_tree);\n }\n pushFollow(FOLLOW_suite_in_try_stmt3844);\n trysuite=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, trysuite.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:7: ( (e+= except_clause )+ ( ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal] )? ( FINALLY COLON finalsuite= suite[true] )? | FINALLY COLON finalsuite= suite[true] )\n int alt72=2;\n int LA72_0 = input.LA(1);\n\n if ( (LA72_0==EXCEPT) ) {\n alt72=1;\n }\n else if ( (LA72_0==FINALLY) ) {\n alt72=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 0, input);\n\n throw nvae;\n }\n switch (alt72) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:9: (e+= except_clause )+ ( ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal] )? ( FINALLY COLON finalsuite= suite[true] )?\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:10: (e+= except_clause )+\n int cnt69=0;\n loop69:\n do {\n int alt69=2;\n int LA69_0 = input.LA(1);\n\n if ( (LA69_0==EXCEPT) ) {\n alt69=1;\n }\n\n\n switch (alt69) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:10: e+= except_clause\n \t {\n \t pushFollow(FOLLOW_except_clause_in_try_stmt3857);\n \t e=except_clause();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, e.getTree());\n \t if (list_e==null) list_e=new ArrayList();\n \t list_e.add(e.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt69 >= 1 ) break loop69;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(69, input);\n throw eee;\n }\n cnt69++;\n } while (true);\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:27: ( ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal] )?\n int alt70=2;\n int LA70_0 = input.LA(1);\n\n if ( (LA70_0==ORELSE) ) {\n alt70=1;\n }\n switch (alt70) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:28: ORELSE COLON elsesuite= suite[!$suite.isEmpty() && $suite::continueIllegal]\n {\n ORELSE161=(Token)match(input,ORELSE,FOLLOW_ORELSE_in_try_stmt3861); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ORELSE161_tree = (PythonTree)adaptor.create(ORELSE161);\n adaptor.addChild(root_0, ORELSE161_tree);\n }\n COLON162=(Token)match(input,COLON,FOLLOW_COLON_in_try_stmt3863); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON162_tree = (PythonTree)adaptor.create(COLON162);\n adaptor.addChild(root_0, COLON162_tree);\n }\n pushFollow(FOLLOW_suite_in_try_stmt3867);\n elsesuite=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, elsesuite.getTree());\n\n }\n break;\n\n }\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:105: ( FINALLY COLON finalsuite= suite[true] )?\n int alt71=2;\n int LA71_0 = input.LA(1);\n\n if ( (LA71_0==FINALLY) ) {\n alt71=1;\n }\n switch (alt71) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:958:106: FINALLY COLON finalsuite= suite[true]\n {\n FINALLY163=(Token)match(input,FINALLY,FOLLOW_FINALLY_in_try_stmt3873); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n FINALLY163_tree = (PythonTree)adaptor.create(FINALLY163);\n adaptor.addChild(root_0, FINALLY163_tree);\n }\n COLON164=(Token)match(input,COLON,FOLLOW_COLON_in_try_stmt3875); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON164_tree = (PythonTree)adaptor.create(COLON164);\n adaptor.addChild(root_0, COLON164_tree);\n }\n pushFollow(FOLLOW_suite_in_try_stmt3879);\n finalsuite=suite(true);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, finalsuite.getTree());\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n\n stype = actions.makeTryExcept(TRY159, (trysuite!=null?trysuite.stypes:null), list_e, (elsesuite!=null?elsesuite.stypes:null), (finalsuite!=null?finalsuite.stypes:null));\n \n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:962:9: FINALLY COLON finalsuite= suite[true]\n {\n FINALLY165=(Token)match(input,FINALLY,FOLLOW_FINALLY_in_try_stmt3902); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n FINALLY165_tree = (PythonTree)adaptor.create(FINALLY165);\n adaptor.addChild(root_0, FINALLY165_tree);\n }\n COLON166=(Token)match(input,COLON,FOLLOW_COLON_in_try_stmt3904); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON166_tree = (PythonTree)adaptor.create(COLON166);\n adaptor.addChild(root_0, COLON166_tree);\n }\n pushFollow(FOLLOW_suite_in_try_stmt3908);\n finalsuite=suite(true);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, finalsuite.getTree());\n if ( state.backtracking==0 ) {\n\n stype = actions.makeTryFinally(TRY159, (trysuite!=null?trysuite.stypes:null), (finalsuite!=null?finalsuite.stypes:null));\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = stype;\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public static TryExpression tryCatch(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public boolean catchableException(TypeDecl type) {\n Object _parameters = type;\n if(catchableException_TypeDecl_values == null) catchableException_TypeDecl_values = new java.util.HashMap(4);\n if(catchableException_TypeDecl_values.containsKey(_parameters)) {\n return ((Boolean)catchableException_TypeDecl_values.get(_parameters)).booleanValue();\n }\n ASTNode$State state = state();\n int num = state.boundariesCrossed;\n boolean isFinal = this.is$Final();\n boolean catchableException_TypeDecl_value = catchableException_compute(type);\n if(isFinal && num == state().boundariesCrossed) catchableException_TypeDecl_values.put(_parameters, Boolean.valueOf(catchableException_TypeDecl_value));\n return catchableException_TypeDecl_value;\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "private boolean finish(boolean releaseAll) {\n/* 485 */ close();\n/* */ try {\n/* 487 */ checkException();\n/* 488 */ return (isNotEmpty(this.inboundMessages) || isNotEmpty(this.outboundMessages));\n/* */ } finally {\n/* 490 */ if (releaseAll) {\n/* 491 */ releaseAll(this.inboundMessages);\n/* 492 */ releaseAll(this.outboundMessages);\n/* */ } \n/* */ } \n/* */ }", "public void func_09_01_basic_02_bad() {\n\t synchronized (Lock) { //not compliant\n\t count++;\n\t // ...\n\t }\n\t}" ]
[ "0.6644929", "0.6435658", "0.62527555", "0.61293375", "0.59225845", "0.5845972", "0.58092475", "0.5798801", "0.5790061", "0.57233304", "0.56356835", "0.5587665", "0.5584604", "0.55257946", "0.5500667", "0.5489859", "0.5482852", "0.5457618", "0.53813666", "0.53809303", "0.53452325", "0.53268766", "0.52544445", "0.5243551", "0.5214945", "0.51634765", "0.515453", "0.5151482", "0.51360774", "0.5134581", "0.5127804", "0.5119314", "0.5115817", "0.5072839", "0.5072195", "0.5069161", "0.5065274", "0.50487626", "0.5045393", "0.5044733", "0.5020795", "0.5017865", "0.50060683", "0.49995473", "0.4998929", "0.49925295", "0.49900156", "0.49840045", "0.49817494", "0.49518806", "0.49262515", "0.4903422", "0.48967937", "0.48845163", "0.48810703", "0.48779118", "0.4875755", "0.4873309", "0.48723498", "0.48580632", "0.48225948", "0.48213622", "0.48195374", "0.48134923", "0.480828", "0.48051023", "0.47980654", "0.47881535", "0.47696707", "0.47693115", "0.47618115", "0.4758981", "0.47525036", "0.47514844", "0.47463205", "0.47445753", "0.47427073", "0.47251564", "0.4722569", "0.47205988", "0.4709441", "0.47089124", "0.46934104", "0.46924546", "0.4686005", "0.4686005", "0.4684599", "0.46841034", "0.46837568", "0.46775544", "0.46773556", "0.46707657", "0.46429792", "0.46383938", "0.4635964", "0.46220276", "0.46111554", "0.46104488", "0.46059847", "0.45981577" ]
0.63637716
2
Submit a mistake if the try or catch or finally blocks have redundant return.
private void handleBlocksTryCatchFinally(DetailAST aAstReturn) { if (aAstReturn != null) { if (aAstReturn.getType() == TokenTypes.LITERAL_RETURN) { log(aAstReturn.getLineNo()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void submitRedundantReturnInTryCatch(DetailAST aTryAst) {\n\n\t\tDetailAST astBlockTry = aTryAst.getFirstChild();\n\n\t\thandleBlocksTryCatchFinally(astBlockTry.getLastChild()\n\t\t\t\t.getPreviousSibling());\n\n\t\tfinal int catchBlocksAmount = aTryAst\n\t\t\t\t.getChildCount(TokenTypes.LITERAL_CATCH);\n\n\t\tfor (int i = 0; i < catchBlocksAmount; i++) {\n\n\t\t\tastBlockTry = astBlockTry.getNextSibling();\n\t\t\thandleBlocksTryCatchFinally(astBlockTry.getLastChild()\n\t\t\t\t\t.getLastChild().getPreviousSibling());\n\t\t}\n\n\t\tif (astBlockTry.getNextSibling() != null) {\n\n\t\t\thandleBlocksTryCatchFinally(astBlockTry.getNextSibling()\n\t\t\t\t\t.getLastChild().getLastChild().getPreviousSibling());\n\n\t\t}\n\t}", "Block getTryBlock();", "public boolean proceedOnErrors() {\n return false;\n }", "public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }", "public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }", "Object proceed() throws Throwable;", "public boolean trySuccess()\r\n/* 52: */ {\r\n/* 53: 84 */ return trySuccess(null);\r\n/* 54: */ }", "@Test\n public void testPutHandlesOtherExceptionsCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(false);\n }", "@Test\n public void testPutHandlesConditionalCheckFailedExceptionCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(true);\n }", "public static int doSomething() {\n try {\n return 1;\n } catch (Exception e) {\n return 2;\n } finally {\n // never use return in finally block\n // method will always return 9\n return 9;\n }\n\n }", "static void perform_ret(String passed){\n\t\tint type = type_of_ret(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\treturn_unconditionally(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public Object proceed() throws Throwable;", "private void checkForRedundantReturn(DetailAST aMethodObjectBlock) {\n\n\t\tfinal int methodChildCount = aMethodObjectBlock.getChildCount();\n\n\t\tif (methodChildCount != 1) {\n\n\t\t\tfinal int placeForRedundantReturn = aMethodObjectBlock\n\t\t\t\t\t.getLastChild().getPreviousSibling().getType();\n\n\t\t\tfinal int methodWithSingleChild = 2;\n\n\t\t\tif (methodChildCount > methodWithSingleChild) {\n\n\t\t\t\thandlePlacesForRedundantReturn(placeForRedundantReturn,\n\t\t\t\t\t\taMethodObjectBlock);\n\t\t\t} else {\n\n\t\t\t\tif (!mAllowReturnInEmptyMethodsAndConstructors) {\n\t\t\t\t\thandlePlacesForRedundantReturn(placeForRedundantReturn,\n\t\t\t\t\t\t\taMethodObjectBlock);\n\t\t\t\t}\n\n\t\t\t\tif (placeForRedundantReturn == TokenTypes.LITERAL_TRY) {\n\t\t\t\t\tsubmitRedundantReturnInTryCatch(aMethodObjectBlock\n\t\t\t\t\t\t\t.getFirstChild());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean setFailure0(Throwable cause)\r\n/* 389: */ {\r\n/* 390:475 */ if (isDone()) {\r\n/* 391:476 */ return false;\r\n/* 392: */ }\r\n/* 393:479 */ synchronized (this)\r\n/* 394: */ {\r\n/* 395:481 */ if (isDone()) {\r\n/* 396:482 */ return false;\r\n/* 397: */ }\r\n/* 398:485 */ this.result = new CauseHolder(cause, null);\r\n/* 399:486 */ if (hasWaiters()) {\r\n/* 400:487 */ notifyAll();\r\n/* 401: */ }\r\n/* 402: */ }\r\n/* 403:490 */ return true;\r\n/* 404: */ }", "default void orElseThrow(Throwable t) throws Throwable {\n if (isFailure()) throw t;\n }", "public void check() throws InterruptedException, ExecutionException {\n // If a thread threw an uncaught exception, re-throw it.\n final ExecutionException executionException = getExecutionException();\n if (executionException != null) {\n throw executionException;\n }\n // If this thread or another thread has been interrupted, throw InterruptedException\n if (checkAndReturn()) {\n throw new InterruptedException();\n }\n }", "public static TryExpression tryFinally(Expression body, Expression fault) { throw Extensions.todo(); }", "private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }", "void tryCleanup() throws Exception;", "public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }", "protected abstract void executeActionsIfError();", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "public static TryExpression makeTry(Class type, Expression body, Expression finally_, Expression fault, Iterable<CatchBlock> handlers) { throw Extensions.todo(); }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "public abstract String check() throws Exception;", "@Test\n @ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class)\n public void testFailure() throws Exception {\n ExecutorService executorService = Executors.newFixedThreadPool(1);\n try {\n Future<?> future =\n executorService.submit(\n () -> {\n try {\n submitQuery(false, 0);\n } catch (SQLException e) {\n throw new RuntimeSQLException(\"SQLException\", e);\n } catch (InterruptedException e) {\n throw new IllegalStateException(\"task interrupted\", e);\n }\n });\n executorService.shutdown();\n future.get();\n fail(\"should fail and raise an exception\");\n } catch (ExecutionException ex) {\n Throwable rootCause = ex.getCause();\n assertThat(\"Runtime Exception\", rootCause, instanceOf(RuntimeSQLException.class));\n\n rootCause = rootCause.getCause();\n\n assertThat(\"Root cause class\", rootCause, instanceOf(SnowflakeSQLException.class));\n assertThat(\"Error code\", ((SnowflakeSQLException) rootCause).getErrorCode(), equalTo(390114));\n }\n }", "static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }", "protected void failed()\r\n {\r\n //overwrite\r\n }", "int executeSafely();", "default void recover() {}", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "private ChannelFuture checkException(ChannelPromise promise) {\n/* 624 */ Throwable t = this.lastException;\n/* 625 */ if (t != null) {\n/* 626 */ this.lastException = null;\n/* */ \n/* 628 */ if (promise.isVoid()) {\n/* 629 */ PlatformDependent.throwException(t);\n/* */ }\n/* */ \n/* 632 */ return (ChannelFuture)promise.setFailure(t);\n/* */ } \n/* */ \n/* 635 */ return (ChannelFuture)promise.setSuccess();\n/* */ }", "public void onFailure(WorkContainer<K, V> wc) {\n wc.fail(clock);\n putBack(wc);\n }", "private void m44333c() throws Throwable {\n this.f30623o = C7189b.m43117l().submit(this.f30625q);\n }", "public static TryExpression tryFault(Expression body, Expression fault) { throw Extensions.todo(); }", "private <T> T swallowing(T throwing) {\n return null;\n }", "public static int finallyReturnWithException() {\n try {\n throw new RuntimeException();\n } finally {\n return 1;\n }\n }", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "public boolean tryFailure(Throwable cause)\r\n/* 341: */ {\r\n/* 342:424 */ if (setFailure0(cause))\r\n/* 343: */ {\r\n/* 344:425 */ notifyListeners();\r\n/* 345:426 */ return true;\r\n/* 346: */ }\r\n/* 347:428 */ return false;\r\n/* 348: */ }", "boolean processFailure(Throwable t);", "Try<T> recover(TryFunction<? super Throwable, T> fn);", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "public void forceReasonerReSynchronization();", "void checked(){\n \n try {\n \n throw new CheckedException();\n } catch (CheckedException e) {\n e.printStackTrace();\n }\n\n }", "public void noReturnOnVoid() {\n\t\treturn;\n\t}", "public void errorWhenCommitting();", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "@Override\n protected void runMayThrow() throws Exception\n {\n // The collection of sstables passed may be empty (but not null); even if\n // it is not empty, it may compact down to nothing if all rows are deleted.\n assert transaction != null;\n\n if (transaction.originals().isEmpty())\n return;\n\n if (DatabaseDescriptor.isSnapshotBeforeCompaction())\n cfs.snapshotWithoutMemtable(System.currentTimeMillis() + \"-compact-\" + cfs.name);\n\n try (CompactionController controller = getCompactionController(transaction.originals());\n CompactionOperation operation = new CompactionOperation(controller))\n {\n operation.execute();\n }\n }", "public void runMayThrow() throws Exception\n {\n logger.info(String.format(\"[repair #%s] new session: will sync %s on range %s for %s.%s\", getId(), repairedNodes(), range, keyspace, Arrays.toString(cfnames)));\n\n if (endpoints.isEmpty())\n {\n differencingDone.signalAll();\n logger.info(String.format(\"[repair #%s] No neighbors to repair with on range %s: session completed\", getId(), range));\n return;\n }\n\n // Checking all nodes are live\n for (InetAddress endpoint : endpoints)\n {\n if (!FailureDetector.instance.isAlive(endpoint))\n {\n String message = String.format(\"Cannot proceed on repair because a neighbor (%s) is dead: session failed\", endpoint);\n differencingDone.signalAll();\n logger.error(String.format(\"[repair #%s] \", getId()) + message);\n throw new IOException(message);\n }\n }\n\n ActiveRepairService.instance.addToActiveSessions(this);\n try\n {\n // Create and queue a RepairJob for each column family\n for (String cfname : cfnames)\n {\n RepairJob job = new RepairJob(this, id, keyspace, cfname, range, parallelismDegree, taskExecutor);\n jobs.offer(job);\n }\n\n jobs.peek().sendTreeRequests(endpoints);\n\n // block whatever thread started this session until all requests have been returned:\n // if this thread dies, the session will still complete in the background\n completed.await();\n if (exception == null)\n {\n logger.info(String.format(\"[repair #%s] session completed successfully\", getId()));\n }\n else\n {\n logger.error(String.format(\"[repair #%s] session completed with the following error\", getId()), exception);\n throw exception;\n }\n }\n catch (InterruptedException e)\n {\n throw new RuntimeException(\"Interrupted while waiting for repair.\");\n }\n finally\n {\n // mark this session as terminated\n terminate();\n ActiveRepairService.instance.removeFromActiveSessions(this);\n }\n }", "public static int methodWithoutReturn(){\n throw new Error();\n }", "Try<T> recoverWith(TryFunction<? super Throwable, Try<T>> fn);", "public boolean needsProblem();", "public void dealwitherrors(int retval)\n \t\t{\n \t\t\tmProgBar.dismiss();\n \t\t\tswitch (retval) {\n \t\t\tcase -1:\n \t\t\t\tgetDialog(\"I'm sorry, but please retype the authentication code.\"\n \t\t\t\t\t\t+ \"The one you entered could not be verified\");\n \t\t\t\tbreak;\n \t\t\tcase -2:\n \t\t\t\tgetDialog(\"I'm sorry, but please retype your NetID.\"\n \t\t\t\t\t\t+ \"The one you entered could not be verified\");\n \t\t\t\tbreak;\n \t\t\tcase -3:\n \t\t\tcase -4:\n\t\t\tcase -5:\n\t\t\t\tif(exceptionalMessage.compareTo(\"\") != 0)\n\t\t\t\t\tgetDialog(exceptionalMessage);\n\t\t\t\telse\n\t\t\t\t\tgetDialog(\"We don't know what went wrong. Please make\" +\n\t\t\t\t\t\t\t\" sure all of the fields are fill in correctly\" +\n\t\t\t\t\t\t\t\". Thanks!\");\n\t\t\t\tbreak;\n \t\t\tdefault:\n\t\t\t\tgetDialog(\"I'm sorry, but an unknown error occurred. \"\n\t\t\t\t\t\t+ \"Please call dispatch/the supervisor if this persists.\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }", "@NonBlocking\n void success(T value);", "@Override\n boolean canFail() {\n return true;\n }", "public static void moreCodeAfterFinallyException(){\n try {\n System.err.println(\"try\");\n if (true) {throw new RuntimeException();}\n } finally {\n System.err.println(\"finally\");\n }\n System.err.println(\"more\");\n }", "private void tryStaleEntry (RequestHandler rh, Exception e) {\n\tif (rh.entry != null && rh.conditional && !mustRevalidate) {\n\t handleStaleEntry (rh);\n\t} else {\n\t doError (504, e);\n\t return;\n\t}\n }", "public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void pos1() {\n int num1, num2;\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"You should not divide a number by zero\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Test\n public void unimplementedOps() throws Exception {\n testInfo(this.getClass().getSimpleName() + \" - notImplementedOps\");\n\n boolean error;\n\n error = false;\n try {\n print(account + \": Fetching bucket cors for \" + bucketName);\n s3.getBucketCrossOriginConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket policy for \" + bucketName);\n s3.getBucketPolicy(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket notification configuration for \" + bucketName);\n s3.getBucketNotificationConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n error = false;\n try {\n print(account + \": Fetching bucket website configuration for \" + bucketName);\n s3.getBucketWebsiteConfiguration(bucketName);\n } catch (AmazonServiceException ase) {\n verifyException(ase);\n error = true;\n } finally {\n assertTrue(\"Expected to receive a 501 NotImplemented error but did not\", error);\n }\n\n }", "@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "public abstract void mo33865a(Throwable th, Throwable th2);", "@Override\n protected boolean shouldSendThrowException() {\n return false;\n }", "public static void failUnexpectedToReachThis()\r\n\t{\r\n\t\tfail( \"Unexpected to hit this line, as the previous statement should thrown an exception\" ); \r\n\t}", "public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }", "private static String checkReturn(String code) {\n if (!code.contains(\"return\")) {\n long numberOfSemiColons = code.chars().filter(c -> c == ';').count();\n if (numberOfSemiColons <= 1 && !code.contains(\"throw\")) {\n return \"return \".concat(code);\n }\n }\n return code;\n }", "@Override\n public Void visit(TryStatement node, StatementVisitor mv) {\n \n BlockStatement tryBlock = node.getTryBlock();\n CatchNode catchNode = node.getCatchNode();\n BlockStatement finallyBlock = node.getFinallyBlock();\n \n if (catchNode != null && finallyBlock != null) {\n Label startCatch = new Label();\n Label endCatch = new Label(), handlerCatch = new Label();\n Label endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(noException);\n \n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n mv.enterWrapped();\n catchNode.accept(this, mv);\n mv.exitWrapped();\n mv.mark(endFinally);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n // various finally blocks\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n mv.visitTryCatchBlock(startCatch, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n } else if (catchNode != null) {\n Label startCatch = new Label(), endCatch = new Label(), handlerCatch = new Label();\n Label exceptionHandled = new Label();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(exceptionHandled);\n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n catchNode.accept(this, mv);\n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n } else {\n assert finallyBlock != null;\n Label startFinally = new Label(), endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startFinally);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endFinally);\n mv.goTo(noException);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startFinally, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n }\n \n return null;\n }", "public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }", "public boolean trySuccess(V result)\r\n/* 321: */ {\r\n/* 322:406 */ if (setSuccess0(result))\r\n/* 323: */ {\r\n/* 324:407 */ notifyListeners();\r\n/* 325:408 */ return true;\r\n/* 326: */ }\r\n/* 327:410 */ return false;\r\n/* 328: */ }", "public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }", "public void doTheFaultyThing();", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n java.io.FileDescriptor r0 = r1.getFD() // Catch:{ Exception -> 0x0044 }\n r0.sync() // Catch:{ Exception -> 0x0044 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x003d }\n L_0x001f:\n return\n L_0x0020:\n r0 = move-exception\n r1 = r2\n L_0x0022:\n r0.printStackTrace() // Catch:{ all -> 0x0042 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x002b }\n goto L_0x001f\n L_0x002b:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0030:\n r0 = move-exception\n r1 = r2\n L_0x0032:\n if (r1 == 0) goto L_0x0037\n r1.close() // Catch:{ Exception -> 0x0038 }\n L_0x0037:\n throw r0\n L_0x0038:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0037\n L_0x003d:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0042:\n r0 = move-exception\n goto L_0x0032\n L_0x0044:\n r0 = move-exception\n goto L_0x0022\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.syu.util.MySharePreference.sync():void\");\n }", "@Override\n protected boolean continueOnWriteError() {\n return true;\n }", "@Override public final boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller ) {\n //if( _nleft != null ) _nleft.cancel(true); _nleft = null;\n //if( _nrite != null ) _nrite.cancel(true); _nrite = null;\n //if( _left != null ) _left.cancel(true); _left = null;\n //if( _rite != null ) _rite.cancel(true); _rite = null;\n _nleft = _nrite = null;\n _left = _rite = null;\n return super.onExceptionalCompletion(ex, caller);\n }", "@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tlong money = ThreadLocalRandom.current().nextLong(0,21);\n\t\tUtility.p(callType + \" processing \" + money);\n\t\ttry {\n\t\tswitch ( callType ){\n\t\tcase myAccountYourAccount:\n\t\t\tlock.transferMoneyBad(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccount:\n\t\t\tlock.transferMoneyBad(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tcase myAccountYourAccountHash:\n\t\t\tlock.transferMoney(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccountHash:\n\t\t\tlock.transferMoney(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tUtility.p(\"illegal type:\" + callType);\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn null;\n\t}finally {\n\t\tUtility.p(\"exiting\");\n\t}\n\t}", "void apply() throws Exception;", "public static void finallyAfterReturn(){\n try {\n return;\n } finally {\n System.err.println(\"finally\");\n }\n }", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "void L3() throws Exception{\n\t\tSystem.out.println(\"1\");\n\t\tthrow e;\n\t}", "static JobResult runWithExceptionHandling(JobMetadata metadata, Job delegate, Map<String, Object> params) {\n try {\n JobResult result = delegate.run(params);\n return result != null ? result : JobResult.unknown(metadata, \"Job returned null result\");\n } catch (Exception e) {\n // not logging the failure here.. JobLogDecorator will do the logging\n return JobResult.failure(metadata, e);\n }\n }", "@Test(expected = ExecutionException.class)\n public void callServiceMethodInWrongOrderTest() throws ExecutionException, InterruptedException {\n List<Chunk> chunkList = new ArrayList<>();\n //generate chunks\n int numOfChunksToUpload = 5;\n while (numOfChunksToUpload > 0) {\n chunkList.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Start a bad producer thread\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n BadProducerThread producerThread = new BadProducerThread(\"Producer1\", chunkList, 20, new ApplicationService());\n Future<String> producerResult = executorService.submit(producerThread);\n while (true) {\n if (producerResult.isDone())\n break;\n }\n log.debug(\"Result : \" + producerResult.get());\n executorService.shutdown();\n\n\n }", "private void doTestPutHandlesExceptionsCorrectly(Boolean isConditionalCheckFailedException)\n throws Exception {\n thrown.expect(Exception.class);\n thrown.expectMessage(isConditionalCheckFailedException ? \"Database put failed\" : \"Boom!\");\n\n initialiseOptimisticPersister();\n\n // Configure attributes for database to return - the get is used for logging\n // only, so does not really matter.\n GetAttributesRequest simpleDBRequest = new GetAttributesRequest(testSimpleDBDomainName,\n testItemName);\n simpleDBRequest.setConsistentRead(true);\n GetAttributesResult getAttributesResult = new GetAttributesResult();\n mockery.checking(new Expectations() {\n {\n allowing(mockSimpleDBClient).getAttributes(with(equal(simpleDBRequest)));\n will(returnValue(getAttributesResult));\n }\n });\n\n // Make the simpleDB call throw the correct exception\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(isConditionalCheckFailedException ? \"ConditionalCheckFailed\"\n : \"SomeOtherArbitraryCode\");\n mockery.checking(new Expectations() {\n {\n oneOf(mockSimpleDBClient).putAttributes(with(anything()));\n will(throwException(exception));\n }\n });\n\n ReplaceableAttribute testAttribute = new ReplaceableAttribute();\n testAttribute.setName(\"Name\");\n testAttribute.setValue(\"Value\");\n\n // ACT\n optimisticPersister.put(testItemName, Optional.of(42), testAttribute);\n }", "static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}", "@Test\n public void shouldReturnConflictIfCompareAndSetFailsBecauseAKeyAlreadyExistsExceptionIsThrown() {\n final SetValue newKeyValue = new SetValue();\n newKeyValue.setExpectedValue(null);\n newKeyValue.setNewValue(NEW_VALUE);\n\n when(distributedStore.compareAndSet(KEY, newKeyValue)).thenReturn(Futures.<KeyValue>immediateFailedFuture(new KeyAlreadyExistsException(KEY)));\n\n assertThatResourceMethodReturnsStatus(\n client().resource(REQUEST_URI).type(MediaType.APPLICATION_JSON_TYPE).entity(newKeyValue),\n \"PUT\",\n ClientResponse.Status.CONFLICT\n );\n }", "void markFailed(Execution execution, Throwable cause);", "public static int catchingObjectNotReference(){\n int x=1;\n try{\n Throwable t = new Exception();\n throw t;\n }\n catch (RuntimeException re){x*=2;}\n catch(Exception e){x*=3;}\n catch(Throwable t){x*=5;}\n return x; // x==3\n }", "@SuppressWarnings(\"unchecked\")\n public Q fail() {\n forceFail = true;\n return (Q) this;\n }", "public Void execute() throws SocketTimeoutException, NetworkException, UnexpectedResponseException, SSLException {\n try {\n super.execute();\n } catch (Exception e) {\n Log.m1919i(this.TAG, \"<- call(failed) - mark it as success anyways\");\n }\n return null;\n }", "@jsweet.lang.Name(\"catch\")\r\n native public <U> Promise<U> Catch();", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "@NonBlocking\n void error(Throwable throwable);", "Boolean ignoreExceptions();", "public void zzcr() throws {\n /*\n r5 = this;\n r0 = zzagr;\n monitor-enter(r0);\n r1 = r5.zzagu;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x0009:\n r1 = r5.zzags;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x001e;\n L_0x000d:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n if (r2 == 0) goto L_0x001e;\n L_0x0011:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n r2.connect();\t Catch:{ Throwable -> 0x001b }\n r3 = 1;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n L_0x0019:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x001b:\n r4 = move-exception;\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n throw r4;\n L_0x001e:\n r3 = 0;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n goto L_0x0019;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzax.zzcr():void\");\n }" ]
[ "0.6371316", "0.5917087", "0.5778432", "0.57002956", "0.5643286", "0.5465157", "0.5433614", "0.54170203", "0.5400461", "0.53875715", "0.5332063", "0.5303301", "0.5275128", "0.5267842", "0.5266063", "0.52218217", "0.5219746", "0.519753", "0.51927453", "0.5190368", "0.51804394", "0.5174884", "0.51728296", "0.51519144", "0.51389974", "0.5128161", "0.5108513", "0.51074356", "0.5106177", "0.5092101", "0.50852984", "0.50613666", "0.50275844", "0.5016438", "0.5006358", "0.5005598", "0.499219", "0.4986354", "0.49848342", "0.49770516", "0.4976653", "0.4975141", "0.49725282", "0.49700734", "0.49575034", "0.4946524", "0.49382305", "0.49166316", "0.49072546", "0.49028528", "0.48978743", "0.4895743", "0.48930234", "0.48899695", "0.48840597", "0.4883299", "0.48662364", "0.48569417", "0.48395696", "0.4833606", "0.48316172", "0.48309708", "0.4821724", "0.48178533", "0.4814198", "0.4812769", "0.48075354", "0.4804996", "0.4799582", "0.47964683", "0.47942516", "0.4789192", "0.47872752", "0.4785153", "0.47770151", "0.4776854", "0.47749862", "0.4773019", "0.47674653", "0.47600842", "0.47572818", "0.47482884", "0.47450903", "0.47442365", "0.47436067", "0.47374618", "0.47373173", "0.4732763", "0.47202364", "0.47177395", "0.4715777", "0.47126603", "0.47125015", "0.47080147", "0.47059134", "0.47008464", "0.46973622", "0.46917847", "0.46898437", "0.46845943" ]
0.50873
30
For the result of interaction with a command line interface program.
public interface CLIResult { /** * Enumeration for the different types of streams to get output for, * including STDOUT and STDERR. */ enum STREAM { STDOUT, STDERR; } /** * Get the output for the specified stream. * @param stream The {@link STREAM} to get output from. * @return A single String of the output. */ String getOutput(STREAM stream); /** * Get standard output. * @return the standard output. */ String getOutput(); /** * Get the output for the specified stream split by lines. * @param stream The {@link STREAM} to get output from. * @return A List of Strings of output, one list item per line. */ List<String> getOutputByLine(STREAM stream); /** * Get the exit value of the process that was run. * @return The exit value of the program that was run. */ int exitValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String program();", "@Test\n\tpublic void testApp()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\t\t\n\t\tApp.main ( \"a\", \"b\", \"c\" );\n\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\t\t\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tAssert.assertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"a\\tb\\tc\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 0, App.getExitCode () );\n\t}", "protected abstract String executeCommandAndModifyOutput(List<String> args, String originalInput);", "public void run() throws IOException {\n String EXIT_COMMAND = \"7\";\n ui.printIntro();\n ui.printExeType();\n String exeCommand = ui.getStringInput();\n while (!exeCommand.equals(EXIT_COMMAND)) {\n Parser parser = new Parser(ui, tasks);\n parser.parseCommand(exeCommand); //to select the exeType and execute it\n ui.printExeType(); //user guide after execution of command\n exeCommand = ui.getStringInput(); //get the next command\n }\n ui.printExit();\n }", "abstract void mainPrompt();", "public static void main(String[] args) {\n ICommand[] commandRegister = {\n new LeagueCmd(),\n new TeamCmd(),\n new MatchCmd(),\n new LoadCmd(),\n new SaveCmd()\n };\n if (Utils.initSaveFileLocation()) {\n final CommandHandler cmdHandler = new CommandHandler(commandRegister);\n Scanner scanner = new Scanner(System.in);\n boolean isExited = false;\n String userInput;\n String[] exitCmd = {\"exit\", \"quit\", \"close\"};\n\n System.out.println(\"# CompetitionManager.\\nAfin d'afficher la liste des commandes, entrez \\\"help\\\".\");\n Utils.displayBasePath();\n\n while (!isExited) {\n // Boucle de lecture des commandes\n System.out.printf(\"%s> \", renderSelected());\n userInput = scanner.nextLine();\n if (Arrays.asList(exitCmd).contains(userInput)) isExited = true;\n else cmdHandler.handleMessage(userInput);\n }\n } else {\n System.out.println(\"Une erreur est survenue lors de l'initialisation de l'application.\");\n }\n }", "public static void main( String[] cmdLine ) throws MalformedURLException,\n NotBoundException, RemoteException\n {\n TuiConsole tuiConsole = new TuiConsole();\n System.exit( tuiConsole.start( cmdLine ) );\n }", "public boolean processOutput();", "private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "void main(CommandLine cmd);", "private static void inputInstallerCommand() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString commandLine = scanner.nextLine();\n\t\t//Case-sensitive ans should be always Upper case\n\t\tif (!commandLine.equals(\"END\")) {\n\t\t\tcallIstallerCommand(commandLine);\n\t\t\tinputInstallerCommand();\n\t\t}\n\t}", "private static void printUsageExitError(){\n\t\tSystem.out.println(usage);\n\t\tSystem.exit(1);\n\t}", "@Override\n public int getExitCode() {\n return 1;\n }", "@Test\n\tpublic void whenExecuteMainThenPrintToConsole() {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tSystem.setOut(new PrintStream(out));\n\t\tCalculate.main(null);\n\t\tassertThat(out.toString(), is(\"Hello World\\r\\n\"));\n\t}", "private boolean promptCommand() {}", "private ShellStatus getCmdOutput() {\n ShellStatus status = RUNNING;\n\n while (!stdOut.buffer.isEmpty()) {\n String line = stdOut.buffer.remove(0);\n LOG.trace(String.format(\"lockId=%s, shell line:=%s \", lockId, line));\n\n if (\"END_OF_SCRIPT\".equals(line)) {\n if (!hasErrors()) {\n status = SUCCESS;\n } else {\n status = PSSHELL_ERROR;\n }\n } else {\n command.addOutputLine(line);\n }\n }\n\n if (!stdErr.buffer.isEmpty()) {\n while (!stdErr.buffer.isEmpty()) {\n String errorLine = stdErr.buffer.remove(0);\n LOG.trace(\"CallerId: \" + lockId + \" error line: \" + errorLine);\n command.addErrorLine(errorLine);\n }\n status = PSSHELL_ERROR;\n }\n\n command.setReturnCode(status);\n return status;\n }", "public String getResult() {\n\t\treturn bashCommand.getStdOutString();\n\t}", "private void runApp() {\n boolean running = true;\n String command;\n\n while (running) {\n showCommands();\n command = input.next().toLowerCase();\n\n if (command.equals(\"exit\")) {\n running = false;\n } else {\n execute(command);\n }\n }\n\n System.out.println(\"\\nExiting.\");\n }", "@Override\n \tpublic void logProgramExit(int exitCode, String exception) {\n \t\tSystem.out.println(\"Program exited with code \" + exitCode + \" [\" + exception + \"]\");\n \t}", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "public String userCommand(){\n return scanner.nextLine();\n }", "private static void execWithOutput(String[] cmd)\n throws IOException\n {\n Process p = Runtime.getRuntime().exec(cmd);\n StreamRedirector errRedirector = new StreamRedirector(p.getErrorStream(), System.err);\n errRedirector.start();\n StreamRedirector outRedirector = new StreamRedirector(p.getInputStream(), System.out);\n outRedirector.start();\n }", "@Override\n public int getExitCode() {\n return 0;\n }", "private int executeProgram() {\n\n\t\tint bugNumber = 0;\n\n\t\t// running a command in java\n\t\tString command = \"./jpegconv -ppm -outfile \" + this.ppmName + \" \"\n\t\t\t\t+ this.sampleName;\n\t\tProcess child = null;\n\t\ttry {\n\t\t\tchild = Runtime.getRuntime().exec(command);\n\t\t\tchild.waitFor();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to execute the command: \" + command);\n\t\t\treturn -2;\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.err.println(\"Unable to wait for the command: \" + command);\n\t\t\treturn -2;\n\t\t}\n\n\t\t// Extract the output of the program\n\t\tInputStream inputstream = child.getErrorStream();\n\t\tInputStreamReader inputstreamreader = new InputStreamReader(inputstream);\n\t\tBufferedReader bufferedreader = new BufferedReader(inputstreamreader);\n\n\t\t// Read the output of the program\n\t\tString line;\n\t\tboolean error = false;\n\t\ttry {\n\t\t\twhile ((line = bufferedreader.readLine()) != null) {\n\t\t\t\terror = true;\n\t\t\t\t// Reg expression to check if any bug was triggered\n\t\t\t\tif (line.matches(\"BUG \\\\d+ TRIGGERED\")) {\n\t\t\t\t\tbugNumber = Integer.parseInt(line.replaceAll(\"[^\\\\d]\", \"\"));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputstream.close();\n\t\t\tinputstreamreader.close();\n\t\t\tbufferedreader.close();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// Return -1 if another bug was triggered\n\t\tif (error && bugNumber == 0)\n\t\t\tbugNumber = -1;\n\t\tchild.destroy();\n\t\treturn bugNumber;\n\t}", "@Test\n\tpublic void testHelpOption()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\n\t\tApp.main ( \"--help\" );\n\t\t\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tassertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"*** Command Line Example ***\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 1, App.getExitCode () );\n\t}", "public static void main(String args[]) {\n boolean isTestRun = isTestRun(args);\n Scanner sc = new Scanner(System.in);\n\n String welcomeMsg = \"Welcome to CLI calc, enter a command like \" + System.lineSeparator() +\n \"add, sub, mul, div, hist, clearhist, or addsquares. All commands \" + System.lineSeparator() +\n \"save hist and clearhist accept a list of integers after the command, so an \" + System.lineSeparator() +\n \"example command would be '> add 1 2 3'.\" + System.lineSeparator() +\n System.lineSeparator() +\n \"Enter 'q' to quit\" + System.lineSeparator();\n if (!isTestRun)\n System.out.println(welcomeMsg);\n\n for (prompt(isTestRun); sc.hasNextLine(); prompt(isTestRun)) {\n String line = sc.nextLine().replaceAll(System.lineSeparator(), \"\");\n if (line.isEmpty()) {\n continue;\n }\n\n if (line.equalsIgnoreCase(\"q\")) {\n int normalExitCode = 0;\n if (isTestRun)\n return;\n else\n System.exit(normalExitCode);\n\n } else {\n Command c;\n try {\n c = Parser.parseInputToCommand(line);\n CalcResult res = c.calculate();\n History.addToHistory(res);\n if (!c.getCmd().equals(\"hist\") &&\n !c.getCmd().equals(\"clearhist\")) {\n System.out.println(res.getRes());\n }\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }\n }\n\n }", "public Cli() {\r\n\t\tthis.retValue = 0;\r\n\t}", "private static void exitArgumentError() {\n\t\tSystem.out.println(\"To run the application, please input the following arguments:\");\n\t\tSystem.out.println(\"java -jar aqmaps.jar DD MM YY latitude longitude random_seed port_number\");\n\t\tSystem.exit(1); \n\t}", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "public void console() throws RemoteException {\r\n Scanner in = new Scanner(System.in);\r\n do {\r\n System.out.println(\"Select one of the following options:\");\r\n System.out.println(\" 1: Be a publisher\");\r\n System.out.println(\" 2: Be a subscriber\");\r\n System.out.println(\" 3: Save & quit\");\r\n System.out.print(\"Enter a number:\");\r\n int choice = 0;\r\n try {\r\n choice = in.nextInt();\r\n } catch (Exception e) {\r\n System.err.println(\"Provide a Valid Option... \");\r\n }\r\n switch (choice) {\r\n case 1: {\r\n optionsForPublisher();\r\n break;\r\n }\r\n case 2: {\r\n optionsForSubscriber();\r\n break;\r\n }\r\n case 3: {\r\n in.close();\r\n saveState();\r\n break;\r\n }\r\n default: System.out.println(\"Input not recognized, Please enter a valid option...\");\r\n }\r\n } while (true);\r\n }", "public void run() {\n\t\tsetupReadline();\n\n\t\tif (Options.cmdFilename != null) {\n\t\t\tcmdOpen(Options.cmdFilename);\n\t\t} else {\n\t\t\tLog.verbose(\"Enter `help' for a list of available commands.\");\n\t\t\t\n\t\t\tif (Options.doPLUGIN) {\n\t\t\t\tLog.verbose(\"Enter `plugins' for a list of available plugin commands.\");\n\t\t\t}\n\t\t}\n\n while (!fFinished) {\n Thread.yield();\n Log.resetOutputFlag();\n\n String line = \"\";\n\n // get current readline (may be e.g. console or file)\n fReadline = fReadlineStack.getCurrentReadline();\n try {\n if (fMultiLineMode) {\n while (true) {\n // use special prompt to emphasize multi-line input\n String oneLine = fReadline.readline(CONTINUE_PROMPT);\n // end of input or a single dot terminates the input\n // loop\n if (oneLine == null || oneLine.equals(\".\"))\n break;\n line += oneLine + Options.LINE_SEPARATOR;\n }\n fMultiLineMode = false;\n } else {\n line = fReadline.readline(PROMPT);\n }\n } catch (IOException ex) {\n Log.error(\"Cannot read line: \" + ex.getMessage());\n }\n if (line != null) {\n \tif (!fReadline.doEcho())\n \t\tUSEWriter.getInstance().protocol(line);\n \t\n processLineSafely(line);\n } else {\n fFinished = fReadlineStack.popCurrentReadline();\n setFileClosed();\n \n if (fFinished && Options.quiet)\n processLineSafely(\"check\");\n }\n }\n cmdExit();\n }", "private static String handleCliOutput(Process process, boolean failCommand) throws IOException, InterruptedException{\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\tfinal StringBuilder consoleOutput = new StringBuilder(\"\");\n\t\tfinal AtomicReference<Throwable> exception = new AtomicReference<Throwable>();\n\n\t\tThread thread = new Thread(new Runnable() {\n\n\t\t\tString line = null;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\tLogUtils.log(line);\n\t\t\t\t\t\tconsoleOutput.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\texception.set(e);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tthread.setDaemon(true);\n\n\t\tthread.start();\n\n\t\tint result = process.waitFor();\n\n\t\tthread.join(5000);\n\n\t\tAssertUtils.assertTrue(exception.get() == null);\n\n\t\tif (result != 0 && !failCommand) {\n\t\t\tAssertUtils.assertFail(\"In RunCommand: Process did not complete successfully\");\n\t\t}\n\t\treturn consoleOutput.toString();\n\t}", "private static void help(){\r\n System.out.println(\"\\n\\t Something Went Wrong\\nType\\t java -jar nipunpassgen.jar -h\\t for mor info\");\r\n System.exit(0);\r\n }", "protected abstract void go(CommandLine line) throws Exception;", "private void usage(int exitStatus) {\n System.out.println(USAGE);\n System.exit(exitStatus);\n }", "private String getResponse(String input) {\n try {\n CommandResult result = logicManager.execute(input);\n if (result.isExit()) {\n handleExit();\n }\n return result.getFeedbackToUser();\n } catch (CommandException | ParserException e) {\n return e.getMessage();\n }\n }", "public void run(){\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tScanner keyboard = new Scanner(System.in);\n\t\t\t\t\tString line = keyboard.nextLine();\n\t\t\t\t\tString[] command = line.split(\" \");\n\t\t\t\t\tSystem.out.println(execute(line));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tSystem.err.println(\"Incorrect command \\\"help\\\" for info\");\n\t\t\t\tex.printStackTrace();\n\t\t\t\trun();\n\t\t\t}\n\t\t\t\n\t\t}", "public static void main(String[]args) {\n\t\n\t \n\tArgsHandler handler = new ArgsHandler(args);\n if (!handler.empty()) {\n handler.execute();\n }\n \n final int exit = 0;\n final int setValues = 1;\n final int getValues = 2;\n final int execute2 = 3;\n final int printResult = 4;\n String word = null;\n \n /**\n * Our dialog menu with checking of input argumet's of program \n */\n do {\n UI.mainMenu();\n UI.enterChoice();\n switch (UI.getChoice()) {\n case exit:\n if (ArgsHandler.isDebug()) {\n System.out.println(\"\\nYou chosen 0. Exiting...\");\n System.out.format(\"%n############################################################### DEBUG #############################################################\");\n }\n break;\n case setValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 1. Setting values...\");\n }\n word = UI.enterValues();\n break;\n case getValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 2. Getting values...\");\n }\n if (word != null ) {\n UI.printText(word);\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break; \n case execute2:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 3. Executing task...\");\n }\n if (word != null) {\n \t final String []lines = NewHelper.DivString(word);\n \t System.out.println(\"\\nTask done...\");\n \t if (ArgsHandler.isDebug()) {\n \t System.out.format(\"%n############################################################### DEBUG #############################################################\");\n \t }\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break;\n case printResult:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.format(\"%nYou chosen 4. \"\n + \"Printing out result...%n\");\n }\n if (word != null) {\n \tfinal String[] lines2 = NewHelper.DivString(word);\n \tfor (final String line2 : lines2) {\n NewHelper.printSymbols(line2);\n NewHelper.printSymbolNumbers(line2);\n \t}\n \tif(ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n } \n \telse {\n System.out.format(\"%nFirst you need to add values.\"); \n }\n break;\n }\n default:\n System.out.println(\"\\nEnter correct number.\");\n }\n } while (UI.getChoice() != 0);\n}", "public int onCommand(java.lang.String r6) {\n /*\n r5 = this;\n java.io.PrintWriter r0 = r5.getOutPrintWriter()\n r1 = -1\n if (r6 == 0) goto L_0x0009\n r2 = r6\n goto L_0x000b\n L_0x0009:\n java.lang.String r2 = \"\"\n L_0x000b:\n int r3 = r2.hashCode() // Catch:{ Exception -> 0x00dd }\n switch(r3) {\n case -1894245460: goto L_0x008b;\n case -1845752298: goto L_0x0081;\n case -1687551032: goto L_0x0077;\n case -1367724422: goto L_0x006d;\n case -1313911455: goto L_0x0062;\n case 113291: goto L_0x0057;\n case 55361425: goto L_0x004c;\n case 200896764: goto L_0x0040;\n case 703160488: goto L_0x0036;\n case 1749711139: goto L_0x002c;\n case 1791471818: goto L_0x0020;\n case 1854493850: goto L_0x0014;\n default: goto L_0x0012;\n } // Catch:{ Exception -> 0x00dd }\n L_0x0012:\n goto L_0x0097\n L_0x0014:\n java.lang.String r3 = \"monitor-battery\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 3\n goto L_0x0098\n L_0x0020:\n java.lang.String r3 = \"get-job-state\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 9\n goto L_0x0098\n L_0x002c:\n java.lang.String r3 = \"get-battery-not-low\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 6\n goto L_0x0098\n L_0x0036:\n java.lang.String r3 = \"get-battery-seq\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 4\n goto L_0x0098\n L_0x0040:\n java.lang.String r3 = \"heartbeat\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 10\n goto L_0x0098\n L_0x004c:\n java.lang.String r3 = \"get-storage-not-low\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 8\n goto L_0x0098\n L_0x0057:\n java.lang.String r3 = \"run\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 0\n goto L_0x0098\n L_0x0062:\n java.lang.String r3 = \"timeout\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 1\n goto L_0x0098\n L_0x006d:\n java.lang.String r3 = \"cancel\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 2\n goto L_0x0098\n L_0x0077:\n java.lang.String r3 = \"get-battery-charging\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 5\n goto L_0x0098\n L_0x0081:\n java.lang.String r3 = \"get-storage-seq\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 7\n goto L_0x0098\n L_0x008b:\n java.lang.String r3 = \"trigger-dock-state\"\n boolean r2 = r2.equals(r3) // Catch:{ Exception -> 0x00dd }\n if (r2 == 0) goto L_0x0012\n r2 = 11\n goto L_0x0098\n L_0x0097:\n r2 = r1\n L_0x0098:\n switch(r2) {\n case 0: goto L_0x00d7;\n case 1: goto L_0x00d2;\n case 2: goto L_0x00cd;\n case 3: goto L_0x00c8;\n case 4: goto L_0x00c3;\n case 5: goto L_0x00be;\n case 6: goto L_0x00b9;\n case 7: goto L_0x00b4;\n case 8: goto L_0x00af;\n case 9: goto L_0x00aa;\n case 10: goto L_0x00a5;\n case 11: goto L_0x00a0;\n default: goto L_0x009b;\n } // Catch:{ Exception -> 0x00dd }\n L_0x009b:\n int r1 = r5.handleDefaultCommands(r6) // Catch:{ Exception -> 0x00dd }\n goto L_0x00dc\n L_0x00a0:\n int r1 = r5.triggerDockState(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00a5:\n int r1 = r5.doHeartbeat(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00aa:\n int r1 = r5.getJobState(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00af:\n int r1 = r5.getStorageNotLow(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00b4:\n int r1 = r5.getStorageSeq(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00b9:\n int r1 = r5.getBatteryNotLow(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00be:\n int r1 = r5.getBatteryCharging(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00c3:\n int r1 = r5.getBatterySeq(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00c8:\n int r1 = r5.monitorBattery(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00cd:\n int r1 = r5.cancelJob(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00d2:\n int r1 = r5.timeout(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00d7:\n int r1 = r5.runJob(r0) // Catch:{ Exception -> 0x00dd }\n return r1\n L_0x00dc:\n return r1\n L_0x00dd:\n r2 = move-exception\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r4 = \"Exception: \"\n r3.append(r4)\n r3.append(r2)\n java.lang.String r3 = r3.toString()\n r0.println(r3)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.onCommand(java.lang.String):int\");\n }", "private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }", "private static void usage()\n {\n System.out.println(\"Lex\");\n System.exit(-1);\n }", "public void exec();", "String consoleInput();", "void requestOutput();", "private void run() \n{\n String answer;\t//console answer\n \tboolean error;\t//answer error flag\n \terror = false;\n \tdo {\t\t\t\t\t\t\t//get the right answer\n \t \t//Take user input\n \t \t//System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n \t\t\tSystem.out.println(\"Would you like to enter GUI or TIO?\");\n \t\t\tanswer = console.nextLine();\n \t \tif(answer.equals(\"GUI\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchGUI();\n \t\t\t}else if(answer.equals(\"TIO\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchTIO();\n \t\t\t}else\n \t\t\t{\n \t\t\t\t//Error: Not correct format\n \t\t\t\terror = true;\n \t\t\t\tSystem.out.println(\"I couldn't understand your answer. Please enter again \\n\");\n \t\t\t}\n \t\t}while (error == true);\n\n}", "public static void main(String[] args) throws Exception {\n\n\n\n\n boolean success = false;\n }", "private void showMenu() {\n\t Scanner sc = new Scanner(System.in);\n\t Arguments argument = Arguments.INVALID;\n\t System.out.println(\"Enter command of your choice in the correct format\");\n\t do\n\t {\n\t \tString command = sc.nextLine();\n\t \tString[] arguments = command.split(\" +\");\n\t \targument = validateAndReturnType(arguments);\n\t \tswitch(argument) {\n\t\t \tcase INCREASE:\n\t\t \t\tincrease(arguments);\n\t\t \t\tbreak;\n\t\t \tcase REDUCE:\n\t\t \t\treduce(arguments);\n\t\t \t\tbreak;\n\t\t\t\tcase COUNT:\n\t\t\t\t\tcount(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INRANGE:\n\t\t\t\t\tinRange(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase NEXT:\n\t\t\t\t\tnext(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PREVIOUS:\n\t\t\t\t\tprevious(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\tcase INVALID:\n\t\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid command. Enter a command in the correct format\");\n\t \t}\n\t } while(argument != Arguments.QUIT);\n\t}", "public void run()\n\t{\n\t\tRuntime runtime = null;\n\t\tBufferedReader inputReader = null;\n\t\tBufferedReader errorReader = null;\n\t\tStringBuffer outputStringBuffer = null;\n\t\tStringBuffer errorStringBuffer = null;\n\t\tString s = null;\n\t\tboolean inputDone,errorDone;\n\n\t\truntime = Runtime.getRuntime();\n\t\texception = null;\n\t\tprocess = null;\n\t\toutputString = null;\n\t\terrorString = null;\n\t\ttry\n\t\t{\n\t\t// start process\n\t\t\tprocess = runtime.exec(commandString);\n\t\t// setup streams\n\t\t\toutputStringBuffer = new StringBuffer();\n\t\t\terrorStringBuffer = new StringBuffer();\n\t\t\tinputReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\t\terrorReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n\t\t\tinputDone = false;\n\t\t\terrorDone = false;\n\t\t\twhile((inputDone == false)||(errorDone == false))\n\t\t\t{\n\t\t\t\tif(!inputDone)\n\t\t\t\t{\n\t\t\t\t\ts = inputReader.readLine();\n\t\t\t\t\tif(s != null)\n\t\t\t\t\t{\n\t\t\t\t\t\toutputStringBuffer.append(s);\n\t\t\t\t\t\toutputStringBuffer.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tinputDone = true;\n\t\t\t\t}\n\t\t\t\tif(!errorDone)\n\t\t\t\t{\n\t\t\t\t\ts = errorReader.readLine();\n\t\t\t\t\tif(s != null)\n\t\t\t\t\t{\n\t\t\t\t\t\terrorStringBuffer.append(s);\n\t\t\t\t\t\terrorStringBuffer.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\terrorDone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\toutputString = outputStringBuffer.toString();\n\t\t\terrorString = errorStringBuffer.toString();\n\t\t// wait for process termination\n\t\t\tprocess.waitFor();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\texception = e;\n\t\t\treturn;\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\texception = e;\n\t\t\treturn;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(inputReader != null)\n\t\t\t\t\tinputReader.close();\n\t\t\t\tif(errorReader != null)\n\t\t\t\t\terrorReader.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {};\n\t\t}\n\t}", "public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public interface CommandResponse {\n void onSuccess(String response);\n void onFailure(Exception e);\n void onCompleted(int id,int exitCode);\n}", "public static void main(String[] args) {\n DemoRepositoryCreator repositoryCreator = new DemoRepositoryCreator();\n\n WorldMapRepository worldMapRepository = repositoryCreator.getWorldMapRepository();\n MonsterRepository monsterRepository = repositoryCreator.getMonsterRepository();\n PlayerRepository playerRepository = new PlayerRepository();\n\n GameEngine gameEngine = new GameEngine(\n worldMapRepository.loadCurrentMap(),\n monsterRepository,\n playerRepository\n );\n\n CommandParser commandParser = new CommandParser();\n ScreenManager screenManager = new ScreenManager(System.in, System.out); // java.io.Console doesn't work on IDE!!!\n\n Player currentPlayer = null;\n\n boolean gameCompleted = false;\n do {\n\n screenManager.prompt(currentPlayer);\n String cmdLine = screenManager.nextLine();\n\n Optional<GameCommand> optionalGameCommand = commandParser.parseCommand(cmdLine, (currentPlayer == null));\n if (optionalGameCommand.isPresent()) {\n\n GameCommand currentGameCommand = optionalGameCommand.get();\n CommandResponseDTO cmdResult = gameEngine.enterCommand(currentPlayer, currentGameCommand);\n if (cmdResult.getCurrentPlayer() != null) {\n currentPlayer = cmdResult.getCurrentPlayer();\n }\n screenManager.printCommandResult(currentPlayer, monsterRepository, cmdResult);\n\n if (currentGameCommand instanceof ExitCommand) {\n gameCompleted = true;\n }\n\n } else {\n screenManager.printInvalidCommand(cmdLine);\n }\n\n } while(!gameCompleted);\n\n }", "public String readCommand() {\n return scanner.nextLine();\n }", "@Override\n public void executeCommand() {\n this.setJCLIOptions();\n String args[] = this.convertToArray();\n try {\n CommandLine jcCmd = this.jcParser.parse(this.jcOptions, args);\n if (jcCmd.hasOption(\"h\")) {\n this.printHelp();\n }\n if (jcCmd.hasOption(\"ttb\")) {\n this.texttobinary = true;\n }\n if (jcCmd.hasOption(\"btt\")) {\n this.binarytotext = true;\n }\n if (jcCmd.hasOption(\"f\")) {\n if ((this.done == false) && (this.jcError == false)) {\n this.filePath = jcCmd.getOptionValue(\"f\");\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.texttobinary == true)) {\n if ((this.filePath == null) || (this.filePath.length() == 0)) {\n this.jcError = true;\n this.addErrorMessages(\"Error : No File defined.\");\n }\n if (this.jcError == false) {\n if (isFileCanRead(this.filePath) == false) {\n this.jcError = true;\n this.addErrorMessages(\"Error : File does not exsist / File Unreadable.\");\n }\n }\n\n if (this.jcError == false) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertTextToBinary(txt));\n this.done = true;\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.binarytotext == true)) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertBinaryToText(txt));\n this.done = true;\n }\n\n\n if (this.done == true) {\n System.out.println(this.resultString);\n }\n\n\n } catch (org.apache.commons.cli.ParseException ex) {\n this.setJcError(true);\n this.addErrorMessages(\"Error :\" + ex.getMessage());\n }\n }", "public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void printCliHelp(String message) {\n \t\tSystem.out.println(message);\n \t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"java -jar OsmPbfMetadata.jar\", createOptions());\n \t\tSystem.exit(-1);\n \t}", "public static void main(final String[] args)\n {\n final ResultCode resultCode = main(args, System.out, System.err);\n if (resultCode != ResultCode.SUCCESS)\n {\n System.exit(resultCode.intValue());\n }\n }", "@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }", "private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }", "public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}", "private static void usage() {\n System.err.println(\"usage: Binomial degree(1..10)\");\n System.exit(-1);\n }", "public void run() throws IOException{\t\n\t\t\tString command;\n\t\t\tprintUsage();\n\t\t\tSystem.out.print(\">> \");\n\t\t\twhile(!(command = consoleIn.readLine()).trim().equals(\"exit\")){\n\t\t\t\ttry{\n\t\t\t\t\tswitch(command){\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\tsimulatable = MordorFrameBuilds.getInstance();\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAPRUNE_TRAP);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAPRUNE_TOWER);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"4\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.DEFAULT);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"5\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.TRAP_AFFECTS);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"6\":\n\t\t\t\t\t\tsimulatable = MissileDamageSimulator.getInstance();\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"7\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.TOWER_FIRES);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"8\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TOWER_GROUND);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"9\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.TRAP_ROAD);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"10\":\n\t\t\t\t\t\tsimulatable = CastSimulator.getInstance();\n\t\t\t\t\t\t((CastSimulator)simulatable).configureFor(CastAlias.MAGIC);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"11\":\n\t\t\t\t\t\tsimulatable = TroopStepSimulator.getInstance();\n\t\t\t\t\t\t((TroopStepSimulator)simulatable)\n\t\t\t\t\t\t\t.configureFor(TroopStepSimulator.TroopStepAlias.DAMAGES_MOUNTAIN);\n\t\t\t\t\t\trunSimulation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: printUsage();\n\t\t\t\t\t}\n\t\t\t\t}catch(IOException e){\n\t\t\t\t\tSystem.out.println(\"io error: \"+e.getClass().getName()+\": \"+e.getMessage());\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"exception in main thread: \"+ex.getClass()+\": \"+ex.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tSystem.out.print(\">> \");\n\t\t\t\t}\n\t\t\t}\n\t}", "int getExitStatus();", "private CommandResult executeExitCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, CommandResult.BLANK_DESCRIPTION);\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "private String parseAndRespond() {\n\t\tList<String> commands = new ArrayList<String>();\n\t\twhile (input.hasNext()) {\n\t\t\tString inputToken = input.next();\n\t\t\tcommands.add(inputToken);\n\t\t\tcommands.get(commands.size()-1).chars().forEach(p -> System.out.println(p));\n\t\t\t\n\t\t\t/* trap telnet control c */\n\t\t\tString telnetControlC = IntStream.of(65533,65533,65533,65533,6).collect(StringBuilder::new,\n\t\t\t\t\tStringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t\t\tif (inputToken.contains(telnetControlC)) { \n\t\t\t\tSystem.out.println(\"Caught you CTRL+C evil!\");\n\t\t\t\treturn EXIT;\n\t\t\t}\n\t\t\tif (commands.get(commands.size()-1).equals(\".\")) {\n\t\t\t\tcommands.remove(commands.size()-1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif (commands.get(commands.size()-1).equals(EXIT)) return EXIT;\n\t\t\t\n\t\t}\n\t\t\n\t\tString response = \"\";\n\t\t/* I'm not sure if I want to trap an error or let it percolate up yet */\n\t\t\n//\t\ttry {\n\t\t\tresponse = commandInterpreter.interpretCommands(commands);\n//\t\t} catch (IOException e) {\n//\t\t\tlogger.log(Level.WARNING, \"Error interpreting commands\", e);\n//\t\t\tresponse = \"Error occured!\";\n//\t\t}\n\t\toutput.format(\"%s\\n>\",response);\n\t\toutput.flush();\n\t\t\n\n\t\treturn \"\";\n\n\t}", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }", "private void exitProgram() {\n try {\n logic.updateInventory();\n } catch (FileIOException e) {\n view.displayExceptionMessage(\"Error updating inventory file: \" + e.getMessage());\n view.waitOnUser();\n }\n view.showExitMessage();\n }", "private void commandProgramBasic(String command)\n {\n String[] array = command.split(\" \");\n\n if(array[0].equals(\"init\"))\n {\n System.out.println(\"The program will now read the file.\");\n input.readFile();\n } else if(array[0].equals(\"run\"))\n {\n int runTime = Integer.parseInt(array[1]);\n System.out.println(\"Please wait while the data is stored.\");\n System.out.println(\"The filled data containers will be printed shortly.\");\n input.runProgram(runTime);\n } else if(array[0].equals(\"clear\"))\n {\n System.out.println(\"The data containers will now be cleared.\");\n input.clear();\n } else if(array[0].equals(\"exit\"))\n {\n scanner.close();\n } \n\n askUser();\n }", "void exec(ICommandConsole console, List<String> options);", "ProgramState execute(ProgramState state) ;", "public static String interpreter(String[] commandLineArguments) throws ClassNotFoundException, SQLException{\n \t if (commandLineArguments.length < 1) \n \t { \n \t System.out.println(\"Please input help\"); \n \t } \n \t //displayInput(commandLineArguments);\n \t //System.out.println(\"\");\n \t return parseCommand(commandLineArguments); \n }", "public void processOutput() {\n\n\t}", "int promptOption(IMenu menu);", "public static void main(String[] args) {\n /*if (args.length < 1)\n error(\"No output method given\");\n else if (args.length > 1)\n error(\"Expected 1 argument, received \" + args.length);\n else if (args[0].toLowerCase().equals(\"cli\"))*/\n new CLI().main();\n /*else if (args[0].toLowerCase().equals(\"gui\"))\n new GUI().main();*/\n /*else\n error(args[0] + \" is not a valid argument\");*/\n }", "public void intialRun() {\n }", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "public void quitProgram(){}", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }", "public int cmd_string(String input) {\n\t\tif (current_state == LEARN) {\r\n\t\t\t// By this point learn has hopefully been told its parent and how to send...\r\n\t\t\tcurrent_state = learningProgram.cmd_string(input);\r\n\t\t}\r\n\r\n\t\t// If we are still exploring the root menu...\r\n\t\tif (current_state == ROOT_MENU) {\r\n//\t\t\tSystem.out.print(\"\\\"\"+input+\"\\\" \\\"\"+Integer.toString(LEARN)+\"\\\"\\n\");\r\n\t\t\tif (input.equals(Integer.toString(LEARN))) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t\tsendOutput(\"You have chosen to learn!\");\r\n\t\t\t\tlearningProgram.printMenu();\r\n\t\t\t\tcurrent_state = LEARN;\r\n\t\t\t\tmessage = null;\r\n\t\t\t} else if (input.equals(Integer.toString(GAME))) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t\tif (gameProgram == null) {\r\n\t\t\t\t\tgameProgram = new GameProgram(this);\r\n\t\t\t\t\tSystem.out.println(\"New game created: \" + gameProgram);\r\n\t\t\t\t}\r\n//\t\t\t\tsend(\"You have chosen to play a game!\");\r\n\t\t\t\t// String newString = new String();\r\n\t\t\t\t// send(Integer.toString(newString.length()));\r\n\t\t\t\tsendOutput(gameProgram.getBoardString());\r\n\t\t\t\tsendOutput(\"\");\r\n\t\t\t\tsendOutput(\"Score: \" + gameProgram.getScoreString());\r\n\t\t\t\tsendOutput(\"\");\r\n\t\t\t\tsendOutput(gameProgram.getControlString());\r\n\t\t\t\tsendOutput(\"\");\r\n\t\t\t\tsendOutput(gameProgram.getKeyString());\r\n\t\t\t\tcurrent_state = GAME;\r\n\t\t\t\tmessage = null;\r\n\t\t\t} else if (input.equals(Integer.toString(EXIT))) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t\tsendOutput(\"You have chosen to quit!\");\r\n\t\t\t\tcurrent_state = EXIT;\r\n\t\t\t\tmessage = null;\r\n\t\t\t\t// Signal to quit\r\n\t\t\t\tinputSource.fireInputEvent(new InputEvent(this, \"quit\", InputEvent.SIGNAL));\r\n//\t\t\t\tmyFrame.quit();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (current_state == ROOT_MENU) {\r\n\t\t\tclearTerminal();\r\n\t\t\tif (message != null) {\r\n\t\t\t\tsendOutput(message);\r\n//\t\t\t\tmessage = null;\r\n\t\t\t}\r\n\t\t\tsendOutput(splashString);\r\n\r\n\t\t\tsendOutput(\"Version \" + versionNum);\r\n\t\t\tsendOutput(\"by \" + author);\r\n\r\n//\t\t\tsend(\"Main menu\");\r\n\t\t\tthis.printMenu();\r\n\t\t}\r\n\r\n\t\tif (current_state == EXIT) {\r\n\t\t\treturn this.EXIT;\r\n\t\t}\r\n\r\n\t\treturn this.ROOT_MENU;\r\n\r\n\t}", "public static void exitProgram() {\n\r\n System.out.println(\"Thank you for using 'Covid 19 Vaccination Center Program'. \\n Stay safe!\");\r\n System.exit(0);\r\n }", "static int printUsage() {\n\t System.out.println(\"netflix1Driver [-m <maps>] [-r <reduces>] <input> <output>\");\n\t ToolRunner.printGenericCommandUsage(System.out);\n\t return -1;\n\t }", "public abstract void exec(CommandSender sender, String[] args);", "void exit( boolean enabled, Object result ) ;", "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "public RunExeMain() throws IOException, InterruptedException\n {\n // build the system command we want to run\n List<String> commands = new ArrayList<String>();\n// commands.add(\"/bin/sh\");\n// commands.add(\"-c\");\n// commands.add(\"ls -l /var/tmp | grep tmp\");\n commands.add(\"/Users/musictechnology/Documents/Kinect/OpenNI-Bin-Dev-MacOSX-v1.5.7.10/Samples/Bin/x64-Release/Sample-NiUserTracker\");\n\n // execute the command\n SystemCommandExecutor commandExecutor = new SystemCommandExecutor(commands);\n int result = commandExecutor.executeCommand();\n\n // get the stdout and stderr from the command that was run\n StringBuilder stdout = commandExecutor.getStandardOutputFromCommand();\n StringBuilder stderr = commandExecutor.getStandardErrorFromCommand();\n\n // print the stdout and stderr\n System.out.println(\"The numeric result of the command was: \" + result);\n System.out.println(\"STDOUT:\");\n System.out.println(stdout);\n System.out.println(\"STDERR:\");\n System.out.println(stderr);\n }", "final private static void usage () {\n\t\t usage_print () ;\n\t\t System.exit (0) ;\n }", "public abstract boolean terminal();", "abstract void initiateConsole();", "public void doCommandLine(){\n\t\t//parse arguments\n\t\tString help = System.getProperty(\"help\");\n\t\tif (help!=null){\n\t\t\tdoHelp();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tboolean doAutomation = false;\n\t\tString numRuns = System.getProperty(\"runs\");\n\t\tString outputDir = System.getProperty(\"out\");\n\t\tString filePref = System.getProperty(\"prefix\");\n\t\tString numIters = System.getProperty(\"iters\");\n\t\tString params = System.getProperty(\"params\");\n\t\tString inFasta = System.getProperty(\"in\");\n\t\tString inCustomMatrix = System.getProperty(\"inCustom\");\n\t\tString distanceName = System.getProperty(\"distanceName\");\n\t\tString doPdf = System.getProperty(\"pdf\");\n\t\tString zoom = System.getProperty(\"zoom\");\n\t\tString UIScaling = System.getProperty(\"UIScaling\");\n\t\tString width = System.getProperty(\"width\");\n\t\tString height = System.getProperty(\"height\");\n\t\tString reference = System.getProperty(\"reference\");\n\t\tdoAutomation |= numRuns!=null;\n\t\tdoAutomation |= outputDir!=null;\n\t\tdoAutomation |= filePref!=null;\n\t\tdoAutomation |= numIters!=null;\n\t\tdoAutomation |= inFasta!=null;\n\t\tdoAutomation |= inCustomMatrix!=null;\n\t\tif (doAutomation){\n\t\t\t//Necessary params:\n\t\t\tif (outputDir==null){\n\t\t\t\tbatchError(\"-Dout must be specified.\");\n\t\t\t}\n\t\t\tif (inFasta==null){\n\t\t\t\tbatchError(\"-Din must be specified.\");\n\t\t\t}\n\t\t\t//Necessary, if not doing PDF\n\t\t\tif (doPdf==null){ //Pdf render doesn't require all this stuff.\n\t\t\t\tif (numRuns==null){\n\t\t\t\t\tbatchError(\"-Druns must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (params==null){\n\t\t\t\t\tbatchError(\"-Dparams must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (numIters==null){\n\t\t\t\t\tbatchError(\"-Diters must be specified.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnumRuns = \"0\";\n\t\t\t\tnumIters = \"0\";\n\t\t\t\tparams = null; //Use defaults\n\t\t\t}\n\t\t\t//Has a default / Optional:\n\t\t\tif (filePref==null){\n\t\t\t\tfilePref=\"dGbatch\";\n\t\t\t}\n\t\t\tif (zoom!=null){\n\t\t\t\tVIEW_SCALE_USER=max(1,new Float(zoom));\n\t\t\t}\n\t\t\tif (UIScaling != null) {\n\t\t\t\tthis.UIScaling = max(1, new Float(UIScaling));\n\t\t\t}\n\t\t\tif (width != null) {\n\t\t\t\tVIEW_WIDTH = max(1,new Integer(width));\n\t\t\t}\n\t\t\tif (height != null) {\n\t\t\t\tVIEW_HEIGHT = max(1,new Integer(height));\n\t\t\t}\n\t\t\tif (inCustomMatrix != null) {\n\t\t\t\tif (distanceName == null) {\n\t\t\t\t\tbatchError(\"-DdistanceName must be specified if -DinCustom used.\");\n\t\t\t\t}\n\t\t\t\tthis.distanceName = distanceName;\n\t\t\t}\n\t\t\t//Ok, do it.\n\t\t\trunScript(new Integer(numRuns),new Integer(numIters),params,outputDir,filePref,inFasta,inCustomMatrix,doPdf!=null,reference);\n\t\t} else {\n\t\t\t//If we get here, we didn't input any command line arguments.\n\t\t\tSystem.out.println(\"Dgraph can be automated: try adding -Dhelp to the arguments when running the program.\");\n\t\t}\n\t}", "public void printCommandResult(CommandResult result) {\n String commandResult = result.getResult();\n switch (commandResult) {\n case CommandResult.EXECUTION_SUCCESS:\n printSuccessCommandResult(result);\n break;\n case CommandResult.EXECUTION_FAIL:\n printFailCommandResult(result);\n break;\n default:\n System.out.println(\"SOMETHING WENT WRONG\");\n break;\n }\n }", "public int runProcess(String commandline, String startMsg, String primer) {\n BufferedReader in;\n BufferedReader err;\n PrintStream out;\n boolean done;\n if (commandline == null) {\n return -2;\n }\n// if(startMsg==null){\n// return -3;\n// }\n if (msgs == null) {\n // create one for our local use if you won't give us one\n msgs = new TextList(100, 10);\n }\n if (startMsg != null) {\n dbg.VERBOSE(startMsg);\n }\n\n // dbg.Message(new TextList(\"Executing: \" + commandline, 78, false).asParagraph(\" \", null));\n commandline = commandline.trim();\n try {\n Process process = Runtime.getRuntime().exec(commandline);\n\n in = new BufferedReader(new InputStreamReader(process.getInputStream()));\n err = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out = new PrintStream(process.getOutputStream());\n boolean kill = (timeoutSeconds > 0);\n if (displayUpdateSeconds == 0) {\n displayUpdateSeconds = 1;\n }\n int numDots = (kill ? ((timeoutSeconds * 1000) / (displayUpdateSeconds * 1000)) : 20);\n done = false;\n // ------ testing !!!!!!!\n if (StringX.NonTrivial(primer)) {\n try {\n out.write(primer.getBytes());\n out.flush();\n } catch (Exception ex) {\n dbg.Caught(ex);\n }\n }\n\n if ((timeoutSeconds < 1) && (displayUpdateSeconds < 1)) {\n // don't watch the process; trust that it will finish\n try {\n process.waitFor();\n } catch (InterruptedException ie) {\n Thread.interrupted(); // clears interrupted bits\n // who cares; just carry on\n }\n } else {\n int counter = numDots;\n int lastSize = 0;\n while (!done && !(kill && !(counter > 0))) {\n // these have to be run regardless of whether it is verbose or not!!!! (for getmacid)\n pStream(in, msgs);\n pStream(err, msgs);\n if (verbose) {\n while (msgs.size() > lastSize) {\n dbg.VERBOSE(msgs.itemAt(lastSize++));\n }\n }\n out.println(\"\"); // slap?\n\n ThreadX.sleepFor(Ticks.forSeconds(displayUpdateSeconds));\n\n try {\n process.exitValue(); // throws if process is not complete; how I tell it isn't\n done = true;\n } catch (IllegalThreadStateException ignored) {\n }\n counter--;\n if (!done && !kill && (counter == 0)) {\n counter = numDots;// cycle around\n }\n }\n }\n pStream(in, msgs); // these must be used always for getmacid\n pStream(err, msgs);\n\n if (!done) {\n process.destroy();\n dbg.ERROR(kill ? \"Process took too long and was terminated!\" : \"User killed process.\");\n }\n\n int x = -1;\n try {\n x = done ? process.exitValue() : -1;\n } catch (IllegalThreadStateException itse2) {\n // who cares\n }\n if (x != 0) {\n dbg.WARNING(\"Process exited with value \" + x);\n }\n return x;\n } catch (Exception ioe) {\n dbg.ERROR(\"Could not start process [\" + commandline + \"] due to exception:\");\n dbg.Caught(ioe);\n // just quit\n return -1;\n }\n }", "private static void record (final String outFileName, final String... command) throws IOException {\r\n\t\tstdout.printf (\"Recoding: %s\\t\", String.join (\" \", command));\r\n\t\tFile out = new File (DIR, outFileName);\r\n\t\ttry {\r\n\t\t\tnew ProcessBuilder(command)\r\n\t\t\t\t.directory (DIR)\r\n\t\t\t\t.redirectErrorStream (true)\r\n\t\t\t\t.redirectOutput (out)\r\n\t\t\t\t.start()\r\n\t\t\t\t.waitFor ();\r\n\t\t} catch (InterruptedException e) { /* ignore */ }\r\n\t\tstdout.println (\"(Done)\");\r\n\t}", "private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "public static String callMain(String[] args) throws Exception {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\t// IMPORTANT: Save the old System.out!\n\t\tPrintStream old = System.out;\n\t\t// Tell Java to use your special stream\n\t\tSystem.setOut(ps);\n\t\t// Print some output: goes to your special stream\n\t\tmain(args);\n\t\t// Put things back\n\t\tSystem.out.flush();\n\t\tSystem.setOut(old);\n\t\t// Show what happened\n\t\treturn baos.toString();\n\t}", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }" ]
[ "0.6511323", "0.6344315", "0.6184368", "0.611311", "0.59959084", "0.5994875", "0.5971093", "0.5951064", "0.5941342", "0.59279394", "0.5907334", "0.5900745", "0.5884509", "0.5879749", "0.587209", "0.5859725", "0.5836199", "0.58323205", "0.58157605", "0.5815631", "0.57769907", "0.5760761", "0.5758033", "0.5754775", "0.57418966", "0.57325923", "0.57164496", "0.5695397", "0.5690405", "0.56810445", "0.5669826", "0.56650126", "0.56645215", "0.5658933", "0.5657385", "0.5649167", "0.5646297", "0.56459033", "0.564342", "0.5642663", "0.56418157", "0.5638114", "0.5637102", "0.56349427", "0.56340814", "0.5630142", "0.56285805", "0.56268376", "0.5621242", "0.56106126", "0.56067234", "0.56050205", "0.5594433", "0.5568466", "0.556414", "0.5560431", "0.5552342", "0.55477285", "0.55398965", "0.55350095", "0.5522487", "0.55217123", "0.55158675", "0.5515105", "0.551344", "0.5504598", "0.550346", "0.5503384", "0.5492845", "0.54847443", "0.54695946", "0.54684925", "0.54661244", "0.5459676", "0.5455353", "0.54542536", "0.5446703", "0.54440117", "0.54424256", "0.54411274", "0.5425703", "0.54204804", "0.5416284", "0.54129833", "0.54122037", "0.5408618", "0.54075915", "0.54070795", "0.5400869", "0.54001224", "0.54001075", "0.53931284", "0.53928494", "0.5391923", "0.53919005", "0.53874457", "0.53822833", "0.53761035", "0.53761", "0.5372196" ]
0.714278
0
Get the exit value of the process that was run.
int exitValue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getExitCode() {\n\n try {\n final int exitValue = process.exitValue();\n streamHandler.stop();\n LOGGER.trace(\"Process has been terminated with exit value {}\", exitValue);\n return exitValue;\n\n } catch (IllegalThreadStateException ex) {\n LOGGER.trace(\"Could not get exit value; the process is running\");\n return null;\n }\n }", "public int getExitValue() throws IllegalThreadStateException\n\t{\n\t\tint exitValue;\n\n\t\tif(process == null)\n\t\t{\n\t\t\texitValue = 1;\n\t\t\tthrow new IllegalThreadStateException(this.getClass().getName()+\n\t\t\t\t\":getExitValue:process is null.\");\n\t\t}\n\t\telse\n\t\t\texitValue = process.exitValue();\n\t\treturn exitValue;\n\t}", "public int exitValue() {\n if (_aborted) { return -1; }\n if ((_index<_processes.length-1) || (_processes[_processes.length-1]==null)) {\n throw new IllegalThreadStateException(\"Process sequence has not terminated yet, exit value not available.\");\n }\n // just returning the exit value of the last process is sufficient:\n // the last process gets started when the previous one has already terminated\n return _processes[_processes.length-1].exitValue();\n }", "public int getExitCode() {\n\t\treturn exitCode;\n\t}", "public int getExitStatus() {\n return exitStatus_;\n }", "public int getExitStatus() {\n return exitStatus_;\n }", "protected int getExitStatus() {\n return this.exitStatus;\n }", "int getExitStatus();", "int getExitNum() {\n return exitNum;\n }", "public Exit getExit() {\n\t\treturn exit;\n\t}", "public int getExitStateReturned() {\n return exitStateReturned;\n }", "public final Integer getExecReturnCode() {\n\t\treturn execReturnCode;\n\t}", "public YangUInt32 getProcessPidValue() throws JNCException {\n return (YangUInt32)getValue(\"process-pid\");\n }", "public native int getProcess();", "public boolean getExit() {\r\n return exit;\r\n }", "public static String getPid() {\n String retVal = \"-\";\n Vector<String> commands = new Vector<String>();\n commands.add(\"/bin/bash\");\n commands.add(\"-c\");\n commands.add(\"echo $PPID\");\n ProcessBuilder pb = new ProcessBuilder(commands);\n try {\n Process pr = pb.start();\n pr.waitFor();\n if (pr.exitValue() == 0) {\n BufferedReader outReader = new BufferedReader(\n new InputStreamReader(pr.getInputStream()));\n retVal = outReader.readLine().trim();\n }\n } catch (Exception e) {\n }\n return retVal;\n }", "public int exitValue(short sid) \n throws IllegalThreadStateException, UnknownServerException {\n return scadmin.exitValue(sid);\n }", "int getExitReason( ) {\n\t\treturn exitReason;\n\t}", "private int getRunningNum() {\n\t\treturn am.getRunningAppProcesses().size();\r\n\t}", "public java.lang.String getLast_processstatus() {\n return last_processstatus;\n }", "@RequiresApi(Build.VERSION_CODES.R)\n public static int getExitReason(int pid) {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {\n return -1;\n }\n ActivityManager am =\n (ActivityManager) ContextUtils.getApplicationContext().getSystemService(\n Context.ACTIVITY_SERVICE);\n // Set maxNum to 1 since we want the latest reason with the pid.\n List<ApplicationExitInfo> reasons =\n am.getHistoricalProcessExitReasons(/*package_name=*/null, pid, /*maxNum=*/1);\n if (reasons.isEmpty() || reasons.get(0) == null || reasons.get(0).getPid() != pid) {\n return -1;\n }\n return reasons.get(0).getReason();\n }", "@Override\n public int getExitCode() {\n if (e.getCode() == 0) {\n LOG.warn(\n \"Received an ExecutionEngineException with code 0. \"\n + \"Returning exit code -1 for this Execution.\");\n return -1;\n }\n return e.getCode();\n }", "public static int getErrno() {\n if (process == null) {\n System.err.println(PROGRAM_NAME +\n \": no current process in getErrno()\");\n System.exit(EXIT_FAILURE);\n }\n return process.errno;\n }", "@DISPID(49)\r\n\t// = 0x31. The runtime will prefer the VTID if present\r\n\t@VTID(54)\r\n\tjava.lang.String lastInstanceExitCodeDescription();", "public final void run() {\n int breaked = 0;\n\n while (!isFinish()) {\n try {\n wait(100);\n } catch (InterruptedException e) {\n // ignore\n } catch (Exception e) {\n // ignore\n }\n try {\n System.out.println(\"Exit value: \" + process.exitValue());\n finish = true;\n } catch (Exception e) {\n // ignore\n }\n\n if (getInputStream() != null) {\n try {\n byte[] byt = new byte[process.getInputStream().available()];\n int readed = process.getInputStream().read(byt);\n if (readed > 0) {\n getInputStream().write(byt, 0, readed);\n getInputStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n\n if (getErrorStream() != null) {\n try {\n byte[] byt = new byte[process.getErrorStream().available()];\n int readed = process.getErrorStream().read(byt);\n if (readed > 0) {\n getErrorStream().write(byt, 0, readed);\n getErrorStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n }\n }", "public int getRet() {\n\t\treturn ret;\n\t}", "public static final String getProcessValue() {\n\t\treturn VALUE;\n\t}", "public boolean hasExited()\n {\n try\n {\n proc.exitValue();\n return true;\n }\n catch(IllegalThreadStateException ex)\n {\n return false;\n }\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "@Override\n public int getExitCode() {\n return 0;\n }", "public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}", "@Override\n public int getExitCode() {\n return 1;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public int getReturnCode() {\n return returnCode_;\n }", "public ProcessInfo getResult()\n\t{\n\t\treturn m_pi;\n\t}", "public int get_process_number() {\n\t\treturn process_number;\n\t}", "public String getExitStateMsg() {\n return exitStateMsg;\n }", "public int getExitStateType() {\n return exitStateType;\n }", "public static int getPID() {\n return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0]);\n }", "@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(36)\r\n\tint lastInstanceReturnCode();", "public Location getExitLocation() {\r\n return exitLocation;\r\n }", "public static Process getProcess() {\r\n return (m_Proc);\r\n }", "boolean hasExitStatus();", "public static Long getPid() {\n String name = ManagementFactory.getRuntimeMXBean().getName();\n List<String> nameParts = Splitter.on('@').splitToList(name);\n if (nameParts.size() == 2) { // 12345@somewhere\n try {\n return Long.parseLong(Iterators.get(nameParts.iterator(), 0));\n } catch (NumberFormatException ex) {\n LOG.warn(\"Failed to get PID from [\" + name + \"]\", ex);\n }\n } else {\n LOG.warn(\"Don't know how to get PID from [\" + name + \"]\");\n }\n return null;\n }", "public int getReturnValue() {\n if (success)\r\n return 0;\r\n else\r\n return ret;\r\n }", "public String getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}", "public boolean isExited() {\n return this.applicationState.checkFlag().equals(Flag.IS_EXITED);\n }", "@DISPID(4)\r\n\t// = 0x4. The runtime will prefer the VTID if present\r\n\t@VTID(10)\r\n\tint lastInstanceReturnCode();", "public synchronized Status getStatus() {\n return execStatus;\n }", "public static char getExitKey() {\n\t\t\treturn exitKey;\n\t\t}", "@DISPID(89)\r\n\t// = 0x59. The runtime will prefer the VTID if present\r\n\t@VTID(87)\r\n\tjava.lang.String exitCodeDescription();", "public Integer getPROCESS_STATUS() {\n return PROCESS_STATUS;\n }", "private int executeProgram() {\n\n\t\tint bugNumber = 0;\n\n\t\t// running a command in java\n\t\tString command = \"./jpegconv -ppm -outfile \" + this.ppmName + \" \"\n\t\t\t\t+ this.sampleName;\n\t\tProcess child = null;\n\t\ttry {\n\t\t\tchild = Runtime.getRuntime().exec(command);\n\t\t\tchild.waitFor();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to execute the command: \" + command);\n\t\t\treturn -2;\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.err.println(\"Unable to wait for the command: \" + command);\n\t\t\treturn -2;\n\t\t}\n\n\t\t// Extract the output of the program\n\t\tInputStream inputstream = child.getErrorStream();\n\t\tInputStreamReader inputstreamreader = new InputStreamReader(inputstream);\n\t\tBufferedReader bufferedreader = new BufferedReader(inputstreamreader);\n\n\t\t// Read the output of the program\n\t\tString line;\n\t\tboolean error = false;\n\t\ttry {\n\t\t\twhile ((line = bufferedreader.readLine()) != null) {\n\t\t\t\terror = true;\n\t\t\t\t// Reg expression to check if any bug was triggered\n\t\t\t\tif (line.matches(\"BUG \\\\d+ TRIGGERED\")) {\n\t\t\t\t\tbugNumber = Integer.parseInt(line.replaceAll(\"[^\\\\d]\", \"\"));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputstream.close();\n\t\t\tinputstreamreader.close();\n\t\t\tbufferedreader.close();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t// Return -1 if another bug was triggered\n\t\tif (error && bugNumber == 0)\n\t\t\tbugNumber = -1;\n\t\tchild.destroy();\n\t\treturn bugNumber;\n\t}", "public boolean hasExited() {\n return this.exited;\n }", "public boolean hasExitCode() {\n return result.hasExitCode();\n }", "public boolean hasExitCode() {\n return result.hasExitCode();\n }", "public boolean hasExitCode() {\n return result.hasExitCode();\n }", "public String getResult() {\n\t\treturn bashCommand.getStdOutString();\n\t}", "@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}", "public final int awaitExit() throws InterruptedException {\n int result = doAwaitExit();\n stopped();\n return result;\n }", "public int getValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getvalue\", getRefId());\n\t}", "private long determinePID(final Process p)\n {\n long pid = -1;\n\n try\n {\n // Unix variants incl. OSX\n if (p.getClass().getSimpleName().equals(\"UNIXProcess\"))\n {\n final Class<?> clazz = p.getClass();\n final Field pidF = clazz.getDeclaredField(\"pid\");\n\n pidF.setAccessible(true);\n\n Object oPid = pidF.get(p);\n\n if (oPid instanceof Number)\n {\n pid = ((Number) oPid).longValue();\n }\n else if (oPid instanceof String)\n {\n pid = Long.parseLong((String) oPid);\n }\n }\n\n // Windows processes, i.e. Win32Process or ProcessImpl\n else\n {\n RuntimeMXBean rtb = ManagementFactory.getRuntimeMXBean();\n final String sProcess = rtb.getName();\n final int iPID = sProcess.indexOf('@');\n\n if (iPID > 0)\n {\n String sPID = sProcess.substring(0, iPID);\n\n pid = Long.parseLong(sPID);\n }\n }\n }\n catch (SecurityException e)\n {\n }\n catch (NoSuchFieldException e)\n {\n }\n catch (IllegalArgumentException e)\n {\n }\n catch (IllegalAccessException e)\n {\n }\n\n return pid;\n }", "public int getExitStateSent() {\n return exitStateSent;\n }", "@NativeType(\"pid_t\")\n public static long getpid() {\n long __functionAddress = Functions.getpid;\n return invokeP(__functionAddress);\n }", "public final Process getProcess() {\n return process;\n }", "int getExecutionStageStateValue();", "public static int getLastCrashID() {\r\n\t\treturn getNumberOfCrashes() - 1;\r\n\t}", "@DISPID(72)\r\n\t// = 0x48. The runtime will prefer the VTID if present\r\n\t@VTID(70)\r\n\tint mainJobReturnCode();", "public long getCurrent() {\n m_Runtime = Runtime.getRuntime();\n m_Total = m_Runtime.totalMemory();\n\n return m_Total;\n }", "static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }", "public Integer getProcess(final String title) {\n\t\treturn getProcess(title, null);\n\t}", "public JMenuItem getExitMenuItem() {\n return exitMenuItem;\n }", "public Long getExec_count() {\n return exec_count;\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public String getProcessCompleted()\r\n\t{\r\n\t\treturn processCompleted;\r\n\t}", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public final int getProcessId() {\n\t\treturn this.processId;\n\t}", "@Override\n\tpublic long getExecute() {\n\t\treturn _scienceApp.getExecute();\n\t}", "public long getLongValue() {\n if (getValueIndex() <= 0)\n return 0L;\n return ((LongEntry) getPool().getEntry(getValueIndex())).getValue();\n }", "public long getProcessCount() {\n return getProcesses().count();\n }", "public Direction getExit(){\n\t\t\treturn exit;\n\t\t}", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "public int getResultValue() {\n return mResultValue;\n }", "IRBasicBlock getExit();", "public int returnValue() {\n\t\treturn returnValue;\n\t}", "public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getProcessHistoryID() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(PROCESSHISTORYID_PROP.get());\n }", "public int getResult() {\n return this.result;\n }", "public int getRun();", "Process getProcess();", "public long getValue() {\n\t\treturn this._value;\n\t}", "public Integer getProcess(final String title, final String text) {\n\t\tint pid = AutoItXImpl.autoItX.AU3_WinGetProcess(\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(title)), AutoItUtils.stringToWString(text));\n\t\treturn (pid <= 0) ? null : pid;\n\t}", "public long getProcessID() {\n return processID;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getProcessHistoryID() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(PROCESSHISTORYID_PROP.get());\n }", "private Long unixLikeProcessId(Process process) {\n Class<?> clazz = process.getClass();\n try {\n if (clazz.getName().equals(\"java.lang.UNIXProcess\")) {\n Field pidField = clazz.getDeclaredField(\"pid\");\n pidField.setAccessible(true);\n Object value = pidField.get(process);\n if (value instanceof Integer) {\n log.debug(\"Detected pid: \" + value);\n return ((Integer) value).longValue();\n }\n }\n } catch (SecurityException sx) {\n log.error(\"SecurityException: \", sx);\n } catch (NoSuchFieldException e) {\n log.error(\"NoSuchFieldException: \", e);\n } catch (IllegalArgumentException e) {\n log.error(\"IllegalArgumentException: \", e);\n } catch (IllegalAccessException e) {\n log.error(\"IllegalAccessException: \", e);\n }\n return null;\n }", "public boolean hasExitStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "int getReturnCode();", "int getReturnCode();", "public RunStatus status() {\n return this.status;\n }" ]
[ "0.83844435", "0.7777895", "0.7639075", "0.71650743", "0.7110407", "0.7089266", "0.68479717", "0.6822597", "0.6754509", "0.6599789", "0.6581364", "0.6288736", "0.6048645", "0.5718323", "0.5698498", "0.56979245", "0.5692861", "0.5652806", "0.56063515", "0.5591094", "0.5558319", "0.5528155", "0.55175906", "0.54821914", "0.5445147", "0.5419207", "0.54048914", "0.537097", "0.5369252", "0.5369252", "0.5360718", "0.53603905", "0.5346165", "0.5333549", "0.5333549", "0.5326894", "0.5311188", "0.530442", "0.5300667", "0.5248788", "0.52412075", "0.5240383", "0.521748", "0.5216299", "0.5178527", "0.5159581", "0.5151922", "0.51219964", "0.5121029", "0.50955176", "0.50858366", "0.507185", "0.50614387", "0.50522894", "0.504972", "0.5038364", "0.5038364", "0.5038364", "0.5005201", "0.49869847", "0.49746403", "0.4971254", "0.49537554", "0.49254775", "0.4925176", "0.49187198", "0.49164113", "0.4913377", "0.4886803", "0.48858", "0.48855004", "0.48784772", "0.4844663", "0.48445734", "0.484131", "0.48149225", "0.48092195", "0.47953415", "0.47754082", "0.47688577", "0.47639525", "0.47604412", "0.47576222", "0.47545376", "0.47448713", "0.47257763", "0.47229567", "0.4719039", "0.4717786", "0.47146475", "0.4711773", "0.4708076", "0.47078457", "0.46989447", "0.46957532", "0.46955487", "0.46909377", "0.46841702", "0.46841702", "0.46793377" ]
0.6611853
9
Poredi studente po sljedecem prioritetu: gpa,brIndexa,ime.
public int compareTo(Student other) { if (this.gpa > other.gpa) { return 1; } else if (this.gpa < other.gpa) { return -1; } else { if (this.brIndexa > other.brIndexa) { return 1; } else if (this.brIndexa < other.brIndexa) { return -1; } else { if (this.ime.compareTo(other.ime) < 0) { return 1; } else if (this.ime.compareTo(other.ime) > 0) { return -1; } else return 0; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n s2.setBrIndeksa(\"LO-473\");\n\n // stampa sve podatke o studentu - kada nisu uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n\n //unos rezultata, stampanje rezultata i poruka da li je polozio ispit ili nije na osnovu rezultata\n s1.setRezultat(81);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s1.getRezultat()); //81\n s2.setRezultat(50);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s2.getRezultat()); //50\n s3.setRezultat(-4);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s3.getRezultat()); //0, ne prihvata -4\n\n // stampa sve podatke o studentu - kada su uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n }", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "@Override\n\t\tpublic int compareTo(student that) {\n\t\t\treturn that.gpa - this.gpa;\n\t\t}", "public static List<Student> studentGpa() {\n\t\t\nList<Student> stuGpa = StudentDataBase.getAllStudents().stream().filter(j->j.getGpa()>=3.9).collect(Collectors.toList());\n\t\treturn stuGpa;\n\t}", "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public Student(String imePrezime, String fakultet, int godina) {\r\n\t\tthis.imePrezime = imePrezime;\r\n\t\tthis.fakultet = fakultet;\r\n\t\tthis.godina = godina;\r\n\t}", "private void gestionPriseEnCompte() {\r\n\t\tString raison = new String(\"\");\r\n\t\tDate now = new Date();\r\n\t\tString strSql = \"\";\r\n\t\r\n if (tbAlarme.getRowCount() > 0) {\r\n \tif (tbAlarme.getSelectedRowCount() > 0) {\r\n\t\t int[] selection = tbAlarme.getSelectedRows();\r\n\t\t int indexSelection = selection[0];\r\n\t\t int idCapteur = mdlTpsReelAlarme.getIdCapteur(indexSelection); \r\n\t\t String strTypeAlarme = \"\";\r\n\t\t \r\n\t\t\t\t// Motif Prise En Compte seulement si appel Alert\r\n\t\t strTypeAlarme = (String) mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_TYPE_ALARME);\r\n\t\t if (strTypeAlarme.equals(\"Alarme\")) {\r\n\t\t\t\t\tint idPriseEnCompte = 0;\r\n\t\t \tdo {\r\n\t\t\t\t\t\tObject [] possibilites = new Object[tbPriseEnCompte.size()];\r\n\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\tpossibilites[i] = tbPriseEnCompte.get(i).getNom();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString strReponse = (String)JOptionPane.showInputDialog(this, \"Choisir un motif de prise en compte : \", \"Prise en compte\", JOptionPane.QUESTION_MESSAGE, null, possibilites, null);\r\n\t\t\t\t\t\tidPriseEnCompte = 1;\r\n\t\t\t\t\t\tif (strReponse != null) {\r\n\t\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\t\tif(strReponse.equals(tbPriseEnCompte.get(i).getNom())) {\r\n\t\t\t\t\t\t\t\t\tidPriseEnCompte = (int) tbPriseEnCompte.get(i).getId();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} // fin for\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"En attente\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// idPriseEncompte == 1 (Autres)\r\n\t\t\t\t\t\tif(idPriseEnCompte == 1) {\r\n\t\t\t\t\t\t\t// Demande de commentaire\r\n\t\t\t\t\t\t\traison = AE_Fonctions.saisieTexte(\"Veuillez entrer une raison : \", \"Raison commentaire ...\");\r\n\t\t\t\t\t\t\tif (raison == null) raison = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"---\";\r\n\t\t\t\t\t\t}\r\n\t\t \t} while(raison == \"\");\r\n\t\t \t\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET idPriseEnCompte = \" + idPriseEnCompte\r\n\t\t\t\t\t\t\t + \" , idUtilisateur = \" + EFS_Client_Variable.idUtilisateur\r\n\t\t\t\t\t\t\t + \" , CommentairePriseEnCompte = '\" + raison + \"'\"\r\n\t\t\t\t\t\t\t + \" WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setMotifIdPriseEncompte(indexSelection, idPriseEnCompte);\r\n\t\t } // fin if appelAlert\r\n\r\n\t\t if(mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE) == null) {\r\n\t\t\t\t\t// Date prise en compte\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET DatePriseEnCompte = sysdate, blPriseEnCompte = 1 WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setValueAt(now, indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t } // fin if datePrsieEnCompte\r\n\t\r\n\t\t // Prevenir le programme maitre\r\n\t\t AE_Fonctions.modifierMaitreViaClient(idCapteur, VIA_API_PRISE_EN_COMPTE);\r\n\t\t \r\n\t\t\t\t// Arret klaxon et Alert\r\n//\t\t\t\tgestionKlaxon(false);\r\n//\t\t\t\tgestionAlert(false);\r\n\t\t\t\t\r\n \t} else {\r\n \t JOptionPane.showMessageDialog(this, \"Vous devez sélectionner une ligne pour prendre en compte ...\",\r\n \t \t\t \"GTC Visualize - Programme Maitre\", JOptionPane.WARNING_MESSAGE);\r\n \t}\r\n } else {\r\n//\t\t\tgestionKlaxon(false);\r\n//\t\t\tgestionAlert(false);\r\n }\r\n\t}", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "public void pagarSaidaDaPrisao() throws Exception {\n if (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n listaJogadoresNaPrisao.remove(listaJogadores.get(jogadorAtual()).getNome());\n listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n\n } else {\n print(\"\\tTentou tirar \" + listaJogadores.get(jogadorAtual()).getNome());\n throw new Exception(\"player is not on jail\");\n }\n\n this.pagouPrisaoRecentemente = false;\n }", "int compareTo(Student s){\n\n if(cgpa.compareTo(s.cgpa)!=0)\n return -(cgpa.compareTo(s.cgpa)); //Sort in descending order according to cgpa\n\n else{\n\n // if cgpa of both student is same\n if(name.compareTo(s.name)!=0)\n return (name.compareTo(s.name)); //sort in ascending order according to name\n\n else{\n // if name of both sudents are same\n return (token.compareTo(s.token)); //sort in ascending order according to token\n }\n\n }\n\n }", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public int compare(Student s1, Student s2) { \n if (s1.cgpa < s2.cgpa) \n return 1; \n else if (s1.cgpa > s2.cgpa) \n return -1; \n else\n \treturn 0;\n }", "@Override\n public int compare(Student s1, Student s2) {\n return (int)(1000*(s2.getGPA()-s1.getGPA()));\n }", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "public static void MayorMenor(int [] Grado1, int NNEstudent){\nSystem.out.println(\"La edad menor es: \"+Grado1[0]+\" La edad mayor es: \"+Grado1[NNEstudent-1]);}", "Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }", "public static void ordIntercambio(int [] Grado1, int NNEstudent){\nint i,j;\nfor(i=0; i<NNEstudent-1; i++){\nfor(j=i+1; j<NNEstudent; j++){\nif(Grado1[i]> Grado1[j]){\nintercambiar(Grado1,i,j);\n}}}}", "public String toString() {\r\n\t\treturn \"Student \" + imePrezime + \" studira \" + fakultet + \" fakultet \" + \r\n\t\t\t\t\"i trenutno je na \" + godina + \". godini\";\r\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }", "public Polaznik(String ime, String prezime) {\r\n\t\tthis.ime = ime;\r\n\t\tthis.prezime = prezime;\r\n\t\tidPolaznik++;\r\n\t\tidGlobalPolaznik++;\r\n\t}", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "private static void print_Assignment(Gradebook gradebook, String[] flags) {\n //sort grades highest to lowest\n if (flags[3] != null && flags[3].equals(\"G\")) {\n List<Student> studentList = gradebook.getAllStudents();\n Map<Integer, Set<Student>> gradeToName = new HashMap<Integer, Set<Student>>();\n Set<Integer> grades = new HashSet<Integer>();\n\n for(Student s : studentList){\n Assignment assign = gradebook.getAssignment(flags[0]);\n Map<Assignment, Integer> gradeMap = gradebook.getStudentGrades(s);\n Integer grade = gradeMap.get(assign);\n\n Set<Student> studs = gradeToName.get(grade);\n if(studs == null){\n\n studs = new HashSet<Student>();\n }\n\n studs.add(s);\n gradeToName.put(grade, studs);\n grades.add(grade);\n }\n\n List<Integer> sortedList = new ArrayList<Integer>(grades);\n Collections.sort(sortedList, Collections.reverseOrder());\n\n for(Integer i : sortedList){\n Set<Student> studs = gradeToName.get(i);\n for(Student s : studs)\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + i + \")\");\n }\n\n // sort display aplhabetically\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n for (Student stud: studentsAlpha) {\n // flags[0] should be assign name\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + gradebook.getPointsAssignment(stud, gradebook.getAssignment(flags[0])) + \")\");\n }\n\n } else {\n throw new IllegalArgumentException(\"Please specify if you want the display to be alphabetical or by grades highest to lowest.\");\n }\n return;\n }", "private void preenchePosicoes(List<Par<Integer,Integer>> posicoes, \n\t\t\tEstadoAmbiente estado) {\n\t\tfor (Par<Integer,Integer> p : posicoes) {\n\t\t\tthis.quadricula[p.primeiro()][p.segundo()] = estado;\n\t\t}\n\t}", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "public void getStudentNameStudentAsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_studname_asc = db.getStudentNameAllEnquiryStudentAsc();\n\t\tIterator itr = student_name_studname_asc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "public void savePrioritaet(String bezeichnung) throws Exception;", "@Override\n public int compareTo(Student other) {\n double compareCgpa = this.cgpa - other.cgpa;\n if (compareCgpa > 0) return -1;\n else if (compareCgpa < 0) return 1;\n\n // Sort Students by name in ascending order.\n int compareName = this.name.compareTo(other.name);\n if (compareName > 0) return 1;\n else if (compareName < 0) return -1;\n\n // Sort Students by id in ascending order.\n return this.id > other.id ? 1 : -1;\n }", "public static void main(String[] args) {\n\t\tStudent s = new Student(\"Bora\", \"Boric\", 1989, 39998, 3, 7.59);\r\n\t\tStudent s1 = new Student(\"Mika\", \"Mikic\", 1998, 39322, 1, 8.59);\r\n\t\tStudent s2 = new Student(\"Kasa\", \"Kasic\", 1991, 39299, 2, 8.94);\r\n\t\tProfesor p = new Profesor(\"Stanko\", \"Stanic\", 1980, \"Predavac\");\r\n\t\tProfesor p1 = new Profesor(\"Sasa\", \"Sasic\", 1984, \"Asistent\");\r\n\t\tp.dodajPredmet(\"Statistika\");\r\n\t\tp.dodajPredmet(\"Matematika\");\r\n\t\tp1.dodajPredmet(\"Teorija cena\");\r\n\t\tp1.dodajPredmet(\"Makroekonomija\");\r\n\t\tSystem.out.println(s.ispis());\r\n\t\tSystem.out.println(s1.ispis());\r\n\t\tSystem.out.println(s2.ispis());\r\n\t\tSystem.out.println(p.ispisi());\r\n\t\tSystem.out.println(p1.ispisi());\r\n\r\n\t}", "private void prim(GrafoAristaPonderada G, int s) {\n distanciaHacia[s] = 0.0;\n cp.insertar(s, distanciaHacia[s]);\n while (!cp.estaVacia()) {\n int v = cp.delMin();\n escanear(G, v);\n }\n }", "public static void partitionStudentsByGpaPredicate() {\n\t\tMap<Boolean, Set<Student>> mapOfStudents = StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(partitioningBy(gpaPredicate, toSet()));\n\t\t\n\t\tSystem.out.println(\"Does the Student have First Class Degree? \" + mapOfStudents);\n\t}", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "public Student(int sem, double gpa, String firstName, String lastName) {\n super(firstName, lastName);\n this.sem = sem;\n this.gpa = gpa;\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "private static List<String> vratiPopisNepolozenih(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 1)\n\t\t\t\t\t\t.sorted()\n\t\t\t\t\t\t.map(StudentRecord::getJmbag)\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void setStartingStudent(int playerIndex) {\n startingPlayer = playerIndex;\n }", "public void skrivUtSpiller() {\r\n\t\tSystem.out.println(\"Spiller \" + id + \": \" + navn + \", har \" + poengsum + \" poeng\");\r\n\t}", "public double berechnePreis(){\r\n\t\tdouble gesamtpreis = 0;\r\n\t\tfor (Titel tmp : this){\r\n\t\t\tgesamtpreis = gesamtpreis + tmp.getPreis();\r\n\t\t}\r\n\t\treturn gesamtpreis;\r\n\t}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getNomeAluno( int posicao)\n\t{\n\t\treturn gradeNomes[posicao];\n\t}", "public static int timeSlotLivreProfessor(int professor){\r\n List<Integer> timeslots = new ArrayList<Integer>();\r\n int retorno = -1;\r\n for (int i = 0; i < n_timeslots; i++) {\r\n if(professores[professor][i] == 0)\r\n timeslots.add(i);\r\n }\r\n \r\n Random r = new Random();\r\n int ponto = r.nextInt(timeslots.size() + 1);\r\n retorno = timeslots.get(ponto);\r\n return retorno;\r\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "@Override\n\tpublic int compareTo(Student other) {\n\t\tdouble gpaDif = other.getGpa() - this.getGpa(); // could reverse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ordering by changing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// these two terms\n\t\tif (Math.abs(gpaDif) < 0.000001) { // for practical reasons, if their\n\t\t\t\t\t\t\t\t\t\t\t// GPAs are close enough, then they\n\t\t\t\t\t\t\t\t\t\t\t// can be considered equal\n\t\t\treturn this.getName().compareTo(other.getName());\n\t\t} else if (gpaDif < 0) {\n\t\t\t// could have also used Double.compare(this.getGpa(), other.getGpa());\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn 1;\n\t\t}\n\t\t/*\n\t\t * Note that we CANNOT return gpaDif because Java will automatically\n\t\t * cast this double to an int. During this casting, 0.5 would be casted\n\t\t * to 0, which would be wrong.\n\t\t */\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public BinaarinenPuusolmu(int avain) {\n this.avain = avain;\n vasen = null;\n oikea = null;\n vanhempi = null;\n }", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "Student(String name, double cgpa, int token){\n this.name=name;\n this.cgpa=cgpa;\n this.token=token;\n }", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public Sablier(Piste piste, Moto moto){\n this.min=min;\n this.sec=sec;\n this.piste=piste;\n this.moto=moto;\n }", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "public Student(String nume, int varsta) {\n\t\tthis.nume = nume;\n\t\tthis.varsta = varsta;\n\t}", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "private void populaProfessor()\n {\n Calendar nasc = Calendar.getInstance();\n\n ProfessorFunc p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Joana\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Mario\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Marcio\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Fabiana\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Kleber\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Antonio\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n\n p = new ProfessorFunc();\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n p.setDataNascimento(nasc);\n p.setNome(\"Paula\");\n p.setEmail(p.getNome() + \"@gmail.com\");\n p.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n p.setIsProfessor(true);\n p.setSenha(CriptografiaLogic.encriptar(\"123\"));\n p.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n professorFuncDAO.insert(p);\n }", "public int getIdPrestatario() {\n return idPrestatario;\n }", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public int[] getPreamp() {\n return localPreamp;\n }", "public static void main(String[] args) {\n ExamGrade eg1=new ExamGrade(60, 90);\n ExamGrade eg2=new ExamGrade(20, 60);\n ExamGrade eg3=new ExamGrade(55, 85);\n //instances of student \n Student s1=new Student(\"Barış\", \"Arslan\", \"male\", 3.4, \"CMPE\",eg1);\n Student s2=new Student(\"Fırat\", \"Arslan\", \"male\", 2.5, \"CMPE\", eg1);\n Student s3=new Student(\"ali\", \"mehmet\", \"male\", 1.0, \"EEN\", eg3);\n Student s4=new Student(\"ayşe\", \"pek\", \"female\", 3.0, \"EEN\", eg2);\n Student s5=new Student(\"kai\", \"pek\", \"male\", 3.1, \"TK\", eg2);\n\n Student[] a={s5,s3,s2,s1,s4}; //array for test \n Student[] b=generatedStudent(4); //describing genereted values to b because of testing\n show(b); //instance of show method\n findMinMax(b); //instance of findMinMax method\n \n System.out.println(search(a,118101));//instance of search method\n System.out.println(s2);//these control changeGrade before working method\n changeGrade(a, 118102, eg3);//instance of changeGrade method\n System.out.println(s2);//these control changeGrade after working method\n meanGPA(a);//instance of meanGPA \n }", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "public Student(String in_name, double in_gpa)\n {\n name = in_name;\n gpa = in_gpa;\n getQuizzes();\n }", "private void _generateAnAssistantProfessor(int index) {\n String id = _getId(CS_C_ASSTPROF, index);\n writer_.startSection(CS_C_ASSTPROF, id);\n if(globalVersionTrigger){\n \twriter_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#AssistantProfessor\", true); \t\n }\n _generateAProf_a(CS_C_ASSTPROF, index, id);\n writer_.endSection(CS_C_ASSTPROF);\n _assignFacultyPublications(id, ASSTPROF_PUB_MIN, ASSTPROF_PUB_MAX);\n }", "private void generisiPolje() {\r\n\t\tint polje = rnd.nextInt(broj_slobodnih);\r\n\t\tint vrijednost = rnd.nextInt(4);\r\n\t\tif(vrijednost == 0)\r\n\t\t\tvrijednost = 4;\r\n\t\telse\r\n\t\t\tvrijednost = 2;\r\n\t\t\r\n\t\tint brojac = 0;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tif(tabela[i][j] == 0) {\r\n\t\t\t\t\tif(brojac == polje)\r\n\t\t\t\t\t\ttabela[i][j] = vrijednost;\r\n\t\t\t\t\tbrojac++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tbroj_slobodnih--;\r\n\t}", "@SuppressWarnings(\"static-access\")\r\n\tpublic TreeMap<Integer, Double> versementSalaire() {\r\n\t\tTreeMap<Integer, Double> salaires = new TreeMap<Integer, Double>();\r\n\t\tIterator<Integer> iter = this.listeProfs.iterator();\r\n\t\twhile(iter.hasNext()){\r\n\t\t\tsalaires.put(iter.next(), this.SALAIRE);\r\n\t\t}\r\n\t\treturn salaires;\r\n\t}", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public int \r\nomStudent_dMajorGPA( View mStudentOrig,\r\n String InternalEntityStructure,\r\n String InternalAttribStructure,\r\n Integer GetOrSetFlag )\r\n{\r\n zVIEW mStudent = new zVIEW( );\r\n //:VIEW lDegTrkM BASED ON LOD lDegTrkM\r\n zVIEW lDegTrkM = new zVIEW( );\r\n //:VIEW mStudenC BASED ON LOD mStudenC\r\n zVIEW mStudenC = new zVIEW( );\r\n //:VIEW mStudenCO BASED ON LOD mStudenC\r\n zVIEW mStudenCO = new zVIEW( );\r\n //:DECIMAL MajorGPA\r\n double MajorGPA = 0.0;\r\n //:DECIMAL GPA_Divisor\r\n double GPA_Divisor = 0.0;\r\n //:DECIMAL GPA_Points\r\n double GPA_Points = 0.0;\r\n //:DECIMAL FinalGrade\r\n double FinalGrade = 0.0;\r\n //:DECIMAL CreditHours\r\n double CreditHours = 0.0;\r\n //:INTEGER CourseID\r\n int CourseID = 0;\r\n //:STRING ( 20 ) szDecimalString\r\n String szDecimalString = null;\r\n //:STRING ( 2 ) szFinalGrade\r\n String szFinalGrade = null;\r\n //:STRING ( 32 ) szEntityName\r\n String szEntityName = null;\r\n int RESULT = 0;\r\n int lTempInteger_0 = 0;\r\n int lTempInteger_1 = 0;\r\n int lTempInteger_2 = 0;\r\n int lTempInteger_3 = 0;\r\n zVIEW vTempViewVar_0 = new zVIEW( );\r\n int lTempInteger_4 = 0;\r\n int lTempInteger_5 = 0;\r\n int lTempInteger_6 = 0;\r\n\r\n\r\n //:CASE GetOrSetFlag\r\n switch( GetOrSetFlag )\r\n { \r\n //:OF zDERIVED_GET:\r\n case zDERIVED_GET :\r\n\r\n //:// This is a calculation of the major GPA based on the list of Degree Track major courses and\r\n //:// the Student's academic record.\r\n //:// We try to use the derived DegreeTrack path in mStudent. If it's not there, we will activate\r\n //:// lDegTrkM and include it.\r\n\r\n //:GetEntityNameFromStructure( InternalEntityStructure, szEntityName )\r\n //:IF szEntityName = \"StudentMajorDegreeTrack\"\r\n if ( ZeidonStringCompare( szEntityName, 1, 0, \"StudentMajorDegreeTrack\", 1, 0, 33 ) == 0 )\r\n { \r\n //:// We're already positioned on the correct entity.\r\n //:mStudent = mStudentOrig\r\n SetViewFromView( mStudent, mStudentOrig );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:// Position on the correct DegreeTrack entity.\r\n //:CreateViewFromView( mStudent, mStudentOrig )\r\n CreateViewFromView( mStudent, mStudentOrig );\r\n //:IF szEntityName = \"mStudent.DC_StudentMajorDegreeTrack\"\r\n if ( ZeidonStringCompare( szEntityName, 1, 0, \"mStudent.DC_StudentMajorDegreeTrack\", 1, 0, 33 ) == 0 )\r\n { \r\n //:SET CURSOR FIRST mStudent.StudentMajorDegreeTrack WHERE mStudent.StudentMajorDegreeTrack.ID = mStudent.DC_StudentMajorDegreeTrack.ID\r\n {MutableInt mi_lTempInteger_0 = new MutableInt( lTempInteger_0 );\r\n GetIntegerFromAttribute( mi_lTempInteger_0, mStudent, \"DC_StudentMajorDegreeTrack\", \"ID\" );\r\n lTempInteger_0 = mi_lTempInteger_0.intValue( );}\r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setFirst( \"ID\", lTempInteger_0 ).toInt();\r\n\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:SET CURSOR FIRST mStudent.StudentMajorDegreeTrack WHERE mStudent.StudentMajorDegreeTrack.ID = mStudent.CDC_StudentMajorDegreeTrack.ID\r\n {MutableInt mi_lTempInteger_1 = new MutableInt( lTempInteger_1 );\r\n GetIntegerFromAttribute( mi_lTempInteger_1, mStudent, \"CDC_StudentMajorDegreeTrack\", \"ID\" );\r\n lTempInteger_1 = mi_lTempInteger_1.intValue( );}\r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setFirst( \"ID\", lTempInteger_1 ).toInt();\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n\r\n //:SET CURSOR FIRST mStudent.MajorGPA_DegreeTrack \r\n //: WHERE mStudent.MajorGPA_DegreeTrack.ID = mStudent.MajorDegreeTrack.ID \r\n {MutableInt mi_lTempInteger_2 = new MutableInt( lTempInteger_2 );\r\n GetIntegerFromAttribute( mi_lTempInteger_2, mStudent, \"MajorDegreeTrack\", \"ID\" );\r\n lTempInteger_2 = mi_lTempInteger_2.intValue( );}\r\n RESULT = mStudent.cursor( \"MajorGPA_DegreeTrack\" ).setFirst( \"ID\", lTempInteger_2 ).toInt();\r\n //:IF RESULT < zCURSOR_SET\r\n if ( RESULT < zCURSOR_SET )\r\n { \r\n //:ACTIVATE lDegTrkM WHERE lDegTrkM.DegreeTrack.ID = mStudent.MajorDegreeTrack.ID \r\n {MutableInt mi_lTempInteger_3 = new MutableInt( lTempInteger_3 );\r\n GetIntegerFromAttribute( mi_lTempInteger_3, mStudent, \"MajorDegreeTrack\", \"ID\" );\r\n lTempInteger_3 = mi_lTempInteger_3.intValue( );}\r\n omStudent_fnLocalBuildQual_1( mStudentOrig, vTempViewVar_0, lTempInteger_3 );\r\n RESULT = ActivateObjectInstance( lDegTrkM, \"lDegTrkM\", mStudentOrig, vTempViewVar_0, zSINGLE );\r\n DropView( vTempViewVar_0 );\r\n //:INCLUDE mStudent.MajorGPA_DegreeTrack FROM lDegTrkM.DegreeTrack \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"MajorGPA_DegreeTrack\", lDegTrkM, \"DegreeTrack\", zPOS_AFTER );\r\n //:DropObjectInstance( lDegTrkM )\r\n DropObjectInstance( lDegTrkM );\r\n } \r\n\r\n //:END \r\n //:MajorGPA = 0\r\n MajorGPA = 0;\r\n //:GET VIEW mStudenCO NAMED \"mStudenC\"\r\n RESULT = GetViewByName( mStudenCO, \"mStudenC\", mStudentOrig, zLEVEL_TASK );\r\n //:IF RESULT >= 0\r\n if ( RESULT >= 0 )\r\n { \r\n //:CreateViewFromView( mStudenC, mStudenCO )\r\n CreateViewFromView( mStudenC, mStudenCO );\r\n //:GPA_Divisor = 0\r\n GPA_Divisor = 0;\r\n //:GPA_Points = 0\r\n GPA_Points = 0;\r\n //:FOR EACH mStudenC.Registration WHERE ( mStudenC.Registration.Status = \"C\" // Completed\r\n //: OR mStudenC.Registration.Status = \"F\" // Transferred\r\n //: OR mStudenC.Registration.Status = \"X\" ) // L. Transferred\r\n //: AND mStudenC.Registration.wRepeatedClass != \"R\"\r\n RESULT = mStudenC.cursor( \"Registration\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n if ( ( CompareAttributeToString( mStudenC, \"Registration\", \"Status\", \"C\" ) == 0 || CompareAttributeToString( mStudenC, \"Registration\", \"Status\", \"F\" ) == 0 || CompareAttributeToString( mStudenC, \"Registration\", \"Status\", \"X\" ) == 0 ) &&\r\n CompareAttributeToString( mStudenC, \"Registration\", \"wRepeatedClass\", \"R\" ) != 0 )\r\n { \r\n\r\n //:IF mStudenC.RegistrationCourse EXISTS\r\n lTempInteger_4 = CheckExistenceOfEntity( mStudenC, \"RegistrationCourse\" );\r\n if ( lTempInteger_4 == 0 )\r\n { \r\n //:CourseID = mStudenC.RegistrationCourse.ID \r\n {MutableInt mi_CourseID = new MutableInt( CourseID );\r\n GetIntegerFromAttribute( mi_CourseID, mStudenC, \"RegistrationCourse\", \"ID\" );\r\n CourseID = mi_CourseID.intValue( );}\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:IF mStudenC.EquivalentCourse EXISTS\r\n lTempInteger_5 = CheckExistenceOfEntity( mStudenC, \"EquivalentCourse\" );\r\n if ( lTempInteger_5 == 0 )\r\n { \r\n //:CourseID = mStudenC.EquivalentCourse.ID \r\n {MutableInt mi_CourseID = new MutableInt( CourseID );\r\n GetIntegerFromAttribute( mi_CourseID, mStudenC, \"EquivalentCourse\", \"ID\" );\r\n CourseID = mi_CourseID.intValue( );}\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:CourseID = 0\r\n CourseID = 0;\r\n } \r\n\r\n //:END \r\n } \r\n\r\n //:END\r\n //:SET CURSOR FIRST mStudent.MajorGPA_Course WHERE mStudent.MajorGPA_Course.ID = CourseID\r\n RESULT = mStudent.cursor( \"MajorGPA_Course\" ).setFirst( \"ID\", CourseID ).toInt();\r\n //:IF RESULT >= zCURSOR_SET \r\n if ( RESULT >= zCURSOR_SET )\r\n { \r\n //:szFinalGrade = mStudenC.Registration.FinalGrade\r\n {MutableInt mi_lTempInteger_6 = new MutableInt( lTempInteger_6 );\r\n StringBuilder sb_szFinalGrade;\r\n if ( szFinalGrade == null )\r\n sb_szFinalGrade = new StringBuilder( 32 );\r\n else\r\n sb_szFinalGrade = new StringBuilder( szFinalGrade );\r\n GetVariableFromAttribute( sb_szFinalGrade, mi_lTempInteger_6, 'S', 3, mStudenC, \"Registration\", \"FinalGrade\", \"\", 0 );\r\n lTempInteger_6 = mi_lTempInteger_6.intValue( );\r\n szFinalGrade = sb_szFinalGrade.toString( );}\r\n //:GetStringFromAttributeByContext( szDecimalString,\r\n //: mStudenC, \"Registration\", \"FinalGrade\", \"DegreeTrackGradePointValue\", 20 )\r\n {StringBuilder sb_szDecimalString;\r\n if ( szDecimalString == null )\r\n sb_szDecimalString = new StringBuilder( 32 );\r\n else\r\n sb_szDecimalString = new StringBuilder( szDecimalString );\r\n GetStringFromAttributeByContext( sb_szDecimalString, mStudenC, \"Registration\", \"FinalGrade\", \"DegreeTrackGradePointValue\", 20 );\r\n szDecimalString = sb_szDecimalString.toString( );}\r\n //:IF szFinalGrade = \"F\"\r\n if ( ZeidonStringCompare( szFinalGrade, 1, 0, \"F\", 1, 0, 3 ) == 0 )\r\n { \r\n //:// Failed Course\r\n //:CreditHours = mStudenC.Registration.CreditHours\r\n {MutableDouble md_CreditHours = new MutableDouble( CreditHours );\r\n GetDecimalFromAttribute( md_CreditHours, mStudenC, \"Registration\", \"CreditHours\" );\r\n CreditHours = md_CreditHours.doubleValue( );}\r\n //:GPA_Divisor = GPA_Divisor + CreditHours\r\n GPA_Divisor = GPA_Divisor + CreditHours;\r\n //:// GPA_Points are not impacted for this case.\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:FinalGrade = StrToDecimal( szDecimalString )\r\n //:IF FinalGrade > 0\r\n if ( FinalGrade > 0 )\r\n { \r\n //:// Passed Course\r\n //:// The only other entries considered are those with grades D through A, in which case FinalGrade is > 0.\r\n //:CreditHours = mStudenC.Registration.CreditHours\r\n {MutableDouble md_CreditHours = new MutableDouble( CreditHours );\r\n GetDecimalFromAttribute( md_CreditHours, mStudenC, \"Registration\", \"CreditHours\" );\r\n CreditHours = md_CreditHours.doubleValue( );}\r\n //:GPA_Divisor = GPA_Divisor + CreditHours\r\n GPA_Divisor = GPA_Divisor + CreditHours;\r\n //:GPA_Points = GPA_Points + (FinalGrade * CreditHours)\r\n GPA_Points = GPA_Points + ( FinalGrade * CreditHours );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n } \r\n\r\n } \r\n\r\n RESULT = mStudenC.cursor( \"Registration\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n\r\n //:END\r\n //:MajorGPA = GPA_Points / GPA_Divisor\r\n MajorGPA = GPA_Points / GPA_Divisor;\r\n //:DropView( mStudenC )\r\n DropView( mStudenC );\r\n } \r\n\r\n //:END\r\n //:IF mStudent != mStudentOrig\r\n if ( mStudent != mStudentOrig )\r\n { \r\n //:DropView( mStudent )\r\n DropView( mStudent );\r\n } \r\n\r\n //:END\r\n\r\n //:StoreValueInRecord ( mStudentOrig,\r\n //: InternalEntityStructure, InternalAttribStructure, MajorGPA, 0 )\r\n StoreValueInRecord( mStudentOrig, InternalEntityStructure, InternalAttribStructure, MajorGPA, 0 );\r\n break ;\r\n\r\n //: /* end zDERIVED_GET */\r\n //:OF zDERIVED_SET:\r\n case zDERIVED_SET :\r\n break ;\r\n } \r\n\r\n\r\n //: /* end zDERIVED_SET */\r\n //:END /* case */\r\n return( 0 );\r\n// END\r\n}", "public void setProb(ReporteProblema Prob) {\n this.bandera=true;\n this.prob = Prob;\n }", "List<Sppprm> exportPrimesJourToPaie(List<Pointage> pointagesOrderedByDateAsc);", "ArrayList<Professor> professoresFormPend();", "public boolean filterPrimesse(Map<Variable, String> assigne, Map<Variable, ArrayList<String>> nonAssigne) {\n\n ArrayList<Variable> InNonAss = Tools.variableInConstraint(this.premisse, nonAssigne); // recuperation des varable de la premise qui ne sont par encore assigne \n ArrayList<Variable> InAss = Tools.variableConstraintInAssigne(assigne, this.premisse); // recuperation des varable de la premise qui sont deja assigne \n \n \n for (Variable v : this.getScope()) {\n // on verrification de la presente de tout la varriable scope\n if (!Tools.inArrayList(InAss, v) && !Tools.inArrayList(InNonAss, v)) {\n return false;\n }\n }\n\n if (InNonAss.isEmpty() || InAss.isEmpty()) { // cas on aussi variable ou tout les varriable son asigne \n\n return false;\n }\n\n String valeurVariablePremise;\n\n for (int i = 0; i < InAss.size(); i++) {// on veriffie que les varaible de les variable deja assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InAss.get(i));\n\n if (!Tools.getValue(assigne, InAss.get(i)).equals(valeurVariablePremise)) {\n\n Tools.cleanDomainFritrage(nonAssigne, InNonAss);\n\n return true;\n }\n\n }\n\n boolean filtrage = false;\n\n for (int j = 0; j < InNonAss.size(); j++) { // Reduction des domain des varaible si les non assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InNonAss.get(j)); // recuperation de la valeur de variable non asigne dans la premisse \n\n for (int k = 0; k < nonAssigne.get(InNonAss.get(j)).size(); k++) { // filttrage du domaine \n\n if (!nonAssigne.get(InNonAss.get(j)).get(k).equals(valeurVariablePremise)) {\n\n nonAssigne.get(InNonAss.get(j)).remove(k);\n\n k--;\n\n filtrage = true;\n\n }\n\n }\n\n }\n\n return filtrage;\n }", "public static void printProst(int a, int b, int n) {\r\n\t\tint brojac = 0;\r\n\t\tfor (int i = a; i <= b; i++) {\r\n\t\t\tif (jeProst(i)) {\r\n\t\t\t\tSystem.out.print(i + \" \");\r\n\t\t\t\tbrojac++;\r\n\t\t\t\tif (brojac % n == 0) {\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tbrojac = 0;//posto se koristi moduo ,cak ne treba ni vracati brojac na 0\r\n\t\t\t\t\t//mada je bolja varijanta u slucaju da je n ogroman\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "private void dodajEpsilonPrijelaz(int pocetno, int sljedece) {\n String key = pocetno + \",$$\";\n if (!prijelazi.containsKey(key)) {\n prijelazi.put(key, new Integer(sljedece).toString());\n } else {\n String value = prijelazi.get(key) + \",\" + new Integer(sljedece).toString();\n prijelazi.put(key, value);\n }\n }", "public void setPuertas(int puerta) {\n\t\t\r\n\t}", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "private void _generateAGradudateStudent(int index) {\n int n;\n ArrayList list;\n String id;\n\n id = _getId(CS_C_GRADSTUD, index);\n writer_.startSection(CS_C_GRADSTUD, id);\n _generateAStudent_a(CS_C_GRADSTUD, index, id);\n n = _getRandomFromRange(GRADSTUD_COURSE_MIN, GRADSTUD_COURSE_MAX);\n list = _getRandomList(n, 0, gradCourses_.size() - 1);\n for (int i = 0; i < list.size(); i++) {\n CourseInfo info = (CourseInfo) gradCourses_.get( ( (Integer) list.get(i)).\n intValue());\n writer_.addProperty(CS_P_TAKECOURSE,\n _getId(CS_C_GRADCOURSE, info.globalIndex), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#takesCourse\", _getId(CS_C_GRADCOURSE, info.globalIndex), true);\t \t \t \t \n }\n }\n writer_.addProperty(CS_P_UNDERGRADFROM, CS_C_UNIV,\n _getId(CS_C_UNIV, random_.nextInt(UNIV_NUM)));\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#undergraduateDegreeFrom\", _getId(CS_C_UNIV, random_.nextInt(UNIV_NUM)), true);\t \t \t \t \n }\n if (0 == random_.nextInt(R_GRADSTUD_ADVISOR)) {\n \tString ad = _selectAdvisor();\n \twriter_.addProperty(CS_P_ADVISOR, _selectAdvisor(), true);\n\t if(globalVersionTrigger){\t \t \n\t \t writer_log.addPropertyInstance(id, ontology+\"#advisor\", ad, true);\t \t \t \t \n\t }\n \n }\n \n _assignGraduateStudentPublications(id, GRADSTUD_PUB_MIN, GRADSTUD_PUB_MAX);\n writer_.endSection(CS_C_GRADSTUD);\n }", "public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tList<String> lines = Files.readAllLines(Paths.get(\"studenti2.txt\"));\n\t\tList<StudentRecord> records = convert(lines);\n\t\tSystem.out.println(\"Broj studenata: \" + records.size());\n\t\t\n\t\t//1\n\t\tlong broj = vratiBodovaViseOd25(records);\n\t\tSystem.out.println(\"Broj studenata cija je suma bodova > 25 je \" + broj);\n\t\t\n\t\t//2\n\t\tlong broj5 = vratiBrojOdlikasa(records);\n\t\tSystem.out.println(\"Broj studenata cija je ocjena \" + 5 + \" je \" + broj5);\n\t\t\n\t\t//3\n\t\tint odlican = 5;\n\t\tList<StudentRecord> odlikasi = vratiListuOdlikasa(records);\n\t\tSystem.out.println(\"Broj odlikasa je: \" + odlikasi.size());\n\t\t//4\n\t\tList<StudentRecord> odlikasiSortirano = vratiSortiranuListuOdlikasa(records);\n\t\t\n\t\todlikasiSortirano.forEach(o -> System.out.println(o));\n\t\t\n\t\t//5\n\t\tList<String> nepolozeniJMBAGovi = vratiPopisNepolozenih(records);\n\t\t\n\t\tnepolozeniJMBAGovi.forEach(o -> System.out.println(o));\n\t\t\n\t\t//6\n\t\tMap<Integer, List<StudentRecord>> mapaPoOcjenama = razvrstajStudentePoOcjenama(records);\n\t\t\n\t\tSystem.out.println(mapaPoOcjenama.get(odlican).size());\n\t\n\t\t//7\n\t\tMap<Integer, Integer> mapaPoOcjenama2 = records.stream()\n\t\t\t\t.collect(Collectors\n\t\t\t\t\t\t.toMap(StudentRecord::getOcjena, o -> 1, (o1, o2) -> o1 + 1));\n\t\t\n\t\tmapaPoOcjenama2.entrySet().stream()\n\t\t\t\t.sorted((o1, o2) -> o1.getKey()\n\t\t\t\t\t\t.compareTo(o1.getKey()))\n\t\t\t\t.forEach(System.out::println);;\n\t\t\n\t\t\n\t\t//8\n\t\tMap<Boolean, List<StudentRecord>> prolazNeprolaz = razvrstajProlazPad(records);\n\t\t\n\t\tSystem.out.println(\"Broj padova je \" + prolazNeprolaz.get(false).size());\n\t\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void print_Final(Gradebook gradebook, String[] flags){\n if (flags[3] != null && flags[3].equals(\"G\")){\n List<Student> studentsList = gradebook.getAllStudents();\n //Map<Student, Double>\n Map<Double, List<Student>> grades = new HashMap<Double, List<Student>>();\n Set<Double> gradeSet = new HashSet<Double>();\n\n for(Student s : studentsList){\n double grade = gradebook.getGradeStudent(s);\n List<Student> studs = grades.get(grade);\n\n if(studs == null){\n studs = new ArrayList<Student>();\n }\n\n studs.add(s);\n grades.put(grade, studs);\n gradeSet.add(grade);\n }\n\n List<Double> gradeList = new ArrayList<Double>(gradeSet);\n Collections.sort(gradeList, Collections.reverseOrder());\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for(Double d : gradeList){\n\n List<Student> studs = grades.get(d);\n for(Student s : studs){\n\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + df.format(d) + \")\");\n }\n }\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for (Student stud: studentsAlpha) {\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + df.format(gradebook.getGradeStudent(stud)) + \")\");\n }\n\n }\n else{\n throw new IllegalArgumentException(\"Grade or Alphabetical flag missing.\");\n }\n return;\n }" ]
[ "0.58485866", "0.5847322", "0.5671628", "0.5582373", "0.5522964", "0.55175525", "0.5498906", "0.54579854", "0.5405578", "0.5399257", "0.5361454", "0.5361104", "0.53498155", "0.53190583", "0.52822953", "0.5264389", "0.5251589", "0.52509993", "0.5236178", "0.5215345", "0.52050996", "0.5198909", "0.519751", "0.5184284", "0.51796573", "0.5176098", "0.5175543", "0.5167786", "0.5167611", "0.51573694", "0.51538575", "0.5153446", "0.514998", "0.5149726", "0.5143244", "0.513691", "0.5127408", "0.5120696", "0.51142526", "0.51139826", "0.5113496", "0.5111521", "0.51094353", "0.5107935", "0.5099645", "0.5082441", "0.5079569", "0.5074436", "0.50742376", "0.50584066", "0.50547683", "0.50400907", "0.5038609", "0.502907", "0.5026656", "0.5025724", "0.50194794", "0.5018892", "0.5014065", "0.5010502", "0.5010452", "0.50088966", "0.5008227", "0.4998796", "0.49983567", "0.4996783", "0.49924627", "0.4987014", "0.49854448", "0.49828887", "0.49804726", "0.49784714", "0.49782732", "0.49779746", "0.49736267", "0.4969705", "0.49669158", "0.49593887", "0.49552968", "0.49481037", "0.49424347", "0.49306834", "0.4928434", "0.4927644", "0.49204066", "0.49202052", "0.4913099", "0.4911796", "0.4911034", "0.49093097", "0.4908789", "0.4907139", "0.49065775", "0.49053758", "0.49028987", "0.49006543", "0.48961988", "0.48950735", "0.48943773", "0.4893408" ]
0.5485056
7