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
Verify is object is equal to this AbsorberInfo.
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj instanceof AbsorberInfo) { return ((AbsorberInfo) obj).absorber == absorber; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "public boolean eq...
[ "0.6658906", "0.66270715", "0.65986484", "0.65181756", "0.6424391", "0.64228094", "0.64119714", "0.63973033", "0.63678515", "0.6356584", "0.628636", "0.62790716", "0.62727714", "0.6210926", "0.6199248", "0.61782545", "0.6175177", "0.61645633", "0.6160269", "0.61283994", "0.61...
0.72465515
0
Return the Identifier of the absorber L2Character.
@Override public int hashCode() { return absorber.getObjectId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getIdentifier();", "int getIdentifier();", "public char getId() {\n return id;\n }", "long getLetterId();", "long getLetterId();", "public char getId() {\n return this.id;\n }", "public int getIdentifier();", "String getIdentifier();", "String getIdentifier();",...
[ "0.66616374", "0.6420981", "0.6405575", "0.6355067", "0.6355067", "0.6335264", "0.6335245", "0.6302969", "0.6302969", "0.6302969", "0.6302969", "0.6302969", "0.6302969", "0.6302969", "0.62942684", "0.6285131", "0.6260383", "0.62189543", "0.62179846", "0.6217972", "0.61548567"...
0.0
-1
Use this to Read or Put Object to this Map
public final Map<L2Character, AggroInfoHolder> getAggroListRP() { return aggroList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object objectAt(Position position){\n return mapElement.get(position);\n }", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "public boolean put( KEY key, OBJECT object );", "private void readObject() {\n }", "@Override\r\n\tpublic void ...
[ "0.5860858", "0.5758766", "0.5758766", "0.5758766", "0.5735213", "0.5538603", "0.5525569", "0.54782397", "0.54042804", "0.5344171", "0.5302494", "0.5269298", "0.5268798", "0.5264201", "0.5226172", "0.5214399", "0.5212721", "0.5197118", "0.5185006", "0.5182254", "0.516455", ...
0.0
-1
Use this to Remove Object from this Map This Should be Synchronized While Interacting over This Map ie u cant Interacting and removing object at once
public final Map<L2Character, AggroInfoHolder> getAggroList() { return aggroList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void removeFromMap();", "public Object remove(Map<Prop, Object> map) {\n return map.remove(this);\n }", "public void removeMapObject(MapObject obj) {\n markers.remove(obj);\n if(internalNative != null) {\n internalNative.removeMapElement(obj.mapKey);\n } else...
[ "0.7469888", "0.7224101", "0.72113115", "0.7104335", "0.7086421", "0.6981843", "0.6928267", "0.6928131", "0.6878325", "0.6873314", "0.6788494", "0.6786999", "0.6759932", "0.6753934", "0.6753934", "0.6748727", "0.6737371", "0.67203766", "0.6717708", "0.67157364", "0.669512", ...
0.0
-1
Constructor of L2Attackable (use L2Character and L2NpcInstance constructor). Actions : Call the L2Character constructor to set the template of the L2Attackable (copy skills from template to object and link calculators to NPC_STD_CALCULATOR) Set the name of the L2Attackable Create a RandomAnimation Task that will be lau...
public L2Attackable(final int objectId, final L2NpcTemplate template) { super(objectId, template); getKnownList(); // init knownlist mustGiveExpSp = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public L2FortCommanderInstance(L2NpcTemplate template)\n\t{\n\t\tsuper(template);\n\t\tsetInstanceType(InstanceType.L2FortCommanderInstance);\n\t\t_canTalk = true;\n\t}", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n ...
[ "0.60049176", "0.5800527", "0.5691604", "0.5609265", "0.554044", "0.550708", "0.5444377", "0.54387033", "0.5428253", "0.5412384", "0.5348875", "0.53149855", "0.52921486", "0.526878", "0.5265499", "0.52493805", "0.52313614", "0.52157664", "0.5208797", "0.5208277", "0.52014583"...
0.65544176
0
Return the L2Character AI of the L2Attackable and if its null create a new one.
@Override public L2CharacterAI getAI() { if (aiCharacter == null) { synchronized (this) { if (aiCharacter == null) { aiCharacter = new L2AttackableAI(new AIAccessor()); } } } return aiCharacter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public L2Attackable getActiveChar() { return (L2Attackable)super.getActiveChar(); }", "private EntityLivingBase findPlayerToAttack() {\n EntityPlayer player = entity.worldObj.getClosestVulnerablePlayerToEntity(entity, aggroRange);\n if ( player != null && !player.capabilities.isCreat...
[ "0.6729918", "0.53751826", "0.52467126", "0.5245199", "0.5175181", "0.5162183", "0.513882", "0.511311", "0.50704736", "0.50466967", "0.5022408", "0.5016767", "0.50057375", "0.49423742", "0.49373397", "0.49278", "0.48950127", "0.4886383", "0.48793748", "0.48514676", "0.4840854...
0.74776626
0
get condition to hate, actually isAggressive() is checked by monster and karma by guards in motheds that overwrite this one. Not used.
@Deprecated public boolean getCondition2(final L2Character target) { if (target instanceof L2FolkInstance || target instanceof L2DoorInstance) { return false; } if (target.isAlikeDead() || !isInsideRadius(target, getAggroRange(), false, false) || Math.abs(getZ() - target.getZ()) > 100) { return fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkIfHungry(){\r\n\t\tif (myRC.getEnergonLevel() * 2.5 < myRC.getMaxEnergonLevel()) {\r\n\t\t\tmission = Mission.HUNGRY;\r\n\t\t}\r\n\t}", "int getMinigameDefenseChancesLeft();", "@Override\r\n\tpublic boolean isAggressive() {\n\t\treturn true;\r\n\t}", "public ASTNode getCondition() {\n \t...
[ "0.65522695", "0.6136676", "0.5999195", "0.5987002", "0.5892547", "0.58727235", "0.5832334", "0.58311945", "0.582121", "0.58099467", "0.56982386", "0.56968546", "0.56968546", "0.56968546", "0.56968546", "0.56968546", "0.56885", "0.5685273", "0.5674794", "0.5670891", "0.566365...
0.0
-1
Reduce the current HP of the L2Attackable.
@Override public void reduceCurrentHp(final double damage, final L2Character attacker) { reduceCurrentHp(damage, attacker, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reduceHealth(int damage){\n health -= damage;\n }", "public void reduceHealth() {\n\t}", "public void decreaseHealth(int hp) {\n this.decreaseLife();\n }", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "private void strengthen(floa...
[ "0.6993864", "0.69858724", "0.6928838", "0.6896141", "0.68353575", "0.676236", "0.67208236", "0.6652757", "0.6635197", "0.66351813", "0.662031", "0.6602824", "0.6498625", "0.64831567", "0.6461138", "0.6419254", "0.63821155", "0.6366195", "0.62792987", "0.6257233", "0.62550974...
0.706055
0
Reduce the current HP of the L2Attackable, update its aggroList and launch the doDie Task if necessary.
@Override public void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake) { /* * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player L...
[ "0.6549416", "0.62663835", "0.6251998", "0.6176661", "0.6165011", "0.61000764", "0.6075032", "0.6067762", "0.60612345", "0.6049582", "0.60486835", "0.6017559", "0.60147285", "0.6007432", "0.59774864", "0.59561384", "0.59395856", "0.59330857", "0.59287727", "0.5912919", "0.590...
0.6824012
0
Kill the L2Attackable (the corpse disappeared after 7 seconds), distribute rewards (EXP, SP, Drops...) and notify Quest Engine. Actions : Distribute Exp and SP rewards to L2PcInstance (including Summon owner) that hit the L2Attackable and to their Party members Notify the Quest Engine of the L2Attackable death if neces...
@Override public boolean doDie(final L2Character killer) { // Kill the L2NpcInstance (the corpse disappeared after 7 seconds) if (!super.doDie(killer)) { return false; } // Enhance soul crystals of the attacker if this L2Attackable had its soul absorbed try { if (killer instanceof L2PcInstance)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onDeath(final Creature killer) {\n getDeathPenalty().checkCharmOfLuck();\n\n if (isInStoreMode()) {\n setPrivateStoreType(Player.STORE_PRIVATE_NONE);\n }\n if (isProcessingRequest()) {\n final Request request = getRequest();\n ...
[ "0.639491", "0.611533", "0.60826015", "0.5911677", "0.5827148", "0.57843685", "0.5708848", "0.5645696", "0.56363577", "0.5636033", "0.5631186", "0.56264216", "0.5616197", "0.5609375", "0.56041515", "0.554079", "0.55150443", "0.5499494", "0.5458649", "0.5451369", "0.5436238", ...
0.72728777
0
Distribute Exp and SP rewards to L2PcInstance (including Summon owner) that hit the L2Attackable and to their Party members. Actions : Get the L2PcInstance owner of the L2SummonInstance (if necessary) and L2Party in progress Calculate the Experience and SP rewards in function of the level difference Add Exp and SP rewa...
@Override protected void calculateRewards(final L2Character lastAttacker) { // Creates an empty list of rewards final Map<L2Character, RewardInfoHolder> rewards = new ConcurrentHashMap<>(); try { if (getAggroListRP().isEmpty()) { return; } if (EngineModsManager.onNpcExpSp(this, lastAtta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake)\n\t{\n\t\t/*\n\t\t * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.Ef...
[ "0.6425514", "0.62369215", "0.59717673", "0.5821983", "0.58141315", "0.57949156", "0.5668893", "0.5655456", "0.5645439", "0.5616787", "0.55570334", "0.5535408", "0.54531246", "0.5441185", "0.5397732", "0.5361874", "0.53267276", "0.53246075", "0.53117305", "0.5297498", "0.5276...
0.6371221
1
Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList.
public void addDamage(final L2Character attacker, final int damage) { addDamageHate(attacker, damage, damage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDamageHate(final L2Character attacker, final int damage, int aggro)\n\t{\n\t\tif (attacker == null /* || aggroList == null */)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the AggroInfo of the attacker L2Character from the aggroList of the L2Attackable\n\t\tAggroInfoHolder ai = getAggroListRP().ge...
[ "0.7878615", "0.57070976", "0.5693362", "0.56562793", "0.5603274", "0.55683935", "0.5544843", "0.5498308", "0.5480298", "0.5477514", "0.54508567", "0.543987", "0.54165876", "0.53099364", "0.52890766", "0.52858186", "0.5273309", "0.525662", "0.52524143", "0.5245641", "0.521884...
0.62557495
1
Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList.
public void addDamageHate(final L2Character attacker, final int damage, int aggro) { if (attacker == null /* || aggroList == null */) { return; } // Get the AggroInfo of the attacker L2Character from the aggroList of the L2Attackable AggroInfoHolder ai = getAggroListRP().get(attacker); if (ai == n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDamage(final L2Character attacker, final int damage)\n\t{\n\t\taddDamageHate(attacker, damage, damage);\n\t}", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "@Override\n\tpublic void onDam...
[ "0.6253089", "0.57068497", "0.56932586", "0.5654625", "0.5603246", "0.55689013", "0.55460656", "0.55005455", "0.5480614", "0.547901", "0.5450687", "0.54407215", "0.5416241", "0.5311458", "0.5289254", "0.52837044", "0.5273938", "0.5257808", "0.5253196", "0.524466", "0.5218901"...
0.7877994
0
Clears aggroList hate of the L2Character without removing from the list.
public void stopHating(final L2Character target) { if (target == null) { return; } AggroInfoHolder ai = getAggroListRP().get(target); if (ai == null) { return; } ai.initHate(); ai = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearAggroList()\n\t{\n\t\tgetAggroList().clear();\n\t}", "public void clear() {\n\t\tlist = new ArrayList<String>();\n\t\tword = \"\";\n\t}", "public void clear() {\n\t\twordList.removeAll(wordList);\n\t\t// TODO Add your code here\n\t}", "public void clear()\n {\n int llSize = ll.getS...
[ "0.6956726", "0.6444667", "0.6303779", "0.61941636", "0.6161129", "0.6115258", "0.6102887", "0.6066528", "0.6064297", "0.6046399", "0.6042214", "0.5957658", "0.59415174", "0.592727", "0.59178734", "0.5907068", "0.5898708", "0.5875746", "0.5857685", "0.58546567", "0.5842831", ...
0.0
-1
Return the most hated L2Character of the L2Attackable aggroList.
public L2Character getMostHated() { if (getAggroListRP().isEmpty() || isAlikeDead()) { return null; } L2Character mostHated = null; int maxHate = 0; // While Interating over This Map Removing Object is Not Allowed synchronized (getAggroList()) { // Go through the aggroList of the L2Attac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public L2Attackable getActiveChar() { return (L2Attackable)super.getActiveChar(); }", "public int getHighestCombatSkill() {\r\n int id = 0;\r\n int last = 0;\r\n for (int i = 0; i < 5; i++) {\r\n if (staticLevels[i] > last) {\r\n last = staticLevels[i...
[ "0.57924193", "0.5665993", "0.55168515", "0.5453197", "0.5447771", "0.54119694", "0.5279055", "0.52390933", "0.5226832", "0.5214235", "0.5189402", "0.51391935", "0.512775", "0.5062459", "0.50322175", "0.5028178", "0.5026982", "0.5022714", "0.5020893", "0.5005502", "0.49839744...
0.7883218
0
Return the hate level of the L2Attackable against this L2Character contained in aggroList.
public int getHating(final L2Character target) { if (getAggroListRP().isEmpty()) { return 0; } if (target == null) { return 0; } final AggroInfoHolder ai = getAggroListRP().get(target); if (ai == null) { return 0; } if (ai.getAttacker() instanceof L2PcInstance && (((L2PcInsta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public L2Character getMostHated()\n\t{\n\t\tif (getAggroListRP().isEmpty() || isAlikeDead())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tL2Character mostHated = null;\n\t\t\n\t\tint maxHate = 0;\n\t\t\n\t\t// While Interating over This Map Removing Object is Not Allowed\n\t\tsynchronized (getAggroList())\n\t\t{\n...
[ "0.6761041", "0.6602746", "0.6145217", "0.5885253", "0.58129644", "0.579856", "0.57004243", "0.56867075", "0.56727976", "0.5605665", "0.55823255", "0.5542653", "0.55149317", "0.5495888", "0.54808366", "0.54729646", "0.54633737", "0.5461576", "0.54544854", "0.5447577", "0.5444...
0.64842516
2
Calculates quantity of items for specific drop according to current situation
private RewardItem calculateRewardItem(final L2PcInstance lastAttacker, final L2DropData drop, final int levelModifier, final boolean isSweep) { // Get default drop chance if (Config.HIGH_RATE_SERVER_DROPS && !drop.isQuestDrop() && drop.getItemId() != 57) { // it's not adena-->check if drop has an epic jewel ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desi...
[ "0.6781937", "0.6726248", "0.6618588", "0.6543516", "0.6441358", "0.6347291", "0.63443696", "0.6277721", "0.6268163", "0.6264969", "0.62472206", "0.61496145", "0.6133411", "0.61322814", "0.6102423", "0.6095655", "0.60607773", "0.60607773", "0.6014374", "0.59972245", "0.594869...
0.0
-1
Calculates quantity of items for specific drop CATEGORY according to current situation Only a max of ONE item from a category is allowed to be dropped.
private RewardItem calculateCategorizedRewardItem(final L2PcInstance lastAttacker, final L2DropCategory categoryDrops, final int levelModifier) { if (categoryDrops == null) { return null; } if (Config.HIGH_RATE_SERVER_DROPS && categoryDrops.getCategoryType() != 0) { // it's not adena-->check if drop is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desi...
[ "0.59103185", "0.583256", "0.5490521", "0.54235584", "0.5349764", "0.5271871", "0.52295715", "0.5227547", "0.5173027", "0.5163563", "0.51481926", "0.5120615", "0.5120334", "0.5080378", "0.5071983", "0.50662047", "0.5065558", "0.5064843", "0.5043306", "0.50280845", "0.50057924...
0.568675
2
Calculates the level modifier for drop
private int calculateLevelModifierForDrop(final L2PcInstance lastAttacker) { if (Config.DEEPBLUE_DROP_RULES) { int highestLevel = lastAttacker.getLevel(); // Check to prevent very high level player to nearly kill mob and let low level player do the last hit. if (getAttackByList() != null && !getAttack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double Getlevel()\r\n {\r\n return level;\r\n }", "double getLevel();", "double getLevel();", "private int getDodgeTime() {\n\t\treturn 10 - level;\n\t}", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel()...
[ "0.6267184", "0.6219422", "0.6219422", "0.60582125", "0.5982128", "0.5982128", "0.5967598", "0.5967598", "0.59124786", "0.59074736", "0.5866724", "0.5837642", "0.58186245", "0.57907325", "0.57907325", "0.57907325", "0.57907325", "0.57907325", "0.57796913", "0.57796913", "0.57...
0.7101567
0
Manage Base, Quests and Special Events drops of L2Attackable (called by calculateRewards). Concept : During a Special Event all L2Attackable can drop extra Items. Those extra Items are defined in the table allNpcDateDrops of the EventDroplist. Each Special Event has a start and end date to stop to drop extra Items auto...
public void doItemDrop(final L2NpcTemplate npcTemplate, final L2Character lastAttacker) { L2PcInstance player = null; if (lastAttacker instanceof L2PcInstance) { player = (L2PcInstance) lastAttacker; } else if (lastAttacker instanceof L2Summon) { player = ((L2Summon) lastAttacker).getOwner(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doEventDrop(final L2Character lastAttacker)\n\t{\n\t\tL2PcInstance player = null;\n\t\t\n\t\tif (lastAttacker instanceof L2PcInstance)\n\t\t{\n\t\t\tplayer = (L2PcInstance) lastAttacker;\n\t\t}\n\t\telse if (lastAttacker instanceof L2Summon)\n\t\t{\n\t\t\tplayer = ((L2Summon) lastAttacker).getOwner();\...
[ "0.6963535", "0.65014786", "0.62263685", "0.62168723", "0.6155442", "0.6087796", "0.6060997", "0.60598767", "0.5985755", "0.59709036", "0.5953854", "0.5950818", "0.59334403", "0.59198123", "0.5898832", "0.58516634", "0.5842716", "0.5817982", "0.5816051", "0.5800771", "0.57658...
0.6710514
1
Manage Special Events drops created by GM for a defined period. Concept : During a Special Event all L2Attackable can drop extra Items. Those extra Items are defined in the table allNpcDateDrops of the EventDroplist. Each Special Event has a start and end date to stop to drop extra Items automaticaly. Actions : If an e...
public void doEventDrop(final L2Character lastAttacker) { L2PcInstance player = null; if (lastAttacker instanceof L2PcInstance) { player = (L2PcInstance) lastAttacker; } else if (lastAttacker instanceof L2Summon) { player = ((L2Summon) lastAttacker).getOwner(); } if (player == null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@EventHandler\r\n public void mobkillLst(EntityDeathEvent event) {\r\n if (event.getEntity().getKiller() instanceof Player && event.getEntity().getType() != EntityType.PLAYER) {//Ensure entity that is killed is not a player\r\n int xpmult = (int) (event.getDroppedExp() * main.XPMult);\r\n ...
[ "0.61209935", "0.6092078", "0.6047468", "0.59486824", "0.5936021", "0.5915317", "0.59131426", "0.5855778", "0.5711046", "0.57031953", "0.5667749", "0.5643615", "0.5631803", "0.5614704", "0.5608842", "0.55895233", "0.558738", "0.5576501", "0.55230874", "0.5505048", "0.55011517...
0.6604468
0
Return True if the aggroList of this L2Attackable is Empty.
public boolean noTarget() { return getAggroListRP().isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\n return list.isEmpty();\n }", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "@Override\n\tpublic ...
[ "0.723608", "0.7201575", "0.7194946", "0.7169504", "0.7169504", "0.7112343", "0.710345", "0.71030253", "0.7066475", "0.69840324", "0.6973111", "0.6970594", "0.6963364", "0.690089", "0.68712425", "0.68623483", "0.6861794", "0.6855772", "0.6854823", "0.6852441", "0.685209", "...
0.67555153
29
Return True if the aggroList of this L2Attackable contains the L2Character.
public boolean containsTarget(final L2Character player) { return getAggroListRP().containsKey(player); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCollition(Sprite sprite2) {\n if (this.x < sprite2.getX() + sprite2.getAncho() &&\n this.x + this.ancho > sprite2.getX() &&\n this.y + this.alto > sprite2.getY() &&\n this.y < sprite2.getY() + sprite2.getAlto()) {\n return true;\n\n ...
[ "0.5774886", "0.55752206", "0.54482347", "0.5396216", "0.5359225", "0.5348576", "0.5337617", "0.5324676", "0.5323021", "0.52447766", "0.5223567", "0.52128977", "0.52103364", "0.5192285", "0.51474905", "0.5126493", "0.51250833", "0.51250833", "0.51250833", "0.51250833", "0.512...
0.5899961
0
Clear the aggroList of the L2Attackable.
public void clearAggroList() { getAggroList().clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\r\n GiftList.clear();\r\n names = new LinkedList<>();\r\n totalGifts = 0;\r\n totalCost = 0;\r\n }", "public void clearGameList() {\n gameJList.removeAll();\n }", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "public void Reset()\n {\n ...
[ "0.65611553", "0.6403898", "0.6386481", "0.61763394", "0.61536276", "0.61526644", "0.61196786", "0.6102603", "0.60607433", "0.6053637", "0.6030228", "0.60182023", "0.60174745", "0.5997104", "0.59699076", "0.5969349", "0.5965639", "0.59626824", "0.59438545", "0.59262717", "0.5...
0.81929934
0
Return table containing all L2ItemInstance that can be spoiled.
public synchronized RewardItem[] takeSweep() { final RewardItem[] sweep = sweepItems; sweepItems = null; return sweep; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Pile> getPiles() {\n \t\treturn mTable;\n \n \t}", "public HashMap<String, List<OwnedWarp>> getTable() {\n return warps;\n }", "public List<FreeColGameObject> disposeList() {\n List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();\n if (owner != null\n...
[ "0.5292667", "0.5125101", "0.49352247", "0.48597428", "0.47924435", "0.47485077", "0.47098747", "0.47015968", "0.46942502", "0.4674625", "0.46691558", "0.4646681", "0.46427965", "0.4601528", "0.45721665", "0.45614836", "0.4556481", "0.45556808", "0.45517057", "0.45480728", "0...
0.0
-1
Return table containing all L2ItemInstance that can be harvested.
public synchronized RewardItem[] takeHarvest() { final RewardItem[] harvest = harvestItems; harvestItems = null; return harvest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Item> getAllItemsAvailable();", "public HashMap<String, List<OwnedWarp>> getTable() {\n return warps;\n }", "@Override\r\n\tpublic List<Item> getAllHomework() {\n\t\t\r\n\t\treturn itemdao.find(\"from Item\");\r\n\t}", "@Override\n\tpublic List<Equipment> getAllAviableEquipmet() {\n\t\t...
[ "0.53504896", "0.5081523", "0.50028044", "0.49394208", "0.49358892", "0.49227843", "0.48134187", "0.48029023", "0.47501117", "0.47375134", "0.47159296", "0.46727654", "0.46352026", "0.46347207", "0.46089983", "0.4607921", "0.45722046", "0.45719698", "0.45673293", "0.45638186", ...
0.45322308
22
Set the overhit flag on the L2Attackable.
public void overhitEnabled(final boolean status) { overhit = status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOverhitValues(final L2Character attacker, final double damage)\n\t{\n\t\t// Calculate the over-hit damage\n\t\t// Ex: mob had 10 HP left, over-hit skill did 50 damage total, over-hit damage is 40\n\t\tfinal double overhitDmg = (getCurrentHp() - damage) * -1;\n\t\t\n\t\tif (overhitDmg < 0)\n\t\t{\n\t...
[ "0.6440863", "0.6307259", "0.60652065", "0.59756804", "0.59407073", "0.5843168", "0.58423376", "0.5839889", "0.5813153", "0.58041537", "0.579936", "0.5718201", "0.56611526", "0.56418896", "0.562023", "0.5575406", "0.5563217", "0.5541754", "0.55378634", "0.55223", "0.55077964"...
0.65335584
0
Set the overhit values like the attacker who did the strike and the ammount of damage done by the skill.
public void setOverhitValues(final L2Character attacker, final double damage) { // Calculate the over-hit damage // Ex: mob had 10 HP left, over-hit skill did 50 damage total, over-hit damage is 40 final double overhitDmg = (getCurrentHp() - damage) * -1; if (overhitDmg < 0) { // we didn't killed the m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void hit(int atk) {\n hp = hp - atk;\n }", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n c...
[ "0.65316916", "0.64875054", "0.6449281", "0.6423179", "0.64082944", "0.63147247", "0.62927943", "0.6254014", "0.62466556", "0.62349564", "0.623406", "0.6207314", "0.620008", "0.61048466", "0.607237", "0.60505205", "0.6046316", "0.6041021", "0.60337925", "0.59936666", "0.59836...
0.7886039
0
Return the L2Character who hit on the L2Attackable using an overhit enabled skill.
public L2Character getOverhitAttacker() { return overhitAttacker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public L2Attackable getActiveChar() { return (L2Attackable)super.getActiveChar(); }", "public void attackTargetCharacter() {\n }", "protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != ...
[ "0.6737502", "0.60612655", "0.57957137", "0.5725078", "0.56201184", "0.5612858", "0.55523247", "0.54997015", "0.54799134", "0.54765344", "0.5424988", "0.5410128", "0.53980947", "0.5387573", "0.5366997", "0.5364826", "0.53529054", "0.53452754", "0.5315492", "0.5262496", "0.525...
0.72026527
0
Return the ammount of damage done on the L2Attackable using an overhit enabled skill.
public double getOverhitDamage() { return overhitDamage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int calculateAttack() {\n int attack = 0;\n for (Weapon w : equippedWeapons) {\n attack += w.getType().getDamage();\n }\n return attack;\n }", "public int computeDamageTo(Combatant opponent) { return 0; }", "public int getDamageTaken() {\n return this.damageT...
[ "0.6874811", "0.684529", "0.66867", "0.66321605", "0.66321605", "0.66321605", "0.66321605", "0.66321605", "0.6574335", "0.6573438", "0.6572234", "0.6554478", "0.6525842", "0.6521919", "0.651336", "0.6508497", "0.6485581", "0.6485506", "0.6451041", "0.6433585", "0.6410862", ...
0.72050834
0
Return True if the L2Attackable was hit by an overhit enabled skill.
public boolean isOverhit() { return overhit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "boolean isGameOver() {\n\t\treturn Hit;\n\t}", "public boolean attackAlly(Ally target) {\n\t\tLog.d(TAG, \"Attacking!\");\n\t\tif (target.takeDamage(damage)) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "publi...
[ "0.61549515", "0.60413224", "0.6030004", "0.60061675", "0.599668", "0.59963167", "0.59704256", "0.5942161", "0.5941636", "0.5914499", "0.5883908", "0.5881669", "0.58655065", "0.5834891", "0.5816808", "0.5774513", "0.57628727", "0.57587713", "0.5750093", "0.5748531", "0.574853...
0.72763455
0
Activate the absorbed soul condition on the L2Attackable.
public void absorbSoul() { absorbed = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "public void activateShield() {\n shield.activate();\n }", "public void attack() {\n this.attacked = true;\n }", "public void activate() {\n\t\t// set cooldown c...
[ "0.60022086", "0.59808284", "0.5895166", "0.5869993", "0.58539796", "0.5795417", "0.5792679", "0.5704443", "0.56872755", "0.56867313", "0.5675921", "0.5669876", "0.5662793", "0.56623113", "0.56233335", "0.5610221", "0.5610138", "0.55756706", "0.557484", "0.55587643", "0.55379...
0.5870249
3
Return True if the L2Attackable had his soul absorbed.
public boolean isAbsorbed() { return absorbed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean attackAlly(Ally target) {\n\t\tLog.d(TAG, \"Attacking!\");\n\t\tif (target.takeDamage(damage)) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != n...
[ "0.6447066", "0.63121957", "0.622723", "0.615383", "0.61070067", "0.6083449", "0.6076714", "0.605486", "0.6047523", "0.6047523", "0.6047523", "0.6047523", "0.6047523", "0.6039982", "0.6032416", "0.6004265", "0.5986198", "0.5967587", "0.59665674", "0.5964459", "0.5940768", "...
0.57608515
38
Adds an attacker that successfully absorbed the soul of this L2Attackable into the absorbersList.
public void addAbsorber(final L2PcInstance attacker, final int crystalId) { // This just works for targets like L2MonsterInstance if (!(this instanceof L2MonsterInstance)) { return; } // The attacker must not be null if (attacker == null) { return; } // This L2Attackable must be of one ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addAttacks(){\n while(!attacksToAdd.isEmpty()){\n attacks.add(attacksToAdd.remove());\n }\n }", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "void addAttack(AttackObject newAttack) {\n if (canAddAttack(newAttack)) {\n attac...
[ "0.6045562", "0.57377803", "0.561977", "0.5564495", "0.5469911", "0.53875315", "0.5354545", "0.5354287", "0.5309625", "0.5258605", "0.52385294", "0.5215532", "0.5214745", "0.521199", "0.51829696", "0.5164637", "0.5152156", "0.5142121", "0.50700283", "0.5069423", "0.5044767", ...
0.6840209
0
Calculate the leveling chance of Soul Crystals based on the attacker that killed this L2Attackable
private void levelSoulCrystals(final L2Character attacker) { // Only L2PcInstance can absorb a soul if (!(attacker instanceof L2PcInstance) && !(attacker instanceof L2Summon)) { resetAbsorbList(); return; } final int maxAbsorbLevel = getAbsorbLevel(); int minAbsorbLevel = 0; // If this is not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double calcBlowDamage(L2Character attacker, L2Character target, L2Skill skill, byte shld, double ssBonus)\n\t{\n\n\t\tdouble pAtk = attacker.calcStat(Stats.CRITICAL_ATTACK, attacker.getPAtk(target), target, skill);\n\t\tdouble levelMod = attacker.getLevelMod();\n\t\tdouble power = skill.getPower(targ...
[ "0.6382537", "0.63050455", "0.63035935", "0.6296359", "0.6289845", "0.62338114", "0.6221537", "0.6187683", "0.61292464", "0.6127409", "0.6105961", "0.61034566", "0.6100671", "0.607481", "0.6074772", "0.60527086", "0.6045608", "0.6032061", "0.60280037", "0.60207665", "0.601296...
0.728483
0
Calculate the Experience and SP to distribute to attacker (L2PcInstance, L2SummonInstance or L2Party) of the L2Attackable.
private int[] calculateExpAndSp(int diff, final int damage) { double xp; double sp; if (diff < -5) { diff = -5; // makes possible to use ALT_GAME_EXPONENT configuration } xp = (double) getExpReward() * damage / getMaxHp(); if (Config.ALT_GAME_EXPONENT_XP != 0) { xp *= Math.pow(2., -diff ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void calculateRewards(final L2Character lastAttacker)\n\t{\n\t\t// Creates an empty list of rewards\n\t\tfinal Map<L2Character, RewardInfoHolder> rewards = new ConcurrentHashMap<>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (getAggroListRP().isEmpty())\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t...
[ "0.5578145", "0.5419452", "0.5185114", "0.51287323", "0.51254195", "0.5104775", "0.5071988", "0.5060231", "0.5028599", "0.5009802", "0.495497", "0.4950991", "0.494645", "0.49440795", "0.49396473", "0.49135995", "0.4904655", "0.48987237", "0.4881772", "0.48754528", "0.48670587...
0.53946805
2
Get the percentage based on the total of extra (overhit) damage done relative to the total (maximum) ammount of HP on the L2Attackable
public long calculateOverhitExp(final long normalExp) { double overhitPercentage = getOverhitDamage() * 100 / getMaxHp(); // Over-hit damage percentages are limited to 25% max if (overhitPercentage > 25) { overhitPercentage = 25; } // Get the overhit exp bonus according to the above over-hit damag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getBonusPercentHP();", "public double calculateHpPercent();", "float getPercentHealth();", "public int computeDamageTo(Combatant opponent) { return 0; }", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops =...
[ "0.7670183", "0.7410153", "0.70792925", "0.7032433", "0.6883212", "0.68699485", "0.6693979", "0.6661638", "0.6616283", "0.6575612", "0.6569881", "0.65638226", "0.656035", "0.6529186", "0.6516866", "0.6504652", "0.6477197", "0.6469186", "0.6452572", "0.6439364", "0.64361405", ...
0.66239
8
Sets state of the mob to seeded. Paramets needed to be set before.
public void setSeeded() { if (seedType != 0 && seeder != null) { setSeeded(seedType, seeder.getLevel()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void SetState(VehicleState state) {\n this.state = state;\n }", "private void setMechanicState(MechanicState state) {\r\n if (this.state == state) {\r\n return;\r\n }\r\n this.state = state;\r\n }", "public void setAlive(boolean state) {\n alive = sta...
[ "0.6397018", "0.626632", "0.62382424", "0.6223765", "0.6220844", "0.6158731", "0.6086259", "0.6027284", "0.5970055", "0.59386516", "0.5849457", "0.58247936", "0.58230597", "0.5786157", "0.5760878", "0.5754268", "0.5744269", "0.57413507", "0.57413507", "0.573533", "0.5734382",...
0.56598294
34
Sets the seed parametrs, but not the seed state
public void setSeeded(final int id, final L2PcInstance seeder) { if (!seeded) { seedType = id; this.seeder = seeder; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeed(int seed){\n this.seed = seed; \n }", "void setSeed(long seed);", "void setSeed(final long seed);", "@Override\n public void setSeed(final int seed) {\n int counterMask = 3;\n int[] status = new int[4];\n status[0] = seed;\n status[1] = paramet...
[ "0.76441467", "0.7322818", "0.7202477", "0.7174534", "0.71510655", "0.71022844", "0.7034591", "0.68331605", "0.67429614", "0.67337096", "0.67200124", "0.6648712", "0.664758", "0.66268635", "0.65969425", "0.6525766", "0.64659745", "0.64491254", "0.64391845", "0.64024466", "0.6...
0.0
-1
Check if the server allows Random Animation. This is located here because L2Monster and L2FriendlyMob both extend this class. The other nonpc instances extend either L2NpcInstance or L2MonsterInstance.
@Override public boolean hasRandomAnimation() { return Config.MAX_MONSTER_ANIMATION > 0 && !(this instanceof L2GrandBossInstance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isRandom(){\r\n\t\treturn isRandom;\r\n\t}", "public abstract boolean isRandom();", "private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\...
[ "0.60476166", "0.589597", "0.56022805", "0.5562677", "0.54478264", "0.5436237", "0.5423398", "0.54026395", "0.5401558", "0.5270961", "0.52701014", "0.5269203", "0.52326524", "0.5214628", "0.52013075", "0.51999015", "0.517678", "0.5127282", "0.50901294", "0.5086948", "0.50766"...
0.7392087
0
Add One To Number Problem Description Given a nonnegative number represented as an array of digits, add 1 to the number ( increment the number represented by the digits ). The digits are stored such that the most significant digit is at the head of the list. NOTE: Certain things are intentionally left unclear in this q...
public static void main(String[] args) { int arr[] = { 0, 3, 7, 6, 4, 0, 5, 5, 5 }; plusOne(arr); plusOne1(new ArrayList<Integer>(Arrays.asList(0, 3, 7, 6, 4, 0, 5, 5, 5))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] plusOne(int[] digits) {\n\n if(digits==null || digits.length==0){\n return digits;\n }\n\n int carry =1;\n\n for(int i= digits.length-1;i>=0;i--){\n int sum = digits[i]+ carry;\n if(sum>=10){\n carry =1;\n }else\n ...
[ "0.7427237", "0.7336321", "0.72996575", "0.72180974", "0.71509916", "0.70845586", "0.7079726", "0.696575", "0.6790219", "0.64945126", "0.6063319", "0.59304833", "0.5723381", "0.5722884", "0.56191474", "0.56039363", "0.5495289", "0.5468478", "0.54603624", "0.5444913", "0.54325...
0.5570675
16
Constructor setting just the message.
public ServerMessage(String message) { this.message = message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message() {\n\t\tsuper();\n\t}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "public Message(){}", "public Message() {}", "public Message() {}", "public Message(...
[ "0.79360473", "0.78262585", "0.779054", "0.769326", "0.7564121", "0.7564121", "0.7527258", "0.75064313", "0.75064313", "0.7402559", "0.73077303", "0.7303897", "0.7248638", "0.7234002", "0.7219816", "0.71476495", "0.7115503", "0.7088212", "0.707409", "0.70706844", "0.7030965",...
0.68865854
27
Constructor just the message and board.
public ServerMessage(String message, Board board) { this.message = message; this.board = board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(){}", "public Message() {\n\t\tsuper();\n\t}", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public Message() {\n }", "public Message() {\n }", "public Message() {\n }", "public Message() {}", "public Message() {}", "public JumbleBoard()\n {\n }", "public ImMess...
[ "0.72481453", "0.71406674", "0.7118803", "0.7116348", "0.7104827", "0.7104827", "0.70789456", "0.70789456", "0.70307314", "0.69658047", "0.692624", "0.69203454", "0.68716747", "0.6832576", "0.6788412", "0.674996", "0.67453796", "0.6739742", "0.6739006", "0.67155284", "0.66975...
0.7325126
0
Constructor just the message and status.
public ServerMessage(String message, String status) { this.message = message; this.status = status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }", "public StatusMessage(int code, String message) {\n ...
[ "0.8145835", "0.8145835", "0.78155994", "0.7379072", "0.7308107", "0.7258557", "0.71240956", "0.7093038", "0.7093038", "0.704259", "0.70268995", "0.7021113", "0.7013137", "0.69878423", "0.69878423", "0.6954725", "0.6945382", "0.69394165", "0.692513", "0.690581", "0.68673", ...
0.7381628
3
Constructor just the message and player.
public ServerMessage(String message, Player player) { this.message = message; this.player = player; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(){}", "public Message() {\n\t\tsuper();\n\t}", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "public Message() {\n }", "public Message() {\n }", "public ImMessage() {\r\n }", "public Message() {\n }", "public Message() {}",...
[ "0.7331104", "0.7291653", "0.72884566", "0.72615606", "0.72615606", "0.72603226", "0.72531796", "0.72423637", "0.72423637", "0.714165", "0.6966886", "0.6962798", "0.69437474", "0.6939184", "0.6893356", "0.6889108", "0.6877893", "0.68571925", "0.6856302", "0.6797018", "0.67970...
0.7800709
0
Method to get the exact message.
public String getMessage() { return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTheMessage();", "java.lang.String getMsg();", "Object getMessage();", "public String getMessage(){\n return(message);\n }", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "jav...
[ "0.8536966", "0.8045785", "0.78340733", "0.7823031", "0.7816968", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", "0.7790793", ...
0.0
-1
Method to get the status.
public String getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public Status getStatus();", "public String getStatus () {\r\n return status;\r\n }", "public int getStatus()\n {\n return status;\n ...
[ "0.8634437", "0.8634437", "0.857843", "0.85566664", "0.85139936", "0.8477326", "0.8477326", "0.8477326", "0.8477326", "0.8477326", "0.84763736", "0.8473222", "0.8470247", "0.84584945", "0.8452482", "0.84502923", "0.84400487", "0.84400487", "0.84400487", "0.843686", "0.8432289...
0.0
-1
Method to get the board.
public Board getBoard() { return board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Board getBoard(){\n\t\treturn board;\n\t}", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public Board getBoard ();", "protected Board getBoard() { // nao vou deixar public, vou deixar privado\n\t\treturn board;\n\t}", "public static WildBoard getBoard()\n {\n...
[ "0.8466777", "0.8408734", "0.84054905", "0.8283205", "0.8220366", "0.8215245", "0.8171079", "0.8160813", "0.8160813", "0.8157105", "0.806646", "0.8026628", "0.8026628", "0.79997015", "0.79624856", "0.78900695", "0.7882883", "0.7880713", "0.78638524", "0.7828765", "0.782561", ...
0.81974727
6
Method to get the player.
public Player getPlayer() { return player; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getPlayer() {\r\n return world.getPlayer();\r\n }", "public Player getPlayer()\r\n\t{\r\n\t\treturn mPlayer;\r\n\t}", "public final Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\r\n\t\treturn player;\r\n\t}", "public Player getPlayer() {\n\t\tret...
[ "0.8542545", "0.85092056", "0.8505778", "0.841649", "0.8410961", "0.8367053", "0.83547264", "0.8353832", "0.83325535", "0.83325535", "0.83325535", "0.83325535", "0.83325535", "0.83325535", "0.83325535", "0.8303289", "0.828025", "0.828025", "0.8274137", "0.8225734", "0.8206989...
0.8179261
21
Populate the pets arraylist
private void populatepets(){ pets.add(new Cat("UnNamed")); pets.add(new Cow("UnNamed")); pets.add(new Dog("UnNamed")); pets.add(new Rabbit("UnNamed")); pets.add(new Rat("UnNamed")); pets.add(new Velociraptor("UnNamed")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getPets(){\r\n\t\tfor(Player p : players){\r\n\t\t\tArrayList<Pet> currentpets = new ArrayList<>();\r\n\r\n\t\t\tSystem.out.println(\"How many pets for \" + p.getName() + \": \");\r\n\t\t\tint petnum = getNumber(1,3);\r\n\t\t\tfor(int i = 0; i < petnum; i++){\r\n\t\t\t\tSystem.out.println(\"Pet option...
[ "0.74788165", "0.7128553", "0.65034795", "0.636627", "0.62166476", "0.6179287", "0.6138471", "0.609317", "0.60631937", "0.6042638", "0.60393554", "0.5948945", "0.5914461", "0.5879932", "0.5864538", "0.58525515", "0.58516824", "0.58449626", "0.5781633", "0.5771727", "0.5736889...
0.7526413
0
Keeps Trying for a value between two options.
public int getNumber(int ln, int hn){ System.out.println("Please Enter A Number Between " + ln + " and " + hn); int num = sc.nextInt(); if(num > ln && num < hn){ return num; }else{ while(num < ln || num > hn){ System.out.println("Number was not between " + ln + " and " + hn); System.out.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int correctOption(final String options, final int lastOption) {\n\n// Take int value by user thorough command line\n int option;\n\n// Count the iterations of while loop and show the options again to the user if user has chosen wrong option.\n int loop = 0;\n\n while (tru...
[ "0.5431297", "0.5249994", "0.5086695", "0.5022646", "0.49436575", "0.48967674", "0.48644307", "0.48257625", "0.47754937", "0.47585458", "0.47375986", "0.47360694", "0.47124296", "0.4711856", "0.47097412", "0.46853203", "0.46831426", "0.46653104", "0.46410072", "0.46405253", "...
0.0
-1
Gets the players. No return value, but edits a list.
private void getPlayers() { System.out.println("How Many Players: "); pnum = getNumber(1, 3); for(int i=0; i < pnum; i++){ System.out.println("What is player " + (i + 1) + "'s name? "); String name = sc.next(); boolean dupe = true; while(dupe){ int samecounter = 0; for(Player p : pl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Player> getPlayers();", "@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }", "@Override\n public List<Player> getPlayers() {\n return players;\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public List<Player...
[ "0.81489414", "0.81489134", "0.81304044", "0.7962072", "0.7962072", "0.79062784", "0.7878739", "0.78022283", "0.7774813", "0.7733472", "0.7709327", "0.77087826", "0.7685664", "0.766434", "0.76585495", "0.76458246", "0.7637918", "0.7628428", "0.76126975", "0.7588723", "0.75812...
0.6771411
70
Gets the pets. Again, no return value but edits a list.
private void getPets(){ for(Player p : players){ ArrayList<Pet> currentpets = new ArrayList<>(); System.out.println("How many pets for " + p.getName() + ": "); int petnum = getNumber(1,3); for(int i = 0; i < petnum; i++){ System.out.println("Pet options are:"); int c = 1; //Counter for wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Pets> getPets(){\n DataBase db = new DataBase(context);\n initPets(db);\n return db.getPets();\n }", "public ArrayOfPetModel getPets() {\n return localPets;\n }", "public Collection<VirtualPet> pets() {\n\t\treturn shelterPets.values();\n\t}", "publi...
[ "0.7753982", "0.7148992", "0.6947399", "0.6468138", "0.6368956", "0.62451434", "0.6118168", "0.60786813", "0.59863514", "0.59682435", "0.5946662", "0.59155804", "0.59028554", "0.5902453", "0.5866222", "0.58395326", "0.58335966", "0.58231044", "0.5807222", "0.57766306", "0.576...
0.7157201
1
Feed a pet, given a player.
private void feed(Player p){ System.out.println("What pet would you like to feed?"); ArrayList<Food> foodlist = p.getFood(); int c = 1; for(Pet pet : p.getPets()){ System.out.println(c + ". " + pet.getPetname()); c++; } int selectedpetindex = getNumber(1, p.getPets().size()); Pet select...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean feedPet(String food) {\r\n switch (food) {\r\n case (\"apple\"): {\r\n if ((this.player.getMoney() - apple.getCost()) >= 0) {\r\n player.feed(apple);\r\n return true;\r\n } else {\r\n return fals...
[ "0.6375122", "0.6091629", "0.59282523", "0.586873", "0.56481016", "0.55996543", "0.5595897", "0.5579275", "0.5513693", "0.54844326", "0.5395976", "0.5338195", "0.53216285", "0.5259343", "0.5247835", "0.52366173", "0.5208046", "0.5187004", "0.5185213", "0.51795787", "0.5160376...
0.73928124
0
Play with a pet.
private void play(Player p){ System.out.println("What pet would you like to play with?"); int c = 1; ArrayList<Toy> toys = p.getToys(); for(Pet pet : p.getPets()){ System.out.println(c + ". " + pet.getPetname()); c++; } int selectedpetindex = getNumber(1, p.getPets().size()); Pet selected...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playOne(VirtualPet player) {\n\t\tplayer.playPet();\n\t}", "public void pet() {\n this.hunger += 1;\n this.mood += 1;\n\n if (!muted) {\n System.out.println(\"pet\\t\\t|\\t*purrr*\");\n }\n }", "public void talking(){\n System.out.println(\"PetOwner ...
[ "0.74441373", "0.6894918", "0.671059", "0.6568307", "0.6470529", "0.64614755", "0.64026654", "0.63966787", "0.6368773", "0.6295992", "0.6277741", "0.6250279", "0.6215427", "0.6138985", "0.6114505", "0.6092412", "0.6073087", "0.60559857", "0.605146", "0.6044268", "0.600324", ...
0.76413554
0
Go to the store.
private void storeTrip(Player p){ System.out.println("Welcome to the store!"); System.out.println("Just a reminder, you have $" + p.getMoney() + " to spend!"); System.out.println("Please Select An Option: "); System.out.println("1. Buy Food"); System.out.println("2. Buy Toys"); System.out.println("3. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void navigateToStoreOrders() {\n Intent gotoStoreOrders = new Intent(this, StoreOrdersActivity.class);\n startActivity(gotoStoreOrders);\n }", "@FXML\r\n\tpublic void goToCheckout() {\r\n\t\tViewNavigator.loadScene(\"Checkout\", ViewNavigator.CHECKOUT_SCENE);\r\n\t}", "private void retrieve() ...
[ "0.6445366", "0.62688816", "0.625532", "0.61397815", "0.61171454", "0.61086655", "0.60799193", "0.6011", "0.58925927", "0.5794164", "0.57458127", "0.57186806", "0.56586605", "0.5565751", "0.5534331", "0.54250383", "0.5414188", "0.54095167", "0.54048556", "0.5359651", "0.53591...
0.0
-1
End the day for the player.
private void endDay(Player p){ p.setActions(2); ArrayList<Pet> pets = p.getPets(); for(Pet pet : pets){ pet.nextDay(); } store.nextDay(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endGame() {\n Player player = playerManager.getWinner();\n MainActivity mainActivity = (MainActivity) this.getContext();\n updateLiveComment(\"Winner : \" + player.getName());\n mainActivity.setAlertDialog(player.getName()+\" Wins !\", \"Congratulations\", true);\n }", ...
[ "0.70474917", "0.6781529", "0.6777761", "0.67645544", "0.6745736", "0.67301965", "0.6680288", "0.6678136", "0.66201836", "0.65892017", "0.65762216", "0.6515894", "0.64942104", "0.648551", "0.64851916", "0.64842165", "0.6471328", "0.6461639", "0.6445247", "0.6436303", "0.64302...
0.77968544
0
Day loop for the player.
private void dayLoop(Player p){ //Loop for every day. System.out.println("*******************"); System.out.println("It is now " + p.getName() + "'s turn on this day."); while(p.getActions() > 0){ System.out.println("Choose what you're going to do with the day."); System.out.println(p.getName() + " ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cycleDay() {\r\n player.gametick();\r\n }", "protected void runEachDay() {\n \n }", "private void endDay(Player p){\r\n\t\tp.setActions(2);\r\n\t\tArrayList<Pet> pets = p.getPets();\r\n\t\tfor(Pet pet : pets){\r\n\t\t\tpet.nextDay();\r\n\t\t}\r\n\t\tstore.nextDay();\r\n\t}", "...
[ "0.82210594", "0.75406104", "0.6437104", "0.63342774", "0.62432957", "0.623839", "0.62349594", "0.6210869", "0.612459", "0.6073002", "0.6055034", "0.60478276", "0.6036815", "0.60247153", "0.6021768", "0.6021768", "0.60155946", "0.5977583", "0.5975712", "0.59676564", "0.596267...
0.7801222
1
Created by yasar on 26/3/18.
public interface IMainView extends BaseView { void inflateBottomViewParent(); void moveToHomeWorkActivity(); void moveToAttendanceActivity(); void moveToMoreFragment(); void logout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "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\n...
[ "0.60580546", "0.5892197", "0.5892187", "0.5819224", "0.5773928", "0.5773928", "0.57555157", "0.5734598", "0.5697012", "0.56734246", "0.5662012", "0.5656957", "0.5641303", "0.5630644", "0.5615848", "0.56047875", "0.5582985", "0.55814636", "0.55808264", "0.55698776", "0.556929...
0.0
-1
Interface for crawlglobal registry of CrawlServer (host:port) and CrawlHost (hostname) objects. TODO?: Turn this into an abstract superclass which subsumes the utility methods of ServerCacheUtil.
public interface ServerCache { CrawlHost getHostFor(String host); CrawlServer getServerFor(String serverKey); /** * Utility for performing an action on every CrawlHost. * * @param action 1-argument Closure to apply to each CrawlHost */ void forAllHostsDo(Closure action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Crawler {\n int size();\n boolean visited(String link);\n void addNewLinkToSitemap(String link);\n void addToChildSitemap(String parent, String child);\n void addVisited(String s, Integer depth);\n void startCrawling(String requestid, String link, int maxDepth);\n ForkJoinPool...
[ "0.59359235", "0.56746507", "0.563631", "0.54254293", "0.5425361", "0.541626", "0.541626", "0.5382826", "0.5360224", "0.5359586", "0.53587997", "0.5342503", "0.5334861", "0.5257709", "0.5251223", "0.5227662", "0.5227662", "0.5219283", "0.5210149", "0.52096725", "0.520616", ...
0.69052196
0
Utility for performing an action on every CrawlHost.
void forAllHostsDo(Closure action);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<AcHost> all() throws Throwable;", "public interface ServerCache {\n\n CrawlHost getHostFor(String host);\n \n CrawlServer getServerFor(String serverKey);\n\n\n /**\n * Utility for performing an action on every CrawlHost. \n * \n * @param action 1-argument Closure to apply to each Cra...
[ "0.5669824", "0.5669228", "0.5533583", "0.52144384", "0.5200407", "0.5200407", "0.5043144", "0.50326204", "0.49446785", "0.49445847", "0.49368027", "0.48626432", "0.48240304", "0.4820779", "0.4812504", "0.4781543", "0.4780228", "0.47331402", "0.4721451", "0.4713348", "0.47095...
0.6977488
0
Compares all single values.
public static int compare( Object o1, Object o2 ) { if (o1 == null) return o2 == null ? 0 : -1; if (o2 == null) return 1; Type type1 = getType( o1 ); Type type2 = getType( o2 ); if (type1 != type2) return type1.ordinal() - type2.ordinal(); switch (type1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][]...
[ "0.6177228", "0.6048438", "0.6002315", "0.58520675", "0.5793062", "0.57484686", "0.57234144", "0.5629739", "0.5586594", "0.55786014", "0.55750245", "0.5549054", "0.5522518", "0.5502063", "0.54977936", "0.54945093", "0.5480731", "0.5479921", "0.5479867", "0.5469857", "0.544306...
0.0
-1
Press the back button in mobile phone
@Override public void onBackPressed() { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onBackPressed() {\n backbutton();\n }", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackP...
[ "0.8027102", "0.7927077", "0.79096097", "0.7872758", "0.7839554", "0.7822377", "0.78218776", "0.7805891", "0.7771318", "0.7749204", "0.77409464", "0.7725984", "0.7717523", "0.7714474", "0.7706449", "0.77046996", "0.7699043", "0.7697619", "0.76962906", "0.76910275", "0.7687056...
0.0
-1
interface that hosting activity has to implement
public interface SurveyVoteListener { void voteListener(int yes, int no); void editListener(String newQuestion, String newOptionOne, String newOptionTwo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ActivityInterface {\n public void initView();\n public void setUICallbacks();\n public int getLayout();\n public void updateUI();\n}", "public interface ActivityLauncher {\r\n\r\n\tpublic void launchActivity();\r\n\r\n\tpublic void finishCurrentActivity();\r\n\r\n}", "public interf...
[ "0.7401341", "0.7336463", "0.7200353", "0.719202", "0.71606004", "0.71566814", "0.71103644", "0.7086465", "0.7079492", "0.7060356", "0.69475925", "0.6942585", "0.6928236", "0.6886733", "0.6886345", "0.6875596", "0.68586355", "0.6852983", "0.6821943", "0.67767304", "0.677302",...
0.0
-1
verify listener has implemented listener else, throws exceptions.
@Override public void onAttach(Context context) { super.onAttach(context); Log.d(TAG, "onAttach"); if(context instanceof SurveyVoteListener){ mVoteListener = (SurveyVoteListener) context; Log.d(TAG, "On attach survey vote listener set " + mVoteListener); } e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Listener {}", "public interface Listener {\n}", "public interface Listener {\n}", "public interface IBaseListener {\n}", "public interface IBaseOnListener {\n\n void onFail(String msg);\n}", "public void verify(Object expListener)\n {\n assertEquals(\"Wrong number of...
[ "0.69271874", "0.671769", "0.671769", "0.65481347", "0.6525226", "0.6499814", "0.63416374", "0.6291448", "0.6265235", "0.62433445", "0.61579126", "0.614679", "0.61387765", "0.6096553", "0.6073696", "0.60526574", "0.5982286", "0.59529144", "0.5918375", "0.58836263", "0.5862302...
0.0
-1
hosting activity has to implement .editListener method in order to edit survey question
@Override public void onClick(View view) { mVoteListener.editListener("newQuestion", "newOptionOne", "newOptionTwo"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void editQuestion();", "void onEditClicked();", "@Override\n public void edit(Question q) {\n delete(q);\n add(q);\n }", "public void marksEdit(View view) {\n Intent intent = new Intent(getApplicationContext(), InsertingAtten.class);\n intent.putExtra(\"STATU...
[ "0.7091634", "0.6804523", "0.6365691", "0.63410836", "0.61942273", "0.6188909", "0.6187675", "0.6185932", "0.6178929", "0.61771786", "0.61517495", "0.6133813", "0.6115472", "0.61110604", "0.61038435", "0.6089463", "0.60883963", "0.6016613", "0.60042834", "0.59974355", "0.5966...
0.6795162
2
method invoked from hosting activity to reset votes
public void resetVotes(int resetYes, int resetNo) { mYesCount = resetYes; mNoCount = resetNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVotes(int votes) {\n this.votes = votes;\n }", "public static void doVote() {\n }", "private void postVote() {\n if ( unvotedParties() == 0 )\n TransactionManager.getTransactionManager().resolveTransaction(txId);\n }", "public void setNumVotes(int value) {\n ...
[ "0.68881065", "0.67347294", "0.6553621", "0.6448625", "0.6413105", "0.6387524", "0.63436985", "0.62860423", "0.6244751", "0.62084836", "0.62023175", "0.6194082", "0.61202884", "0.6077145", "0.6047324", "0.6013619", "0.59704447", "0.59695727", "0.5953164", "0.5913947", "0.5910...
0.6343667
7
Created by Pan on 2016/12/20.
public interface IRecommendService { long add(Recommend recommendVo); long edit(Recommend recommendVo); boolean remove(long id); PageInfoResult<Recommend> list(PageConfig pageConfig, Recommend recommend); boolean hits(Long id); Recommend get(long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Over...
[ "0.6112025", "0.598368", "0.59411824", "0.5939467", "0.58690566", "0.5833437", "0.582706", "0.582706", "0.5740283", "0.57009125", "0.56886643", "0.56835824", "0.56703585", "0.5668659", "0.5660734", "0.5655428", "0.56489444", "0.5646463", "0.562938", "0.5627961", "0.5626465", ...
0.0
-1
replace the element in the collection by itself to trigger a model update
public void refreshRowTemplate(LanguageContributionStatus lcs) { contributionStatuses.set(contributionStatuses.indexOf(lcs), lcs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}", "private static CompletionStage<Void> update(ReactiveMongoCollection collection, Object entity) {\n BsonDocument document = getBsonDocument(collection, entity);\n\n //then we get its id field and ...
[ "0.62621534", "0.6187503", "0.616152", "0.61045504", "0.6081199", "0.59914124", "0.594727", "0.5854143", "0.5836796", "0.5815042", "0.581126", "0.58035207", "0.5791376", "0.5786933", "0.5766283", "0.5764728", "0.5755756", "0.57506365", "0.57450336", "0.57362896", "0.57082266"...
0.0
-1
Creates a new ButtonInfoMessage with the given state.
public ButtonInfoMessage(int state) { super(AbstractMessage.ButtonInfo); this.state = state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InfoMessage createInfoMessage();", "Button createButton();", "Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(ac...
[ "0.5904718", "0.5686476", "0.538725", "0.5265508", "0.52380913", "0.5201576", "0.5145923", "0.5104515", "0.5096923", "0.50783515", "0.5077101", "0.50606644", "0.50344807", "0.5018448", "0.5003571", "0.49811822", "0.4980759", "0.49518678", "0.49424046", "0.49245113", "0.492282...
0.8289038
0
Returns the state of the button.
public int getState(){ return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getButton() {\n\t\t//Check what button it is then return the value\n\t\tif (this.isLeftButton)\n\t\t\treturn 0;\n\t\telse if (this.isRightButton)\n\t\t\treturn 1;\n\t\telse if (this.isMiddleButton)\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn -1;\n\t}", "public boolean getBButton() {\n\t\treturn getRawBut...
[ "0.7187315", "0.69887465", "0.6986312", "0.69289005", "0.6733343", "0.6733343", "0.6733343", "0.6733343", "0.6716379", "0.6705122", "0.66908705", "0.6667367", "0.66658473", "0.66244763", "0.66244763", "0.6583509", "0.6583509", "0.65755874", "0.65610427", "0.65534276", "0.6553...
0.64110637
55
Calls super.toString() and adds the state of the button.
@Override public String toString() { return super.toString() + " -Button pressed! " + state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString()\n {\n return state.toString();\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \": \\\"\" + getLabel() + \"\\\"\";\n\t}", "@Override\n\tp...
[ "0.67986536", "0.675454", "0.662376", "0.6440827", "0.64330536", "0.621708", "0.6216468", "0.62057066", "0.62057066", "0.6189537", "0.6188723", "0.6163911", "0.6163911", "0.6163911", "0.6163911", "0.61553913", "0.61526483", "0.61526483", "0.61526483", "0.61526483", "0.6152648...
0.84212995
0
Calls the super method and also writes the state into the stream.
@Override public void serialize(DataOutputStream stream) throws IOException { super.serialize(stream); stream.writeInt(getState()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "@Override\n public void write() {\n\n }", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }", "public void beginOutput() {\n this.currentState = states.OUTPUT;\n this.buildOutStack(...
[ "0.6464089", "0.63919467", "0.63182825", "0.626601", "0.6231442", "0.6185879", "0.615726", "0.6125767", "0.6118535", "0.6117909", "0.610702", "0.609502", "0.60902184", "0.60891306", "0.60850185", "0.6076465", "0.6076465", "0.60712874", "0.6000825", "0.59905154", "0.59488344",...
0.7540465
0
Create Item (Material + Amount)
public ItemBuilder(Material material, int amount) { itemstack = new ItemStack(material, amount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createItem (String name, String description, double price);", "void createMaterial(Material material) throws CreateException;", "public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(itemName.isEmpty() && loreLine.isE...
[ "0.7132935", "0.68513393", "0.6772633", "0.67303467", "0.65429723", "0.6507921", "0.63748723", "0.6362045", "0.63072616", "0.62647796", "0.6197794", "0.61237645", "0.6089749", "0.6082919", "0.6080662", "0.6075107", "0.6068314", "0.5997931", "0.5996719", "0.5996128", "0.596745...
0.61341804
11
Create Item (Material + Amount + SubID)
public ItemBuilder(Material material, int amount, byte SubID) { itemstack = new ItemStack(material, amount, SubID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createItem (String name, String description, double price);", "Quantity createQuantity();", "void createMaterial(Material material) throws CreateException;", "public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(it...
[ "0.63068485", "0.61061", "0.595796", "0.5839801", "0.58280826", "0.58078355", "0.5789437", "0.57505023", "0.56708056", "0.56420314", "0.56038034", "0.55939585", "0.55304575", "0.549162", "0.54763037", "0.54704183", "0.54404277", "0.5429413", "0.54129016", "0.54119843", "0.534...
0.63721436
0
Set the operation values.
Builder values(Map<Path<?>, TypedExpression<?>> values);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFieldValues(String op, List values)\n {\n if (op == null || op.trim().length() == 0)\n throw new IllegalArgumentException(\n \"operator must not be null or empty\");\n\n if (!isValidOperator(op))\n throw new IllegalArgumentException(\n \"Invalid oper...
[ "0.64342886", "0.61374587", "0.6086065", "0.60711694", "0.5968921", "0.59523237", "0.5936272", "0.5928691", "0.59243006", "0.59000444", "0.589557", "0.5853003", "0.5831332", "0.5825049", "0.5774156", "0.57675767", "0.57512283", "0.57436067", "0.5701845", "0.5682495", "0.56696...
0.0
-1
Build the configuration instance.
UpdateOperationConfiguration build();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract CONFIG build();", "@NonNull\n\t\tConfig build();", "public ClusterConfig build() {\n return new ClusterConfig(_id, _resourceMap, _participantMap, _constraintMap, _stateModelMap,\n _stats, _alerts, _userConfig, _isPaused, _autoJoin);\n }", "public IotdmSimpleConfig build() {\n...
[ "0.80689305", "0.7462919", "0.7160691", "0.69269645", "0.6882138", "0.6745451", "0.6600019", "0.65059114", "0.6503747", "0.64568484", "0.63536197", "0.6159232", "0.60232186", "0.6015281", "0.6005278", "0.60028684", "0.5978227", "0.59725916", "0.595056", "0.5934544", "0.588819...
0.5973001
17
Created by echowang on 16/5/6.
public interface IPurchaseView { Context getContext(); void showLoading(String msg); void dismissLoading(); Purchase getPurchase(); void closeActivity(); void showToast(String msg); int getCoins(); void setCoins(int coins); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6220098", "0.61390287", "0.6018169", "0.59942853", "0.5900681", "0.5900681", "0.5856164", "0.57907104", "0.57872826", "0.57786816", "0.57771415", "0.5775106", "0.5773784", "0.5764981", "0.576422", "0.57588637", "0.5734495", "0.5725019", "0.5718383", "0.57149416", "0.571494...
0.0
-1
/ Creating a String "I liked Java, did you like it" 1)Split by Using "d" 2)Split by Using " " Print the arrays on the console
public static void main(String[] args) { String str= "I liked Java, did you like it"; String arr[]=str.split("d"); System.out.println(Arrays.toString(arr)); String str1[]=str.split(" "); System.out.println(Arrays.toString(str1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] D_Stark) {String[] y ={\n\n\"\",\"\",\"​​​​​​\",\"​\",\"​​​​​​​​​\",\n\"​​​​​​​​​\",\"​​​​​​​​​\",\"​​​​​​\",\"​​​​​​​​​​​\",\"\",\n\"​\",\"​​​​​​​​​\",\"​​​​​​​​​\",\"​​​​​​​​​\",\"​​​​​​​​​\",\n\"​​​​​​​​​\",\"​​​​​​​​​\",\"​​​​​​​​​\",\"​​​​​​​​​​\",\"​​​​​​​​​​​\",\n\"​​\",\"​​...
[ "0.6480422", "0.63041985", "0.6302708", "0.60031295", "0.599089", "0.59890974", "0.59741986", "0.5956947", "0.58881295", "0.588335", "0.58785474", "0.5866559", "0.58119863", "0.57885206", "0.5778362", "0.5750711", "0.57390755", "0.57273597", "0.57083094", "0.5705183", "0.5695...
0.71553993
0
Create a new SecurityImpl.
public CommonSecurityImpl(String securityDomainManaged, String securityDomainAndApplicationManaged, boolean applicationManaged) throws ValidateException { super(); this.securityDomainManaged = securityDomainManaged; this.securityDomainAndApplicationManaged = securityDomainAndApplicationManage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Security_I create()\r\n\t\t{\r\n\t\treturn new Security();\r\n\t\t}", "private Security() { }", "static SecurityHandler create() {\n return DEFAULT_INSTANCE;\n }", "public SecurityUser() {\n\t\tsuper();\n\t}", "Implementation createImplementation();", "SecurityScope createSecurity...
[ "0.8372126", "0.65761405", "0.6514828", "0.591147", "0.5898078", "0.58499986", "0.5760196", "0.56837964", "0.56692207", "0.56687546", "0.55524665", "0.54941416", "0.54818153", "0.5446256", "0.5438497", "0.5374959", "0.53495646", "0.5340338", "0.532247", "0.5322122", "0.522523...
0.0
-1
Driver for the EchoServer Engine
public static void main(String[] args) throws IOException { ServerSocket serverSocket = null; Socket clientSocket = null; BufferedReader read = null; DataOutputStream write = null; // Attempt to open a server socket for inbound connections try { serverSocket = new ServerSocket(SERVERPORT);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SocketEchoServer(SourceModule module)\r\n {\r\n super(module);\r\n }", "public interface SocketControl {\n\n /**\n * 获取服务的IP和端口\n * @return 格式:ip:port,如127.0.0.1:8080\n */\n String getIpPort();\n\n /**\n * 获取服务的ServiceId\n * @return 服务的ServiceId\n */\n Stri...
[ "0.6252765", "0.6017072", "0.58827066", "0.585948", "0.5859095", "0.5770559", "0.5734598", "0.57247657", "0.5709314", "0.5651984", "0.5631291", "0.56280786", "0.56208616", "0.5617506", "0.56166923", "0.56153023", "0.5614779", "0.56091636", "0.5608712", "0.55868214", "0.556618...
0.0
-1
Created by srbhj on 21102017.
public interface PetsReceived { public void petsReceived(ArrayList<Pet> pets); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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\n...
[ "0.5944444", "0.5826009", "0.5774786", "0.5710355", "0.5664571", "0.5664571", "0.56429845", "0.5632048", "0.5607264", "0.5590801", "0.5575239", "0.5575084", "0.55745554", "0.55409795", "0.55409795", "0.55409795", "0.55409795", "0.55409795", "0.5533713", "0.55269146", "0.55243...
0.0
-1
Scanner sc = new Scanner(new File("taming.in")); PrintWriter pr=new PrintWriter(new FileWriter("taming.out"));
public static void main(String args[]) throws IOException { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] counter=new int[n]; int count=0; //Number of changes needed int count1=0; //Number of sections, where a section starts with a 0 int count2=0; //Section length counter int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openFile(){\n\t\ttry{\n\t\t\t//input = new Scanner (new File(\"input.txt\")); // creates file \"input.txt\" or will rewrite existing file\n\t\t\tFile inFile = new File(\"input.txt\");\n\t\t\tinput = new Scanner(inFile);\n\t\t\t//for (int i = 0; i < 25; i ++){\n\t\t\t\t//s = input.nextLine();\n\t\t\t\t/...
[ "0.6527008", "0.6323545", "0.6283668", "0.6279706", "0.62634176", "0.62571067", "0.61937034", "0.60734624", "0.60576874", "0.5981932", "0.59710604", "0.5958416", "0.5908498", "0.5883718", "0.5877746", "0.586404", "0.583957", "0.5833188", "0.5830046", "0.58199525", "0.5818296"...
0.0
-1
normally no parse listeners should be set, so create an own list for it
@Override public void preInit( ProcessEngineConfigurationImpl processEngineConfiguration) { if (processEngineConfiguration.getCustomPostBPMNParseListeners() == null) { processEngineConfiguration.setCustomPostBPMNParseListeners(new ArrayList<BpmnParseListener>()); } // add parse listener processEngineCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> listeners();", "@Override\n protected List<IElementParser<ActImpl>> createParserList() {\n List<IElementParser<ActImpl>> result = new ArrayList<>();\n result.add(new SubElementManeuverGroupsParser());\n result.add(new SubElementStartTriggerParser());\n result.add(new Su...
[ "0.67689335", "0.6211579", "0.62038374", "0.618352", "0.60375375", "0.5976252", "0.59704167", "0.5863454", "0.5852905", "0.582928", "0.5808153", "0.578782", "0.5779263", "0.5777389", "0.5776829", "0.5694316", "0.5685335", "0.5675813", "0.5664432", "0.566251", "0.565573", "0...
0.0
-1
Send SMS Method invoke after click on Send SMS Button
@Override public void onClick(View v) { if (v == mBtnSendSms) { String strMobileNumber = mEditTextMobileNumber.getText().toString().trim(); String strSmeBody = mEditTextSmsBody.getText().toString().trim(); sendSms(strMobileNumber, strSmeBody);// Send SMS Method } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t public void onClick(View arg0) {\n\t screenDialog.dismiss();\r\n\t String sms = messageText.getText().toString();\r\n\t \ttry {\r\n\t\t\t\tSmsManager smsManager = SmsManager.getDefault();\r\n\t\t\t\tsmsManager.sendTextMessage(phone, null, sms, null, null);\r\n\t\t\t\tToast.makeText...
[ "0.79975164", "0.7922593", "0.7859705", "0.7833966", "0.757914", "0.7566105", "0.7565452", "0.7475996", "0.7456983", "0.7450973", "0.73838", "0.73447585", "0.73093885", "0.7291197", "0.72868896", "0.71907634", "0.7072489", "0.70631504", "0.7025915", "0.702233", "0.70068085", ...
0.7997189
1
Send SMS Method Body
private void sendSms(String strPhoneNumber, String strSms) { if (ActivityCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED) {// checking runtime permission for Sending SMS try { SmsManager smsManager = SmsManager.getDefault(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void sendSms(String smsBody) {\n }", "public java.lang.String sendSMS(java.lang.String accessCode, java.lang.String toNumber, java.lang.String body) throws java.rmi.RemoteException;", "SendSMSResponse sendSMSProcess(SendSMSRequest smsRequest) throws Exception;", "public void sendSms() {\...
[ "0.81323695", "0.7933584", "0.7540706", "0.7446484", "0.7190366", "0.70539695", "0.69916075", "0.69597024", "0.68377423", "0.6823415", "0.666103", "0.66394204", "0.6620715", "0.6616711", "0.6587819", "0.6585257", "0.65688187", "0.6514331", "0.6464325", "0.64036995", "0.63988"...
0.6462633
19
region GETs and SETs
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void get() {\n }", "public String get();", "@Override\n public void get() {}", "public T get() {\n return value;\n }", "@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}", "public T g...
[ "0.6138022", "0.60937715", "0.60075986", "0.6004755", "0.59934765", "0.59905636", "0.5987933", "0.5987933", "0.5957747", "0.59332436", "0.59300697", "0.59300697", "0.5902764", "0.5902516", "0.5846901", "0.5819307", "0.57253015", "0.57095826", "0.5709198", "0.57032967", "0.565...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View RootView = inflater.inflate(R.layout.fragment_view_map, container, false); nav_map = (BottomNavigationView)RootView.findViewById(R.id.map_nav); home...
{ "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...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
=============================== Croppable Atlas Sprite ===============================
public CroppableAtlasSprite obtainSprite(ETexture texture) { return obtainSprite(ResourceCache.getTexture(texture)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeSprites(){\r\n\r\n\t}", "private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hun...
[ "0.6790776", "0.66856647", "0.6640622", "0.65535057", "0.6456288", "0.64535403", "0.6435134", "0.6420284", "0.63573855", "0.63415223", "0.6212522", "0.61570823", "0.61399764", "0.6121884", "0.6060202", "0.60406816", "0.60104644", "0.59955317", "0.5994872", "0.5989763", "0.597...
0.0
-1
=============================== Animation Mode Transition ===============================
public static AnimationModeTransition obtainAnimationModeTransition() { return animationModeTransitionPool.obtain(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n public void animate() {\n }", "Animation getShowAnimation();", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "public void readyToGoAnimation() {\n TranslateTransition leave = new Tr...
[ "0.69119555", "0.68628776", "0.67899776", "0.6766517", "0.6756024", "0.6742305", "0.6717942", "0.6691332", "0.66859305", "0.6676659", "0.6629302", "0.65811896", "0.65811896", "0.65811896", "0.65811896", "0.65536934", "0.65411985", "0.65375584", "0.6526198", "0.6523622", "0.65...
0.63289183
45
=============================== Particle Effect ===============================
public static PooledEffect obtainParticleEffect(EParticleEffect effect) { try { return particleEffectPool.get(effect).obtain(); } catch (Exception e) { LOG.error("could not obtain particle effect", e); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Particles particles();", "public void drawParticles() {}", "protected void playParticle(){\n\t\teffectData.getPlayParticles().playParticles(effectData, effectData.getDisplayAt());\n\t}", "@Override\n \t\t\t\tpublic void doCreateQuadParticle() {\n \n \t\t\t\t}", "private static void updateParticle(int index...
[ "0.82349837", "0.73908633", "0.736397", "0.70645106", "0.6938308", "0.67684466", "0.67618215", "0.6752844", "0.6699516", "0.6665414", "0.6636304", "0.65851295", "0.6572504", "0.6531342", "0.6518128", "0.65148014", "0.6493121", "0.64576477", "0.64515895", "0.63985664", "0.6383...
0.0
-1
Returns string if config is incomplete, null if config is ready
public String getMissing(SurvivalGamesCustomData customData) { if (getDeathCenter() == null) return null; if (UtilLoc.getDistance2d(getWorld().getSpawnLocation(), getDeathCenter()) >= _radius) { return "World spawn isn't inside the Deathmatch!"; } if (_radius < ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "public String configString() {\n return this.configString;\n }", "public String getStringConfiguration() {\n\t\treturn config;\n\t}", "public String getConfig();", "public String getConfigString()\n {\n return...
[ "0.69960487", "0.6857309", "0.68475425", "0.67496216", "0.67336243", "0.67312294", "0.6558554", "0.6523057", "0.6410004", "0.6379875", "0.62685496", "0.62422585", "0.6099389", "0.5956475", "0.5947704", "0.5933898", "0.5917341", "0.5915325", "0.58949745", "0.5874884", "0.58323...
0.0
-1
Instantiates a new query region manager impl.
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod") public QueryRegionManagerImpl(Toolbox tb, DataGroupController dataGroupController) { super(tb.getEventManager()); myToolbox = tb; myModuleStateController = new QueryRegionStateController(this, tb); myQueryRegions = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemRegionExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Region() { }", "public Region() {\n }", "public CustomerAddressQuery region(CustomerAddressRegionQueryDefinition queryDef) {\n startField(\"region\");\n\n _queryBuilder.append('{');\n qu...
[ "0.64868903", "0.6375734", "0.6335579", "0.6074685", "0.6009711", "0.58873457", "0.56554604", "0.56554604", "0.56525743", "0.5562071", "0.5517902", "0.5507369", "0.5507369", "0.5468432", "0.544377", "0.541333", "0.53538364", "0.5347308", "0.5335456", "0.5319787", "0.5316477",...
0.60035694
5
Handles a data type focus change.
private void handleDataTypeInfoFocusEvent(DataTypeInfoFocusEvent event) { if (event.getSource() == this) { return; } Collection<? extends DataTypeInfo> types = event.getTypes(); synchronized (myQueryRegions) { if (event.getFocusType() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n ...
[ "0.5972439", "0.5767851", "0.5714471", "0.5646163", "0.5641537", "0.55092347", "0.54170763", "0.5395798", "0.5395798", "0.5395798", "0.5395798", "0.5395798", "0.5352831", "0.5352831", "0.5352831", "0.5352831", "0.53273803", "0.53269696", "0.5325742", "0.53163785", "0.53115594...
0.6187007
0
remove old region(s) that are the same as the new region (have same geometries) before adding in new region to prevent feature duplication
@Override public void addQueryRegion(QueryRegion region) { removeQueryRegion(region.getGeometries()); synchronized (myQueryRegions) { myQueryRegions.add(region); } Collection<PolygonGeometry> geometries = New.collection(region.getGeometries().size()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeRegion(Region region);", "@Override\n \tpublic void regionsRemoved(RegionEvent evt) {\n \t\t\n \t}", "private void removeQueryBoundsFromGeometryRegistry(QueryRegion region)\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this, new HashSet<Geometry>(region.getGeometries(...
[ "0.62719613", "0.6026009", "0.5949832", "0.561415", "0.5595789", "0.5545753", "0.5478906", "0.54565245", "0.5445351", "0.5422233", "0.540234", "0.53997105", "0.5370877", "0.5365994", "0.5355961", "0.53426015", "0.53425616", "0.5337974", "0.5331463", "0.5286888", "0.52816105",...
0.48153585
64
Get the type keys for the data types that can be queried.
public Collection<? extends String> getQueryableDataTypeKeys() { return MantleToolboxUtils.getMantleToolbox(myToolbox).getDataGroupController().getQueryableDataTypeKeys(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Class<?> getKeyType();", "public com.guidewire.datamodel.TypekeyDocument.Typekey[] getTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store()....
[ "0.6462536", "0.6358651", "0.61686283", "0.6145499", "0.61411226", "0.6000622", "0.59737635", "0.5967963", "0.5958322", "0.5920974", "0.59096944", "0.58852214", "0.5880665", "0.5868013", "0.58670557", "0.5860214", "0.58336365", "0.58206975", "0.58021116", "0.5800267", "0.5794...
0.7644806
0
Get a map of data type keys to the data filters associated with them.
protected Map<String, DataFilter> getFilterMap() { return getFilterMap(getQueryableDataTypeKeys()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, String> getFilters();", "protected Map<String, DataFilter> getFilterMap(Collection<? extends String> keys)\r\n {\r\n Map<String, DataFilter> filterMap = New.map();\r\n for (String key : keys)\r\n {\r\n filterMap.put(key, myToolbox.getDataFilterRegistry().getLoadFilt...
[ "0.7025145", "0.67949545", "0.6472209", "0.59738547", "0.5935281", "0.5881559", "0.58093005", "0.57693726", "0.57544374", "0.5653748", "0.56493074", "0.5616884", "0.5564015", "0.5545251", "0.54784566", "0.5429808", "0.53597987", "0.5359502", "0.5308194", "0.5305316", "0.52949...
0.7626232
0
Get a map of data type keys to the data filters associated with them.
protected Map<String, DataFilter> getFilterMap(Collection<? extends String> keys) { Map<String, DataFilter> filterMap = New.map(); for (String key : keys) { filterMap.put(key, myToolbox.getDataFilterRegistry().getLoadFilter(key)); } return filterMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Map<String, DataFilter> getFilterMap()\r\n {\r\n return getFilterMap(getQueryableDataTypeKeys());\r\n }", "Map<String, String> getFilters();", "public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\n \n return f...
[ "0.76258355", "0.70229554", "0.6469499", "0.59711355", "0.5936576", "0.5879043", "0.5808969", "0.5771268", "0.57519364", "0.5653655", "0.56477433", "0.56206304", "0.556525", "0.55449355", "0.54803115", "0.54283553", "0.5361958", "0.5358234", "0.53071016", "0.5305817", "0.5294...
0.679472
2
Removes all my geometries from geometry registry.
private void removeAllQueryBoundsFromGeometryRegistry() { myToolbox.getGeometryRegistry().removeGeometriesForSource(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void freeGeometries(){\n\t\tfinal int size = this.geometries.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tfinal int key = this.geometries.keyAt(index);\n\t\t\tthis.geometries.get(key).free();\n\t\t\tthis.geometries.delete(key);\n\t\t}\n\t}", "public final synchronized void clearGeometry() ...
[ "0.7427323", "0.67435443", "0.6567681", "0.6430941", "0.6378631", "0.6354687", "0.62501836", "0.62166667", "0.6194681", "0.615437", "0.61380786", "0.6078813", "0.6045482", "0.6044074", "0.6043316", "0.60312283", "0.6015952", "0.6010321", "0.59786755", "0.5967146", "0.5954416"...
0.71140784
1
Removes the geometries for the given region from geometry registry.
private void removeQueryBoundsFromGeometryRegistry(QueryRegion region) { myToolbox.getGeometryRegistry().removeGeometriesForSource(this, new HashSet<Geometry>(region.getGeometries())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeRegion(Region region);", "private void removeAllQueryBoundsFromGeometryRegistry()\r\n {\r\n myToolbox.getGeometryRegistry().removeGeometriesForSource(this);\r\n }", "public void freeGeometries(){\n\t\tfinal int size = this.geometries.size();\n\t\tfor(int index=0; index < size; index++){...
[ "0.7078356", "0.62728345", "0.5512804", "0.53577536", "0.53572226", "0.52302635", "0.5229597", "0.5209555", "0.5165433", "0.5164685", "0.51459783", "0.51314515", "0.512648", "0.50819373", "0.50739425", "0.5060211", "0.5059581", "0.5046756", "0.5022683", "0.5007806", "0.500634...
0.7395118
0