query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Sets the current world to the index indicated. Throws an exception if the index is invalid. | public World setCurrentWorld(int index) {
assert index >= 0 && index < levels.size();
return levels.get(levelIndex = index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWorld(GameData world) {\r\n this.world = world;\r\n }",
"public static void setWorld(World aWorld)\r\n/* */ {\r\n\t \tlogger.info(count++ + \" About to setWotld : \" + \"Agent\");\r\n/* 43 */ \tworldForAgent = aWorld;\r\n/* */ }",
"public void setWorld(World world... | [
"0.6124446",
"0.600604",
"0.5934598",
"0.59324473",
"0.5866096",
"0.56500316",
"0.56214464",
"0.5598187",
"0.5571846",
"0.5558577",
"0.5521809",
"0.55065316",
"0.54827166",
"0.53944755",
"0.53690225",
"0.53659713",
"0.53491503",
"0.5348207",
"0.5330678",
"0.5327307",
"0.53073... | 0.7080762 | 0 |
Returns the current player, if one exists. If not, returns null. | public User getCurrentPlayer() {
return currentPlayer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is... | [
"0.79882085",
"0.7950344",
"0.7950344",
"0.78515494",
"0.78515494",
"0.77889556",
"0.77653104",
"0.7718118",
"0.7552701",
"0.7549706",
"0.7519027",
"0.74973816",
"0.7477145",
"0.7471873",
"0.7457381",
"0.74206114",
"0.74117863",
"0.740179",
"0.7384345",
"0.73752254",
"0.73744... | 0.76019555 | 8 |
Sets the player of this Level Pack. Once assigned, another player cannot be assigned. | public void setCurrentPlayer(User newPlayer) {
if (currentPlayer != null) {
if (currentPlayer.equals(newPlayer))
return;
else if (newPlayer == null)
throw new RuntimeException("Once a player has been assigned to a Level Pack, it cannot be nulled.");
else
throw new RuntimeException("Once a player... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}",
"public void setPlayer(Player player) {\r\n this.player = player;\r\n }",
"public void setPlayer(Player player) {\n this.player = player;\n }",
"public void setPlayer(Player player) {\n this.player = player;\n ... | [
"0.7595356",
"0.7579623",
"0.7561396",
"0.75510544",
"0.75471544",
"0.75157684",
"0.7510861",
"0.7447775",
"0.73503906",
"0.7324022",
"0.72751623",
"0.7212683",
"0.7203659",
"0.71701044",
"0.7158754",
"0.71521586",
"0.7083065",
"0.6964598",
"0.683427",
"0.68096656",
"0.680956... | 0.7433023 | 8 |
Returns highest index number of worlds completed by this player. | public int getMaxCompleted() {
int max = -1;
for (Integer i : playerVisible)
max = Math.max(max, i);
return max;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numWorlds(){\n return worlds.size();\n }",
"public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }",
"public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }",
"public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}... | [
"0.6890737",
"0.620469",
"0.6078052",
"0.606218",
"0.6027243",
"0.60121447",
"0.6009184",
"0.59761125",
"0.59687084",
"0.5878069",
"0.58770657",
"0.5867033",
"0.58348215",
"0.5817838",
"0.58081967",
"0.5800753",
"0.57906264",
"0.5786339",
"0.5760416",
"0.5748529",
"0.57144904... | 0.6960864 | 0 |
Returns whether a player can see the given World index in the TODO: Level Pack Screen. | public boolean isPlayerVisible(int levelIndex) {
return playerVisible.contains(levelIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canEnterWorld(Player p, MultiverseWorld w) {\n return this.hasPermission(p, \"multiverse.access.\" + w.getName(), false);\n }",
"public boolean checkWorldAccess(String player, String world) {\n \n Set<String> worldsTMP = bannedWorlds.get(player);\n \n if (wo... | [
"0.64689654",
"0.64567506",
"0.629387",
"0.617176",
"0.6159073",
"0.6034556",
"0.6032639",
"0.60149217",
"0.5951045",
"0.5918147",
"0.5917511",
"0.5902067",
"0.588396",
"0.58563006",
"0.5846546",
"0.5795418",
"0.5783432",
"0.5772973",
"0.5763876",
"0.57546955",
"0.5722575",
... | 0.64817137 | 0 |
Adds the given World index for the player in the TODO: Level Pack Screen. | public boolean addPlayerVisible(Integer levelIndex) {
return playerVisible.add(levelIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToWorld(World world);",
"public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n } catch(IndexOutOfBoundsException e){\n MessageDisplayer.showMe... | [
"0.6417711",
"0.60774213",
"0.60724485",
"0.5888191",
"0.56978655",
"0.5658586",
"0.55845016",
"0.5515113",
"0.54522973",
"0.5448731",
"0.53703463",
"0.53672314",
"0.5366848",
"0.53448886",
"0.53228754",
"0.5302627",
"0.52626425",
"0.52426666",
"0.5179679",
"0.5172246",
"0.51... | 0.53857017 | 10 |
Removes the given World index from the player in the TODO: Level Pack Screen. | public boolean removePlayerVisible(Integer levelIndex) {
return playerVisible.remove(levelIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }",
"public void removeFromWorld(World world);",
"public void removeWorld(String name){\n worlds.remove(getWorld(name));\n }",
"public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoin... | [
"0.70095164",
"0.69507456",
"0.6636711",
"0.65654624",
"0.6499946",
"0.64095926",
"0.6170105",
"0.61415446",
"0.61391145",
"0.59812766",
"0.59718424",
"0.59343714",
"0.5912057",
"0.59083194",
"0.589464",
"0.5884237",
"0.5876334",
"0.5846172",
"0.58181584",
"0.5817801",
"0.581... | 0.5719903 | 26 |
Gets the set of all level indices that are visible to the player. | public Integer[] getAllPlayerVisible() {
return playerVisible.toArray(new Integer[playerVisible.size()]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Integer> getVisibleLayers ()\n {\n List<Integer> visible = Lists.newArrayList();\n List<Boolean> visibility = getLayerVisibility();\n for (int layer = 0, nn = visibility.size(); layer < nn; layer++) {\n if (visibility.get(layer)) {\n visible.add(layer);... | [
"0.6483793",
"0.621887",
"0.6046541",
"0.60085726",
"0.5934928",
"0.5885506",
"0.58660364",
"0.5859739",
"0.58460337",
"0.58360416",
"0.58186346",
"0.58118397",
"0.58037436",
"0.5795364",
"0.57285434",
"0.5722274",
"0.5716493",
"0.5710923",
"0.5688133",
"0.56297344",
"0.56255... | 0.6759173 | 0 |
============================================================ ========= LevelPack PUBLICATION STUFF ====================== ============================================================ Adds the author to this level pack. Returns whether the level pack was changed or not. | public boolean addAuthor(User user) {
return authors.add(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }",
"public void addAuthors(String author) {\n if (authorsList.contains(author)) {\n System.out.println(\"Author exist!!!\");\n }\n else {\n authorsList.add(author);\n System.out.... | [
"0.6219309",
"0.6098173",
"0.6069085",
"0.6039728",
"0.59832066",
"0.5902564",
"0.584509",
"0.5811725",
"0.57643425",
"0.57475436",
"0.5713731",
"0.57126915",
"0.5703448",
"0.56772745",
"0.56709504",
"0.56460977",
"0.56460977",
"0.56460977",
"0.56460977",
"0.56460977",
"0.562... | 0.56808287 | 13 |
Returns whether the given user has authorlevel privileges for this level pack. If the indicated user is null, returns false. | public boolean isAuthor(User user) {
if (user == null)
return false;
if (authors == null)
return false;
for (User u : authors) {
if (u.getUserName().equals(user.getUserName()))
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized boolean hasAdminPrivilege(UserEntity userEntity) {\n PrincipalEntity principalEntity = userEntity.getPrincipal();\n if (principalEntity != null) {\n Set<PrivilegeEntity> roles = principalEntity.getPrivileges();\n if (roles != null) {\n PermissionEntity adminPermission = p... | [
"0.64265174",
"0.61462075",
"0.6128677",
"0.58861667",
"0.58861667",
"0.5868367",
"0.5868367",
"0.58263075",
"0.5717982",
"0.5711437",
"0.5711437",
"0.5682782",
"0.55619717",
"0.5458662",
"0.54173243",
"0.54137486",
"0.5406449",
"0.5404378",
"0.5366554",
"0.53553355",
"0.5354... | 0.5988426 | 3 |
Returns an array of all the authors contained in this Level Pack. Note that the array returned is NOT a reference to the collection stored internally. | public User[] getAllAuthors() {
return authors.toArray(new User[authors.size()]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getAuthors() {\n return authors;\n }",
"public Author[] getAuthors() {\n return authors;\n }",
"public Author[] getAuthors() {\n return authors;\n }",
"public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}",
"public List<String> getAuthors() {\n ... | [
"0.78140944",
"0.77621466",
"0.77621466",
"0.76703024",
"0.7453463",
"0.73334837",
"0.70595783",
"0.6987351",
"0.6871228",
"0.6840436",
"0.68156",
"0.67207485",
"0.66648585",
"0.65378934",
"0.6519554",
"0.65039897",
"0.6468963",
"0.64119345",
"0.64014107",
"0.6398887",
"0.636... | 0.7731171 | 3 |
The main emblem is an image that represents this level pack. | public Image getEmblem() {
if (mainEmblem == null) {
this.mainEmblem = new ImageList();
this.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));
}
return mainEmblem.get(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Image getLevelEmblem(int index) {\n\t\twhile (index >= levelEmblems.size())\n\t\t\tlevelEmblems.add((BufferedImage) UIBuilder.getImage(LevelPack.DEFAULT_LEVEL_EMBLEM_FILE));\n\t\treturn levelEmblems.get(index);\n\t}",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"@Overri... | [
"0.63149923",
"0.62216777",
"0.60666203",
"0.5909843",
"0.5827045",
"0.57924587",
"0.57878137",
"0.57580346",
"0.57565403",
"0.5754944",
"0.5692558",
"0.5600203",
"0.5598621",
"0.55940557",
"0.5582502",
"0.5564708",
"0.55349845",
"0.55054235",
"0.54635245",
"0.54568785",
"0.5... | 0.6733185 | 0 |
The main emblem is an image that represents this level pack. | public void setEmblem(BufferedImage image) {
if (this.mainEmblem == null) {
this.mainEmblem = new ImageList();
this.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));
} else
this.mainEmblem.set(0, image);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Image getEmblem() {\n\t\tif (mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t}\n\n\t\treturn mainEmblem.get(0);\n\t}",
"public Image getLevelEmblem(int index) {\n\t\twhile (index >= levelEmblems.... | [
"0.6734355",
"0.63149494",
"0.62236345",
"0.6068573",
"0.5909738",
"0.5825777",
"0.5792201",
"0.5788447",
"0.57574576",
"0.5756964",
"0.57529336",
"0.5693048",
"0.5598621",
"0.55981994",
"0.5593541",
"0.5581879",
"0.55628675",
"0.55346334",
"0.5504543",
"0.54594135",
"0.54586... | 0.5464302 | 19 |
A LevelPack which is locked should only be modified by Users who are identified as authors. | public boolean getLocked() {
return isLocked;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.357 -0500\", hash_original_method = \"E049D119A7B4A553F02CF8223BDECCF5\", hash_generated_method = \"69F031F83675ABF5D78C26020D90F3C7\")... | [
"0.5990716",
"0.587549",
"0.5756005",
"0.55967724",
"0.55904907",
"0.5488083",
"0.5466725",
"0.5407707",
"0.5343578",
"0.53325903",
"0.53304005",
"0.5271807",
"0.5260905",
"0.5215294",
"0.52145267",
"0.519571",
"0.51115805",
"0.508592",
"0.5063122",
"0.50532204",
"0.50509477"... | 0.0 | -1 |
Determines whether only an identified author User should be allowed to modify this LevelPack. | public void setLocked(boolean value) {
isLocked = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = fa... | [
"0.6112306",
"0.59836817",
"0.5965118",
"0.58362937",
"0.5774246",
"0.5722037",
"0.5720236",
"0.5702893",
"0.5681061",
"0.5676099",
"0.5673774",
"0.56553614",
"0.56519955",
"0.56187797",
"0.56011",
"0.5598991",
"0.5592621",
"0.5590799",
"0.5559475",
"0.5542958",
"0.5496867",
... | 0.0 | -1 |
============================================================ ========= LevelPack WORLD/LEVEL STUFF ====================== ============================================================ | public int getLevelIndex() {
return levelIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void level3() {\n // level 0.3\n levelBlock.moveTo(0, 400);\n levelBlock.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock.setScaleY(200 / levelBlock.getUnscaledHeight());\n// levelBlock.setAlpha((float).001);\n level.addChild(levelBlock);\n\n lev... | [
"0.664524",
"0.6564786",
"0.65507174",
"0.6393745",
"0.6373512",
"0.6288248",
"0.62550884",
"0.6241798",
"0.6204972",
"0.6196363",
"0.61946326",
"0.61662275",
"0.61583906",
"0.6145251",
"0.6119002",
"0.6109705",
"0.60734856",
"0.6067948",
"0.6057277",
"0.6050034",
"0.604461",... | 0.0 | -1 |
The emblem is an image representing a world/level. | public Image getLevelEmblem(int index) {
while (index >= levelEmblems.size())
levelEmblems.add((BufferedImage) UIBuilder.getImage(LevelPack.DEFAULT_LEVEL_EMBLEM_FILE));
return levelEmblems.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Image getEmblem() {\n\t\tif (mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t}\n\n\t\treturn mainEmblem.get(0);\n\t}",
"public void setEmblem(BufferedImage image) {\n\t\tif (this.mainEmblem == nu... | [
"0.6374533",
"0.59701055",
"0.59689176",
"0.5755811",
"0.57420015",
"0.5619166",
"0.5472125",
"0.5471811",
"0.54491335",
"0.54071224",
"0.53986317",
"0.5382807",
"0.5318729",
"0.5250009",
"0.52479506",
"0.52243155",
"0.52172965",
"0.52036726",
"0.52021545",
"0.51898587",
"0.5... | 0.62720025 | 1 |
Sets the emblem representing a world or level. | public void setLevelEmblem(int index, BufferedImage img) {
levelEmblems.set(index, img);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Model\n\tprotected void setWorld(World world) {\n\t\tthis.world = world;\n\t}",
"public void setWorld(GameData world) {\r\n this.world = world;\r\n }",
"public void setWorld(World world) {\n this.world = world;\n }",
"public static void setWorld(World aWorld)\r\n/* */ {\r\n\t \t... | [
"0.58837444",
"0.58109903",
"0.5808261",
"0.54998827",
"0.54376566",
"0.54051375",
"0.53416014",
"0.53363526",
"0.53286004",
"0.5244745",
"0.5219866",
"0.5204328",
"0.5175759",
"0.51513",
"0.5148231",
"0.5138983",
"0.5133648",
"0.51112545",
"0.50785094",
"0.5038263",
"0.50319... | 0.5383745 | 6 |
============================================================ ========= LevelPack SERIALIZATION STUFF ==================== ============================================================ Constructs and returns a LevelPack from the indicated file. | public static LevelPack fromFile(String filename) {
String json = Serializer.readStringFromFile(filename);
LevelPack lp = fromJson(json);
standardize(lp);
return lp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static LevelPack fromFilePartial(String filename) {\n\n\t\t// Read everything from the LevelPack, but don't bother deserializing\n\t\t// the Worlds.\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\treturn fromJsonPartial(json);\n\t}",
"public void toFile(String filename) {\n\t\tString seri... | [
"0.6799654",
"0.61400896",
"0.59061617",
"0.5745475",
"0.55595535",
"0.54005396",
"0.5340705",
"0.53207916",
"0.53055865",
"0.52739376",
"0.5216009",
"0.5123083",
"0.510583",
"0.5041523",
"0.499636",
"0.49841222",
"0.49750012",
"0.49433833",
"0.49371752",
"0.49001566",
"0.488... | 0.7330919 | 0 |
Constructs and returns a LevelPack from the indicated json String. | public static LevelPack fromJson(String json) {
return Serializer.deserializeLevelPack(json);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static LevelPack fromJsonPartial(String json) {\n\t\tLevelPack partial = Serializer.deserializePartialLevelPack(json);\n\t\tif (partial == null)\n\t\t\treturn partial;\n\n\t\tstandardize(partial);\n\n\t\t// Return the partial LevelPack.\n\t\treturn partial;\n\t}",
"public static LevelPack fromFile(String ... | [
"0.7046704",
"0.6651613",
"0.5804715",
"0.5764531",
"0.53667074",
"0.5353684",
"0.52920264",
"0.5181326",
"0.51387435",
"0.51339966",
"0.51305234",
"0.51289475",
"0.5113375",
"0.511213",
"0.51018226",
"0.50831956",
"0.5051684",
"0.5044375",
"0.5042908",
"0.50422597",
"0.50091... | 0.848366 | 0 |
Constructs a LevelPack object, but does not deserialize the bytes representing the Worlds. Useful for constructing a list of LevelPack objects. | public static LevelPack fromFilePartial(String filename) {
// Read everything from the LevelPack, but don't bother deserializing
// the Worlds.
String json = Serializer.readStringFromFile(filename);
return fromJsonPartial(json);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\... | [
"0.62333786",
"0.6165145",
"0.5981104",
"0.5678708",
"0.5661932",
"0.53952414",
"0.5192638",
"0.51655895",
"0.51573956",
"0.5062398",
"0.5029288",
"0.5009186",
"0.49393266",
"0.49262077",
"0.48363918",
"0.4830303",
"0.48262265",
"0.4817347",
"0.48112062",
"0.4773722",
"0.4761... | 0.6296022 | 0 |
Constructs a LevelPack object from the given JSON, but does not serialize the bytes representing the Worlds. Useful for constructing a list of LevelPack objects. | public static LevelPack fromJsonPartial(String json) {
LevelPack partial = Serializer.deserializePartialLevelPack(json);
if (partial == null)
return partial;
standardize(partial);
// Return the partial LevelPack.
return partial;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}",
"public static LevelPack fromFile(String filename) {\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\tLevelPack lp = fromJson(json);\n\t\tstandardize(lp);\n\t\treturn lp;\n\t}",
"public sta... | [
"0.7416073",
"0.6099476",
"0.6086989",
"0.5344613",
"0.5326988",
"0.5281059",
"0.49828786",
"0.49536023",
"0.4943818",
"0.48205748",
"0.4811304",
"0.4772701",
"0.47225913",
"0.47192153",
"0.47004327",
"0.46730518",
"0.46721584",
"0.46626046",
"0.4637246",
"0.4582748",
"0.4567... | 0.67500794 | 1 |
Brings the data contained in the LevelPack uptodate, in case stuff is missing. | private static void standardize(LevelPack pack) {
// TODO: kill this once we have the LevelPacks stored at a standardized
// state.
// If level header info was not stored originally, check to make sure
// there are not nulls after the deserialization.
if (pack.levels == null)
pack.levels = new WorldList()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}",
"public void resetPacks() {\n user.resetPacks();\n saveData();\n }",
"public void completeLevel() {\n\n this.getCurrentRoom().setIsDoorLocked(fals... | [
"0.5651242",
"0.5562175",
"0.5373313",
"0.530713",
"0.53039765",
"0.52693176",
"0.5196739",
"0.5196739",
"0.5189183",
"0.51795274",
"0.5167402",
"0.51234275",
"0.5113189",
"0.5058862",
"0.5036405",
"0.5020729",
"0.5012904",
"0.49870616",
"0.4980579",
"0.49657166",
"0.49537843... | 0.5761674 | 0 |
Saves this LevelPack to the indicated file name. | public void toFile(String filename) {
String serialized = Serializer.serializeLevelPack(this);
Serializer.writeToFile(filename, serialized.getBytes());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}",
"void save(String f... | [
"0.70145303",
"0.6808435",
"0.6665312",
"0.6632317",
"0.65801114",
"0.6545648",
"0.6528743",
"0.6503033",
"0.6481968",
"0.6459012",
"0.6394221",
"0.6334411",
"0.6328103",
"0.62555504",
"0.62475485",
"0.62189776",
"0.6215627",
"0.6184643",
"0.6137235",
"0.61254483",
"0.6123380... | 0.7029967 | 0 |
Returns a String which is the json serialization of this LevelPack. | public String toJson() {
return Serializer.serializeLevelPack(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\... | [
"0.7214577",
"0.7214577",
"0.71281505",
"0.7124397",
"0.710086",
"0.7095778",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7069624",
"0.7032749",
"0.702025",
"0.70101595",
"0.69780445",
"0.6971553",
... | 0.8839035 | 0 |
TODO Autogenerated method stub | public void upload(String token) {
String json = this.toJson();
HttpURLConnection conn;
try {
conn = (HttpURLConnection ) new URL(UPLOAD_URL).openConnection();
OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());
writer.write(json);
} catch (IOException e) {
// TODO Auto-g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Create a new configuration instance. | public RuleConfiguration() {
rule = new Rule();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Config createConfig(String filename);",
"public ManagedConfiguration createConfiguration() throws SmartFrogException, RemoteException {\n return ManagedConfiguration.createConfiguration(this, true, isClusterRequired(), false);\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Config... | [
"0.70058876",
"0.69769603",
"0.6813724",
"0.67946583",
"0.64881706",
"0.64830714",
"0.6482483",
"0.6456742",
"0.64459705",
"0.64137113",
"0.632255",
"0.62460756",
"0.6230026",
"0.61898094",
"0.6187389",
"0.6185853",
"0.61190665",
"0.61139774",
"0.6060678",
"0.598149",
"0.5939... | 0.0 | -1 |
An interface to enable the sharing of constant values | public interface Constants {
/**
* The maximum number of Prizes allowed
*/
int NUMBER_OF_PRIZES = 10;
/**
* The maximum number of students
*/
int NUMBER_OF_STUDENTS = 1000;
/**
* The maximum number of topics a student can undertake
*/
int NUMBER_OF_TOP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IConstantAlgo extends IAlgo {\n\n\t/**\n\t * Returns the output that exports the constant value\n\t * @return\n\t */\n\tpublic IInputOutput getConstantOuput();\n\t\n\t/**\n\t * Returns the parameter that stores the constant value\n\t * @return\n\t */\n\tpublic Parameter<?> getConstantParameter();\... | [
"0.64999914",
"0.6458879",
"0.63971347",
"0.63660526",
"0.6156777",
"0.61437726",
"0.611582",
"0.6112708",
"0.60963404",
"0.6089445",
"0.6017591",
"0.6012432",
"0.6005941",
"0.59972787",
"0.5926078",
"0.5877639",
"0.58383447",
"0.58329",
"0.5813288",
"0.5804773",
"0.5804666",... | 0.54642177 | 57 |
Creates a new Deck object. Initialises deck. | public Deck() {
cards = new LinkedList<Integer>();
removedCards = new LinkedList<Integer>();
int i, j;
for (i = MIN_VALUE; i <= MAX_VALUE; i++) {
for (j = 0; j <= NUM_SUITS; j++) {
cards.add(i);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Deck() {\n generateDeckOfCards();\n }",
"public Deck()\r\n\t{\r\n\t\tcards = new String[DECK_SIZE];\r\n\t\t\r\n\t\tnewDeck();\r\n\t}",
"public Deck() {\n this.deck = new LinkedList<>();\n }",
"public Deck() {\n System.out.println(\"Inside deck\");\n cards = new ArrayL... | [
"0.80939204",
"0.798944",
"0.78785485",
"0.78069454",
"0.7735496",
"0.7581103",
"0.7415529",
"0.7403116",
"0.7369075",
"0.73675233",
"0.7184097",
"0.7180243",
"0.71709573",
"0.7161748",
"0.71399266",
"0.7098909",
"0.7070195",
"0.69392926",
"0.6927925",
"0.68817526",
"0.684060... | 0.6377292 | 36 |
Choose and remove the specified number of cards at random from the deck. Returns the cards in sorted order. | public List<Integer> dealCards(int numCards) {
int[] hand = new int[numCards];
Random rand = new Random();
int index, chosenCard;
for (int i = 0; i < numCards; i++) {
index = rand.nextInt(cards.size());
chosenCard = cards.remove(index);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }",
"public CardCollection destroyRandom(int number) ;",
"public voi... | [
"0.7238125",
"0.6891811",
"0.6770798",
"0.66108567",
"0.6590764",
"0.65204924",
"0.65041137",
"0.64799094",
"0.6455266",
"0.64261067",
"0.6411978",
"0.63330257",
"0.6322269",
"0.62875915",
"0.6274185",
"0.6256634",
"0.6239997",
"0.6222167",
"0.619293",
"0.6172935",
"0.6165501... | 0.7103719 | 1 |
Converts an array to a list. | private List<Integer> toList(int[] array) {
List<Integer> list = new LinkedList<Integer>();
for (int item : array) {
list.add(item);
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List toList(Object arr[])\r\n {\r\n return (arr == null) ? null : Arrays.asList(arr);\r\n }",
"public static List<Integer> asList(int[] array) {\n\t\treturn new IntList(array);\n\t}",
"public static List<Integer> asList(int[] a) {\n assert (a != null);\n List<Integer> ret = new... | [
"0.7545577",
"0.73804146",
"0.7379801",
"0.72525275",
"0.7233239",
"0.71733487",
"0.7024702",
"0.6994792",
"0.6783884",
"0.67781556",
"0.67561024",
"0.6649602",
"0.66378164",
"0.66305983",
"0.6494708",
"0.6413332",
"0.63945746",
"0.6388161",
"0.62711746",
"0.6246455",
"0.6202... | 0.75380814 | 1 |
Adds the removed cards back to the deck. | public void resetDeck() {
cards.addAll(removedCards);
removedCards.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void discard(Card card) {\n discardPile.add(card);\n }",
"public void removeCards() {\n\t\tthis.content.removeAll(this.content);\n\t}",
"public void addToDiscard(Card card) {\r\n\t\tthis.discard.add(card);\r\n\t}",
"public void shuffleThePresentCardToTheEnd() {\n storageCards.add(stor... | [
"0.71461535",
"0.7122315",
"0.70685464",
"0.70261717",
"0.7005545",
"0.699466",
"0.694928",
"0.6936172",
"0.6877577",
"0.684363",
"0.6770923",
"0.6744709",
"0.67427444",
"0.6723579",
"0.6688415",
"0.66599715",
"0.66041344",
"0.6599623",
"0.65968585",
"0.6594724",
"0.65830964"... | 0.78396875 | 0 |
Returns a comma delimited representation of the cards. Converts the card values to symbols. | public static String cardsToString(List<Integer> cards) {
if (cards.size() == 0) {
return "";
}
StringBuilder out = new StringBuilder();
out.append(toSymbol(cards.get(0)));
for (int i = 1; i < cards.size(); i++) {
out.append("," + toSymbol(cards.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString(){\r\n\t\t\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < this.cardCount()-1; i++)\r\n\t\t\tresult += this.getCard(i).toString() + \", \";\r\n\t\t\r\n\t\treturn result + this.getCard(this.cardCount()-1).toString() + \" has Blackjack value \" + this.value();\r\n\t}",
"public String... | [
"0.6848116",
"0.67894304",
"0.6733862",
"0.671927",
"0.66051435",
"0.6533657",
"0.64241755",
"0.6410186",
"0.6369564",
"0.6319478",
"0.62964535",
"0.62761205",
"0.61807424",
"0.6064193",
"0.59665656",
"0.5966074",
"0.5958325",
"0.5953354",
"0.5947882",
"0.593724",
"0.59306085... | 0.7525884 | 0 |
Returns the corresponding symbol for the value. | public static char toSymbol(int value) {
char symbol;
if (value < 10 && value > 1) {
symbol = (char)(value + '0');
} else if (value == 10) {
symbol = 'T';
} else if (value == 11) {
symbol = 'J';
} else if (value == 12) {
symbol = 'Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSymbol();",
"String symbol();",
"public abstract String getSymbol();",
"public String getSymbol() {\n return symbol.get();\n }",
"public String getSymbol( )\n {\n return symbol;\n }",
"long getSymbol();",
"public char getSymbol() {\n return symbol;\n }... | [
"0.7742857",
"0.7605741",
"0.7243401",
"0.7240399",
"0.72245115",
"0.71777457",
"0.7168362",
"0.71625686",
"0.71044",
"0.70367885",
"0.7032445",
"0.7030972",
"0.70089877",
"0.7000949",
"0.6987131",
"0.6983322",
"0.6983322",
"0.69587827",
"0.6957014",
"0.6905809",
"0.6898859",... | 0.70315605 | 11 |
Returns the corresponding value for the symbol. Ace is assumed to have a value of 14, the highest value. | public static int toValue(char symbol) {
int value;
if (Character.isDigit(symbol)) {
value = Character.getNumericValue(symbol);
} else if (symbol == 'T') {
value = 10;
} else if (symbol == 'J') {
value = 11;
} else if (symbol == 'Q') {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Charact... | [
"0.6629569",
"0.65408105",
"0.64056987",
"0.6376918",
"0.63394034",
"0.63368887",
"0.6215636",
"0.6151988",
"0.61370486",
"0.60539675",
"0.6038483",
"0.5867301",
"0.5856643",
"0.5856643",
"0.58416784",
"0.58243054",
"0.5814355",
"0.57977617",
"0.57977617",
"0.57977617",
"0.57... | 0.6227575 | 6 |
Tests if the specified value is valid. | public static boolean isValidValue(int value) {
return (value >= MIN_VALUE && value <= MAX_VALUE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean validateValue(Object value) {\n return true;\n }",
"boolean isValidValue(String value);",
"public boolean isCValueValid();",
"public abstract Value validateValue(Value value);",
"protected final boolean isValidValueImpl(String value) {\n if (value.length() != 8) {\n re... | [
"0.78386694",
"0.76377815",
"0.7255178",
"0.7038501",
"0.7002364",
"0.6954437",
"0.67843",
"0.6775967",
"0.661243",
"0.66085964",
"0.6552152",
"0.6518056",
"0.6427711",
"0.6299075",
"0.6285085",
"0.62496513",
"0.6245355",
"0.6241561",
"0.6220122",
"0.6206871",
"0.6191267",
... | 0.63883656 | 13 |
Gets the total number of cards. | public static int getDeckSize() {
return DECK_SIZE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalCards() {\n\t\treturn cards.size();\n\t}",
"public int getAmountOfCards() {\n\t\t\n\t\treturn myCards.size();\n\t\t\n\t}",
"public int getCardCount() {\n return cardSet.totalCount();\n }",
"public int numOfCards() {\n return cards.size();\n }",
"public int getNumberOfCards(... | [
"0.87018406",
"0.8466331",
"0.83435065",
"0.8064679",
"0.7930525",
"0.7929112",
"0.7888602",
"0.7759633",
"0.7648862",
"0.7586701",
"0.75692093",
"0.7553767",
"0.7484497",
"0.7457259",
"0.74189514",
"0.73934495",
"0.7363299",
"0.7301298",
"0.7247406",
"0.72130066",
"0.7205486... | 0.0 | -1 |
Using a (almost) nice DSL we can configure the router. The second argument NinjaModuleDemoRouter contains all routes of a submodule. By simply injecting it we activate the routes. | @Override
public void init(Router router) {
// /////////////////////////////////////////////////////////////////////
// some default functions
// /////////////////////////////////////////////////////////////////////
// simply render a page:
router.GET().route("/").with(Appli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setup(HttpRouting.Builder routing);",
"public void addRoutes(Routing routing) {\n\n // Map to /foo\n routing.route(path(\"foo\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"from the foo handler\");\n }\n ... | [
"0.56222063",
"0.5356287",
"0.5078619",
"0.5033735",
"0.5028909",
"0.50035155",
"0.49777794",
"0.49673364",
"0.49377963",
"0.49003184",
"0.4837781",
"0.48273838",
"0.47750595",
"0.4701167",
"0.4673339",
"0.46620893",
"0.46365914",
"0.45810026",
"0.45773748",
"0.45548806",
"0.... | 0.5728552 | 0 |
Constructor for all SkinBase instances. | public MeterSkin(MeterView control) {
super(control);
Pane pane = new Pane();
Arc arc = new Arc(0, 0, 2, 2, 90 - control.getAngle()/2, control.getAngle());
arc.lengthProperty().bind(control.angleProperty());
arc.startAngleProperty().bind(Bindings.subtract(90, control.angleProperty().divide(2)));
arc.radiusX... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SkinTest() {\r\n initComponents();\r\n }",
"protected void initSkins()\n {\n synchronized (this)\n {\n _skins = new HashMap<SkinMetadata, Skin>();\n }\n }",
"public PagerXSkin(PagerX pager) {\n super(pager, new PagerXBehavior(pager));\n init();\n// initList... | [
"0.68512726",
"0.6426725",
"0.64153826",
"0.6278928",
"0.6103872",
"0.6079664",
"0.60748386",
"0.6025575",
"0.602141",
"0.5935267",
"0.58880526",
"0.58752906",
"0.58675873",
"0.58062154",
"0.57927793",
"0.57913834",
"0.57877094",
"0.57813096",
"0.5778408",
"0.5773638",
"0.576... | 0.0 | -1 |
Creates new form NewJInternalFrame | public ViewEliminar() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n... | [
"0.8123063",
"0.7922201",
"0.7646065",
"0.7432231",
"0.7364758",
"0.7308966",
"0.71917677",
"0.7155258",
"0.70915276",
"0.6972306",
"0.68954474",
"0.6858871",
"0.6850336",
"0.68484706",
"0.6841525",
"0.6813206",
"0.6813206",
"0.6813206",
"0.6813206",
"0.6813206",
"0.6813206",... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel7 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jtNombre = new jav... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73192346",
"0.7290526",
"0.7290526",
"0.7290526",
"0.7285891",
"0.72480357",
"0.7213616",
"0.7207808",
"0.71955067",
"0.71891475",
"0.71844363",
"0.7159038",
"0.71474695",
"0.7092269",
"0.7079923",
"0.70560205",
"0.69864315",
"0.697697",
"0.69552195",
"0.6953691",
"0.69458... | 0.0 | -1 |
Adds an object to the acceleration structure | @Override
public void add(final Obj prim) {
bvhObjList.add(prim);
if(bvhBox == null) {
this.bvhBox = prim.bbox();
}else {
Point mm = prim.bbox().getMin();
Point mx = prim.bbox().getMax();
float nex = Float.max(mx.x(),bvhBox.getMax().x());
float ney = Float.max(mx.y(),bvhBox.getMax().y());
float... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(GeometricalObject object);",
"public void add(GeometricalObject object);",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}",... | [
"0.68484247",
"0.6745795",
"0.66284287",
"0.6478809",
"0.64650726",
"0.6396738",
"0.6369204",
"0.6342584",
"0.6310046",
"0.6308635",
"0.6255324",
"0.6215571",
"0.6181333",
"0.61708367",
"0.61389947",
"0.6130289",
"0.6115199",
"0.60766715",
"0.6069265",
"0.60648125",
"0.606133... | 0.0 | -1 |
Builds the actual bounding volume hierarchy | @Override
public void buildBVH() {
if(this.bvhObjList.size()<=4) {
}else {
BVH nebt1 = new BVH(this.bvHi);
BVH nebt2 = new BVH(this.bvHi);
int tmp = this.calculateSplitDimension(this.bvhBox.getMax().sub(this.bvhBox.getMin()));
float splitpos;
if(tmp==0) {
splitpos = this.calculateMinMax().b.avg(this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX)... | [
"0.5906211",
"0.5777728",
"0.55024046",
"0.5419506",
"0.5309491",
"0.5269361",
"0.5182404",
"0.51485944",
"0.5146543",
"0.51367384",
"0.51203626",
"0.51047164",
"0.5079746",
"0.507704",
"0.50628036",
"0.5017881",
"0.5012251",
"0.49580014",
"0.494851",
"0.4933143",
"0.49312788... | 0.55778295 | 2 |
Created by Hubert on 28.06.2017. | public interface CategoryRestService {
@GET("/category")
Call<List<SimpleCategoryDto>> listAllCategory();
} | {
"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\n public int describeContents() { return 0; }",
"@Override\n public void init() {\n\n }",
"@Override\n... | [
"0.576469",
"0.57521963",
"0.55956924",
"0.5491097",
"0.5463718",
"0.5438003",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5436638",
"0.5436638",
"0.54122907",
"0.54122907",
"0.5395286",
"0.538752",
"0.5375195",
"0.53711236",
"0.5359462",
"0.53546536",
"0.53464496"... | 0.0 | -1 |
TODO: Currently modifies the state of the underlying graph, avoid it | public List<V> getTopologicalOrdering() {
var result = new ArrayList<V>();
var noIncomingEdgeVertices = getVerticesWithoutIncomingEdge();
while (!noIncomingEdgeVertices.isEmpty()) {
V next = noIncomingEdgeVertices.iterator().next();
noIncomingEdgeVertices.remove(next);
result.add(next);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildGraph(){\n\t}",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosof... | [
"0.6808061",
"0.65333396",
"0.6401247",
"0.62348604",
"0.61572075",
"0.61357653",
"0.6047233",
"0.6046169",
"0.5939551",
"0.5938503",
"0.5937578",
"0.5931796",
"0.59267914",
"0.5925473",
"0.5924952",
"0.59183747",
"0.587764",
"0.5857116",
"0.58402103",
"0.58374083",
"0.583038... | 0.0 | -1 |
This is Updated by usha | void delete() {
System.out.println("This method is from subject class for abstract1");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\... | [
"0.6768212",
"0.65802115",
"0.65802115",
"0.65802115",
"0.6521794",
"0.6521794",
"0.64998156",
"0.6370526",
"0.6370526",
"0.63580954",
"0.63580954",
"0.63580954",
"0.63580954",
"0.63580954",
"0.6355681",
"0.6334248",
"0.6334248",
"0.6334248",
"0.6334248",
"0.6334248",
"0.6334... | 0.0 | -1 |
Overrides the default fallback margin of 1 | public void setFallbackMargin(double fallbackMargin) {
this.fallbackMargin = fallbackMargin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Margin createMargin();",
"default Integer getHorizontalMargin() {\n return null;\n }",
"public void setMargin(int margin) {\n mMarginPx = margin;\n }",
"private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins... | [
"0.71510243",
"0.7029044",
"0.68051744",
"0.67825484",
"0.67804",
"0.66695243",
"0.6594088",
"0.6585634",
"0.63809675",
"0.6374821",
"0.63311034",
"0.6293726",
"0.6226659",
"0.6204162",
"0.61412054",
"0.6138815",
"0.6122582",
"0.6110125",
"0.60278195",
"0.60017693",
"0.598157... | 0.646386 | 8 |
Gets a text range given the confidence level of the alert and provided prediction amount Possible formats: 3 to 6 inches up to 3 inches up to 1 inch 1 to 3 feet up to 1 foot little to none | public String getRange() {
if (predictionAmount < 0.1)
return "little to none";
String description = convertFeetToInches(alert.getDescription());
// Get the bounds
List<Integer> range = getClosestRange(getRanges(description), predictionAmount);
double margin = getMargin(range);
int lower... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }",
"private void getTextBounds(CharSequence text, Paint paint, float[] p) {\n if (p ==... | [
"0.57035273",
"0.5584302",
"0.55310845",
"0.54938287",
"0.53549993",
"0.51407874",
"0.51240975",
"0.50551134",
"0.49570093",
"0.49167794",
"0.49037635",
"0.4835558",
"0.48087952",
"0.4807818",
"0.47918314",
"0.4790097",
"0.4785666",
"0.47325495",
"0.47051972",
"0.47044834",
"... | 0.7583505 | 0 |
Criteria for using feet: 1. Up to a value greater than a foot 2. Lower bound greater than a foot | private boolean shouldUseFeet(int lowerBound, int upperBound) {
return (shouldUseUpToFormat(lowerBound) && upperBound >= 12) || (lowerBound >= 12 && upperBound >= 24);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double applyLimitBounds(double value) {\n if(value > 1.0) {\n value = 1.0;\n }\n if(value < -1.0) {\n value = -1.0;\n }\n\n // Absolute limits:\n if(lifter.getBottomLimit() && lifter.getUpperLimit()) {\n if(value < 0) {\n ... | [
"0.63574034",
"0.6127544",
"0.5968377",
"0.588236",
"0.57488084",
"0.57288206",
"0.5707186",
"0.56792665",
"0.56626093",
"0.55913717",
"0.55736417",
"0.55735",
"0.5552525",
"0.5545927",
"0.55267197",
"0.55264705",
"0.549897",
"0.54965335",
"0.54940635",
"0.54798234",
"0.54433... | 0.6567044 | 0 |
Converts inches to feet | private int toFeet(int inches) {
return (int) Math.round(inches / 12.0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.fo... | [
"0.7902943",
"0.7811216",
"0.7210928",
"0.71588063",
"0.6846525",
"0.6767665",
"0.6495495",
"0.6452488",
"0.643751",
"0.63965815",
"0.63598",
"0.63218427",
"0.627358",
"0.6174921",
"0.6144666",
"0.6083419",
"0.6031276",
"0.6016758",
"0.5995581",
"0.5926573",
"0.5922219",
"0... | 0.7992553 | 0 |
Determines the format to use for the final text | private String getFinalText(Unit units, int lowerBound, int upperBound) {
if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);
return useRangeFormat(units, lowerBound, upperBound);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String format();",
"String documentFormat();",
"String getFormat();",
"String getFormat();",
"String getFormat();",
"@VTID(8)\r\n java.lang.String format();",
"private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in ... | [
"0.742113",
"0.7037865",
"0.69713116",
"0.69713116",
"0.69713116",
"0.6856025",
"0.68232656",
"0.67480636",
"0.66617185",
"0.6655792",
"0.65427077",
"0.6495722",
"0.63797474",
"0.63155776",
"0.62717324",
"0.62346256",
"0.619729",
"0.61689776",
"0.6166169",
"0.6163099",
"0.611... | 0.57249486 | 50 |
Returns text in the range format Example: 3 to 6 inches | private String useRangeFormat(Unit units, int lowerBound, int upperBound) {
return lowerBound + " to " + upperBound + getUnits(units, upperBound);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range)... | [
"0.76633745",
"0.6780924",
"0.67301893",
"0.6620722",
"0.6540765",
"0.6352846",
"0.6121771",
"0.6120247",
"0.60728395",
"0.60584384",
"0.59828734",
"0.59778565",
"0.59734225",
"0.59546334",
"0.5953203",
"0.59388936",
"0.5906314",
"0.5902506",
"0.58998096",
"0.5881159",
"0.585... | 0.68264234 | 1 |
Returns text in the up to format Example: up to 3 inches, up to 2 feet | private String useUpToFormat(Unit units, int upperBound) {
return "up to " + upperBound + getUnits(units, upperBound);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }",
"private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) t... | [
"0.6465044",
"0.63994867",
"0.6266951",
"0.6191092",
"0.59903574",
"0.59208363",
"0.5731392",
"0.5719154",
"0.5598184",
"0.55859894",
"0.5548739",
"0.5432244",
"0.539786",
"0.5367146",
"0.53333265",
"0.5285189",
"0.52787477",
"0.5260095",
"0.5253602",
"0.5228458",
"0.52097136... | 0.6440553 | 1 |
Returns the units for a value. If the value is 1, returns the singular unit. Otherwise, returns the plural unit. | private String getUnits(Unit units, int value) {
if (units == Unit.FEET) {
if (value == 1) return " foot";
return " feet";
}
if (value == 1) return " inch";
return " inches";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }",
"String ... | [
"0.64902693",
"0.6430845",
"0.6430845",
"0.6430845",
"0.63957655",
"0.6383718",
"0.63702565",
"0.6318885",
"0.6253778",
"0.623666",
"0.62119967",
"0.6205268",
"0.6194207",
"0.61781406",
"0.61409956",
"0.6105153",
"0.60957927",
"0.60842365",
"0.6056791",
"0.6054661",
"0.595777... | 0.7311042 | 0 |
Gets margin from a range. Uses fallback margin if range is not found. | private double getMargin(List<Integer> range) {
if (range.size() < 2) return fallbackMargin;
return getMarginFromBounds(range.get(0), range.get(1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }",
"protected abstract D getLower(R range);",
"int getRange();",
"private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }",
"public... | [
"0.6434329",
"0.5594571",
"0.55887",
"0.5377157",
"0.5272033",
"0.52608055",
"0.5250833",
"0.5242821",
"0.5154895",
"0.51227874",
"0.50769585",
"0.50621253",
"0.5042097",
"0.50410706",
"0.5008196",
"0.4985506",
"0.49770474",
"0.49696925",
"0.49312088",
"0.4912274",
"0.4908376... | 0.83669204 | 0 |
Replaces feet with inches in the description | private String convertFeetToInches(String description) {
String regex = "(\\d+) to (\\d+) feet|up to (\\d+) (feet|foot)";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(description);
if (matcher.find()) {
if (matcher.group(1) != null) {
int lower = Integer.pars... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.fo... | [
"0.70003945",
"0.6933727",
"0.65881586",
"0.6207089",
"0.5660978",
"0.5553302",
"0.55185497",
"0.55037874",
"0.5497023",
"0.548272",
"0.54640883",
"0.5358841",
"0.5345225",
"0.5338799",
"0.53164876",
"0.53034675",
"0.5279399",
"0.52404153",
"0.5208439",
"0.52023953",
"0.51878... | 0.77021074 | 0 |
Gets the closest range to the prediction amount | private List<Integer> getClosestRange(List<Integer> ranges, double predictionAmount) {
List<Integer> bestRange = new ArrayList<>();
double bestRangeDistance = Double.MAX_VALUE;
for (int i = 0; i < ranges.size(); i += 2) {
double rangeDistance = Math.abs(predictionAmount - getRangeCenter(ranges.get(i),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getRangeToBestTarget()\n\t{\n\t\treturn getRangeToTarget(currentBestTarget);\n\t}",
"@NotNull\n private RangeInfo findNearestRangeInfo() {\n final int caretPosition = myView.getCaretPosition();\n\n for (final RangeInfo range : myRangeInfos) {\n if (range.isWithin(caretPosition)) {\n ... | [
"0.66199344",
"0.6393172",
"0.5967024",
"0.5917399",
"0.58298534",
"0.5807554",
"0.58034194",
"0.5705437",
"0.56804335",
"0.56725687",
"0.56289756",
"0.56072545",
"0.5576206",
"0.55688906",
"0.5561842",
"0.55571955",
"0.554526",
"0.55440927",
"0.55440927",
"0.5538907",
"0.553... | 0.75705224 | 0 |
Gets the center of a range | private double getRangeCenter(int lowerBound, int upperBound) {
return (lowerBound + upperBound) / 2.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCenter() {\n return 0.5 * (lo + hi);\n }",
"Point getCenter();",
"Point getCenter();",
"public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }",
"public Point getCenter() {\n \treturn new Point(x+width/2,y+heigh... | [
"0.73069376",
"0.72439915",
"0.72439915",
"0.69140244",
"0.6884788",
"0.67085224",
"0.66982985",
"0.66660213",
"0.66308826",
"0.66242945",
"0.66150355",
"0.66111326",
"0.6566182",
"0.6551483",
"0.65175",
"0.65053594",
"0.6489461",
"0.6482674",
"0.64703286",
"0.6453838",
"0.64... | 0.83185446 | 0 |
Gets the + margin given a lower and upper bound Example: 1 to 3 inches > 1 Example: 1 to 6 inches > 2.5 | private double getMarginFromBounds(int lowerBound, int upperBound) {
return (upperBound - lowerBound) / 2.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double getMargin(List<Integer> range) {\n if (range.size() < 2) return fallbackMargin;\n return getMarginFromBounds(range.get(0), range.get(1));\n }",
"private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }",
"public ScreenPt getWcsMargi... | [
"0.7153807",
"0.6830906",
"0.5707843",
"0.5607727",
"0.5552182",
"0.5512461",
"0.54836893",
"0.54638726",
"0.54522145",
"0.54418033",
"0.54009545",
"0.5389006",
"0.5377784",
"0.53386897",
"0.5320864",
"0.5291318",
"0.52754825",
"0.52277786",
"0.51875335",
"0.5170421",
"0.5170... | 0.822633 | 0 |
Returns a list of ranges in the format [lowerBound, upperBound, lowerBound, upperBound, ...] | public List<Integer> getRanges(String description) {
String rangeRegex = "(\\d+) (to|and) (\\d+) inches";
String upToRegex = "up to (\\d+) inch";
Pattern rangePattern = Pattern.compile(rangeRegex);
Pattern upToPattern = Pattern.compile(upToRegex);
Matcher rangeMatcher = rangePattern.matcher(descript... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<... | [
"0.7331981",
"0.7293318",
"0.7182297",
"0.68948543",
"0.6862824",
"0.6787783",
"0.6710061",
"0.6666934",
"0.66213506",
"0.6602098",
"0.6583486",
"0.65504086",
"0.6403683",
"0.6390007",
"0.6354934",
"0.6342883",
"0.6337031",
"0.6322729",
"0.631376",
"0.62589055",
"0.61926687",... | 0.699689 | 3 |
Create the GUI and show it. For thread safety, this method should be invoked from the eventdispatching thread. | private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("FrameDemo");
frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
//main input TextArea
JTextArea mainIn = new JTextArea("Type your Command here.", 3, 1);
//main... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }",
"public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n ... | [
"0.8151357",
"0.79473364",
"0.7900575",
"0.78785634",
"0.7850453",
"0.7841219",
"0.78016686",
"0.7704276",
"0.7680393",
"0.7611861",
"0.7603306",
"0.7572418",
"0.7551455",
"0.75477153",
"0.75399524",
"0.7538167",
"0.74812967",
"0.7445292",
"0.7414176",
"0.7411397",
"0.7401399... | 0.7256232 | 30 |
Schedule a job for the eventdispatching thread: creating and showing this application's GUI. | public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }",
"private void createFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfina... | [
"0.64885265",
"0.6397158",
"0.6296545",
"0.62747806",
"0.62063926",
"0.6205675",
"0.61920106",
"0.6188137",
"0.61814064",
"0.61651886",
"0.6154597",
"0.61081684",
"0.6092861",
"0.60917985",
"0.6084003",
"0.6084003",
"0.60828483",
"0.6069589",
"0.60424024",
"0.6037526",
"0.603... | 0.58496153 | 56 |
Creates a new inventory | public Inventory(Integer size, ItemStack... items) {
this.setSize((size == 0) ? 2147483647 : size);
for (ItemStack stack : items) {
ITEMS.add(stack);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}",
"@RequestMapping(method = RequestMethod.POST, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> createInventory(@Valid @RequestBody InventoryRequest inventoryRequest){... | [
"0.76510555",
"0.7260817",
"0.7203572",
"0.70530945",
"0.68988913",
"0.6810417",
"0.66610426",
"0.65828097",
"0.65096045",
"0.64954114",
"0.64694047",
"0.6453293",
"0.645324",
"0.6380598",
"0.6377232",
"0.6335276",
"0.63195056",
"0.63004833",
"0.63004625",
"0.6278394",
"0.626... | 0.0 | -1 |
Creates a new empty inventory | public Inventory() {
this.SIZE = DEFAULT_SIZE;
this.ITEMS = new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiN... | [
"0.753326",
"0.7189231",
"0.70145136",
"0.68865454",
"0.6866824",
"0.6847309",
"0.68421865",
"0.6739389",
"0.66979593",
"0.66739297",
"0.66210645",
"0.66128004",
"0.65818614",
"0.6532349",
"0.65118176",
"0.6486047",
"0.6453736",
"0.6421631",
"0.64188427",
"0.6408045",
"0.6328... | 0.754054 | 0 |
Adds ItemStacks to the inventory | public int addItemStacks(ItemStack... itemStacks) {
int added = 0;
// for all itemstacks to be added in the inventory
for (ItemStack itemStack : itemStacks)
added += this.addItemStack(itemStack);
return added;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n ret... | [
"0.7379468",
"0.7327342",
"0.71483153",
"0.6876504",
"0.6746857",
"0.6610228",
"0.6573243",
"0.65376854",
"0.6457602",
"0.64259946",
"0.6364118",
"0.63570184",
"0.6351067",
"0.63237",
"0.62797064",
"0.6259208",
"0.6231648",
"0.62195253",
"0.6203075",
"0.6174735",
"0.61712885"... | 0.64940095 | 8 |
Adds one ItemStack to the inventory | public int addItemStack(ItemStack itemStack) {
Item item = itemStack.getItem();
int amount = itemStack.getAmount();
int added = 0;
List<ItemStack> itemStacksToRemove = new ArrayList<>();
for (ItemStack itemStack1 : this.ITEMS) {
if (itemStack1.getItem() == item) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\... | [
"0.7199837",
"0.69425106",
"0.6843057",
"0.68321455",
"0.67565423",
"0.6744578",
"0.67229486",
"0.6684826",
"0.6675596",
"0.6673033",
"0.65945697",
"0.6567153",
"0.6543252",
"0.6539746",
"0.65380555",
"0.6484414",
"0.64312154",
"0.6415263",
"0.63998437",
"0.63874453",
"0.6384... | 0.7103748 | 1 |
Completely remove the specified ItemStack | public boolean removeItemStack(ItemStack itemStack) {
boolean success = false;
if (this.ITEMS.contains(itemStack)) {
this.ITEMS.remove(itemStack);
success = true;
} else {
boolean containItem = false;
int index = 0;
for (ItemStack ite... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }",
"default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }",
"@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t... | [
"0.730659",
"0.71889794",
"0.6715128",
"0.66887206",
"0.6656405",
"0.66234964",
"0.6428722",
"0.6425104",
"0.6319214",
"0.63009167",
"0.62626696",
"0.62459016",
"0.62449795",
"0.62404466",
"0.6210329",
"0.6197517",
"0.61912155",
"0.6109405",
"0.61019516",
"0.60766095",
"0.606... | 0.67628145 | 2 |
Get ItemStack from index | public ItemStack getItemStack(int index) {
return this.ITEMS.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}",
"ItemStack getItem();",
"public ItemStack get(int paramInt)\r\n/* 26: */ {\r\n/* 27: 41 */ return this.a[paramInt];\r\n/* 28: */ }",
"public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\... | [
"0.72786397",
"0.71936053",
"0.7154942",
"0.7109939",
"0.6936977",
"0.6599999",
"0.6587918",
"0.6516564",
"0.63934386",
"0.6377934",
"0.6355782",
"0.6346226",
"0.6338172",
"0.63261324",
"0.6301185",
"0.6283248",
"0.62773633",
"0.6272173",
"0.6244515",
"0.62344015",
"0.6226574... | 0.8543653 | 0 |
Get index from ItemStack | public int getItemStack(ItemStack itemStack) {
return this.ITEMS.lastIndexOf(itemStack);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }",
"int getItem(int index);",
"public int getIndex()\n {\n return index;\n }",
"public final int getIndex(){\n return index_;\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"p... | [
"0.6903175",
"0.66632",
"0.6573576",
"0.6563557",
"0.6556843",
"0.65557134",
"0.6543593",
"0.6526499",
"0.65142655",
"0.6499757",
"0.6499757",
"0.6499757",
"0.64889604",
"0.6486642",
"0.64822364",
"0.64815867",
"0.64815867",
"0.64815867",
"0.6477633",
"0.6468742",
"0.6466036"... | 0.75805324 | 0 |
Move this inventory to the specified one | public void moveTo(Inventory inventory) {
for (ItemStack itemStack : this.getItemStacks()) {
int added = inventory.addItemStack(itemStack);
this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {\n int itemsAdded = inventory.addItemStack(itemStack);\n\n this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));\n }",
"default ItemStack moveOneItemTo(IInventoryComposite dest) {\n return moveOneItemTo... | [
"0.7031306",
"0.66415304",
"0.6339636",
"0.6169718",
"0.60720134",
"0.60656047",
"0.60244143",
"0.59441376",
"0.58825827",
"0.58127433",
"0.5771475",
"0.57449865",
"0.57327676",
"0.57242596",
"0.56461954",
"0.56124705",
"0.5605103",
"0.55922264",
"0.55857724",
"0.55722445",
"... | 0.69296986 | 1 |
Move the specified ItemStack from this inventory to the specified inventory | public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {
int itemsAdded = inventory.addItemStack(itemStack);
this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveTo(Inventory inventory) {\n for (ItemStack itemStack : this.getItemStacks()) {\n int added = inventory.addItemStack(itemStack);\n this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);\n }\n }",
"default ItemStack moveOneItemTo(IInventoryComposite d... | [
"0.7394663",
"0.6561571",
"0.6261161",
"0.6084817",
"0.5928103",
"0.592273",
"0.5906765",
"0.58948255",
"0.587145",
"0.58412695",
"0.5825638",
"0.58047616",
"0.5798812",
"0.5791112",
"0.57831883",
"0.577487",
"0.57590026",
"0.5744407",
"0.569389",
"0.5693761",
"0.569008",
"... | 0.8070727 | 0 |
Return the ItemStack of the specified item regardless of the quantity | public ItemStack containsItem(Item item) {
for (ItemStack itemStack : this.ITEMS) {
if (itemStack.getItem() == item)
return itemStack;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ItemStack getItem();",
"public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }",
"public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}",
"public ItemStack getItem() {\r\n\t\treturn item;\r\n\t}",
"public ItemStack getItem() {\n ... | [
"0.7427496",
"0.7171492",
"0.6983711",
"0.6971074",
"0.69579583",
"0.6946447",
"0.69383395",
"0.6898934",
"0.68749213",
"0.68408144",
"0.6821698",
"0.68102014",
"0.6701901",
"0.6685236",
"0.6671894",
"0.66028845",
"0.65489477",
"0.65489477",
"0.6545419",
"0.6545118",
"0.65304... | 0.5944363 | 55 |
A collection page for HostComponent | public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) {
super(response, builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HostComponentCollectionPage(@Nonnull final java.util.List<HostComponent> pageContents, @Nullable final HostComponentCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"Collections() { return; }",
"public interface HomePagePresenter extends BasePres... | [
"0.6965986",
"0.6012159",
"0.59060234",
"0.5889185",
"0.56635046",
"0.5662283",
"0.5636003",
"0.56192344",
"0.5614215",
"0.56111884",
"0.55628353",
"0.5537156",
"0.5536285",
"0.552585",
"0.5512023",
"0.54952455",
"0.54925764",
"0.5431867",
"0.54263836",
"0.5389159",
"0.538383... | 0.6887586 | 1 |
Creates the collection page for HostComponent | public HostComponentCollectionPage(@Nonnull final java.util.List<HostComponent> pageContents, @Nullable final HostComponentCollectionRequestBuilder nextRequestBuilder) {
super(pageContents, nextRequestBuilder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) {\n super(response, builder);\n }",
"public void createCollections() {\n \n\t\t//Creating columns for the collection\n collectionToolNa... | [
"0.67125803",
"0.6128901",
"0.5846923",
"0.57947624",
"0.56462026",
"0.5619991",
"0.5519215",
"0.55119884",
"0.54758644",
"0.5432377",
"0.5415398",
"0.54115796",
"0.5408872",
"0.54004765",
"0.5380499",
"0.5356719",
"0.535384",
"0.53530955",
"0.5345175",
"0.5332043",
"0.533204... | 0.66292834 | 1 |
Creates a new canvas. | DummyCanvas() {
super(null);
// super(null); ----------------ADDED TO COMPILE -----------------------------------------
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}",
"private void createCanvasAndFrame(){\n image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n canvas = new Canvas();\n Dimension dimension = new Dimension((int)(wi... | [
"0.7808967",
"0.6802555",
"0.6732072",
"0.65732574",
"0.6429308",
"0.62448287",
"0.6219191",
"0.620461",
"0.6066552",
"0.601677",
"0.60082996",
"0.5934219",
"0.5925883",
"0.5907871",
"0.5889345",
"0.58467525",
"0.5825078",
"0.5790846",
"0.57897854",
"0.57682514",
"0.57473224"... | 0.5500089 | 36 |
Dummy method: ignores the repaint call. | public void repaint(Graphic graphic, Rectangle2D objectiveArea, Rectangle displayArea) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void repaint() {\r\n }",
"public void repaint() {}",
"public void requestRepaint() {\n }",
"public void repaint() {\n\t\n}",
"public void repaint() {\n\n\t}",
"public abstract void forceRepaint();",
"@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}",
... | [
"0.77222145",
"0.7698593",
"0.7539111",
"0.7435218",
"0.73742265",
"0.73387307",
"0.7315459",
"0.7315459",
"0.725717",
"0.72390085",
"0.714315",
"0.7128269",
"0.6964201",
"0.6920186",
"0.6875017",
"0.68146807",
"0.6806037",
"0.6791129",
"0.6741369",
"0.6739287",
"0.6723011",
... | 0.60956657 | 80 |
/Write a Java program to print the following pattern 1 2 3 4 5 6 7 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 | public static void main(String[] args) {
int cols=7;
for(int i=1; i<=13; i++) {
for(int j=1; j<=cols; j++) {
System.out.print(j+" ");
}
System.out.println();
if(i<7) cols--;
else cols++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=counter;j<=(i... | [
"0.79101944",
"0.76262",
"0.75278616",
"0.75010496",
"0.7362647",
"0.73544717",
"0.73387957",
"0.72565204",
"0.7200832",
"0.71721786",
"0.7166283",
"0.71276844",
"0.7092072",
"0.708331",
"0.7009113",
"0.70030487",
"0.6940783",
"0.68831766",
"0.685979",
"0.6813802",
"0.6806434... | 0.6263746 | 87 |
Map http status codes here | public static HttpStatus getStatusCode(Throwable throwable) {
if (throwable instanceof WebClientResponseException) {
WebClientResponseException webClientResponseException =
(WebClientResponseException) throwable;
return webClientResponseException.getStatusCode();
} else if (throwable insta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract Integer getStatusCode();",
"int getStatusCode();",
"int getStatusCode();",
"public abstract int statusCode();",
"int getStatusCode( );",
"HttpStatusCode getStatusCode();",
"public abstract int getHttpStatusErrorCode();",
"public int statusCode(){\n return code;\n }",
"protected abstra... | [
"0.75430274",
"0.7481416",
"0.7481416",
"0.74297523",
"0.73644227",
"0.7245705",
"0.72206247",
"0.70602375",
"0.70447993",
"0.6923917",
"0.69155777",
"0.6858503",
"0.68206656",
"0.67015254",
"0.67005265",
"0.6609553",
"0.6607836",
"0.6606978",
"0.6586669",
"0.6555887",
"0.653... | 0.0 | -1 |
resets velocity to the initial speed | static void resetVelocity(){currentVelocity = INITIAL_SPEED;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearVelocity();",
"public void resetYVel() {\n this.yVel = 0;\n }",
"public void clearAngularVelocity();",
"public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\... | [
"0.7785736",
"0.7305016",
"0.7230584",
"0.7168656",
"0.7120393",
"0.7073872",
"0.70158815",
"0.69860095",
"0.69822073",
"0.6914713",
"0.69146335",
"0.6850314",
"0.68318784",
"0.680559",
"0.67815137",
"0.67603964",
"0.6756083",
"0.6756083",
"0.6756083",
"0.6686895",
"0.6679246... | 0.8882138 | 0 |
returns the current velocity | static int getVelocity(){return currentVelocity;} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCurrentVelocity( )\r\n {\r\n return Math.sqrt( this.h_velocity * this.h_velocity + this.v_velocity * this.v_velocity );\r\n }",
"public Velocity getVelocity() {\r\n return this.v.getVelocity();\r\n }",
"public double getVelocity() {\n return mV;\n }",
"public double ... | [
"0.88454854",
"0.86896676",
"0.8683883",
"0.8647956",
"0.86229753",
"0.86172396",
"0.8551012",
"0.8542951",
"0.85292375",
"0.85144097",
"0.8506006",
"0.8502704",
"0.8407023",
"0.8382856",
"0.8381167",
"0.8257041",
"0.82460546",
"0.8191209",
"0.81545085",
"0.81423086",
"0.8127... | 0.82514507 | 16 |
Created by zhangjin on 2018/4/16 | public interface ISpreadProfitRepository<T, ID extends Serializable> extends IHibernateGenericRepository<T, ID> {
int total(String userId);
int effective(String userId);
List<SpreadProfitCommand> vote(Date date);
Object[] todaySUm(String dateStr, String username);
Object[] todayProfit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n pu... | [
"0.5957524",
"0.5819731",
"0.57614285",
"0.57614285",
"0.57598513",
"0.5750915",
"0.5721902",
"0.56997836",
"0.56738746",
"0.56616914",
"0.5655489",
"0.5575329",
"0.55696607",
"0.5554577",
"0.5552403",
"0.55501246",
"0.55398166",
"0.5536219",
"0.5531765",
"0.55302066",
"0.551... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_LOG_ID | public Long getAssignLogId() {
return assignLogId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }",
"public Long getParentAssignLogId() {\n return parentAssignLogId;\n }",
"public String getAssignid() {\n return assignid;\n }",
"public String getLogId() {\r\n return logId;\r\n }",
... | [
"0.6608775",
"0.6018982",
"0.5996919",
"0.5729636",
"0.56824344",
"0.55988836",
"0.5554748",
"0.53750306",
"0.5355599",
"0.53499615",
"0.53098726",
"0.5294938",
"0.52730185",
"0.52695537",
"0.51833695",
"0.50271106",
"0.49850553",
"0.496556",
"0.49420902",
"0.49317735",
"0.49... | 0.7446905 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_LOG_ID | public void setAssignLogId(Long assignLogId) {
this.assignLogId = assignLogId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getAssignLogId() {\n return assignLogId;\n }",
"public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }",
"public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }",... | [
"0.70632607",
"0.5833077",
"0.57828593",
"0.55838627",
"0.5519087",
"0.542474",
"0.54214513",
"0.5402827",
"0.5402154",
"0.5166739",
"0.51556057",
"0.51524657",
"0.5066702",
"0.5028618",
"0.5003188",
"0.49768984",
"0.49540326",
"0.49317047",
"0.49253044",
"0.4872688",
"0.4872... | 0.72797066 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_TYPE | public String getRelatedObjectType() {
return relatedObjectType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getObjectTypeId();",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"@SuppressWarnings(\"unchecked\")\n\tpublic Class getObjectType()\n\t{\n\t\tObject obj = getObject();\n\t\tif (obj == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn obj.getClass();\n\t}",
"@Transient\r\n\t... | [
"0.5519938",
"0.5240396",
"0.52352446",
"0.520279",
"0.5175666",
"0.5155182",
"0.5147685",
"0.51465195",
"0.51134026",
"0.50916475",
"0.50713307",
"0.5010264",
"0.49463543",
"0.49209517",
"0.49094588",
"0.48892486",
"0.48840517",
"0.48536727",
"0.48409003",
"0.48311672",
"0.4... | 0.65506005 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_TYPE | public void setRelatedObjectType(String relatedObjectType) {
this.relatedObjectType = relatedObjectType == null ? null : relatedObjectType.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRelatedObjectType() {\n return relatedObjectType;\n }",
"protected void addOriginalTypePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getR... | [
"0.58426243",
"0.52019745",
"0.51639336",
"0.48998505",
"0.48896116",
"0.48558462",
"0.48349702",
"0.48048046",
"0.4753621",
"0.4739222",
"0.47139266",
"0.46725705",
"0.46671188",
"0.4661228",
"0.4659933",
"0.4653828",
"0.4641092",
"0.4631337",
"0.46154398",
"0.4558395",
"0.4... | 0.6091533 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_ORG_ID | public Long getAssignOrgId() {
return assignOrgId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"@AutoEscape\n\tpublic St... | [
"0.661716",
"0.6213149",
"0.617331",
"0.6020766",
"0.60119313",
"0.5976874",
"0.5962032",
"0.59534264",
"0.59228337",
"0.59228337",
"0.59228337",
"0.59228337",
"0.59228337",
"0.5921381",
"0.5893175",
"0.5892683",
"0.5891328",
"0.5891328",
"0.5891328",
"0.5891328",
"0.5891328"... | 0.6953782 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_ORG_ID | public void setAssignOrgId(Long assignOrgId) {
this.assignOrgId = assignOrgId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getAssignOrgId() {\n return assignOrgId;\n }",
"public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void set... | [
"0.6744187",
"0.635773",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6082436",
"0.6067573",
"0.6067573",
"0.6063471",
"0.5712132",
"0.56365484",
"0.5606191",
"... | 0.65298617 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_OPERATOR_ID | public Long getAssignOperatorId() {
return assignOperatorId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getAssignLogId() {\n return assignLogId;\n }",
"public String getAssignid() {\n return assignid;\n }",
"public String getAssignno() {\n return assignno;\n }",
"public Long getAssignOrgId() {\n return assignOrgId;\n }",
"public StrColumn getIprId() {\n ... | [
"0.6492409",
"0.62362695",
"0.587678",
"0.57546544",
"0.56287634",
"0.56190366",
"0.5490016",
"0.5412237",
"0.52777517",
"0.52260315",
"0.5208566",
"0.52046764",
"0.5198762",
"0.51955897",
"0.5170623",
"0.51242566",
"0.5092554",
"0.506318",
"0.5045962",
"0.50336593",
"0.50052... | 0.6873184 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_OPERATOR_ID | public void setAssignOperatorId(Long assignOperatorId) {
this.assignOperatorId = assignOperatorId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getAssignOperatorId() {\n return assignOperatorId;\n }",
"public Long getAssignLogId() {\n return assignLogId;\n }",
"public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }",
"public String getAssignid() {\n return assignid;\n ... | [
"0.6443735",
"0.6041321",
"0.58566123",
"0.57942903",
"0.55060184",
"0.54982126",
"0.54898775",
"0.5331239",
"0.5242756",
"0.52271825",
"0.52014357",
"0.51856506",
"0.51763946",
"0.51084995",
"0.5089762",
"0.5001823",
"0.49545062",
"0.49542385",
"0.49542063",
"0.48936105",
"0... | 0.6178266 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.SALES_ORGNIZATION_ID | public Long getSalesOrgnizationId() {
return salesOrgnizationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getSalesID() {\n return salesID;\n }",
"public int getSalesRep_ID();",
"public int getSalesRep_ID();",
"public Integer getSysId() {\n return sysId;\n }",
"public void setSalesOrgnizationId(Long salesOrgnizationId) {\n this.salesOrgnizationId = salesOrgnizationId;\n ... | [
"0.5543479",
"0.5430335",
"0.5430335",
"0.5368988",
"0.5327881",
"0.5267005",
"0.5253555",
"0.52514994",
"0.5229209",
"0.5228833",
"0.5228326",
"0.52239156",
"0.52231085",
"0.51990706",
"0.51990706",
"0.5116872",
"0.51060367",
"0.5061889",
"0.5058841",
"0.50246805",
"0.499617... | 0.6376274 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.SALES_ORGNIZATION_ID | public void setSalesOrgnizationId(Long salesOrgnizationId) {
this.salesOrgnizationId = salesOrgnizationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getSalesOrgnizationId() {\n return salesOrgnizationId;\n }",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setSalesRep_ID (int SalesRep_ID);",
"@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }",
"private void setSALIR(int opcionSalid... | [
"0.5784884",
"0.54723454",
"0.54723454",
"0.54259884",
"0.5161326",
"0.51371217",
"0.50772697",
"0.5028322",
"0.50234604",
"0.49939814",
"0.4984602",
"0.49143067",
"0.49060416",
"0.49052685",
"0.4853249",
"0.4827053",
"0.48137712",
"0.48022234",
"0.47999644",
"0.47353345",
"0... | 0.62312835 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.OPERATOR_ID | public Long getOperatorId() {
return operatorId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getOperatorId() {\r\n return operatorId;\r\n }",
"public String getOperatorid() {\n return operatorid;\n }",
"public Integer getOperatorId() {\n return operatorId;\n }",
"public Long getOpId() {\n return opId;\n }",
"public Long getOpId() {\n retur... | [
"0.6057138",
"0.6002728",
"0.59909403",
"0.57073003",
"0.57073003",
"0.57073003",
"0.57073003",
"0.56737506",
"0.5644533",
"0.562851",
"0.56140155",
"0.5597486",
"0.5591881",
"0.5536013",
"0.54718643",
"0.54475754",
"0.54169977",
"0.5395134",
"0.53126985",
"0.5298417",
"0.528... | 0.612422 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.OPERATOR_ID | public void setOperatorId(Long operatorId) {
this.operatorId = operatorId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setAccOpId(int value) {\n \n accOpId_ = value;\n onChanged();\n return this;\n }",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"public void setOperator(int opr) {\n this.operator = opr;\n }",
... | [
"0.51758385",
"0.5169006",
"0.51624",
"0.51355356",
"0.5117361",
"0.5104141",
"0.50217515",
"0.49884123",
"0.49757376",
"0.49640152",
"0.4955986",
"0.49267772",
"0.4905334",
"0.4905334",
"0.48941877",
"0.48518553",
"0.4825018",
"0.4825018",
"0.48068264",
"0.48046622",
"0.4778... | 0.5004959 | 7 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_NAME | public String getRelatedObjectName() {
return relatedObjectName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getObjectRefName();",
"public String getRelatedObjectId() {\n return relatedObjectId;\n }",
"public java.lang.String getZqu__Relationship_Field_Name__c() {\r\n return zqu__Relationship_Field_Name__c;\r\n }",
"public String getRelatedObjectType() {\n return relatedObjectType;... | [
"0.5508931",
"0.5472382",
"0.54338604",
"0.5353766",
"0.5265461",
"0.5245417",
"0.5232395",
"0.51875734",
"0.5169829",
"0.5169829",
"0.51692533",
"0.5154681",
"0.51524824",
"0.51509786",
"0.5136216",
"0.5083127",
"0.5066468",
"0.5063023",
"0.50507474",
"0.5044559",
"0.5040174... | 0.66933024 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_NAME | public void setRelatedObjectName(String relatedObjectName) {
this.relatedObjectName = relatedObjectName == null ? null : relatedObjectName.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRelatedObjectName() {\n return relatedObjectName;\n }",
"public void setRelatedObjectId(String relatedObjectId) {\n this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim();\n }",
"public void setAssociatedObject(String associatedObject) {\n thi... | [
"0.5930809",
"0.5516348",
"0.54262733",
"0.5374105",
"0.5346004",
"0.5300243",
"0.5218708",
"0.5207246",
"0.51301324",
"0.4993142",
"0.48423478",
"0.48278674",
"0.4747337",
"0.47146273",
"0.47002918",
"0.467099",
"0.4638377",
"0.4601221",
"0.45688897",
"0.452019",
"0.45139477... | 0.6568903 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_ID | public String getRelatedObjectId() {
return relatedObjectId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getRelateId() {\n return relateId;\n }",
"private int getObjectId(Object object) {\n int objectId = 0;\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n ... | [
"0.57651365",
"0.5515864",
"0.53646606",
"0.5349925",
"0.53249395",
"0.53212166",
"0.5314666",
"0.53143406",
"0.5294129",
"0.5220726",
"0.52071923",
"0.5202458",
"0.5200784",
"0.513268",
"0.5120417",
"0.5113054",
"0.5113054",
"0.5113054",
"0.51113087",
"0.50930405",
"0.508239... | 0.65216947 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_ID | public void setRelatedObjectId(String relatedObjectId) {
this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRelatedObjectId() {\n return relatedObjectId;\n }",
"void setAssociatedObject(IEntityObject relatedObj);",
"public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }",
"public void setRelatedObjectName(String relatedObjectName) {\n this.relatedObject... | [
"0.5843774",
"0.57048845",
"0.56923985",
"0.553131",
"0.5516784",
"0.5466303",
"0.53829205",
"0.5302949",
"0.5300958",
"0.51102877",
"0.5097879",
"0.50117916",
"0.4928375",
"0.49200898",
"0.48846373",
"0.48602927",
"0.4845273",
"0.48445374",
"0.48333845",
"0.4818411",
"0.4817... | 0.62780285 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_TYPE | public String getAssignType() {
return assignType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAssignType(String assignType) {\n this.assignType = assignType == null ? null : assignType.trim();\n }",
"public Integer getReportType() {\n return reportType;\n }",
"public Long getAssignLogId() {\n return assignLogId;\n }",
"public String getAssignno() {\n ... | [
"0.6287074",
"0.5375029",
"0.52773243",
"0.515748",
"0.5127406",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5114659",
"0.5037616",
"0.5019956",
"0.5019956",
"0.49960297",
"0.49656308",
... | 0.71240914 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_TYPE | public void setAssignType(String assignType) {
this.assignType = assignType == null ? null : assignType.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAssignType() {\n return assignType;\n }",
"public final void mASSIGN() throws RecognitionException {\n try {\n int _type = ASSIGN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sa... | [
"0.6504967",
"0.54841834",
"0.54269725",
"0.5385994",
"0.5294929",
"0.52246237",
"0.51747346",
"0.5119019",
"0.5089196",
"0.50815845",
"0.50649345",
"0.5059575",
"0.49698827",
"0.4934286",
"0.49267602",
"0.49219662",
"0.48575628",
"0.48416737",
"0.48132333",
"0.48013315",
"0.... | 0.699427 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.PARENT_ASSIGN_LOG_ID | public Long getParentAssignLogId() {
return parentAssignLogId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }",
"public Long getAssignLogId() {\n return assignLogId;\n }",
"public java.lang.Integer getParentId();",
"public IntColumn getParentId() {\n return delegate.getColumn(\"pare... | [
"0.6746429",
"0.6327485",
"0.6260115",
"0.6225468",
"0.6127521",
"0.60933644",
"0.58633345",
"0.5808617",
"0.57745224",
"0.57499725",
"0.5720325",
"0.5720325",
"0.5720325",
"0.5711382",
"0.57111305",
"0.57098454",
"0.5709335",
"0.56765693",
"0.56761485",
"0.56755465",
"0.5660... | 0.77640396 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.