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 |
|---|---|---|---|---|---|---|
Returns the robot that has the specified type for this player. | public Robot getRobot(int type) {
return this.robots.get(type);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Robot getRobot(String type) throws Exception {\r\n\t\tint index;\r\n\t\t\r\n\t\tswitch (type.toLowerCase()) {\r\n\t\tcase \"scout\":\r\n\t\t\tindex = 0;\r\n\t\t\tbreak;\r\n\t\tcase \"sniper\":\r\n\t\t\tindex = 1;\r\n\t\t\tbreak;\r\n\t\tcase \"tank\":\r\n\t\t\tindex = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t... | [
"0.77133924",
"0.6256085",
"0.6186607",
"0.6157678",
"0.6141048",
"0.60367876",
"0.5982508",
"0.59375024",
"0.54730374",
"0.5451307",
"0.5412805",
"0.5371345",
"0.5359089",
"0.52377874",
"0.52312547",
"0.518372",
"0.51501435",
"0.51132774",
"0.50798213",
"0.5079327",
"0.50648... | 0.8151462 | 0 |
Returns all robots that the player controls that are currently alive. | public List<Robot> getRobotsAlive() {
List<Robot> listOfAlive = new ArrayList<Robot>();
for(int x = 0; x < 3; ++x) {
if (robots.get(x).isAlive()) {
listOfAlive.add(robots.get(x));
}
}
return listOfAlive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Robot> getMoveableRobots() {\r\n\t\tList<Robot> moveable = new ArrayList<Robot>();\r\n\r\n\t\tfor (Robot robot : this.getRobotsAlive()) {\r\n\t\t\tif (robot.getMovement() > 0) {\r\n\t\t\t\tmoveable.add(robot);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn moveable;\r\n\t}",
"public List<Robot> getRobots();",... | [
"0.69228876",
"0.6681041",
"0.630221",
"0.619413",
"0.61524594",
"0.61383283",
"0.5694566",
"0.5600985",
"0.55704176",
"0.55699563",
"0.556991",
"0.55162895",
"0.54696846",
"0.5465356",
"0.54459226",
"0.5441861",
"0.54173297",
"0.538702",
"0.5348028",
"0.5327958",
"0.5327909"... | 0.7731776 | 0 |
Returns all robots that are alive and able to move. | public List<Robot> getMoveableRobots() {
List<Robot> moveable = new ArrayList<Robot>();
for (Robot robot : this.getRobotsAlive()) {
if (robot.getMovement() > 0) {
moveable.add(robot);
}
}
return moveable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Robot> getRobotsAlive() {\r\n\t\tList<Robot> listOfAlive = new ArrayList<Robot>();\r\n\r\n\t\tfor(int x = 0; x < 3; ++x) {\r\n\t\t\tif (robots.get(x).isAlive()) {\r\n\t\t\t\tlistOfAlive.add(robots.get(x));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listOfAlive;\r\n\t}",
"public List<Robot> getRobots();",
... | [
"0.7935253",
"0.69712263",
"0.6377476",
"0.6196043",
"0.59012765",
"0.5870709",
"0.5729373",
"0.5631548",
"0.55852735",
"0.5559076",
"0.5490868",
"0.5456608",
"0.54117566",
"0.5411261",
"0.53839475",
"0.5379539",
"0.5372957",
"0.536989",
"0.53632236",
"0.5361795",
"0.53587526... | 0.77841175 | 1 |
Checks if the player is still in the game (at least 1 robot that is alive) | public boolean isPlayerAlive() {
return !(this.getRobotsAlive().isEmpty());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }",
"private boolean checkGameState() {\n\t\tint numberOfPlayers = this.manSys.lockedNavmap.size();\n\t\tfor (int i = 0; i < numberOfPlayers; i++) {\n\t\t\tif (!snakesList.get(i).isDestroyed()) {\n\t\t\t\treturn false;\n... | [
"0.7360506",
"0.6974189",
"0.6971553",
"0.6932879",
"0.6853032",
"0.68126494",
"0.6780878",
"0.6720772",
"0.67171",
"0.6694876",
"0.66733617",
"0.6670283",
"0.6670119",
"0.6658062",
"0.6626217",
"0.66168565",
"0.66122055",
"0.65898013",
"0.65822643",
"0.6570491",
"0.6564366",... | 0.75371575 | 0 |
Gets the playerID field of the object. | public int getPlayerID() {
return playerID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getId() {\n\t\treturn this.playerid;\n\t}",
"public int getId() {\n return playerId;\n }",
"public PlayerID getID()\r\n\t{\r\n\t\treturn ID;\r\n\t}",
"public int getPlayerID() {\n\t\treturn playerID;\n\t}",
"public long getPlayerId() {\n return playerId_;\n }",
"public lon... | [
"0.8045902",
"0.7933808",
"0.7824345",
"0.779128",
"0.778151",
"0.7780919",
"0.77472115",
"0.7744266",
"0.77328616",
"0.7717261",
"0.7705572",
"0.767735",
"0.7662445",
"0.7647246",
"0.7633788",
"0.7554774",
"0.74217755",
"0.7402593",
"0.73714197",
"0.73714197",
"0.730426",
... | 0.782384 | 3 |
Sets the specified robot to dead. | public void killRobot(int robotType) {
robots.get(robotType).setDead();
++this.robotsDestroyed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setDead()\n {\n alive = false;\n if(location != null) {\n field.clear(location);\n location = null;\n field = null;\n }\n }",
"protected void setDead()\n {\n alive = false;\n if(location != null) {\n field.clea... | [
"0.68241733",
"0.68241733",
"0.6696548",
"0.6498666",
"0.6486234",
"0.63830453",
"0.62719345",
"0.62262297",
"0.61641234",
"0.613515",
"0.6086841",
"0.5973277",
"0.5936716",
"0.57911974",
"0.5724196",
"0.5674123",
"0.5625472",
"0.56224",
"0.56058955",
"0.5576218",
"0.5567746"... | 0.59086674 | 13 |
Overloaded killRobot to receive String as input. | public void killRobot(String robotType) {
if (robotType.toLowerCase().equals("scout")) {
killRobot(0);
} else if (robotType.toLowerCase().equals("sniper")) {
killRobot(1);
} else if (robotType.toLowerCase().equals("tank")) {
killRobot(2);
} else {
System.out.println("Invalid/unknown robot type.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void kill();",
"public void kill();",
"protected abstract void doKill();",
"@Override \n public void commandKill(int id) {\n\n }",
"public void Kill();",
"@Override\n\tpublic void kill() {\n\n\t}",
"@Override\n public void kill()\n {\n... | [
"0.62453204",
"0.62453204",
"0.6059961",
"0.60104775",
"0.5796582",
"0.5795734",
"0.5791517",
"0.56604093",
"0.55348253",
"0.54951626",
"0.54883784",
"0.5272203",
"0.527157",
"0.5246611",
"0.52260923",
"0.5224533",
"0.5221546",
"0.51986796",
"0.5167746",
"0.51608926",
"0.5122... | 0.6200231 | 2 |
Refreshes the movement points of all robots. | public void refreshRobots() {
for (Robot curRobot : this.robots) {
if (curRobot.isAlive()) {
curRobot.setMovement(refSheet.getMovement(curRobot.getType()));
curRobot.setFired(false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refresh() {\n \t\tphysics.physik();\n \t\tcycleTest();\n \t}",
"private void recalculateAllRoutes() {\n robotModels.parallelStream().forEach(m -> m.recalculateRoute(target, obstacles));\n }",
"private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.Pl... | [
"0.6420213",
"0.63776183",
"0.62927175",
"0.6197937",
"0.6155242",
"0.6118237",
"0.6088242",
"0.60790807",
"0.604208",
"0.5952823",
"0.59299463",
"0.5898422",
"0.5884714",
"0.5872628",
"0.5845982",
"0.5817892",
"0.58081776",
"0.5807897",
"0.5790711",
"0.57710946",
"0.57658905... | 0.7897569 | 0 |
Returns the total damage dealt statistic. | public int getDamageDealt () {
return this.damageDealt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"public double getDamage() {\r\n\t\treturn damage;\r\n\t}",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int... | [
"0.7292929",
"0.69942164",
"0.6969192",
"0.692031",
"0.692031",
"0.692031",
"0.692031",
"0.692031",
"0.6909442",
"0.68706644",
"0.6870062",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6831608",
"0.68084735",
"0.67999583",
"0.6797216",
"0.6797216",
"0... | 0.7540221 | 0 |
Relocates the given robot to the given destination | public void setRobotLocation(int robotType, Point destination) {
this.getRobot(robotType).setLocation(destination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveRobber(HexLocation loc) {\n\n\t}",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDire... | [
"0.68645954",
"0.66285336",
"0.65667045",
"0.6520033",
"0.64327484",
"0.6408185",
"0.6246999",
"0.6243179",
"0.6237689",
"0.6208378",
"0.61832297",
"0.61492085",
"0.6126665",
"0.6102054",
"0.60916513",
"0.6085215",
"0.6082548",
"0.60788554",
"0.6078768",
"0.6023804",
"0.60194... | 0.62502915 | 6 |
/ Player stat getters Returns the current total damage taken stat. | public int getDamageTaken () {
return this.damageTaken;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDamageTaken() {\n return this.damageTaken;\n }",
"public int getHealth() {\n return getStat(health);\n }",
"@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }",
"public double getPlayerFullHP();",
"public int getDamage () {\n\t\treturn (... | [
"0.7228532",
"0.7182784",
"0.71791816",
"0.7105291",
"0.69933575",
"0.6965577",
"0.68701655",
"0.68668985",
"0.68668985",
"0.6858302",
"0.68388206",
"0.68031484",
"0.6797355",
"0.676726",
"0.6742608",
"0.6689952",
"0.6678383",
"0.66590834",
"0.66122234",
"0.6604258",
"0.65814... | 0.7128847 | 3 |
Returns the total number of robots destroyed. | public int getRobotsDestroyed () {
return this.robotsDestroyed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getDeponentCount() {\r\n synchronized (f_seaLock) {\r\n return f_deponents.size();\r\n }\r\n }",
"public int howManyHeroDead() {\r\n int count;\r\n count = 0;\r\n for (Hero h: team) {\r\n if (h.isDead()) {\r\n count = count + 1;\r\n ... | [
"0.63739014",
"0.6300302",
"0.6286165",
"0.60302985",
"0.5999212",
"0.5994575",
"0.5917951",
"0.59037125",
"0.5894288",
"0.5881899",
"0.5868408",
"0.5803729",
"0.5796102",
"0.57862467",
"0.57723135",
"0.5745216",
"0.5732841",
"0.5729875",
"0.57205826",
"0.57155496",
"0.571399... | 0.77745795 | 0 |
Returns the current number of tiles moved statistic. | public int getTilesMoved () {
return this.tilesMoved;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumMoving() {\n int numMoving = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n if (single.getState() == SingleState.MOVING ||\n single.getState() == SingleState.CATCHING_UP ||\n single.getState() == SingleState.ROUTING) {\n ... | [
"0.7052691",
"0.70163125",
"0.69140476",
"0.6903939",
"0.68990344",
"0.6876059",
"0.6846903",
"0.6842931",
"0.6836943",
"0.6768245",
"0.6678302",
"0.66217774",
"0.6543246",
"0.65335006",
"0.65335006",
"0.6506031",
"0.6491263",
"0.6457213",
"0.6453603",
"0.6408994",
"0.6376148... | 0.80971855 | 0 |
Get the number of turns since the player last moved. | public int getTurnsSinceLastMove () {
return this.turnsSinceLastMove;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }",
"public int getTurnCount() {\n return turnEncoder.getCount();\n }",
"public int getWhoseTurn() {\n if (gameStatus == null || gameStatus.getActivePlayer() == null) return -1;\n if (gameStatus.getAct... | [
"0.7178824",
"0.71333814",
"0.69422394",
"0.6923436",
"0.6848267",
"0.6839275",
"0.67748797",
"0.67499244",
"0.6748947",
"0.674782",
"0.6661963",
"0.6652158",
"0.66418374",
"0.66390115",
"0.663576",
"0.6634035",
"0.66197735",
"0.65736026",
"0.652996",
"0.6525816",
"0.64899665... | 0.7876973 | 0 |
Get the number of turns since the player last attacked. | public int getTurnsSinceLastFire () {
return this.turnsSinceLastFire;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTurnsSinceLastMove () {\r\n\t\treturn this.turnsSinceLastMove;\r\n\t}",
"public int getTurnCount() {\n return turnEncoder.getCount();\n }",
"public int getWhoseTurn() {\n if (gameStatus == null || gameStatus.getActivePlayer() == null) return -1;\n if (gameStatus.getActiveP... | [
"0.6998997",
"0.68305486",
"0.6823136",
"0.6804439",
"0.67855155",
"0.67005956",
"0.66410315",
"0.6580368",
"0.6572337",
"0.6558404",
"0.6544224",
"0.649191",
"0.6476895",
"0.64589345",
"0.6446657",
"0.6426002",
"0.6364566",
"0.6357666",
"0.6325322",
"0.6289231",
"0.6286607",... | 0.65469736 | 10 |
The main method to perform a series of tests to verify that each method has the correct pre & post conditions. | public static void main(String args[]) {
PlayerInfo pInfo = new PlayerInfo(1,true);
String errorLog = "";
int errorCount = 0;
if (pInfo.getRobotsAlive().size() != 3) {
errorLog = errorLog + "Size of list after construction should be == 3";
errorCount++;
}
if (pInfo.getPlayerID() != 1) {
errorLog = errorLog + "PlayerID should be == 1";
errorCount++;
}
if (errorLog.length() > 0 && errorCount > 0) {
System.out.println("Total number of errors found in PlayerInfo static main: " + errorCount);
System.out.println(errorLog);
} else {
System.out.println("PlayerInfo static main: 0 errors found");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidA... | [
"0.6976199",
"0.67463934",
"0.67404693",
"0.6669134",
"0.66367006",
"0.6579784",
"0.65115744",
"0.6466774",
"0.6455016",
"0.64229995",
"0.64049363",
"0.63954556",
"0.6387314",
"0.6352921",
"0.63405645",
"0.6335968",
"0.6335968",
"0.63158077",
"0.6314938",
"0.62886983",
"0.627... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
listView.setAdapter(urgentTodosAdapter);
urgentTodosAdapter.loadObjects();
Toast.makeText(getApplication(), "แสดงรายการ"+dayofmonth,
Toast.LENGTH_SHORT).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
Returns the characters 'H' or 'T' randomly, each with probability 0.5. This is equivalent to flipping a fair coin. | public static char coinFlip() {
int coin = 0;
Random rand = new Random();
coin = rand.nextInt(2);
if (coin == 0) {
return 'T';
} else {
return 'H';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public char compChoice ()\n {\n\tint num = (int) (Math.random () * 5) + 1;\n\tif (num == 1)\n\t return 's';\n\telse if (num == 2)\n\t return 'd';\n\telse if (num == 3)\n\t return 'p';\n\telse if (num == 4)\n\t return 'h';\n\telse\n\t return 'w';\n }",
"public char randomChar() {\n\t\tRandom ... | [
"0.6426786",
"0.633588",
"0.62987894",
"0.6277827",
"0.62570614",
"0.6069896",
"0.5914756",
"0.5895181",
"0.5874916",
"0.5874608",
"0.58702886",
"0.5843806",
"0.5826472",
"0.5819627",
"0.5801887",
"0.5781572",
"0.5769899",
"0.5743877",
"0.57266265",
"0.5719022",
"0.5706092",
... | 0.7061051 | 0 |
TODO Autogenerated method stub | @Override
public int getColumnCount() {
return 4;
} | {
"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 |
TODO Autogenerated method stub | @Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public void removeTableModelListener(TableModelListener l) {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
} | {
"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 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(layoutId);
} | {
"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 |
will this work? Trying to use principal to verify that specific organizer is updating their information | @Override
public void updateOrganizerInfo(Organizer organizer) {
String sql = "UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? " +
"WHERE organizer_id = ?";
jdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasPrincipal();",
"public void checkAuthority() {\n }",
"protected abstract void applyPrinciple();",
"public boolean setPrincipal(Principal user);",
"@Test\n public void testUpdatePerson() {\n final AuthenticationToken myToken = login(\"finland@iaeste.fi\", \"finland\");\n final... | [
"0.61806357",
"0.6098168",
"0.59900373",
"0.59028226",
"0.5856752",
"0.58085924",
"0.57621026",
"0.5753491",
"0.5723225",
"0.5711024",
"0.569993",
"0.5688514",
"0.5637491",
"0.56359726",
"0.563073",
"0.5616837",
"0.5579985",
"0.5553063",
"0.5532886",
"0.5527695",
"0.5520672",... | 0.5401039 | 35 |
TODO Autogenerated method stub | @Override
public TileEntity createTileEntity(World world, int metadata) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public Integer getGui(World world, int x, int y, int z,
EntityPlayer entityplayer) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public Object getModInstance() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public String[] getTextureNames() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
make a random list | public static void main(String...args){
int[] whitelist = new int[10];
for(int i=0; i<10; i++){
whitelist[i] = new Random().nextInt(1000);
}
//sort the list
Arrays.sort(whitelist);
for(int i=0; i<10; i++){
System.out.print(whitelist[i]+", ");
}
int key = new Random().nextInt(1000);
int res = binarySearch(key, whitelist);
System.out.println("\n二分搜索数字" + key + ",得:" + res);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }",
"public ArrayList<RandomItem> getRandomItems();",
"private void fillRandomList()\n\t{\n\t\trandomList.add(\"I like cheese.\");\n\t\trandomList.add(\"Tortoise can move faster than sl... | [
"0.7563077",
"0.75324285",
"0.7357179",
"0.72958845",
"0.72696716",
"0.71856725",
"0.7033902",
"0.69322574",
"0.6844657",
"0.68426746",
"0.6830104",
"0.6805782",
"0.6765234",
"0.6742684",
"0.67268455",
"0.67264277",
"0.67129105",
"0.670924",
"0.66969883",
"0.6676685",
"0.6667... | 0.0 | -1 |
/ Used by index provider to create/update/delete index items. Note: indexProviderId should never appear in the method parameters, since the IndexProvider already holds a indexProviderId when created. Example: IndexService: "component_.index_service.indexer" AppStore: "component.appstore.indexer" ConfigRegisry: "component.configregistry.indexer" FileSystem: "component.filesystem.indexer" | public interface IndexProviderClient extends IndexServiceClient {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SingleElasticIndexCsdlEdmProvider(MappingMetaDataProvider metaDataProvider,\r\n String index) {\r\n super(metaDataProvider);\r\n this.index = index;\r\n }",
"@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a searc... | [
"0.587279",
"0.57256347",
"0.56549644",
"0.56319714",
"0.56226796",
"0.55592453",
"0.55424637",
"0.5491434",
"0.5432886",
"0.5390065",
"0.5385413",
"0.53701717",
"0.5331443",
"0.52743477",
"0.52602994",
"0.52414995",
"0.52368355",
"0.520977",
"0.52080125",
"0.51957005",
"0.51... | 0.5236582 | 17 |
TODO Autogenerated method stub | public static void main(String[] args) {
int number = 1;
printNumbers(number);
} | {
"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 |
check if index on full array within stack boundries stack can wrap around to start of array. | public boolean isWithinStackCapacity(int index)
{
// if outside of bound of array, return false
if(index < 0 || index >= values.length)
{
return false;
}
// if index wraps around adjust it.
int contiguousIndex = index < start ? index + values.length : index;
int end = start + capacity;
return start <= contiguousIndex && contiguousIndex < end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isWithinStack(int index, int total_size){\n\t\tif(start <= index && index < start + capacity){ //index在start和start + capacity之间\n\t\t\t//no wrapping, or \"head\" (right size) of wrapping case\n\t\t\treturn true;\n\t\t} else if(start + capacity > total_size && index < (start + capacity)%total_size){ ... | [
"0.665345",
"0.66449064",
"0.6301773",
"0.62398386",
"0.61781937",
"0.6047705",
"0.59588563",
"0.59092057",
"0.58426607",
"0.5836141",
"0.5758926",
"0.5754943",
"0.57023436",
"0.5678478",
"0.5672509",
"0.5667142",
"0.56622356",
"0.5647103",
"0.5633301",
"0.5620607",
"0.561773... | 0.67425954 | 0 |
java mod for ve > (11 % 4) = 1, not 4 | private int adjustIndex(int index)
{
int max = values.length;
return ((index % max) + max) % max;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n ... | [
"0.67628896",
"0.66871893",
"0.64616966",
"0.64079404",
"0.6396509",
"0.6296189",
"0.6242035",
"0.61982423",
"0.6163757",
"0.6081585",
"0.6033838",
"0.60281765",
"0.6025952",
"0.5999121",
"0.59448165",
"0.5915215",
"0.58959466",
"0.5891087",
"0.5823554",
"0.5805677",
"0.58026... | 0.0 | -1 |
which routes this Station is a stop for protected L04Station [] neighbour; // neighbour Stations | public L04Station(String name) {
if (findByName(name)==null) {
setName(name);
stationList.add(this);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n... | [
"0.62391824",
"0.6107177",
"0.6079637",
"0.5927162",
"0.591738",
"0.58877504",
"0.5820619",
"0.58137643",
"0.5794173",
"0.57718754",
"0.5762798",
"0.57198656",
"0.5712629",
"0.56971836",
"0.5683553",
"0.56565386",
"0.5646972",
"0.56132084",
"0.5595665",
"0.55568516",
"0.55497... | 0.0 | -1 |
this returns the record for a specified day, this method stores all the records in the array | public Record query(final PlayerType p_type,
final int p_queryDate)
throws RemoteException
{
for(int x= 0; x <= 100; x++)
{
records [x][1] = query(PlayerType.LEADER, x);
records [x][2] = query(PlayerType.FOLLOWER, x);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DailyHours findEntryByDate(String day)\r\n\t{\r\n\t\t//cycle the dailyHourLog arraylist\r\n\t\tfor(DailyHours singleDay : dailyHourLog)\r\n\t\t{\r\n\t\t\t//selection structure returning true that the date matches \r\n\t\t\tif(singleDay.getDate().equals(day))\r\n\t\t\t{\r\n\t\t\t\treturn singleDay;\r\n\t\t\... | [
"0.6722612",
"0.6249924",
"0.6139136",
"0.61196697",
"0.60183686",
"0.57854086",
"0.574628",
"0.5741323",
"0.5713088",
"0.5702836",
"0.5699828",
"0.5628371",
"0.5581504",
"0.5572046",
"0.54691714",
"0.54608256",
"0.5454482",
"0.54436046",
"0.54403245",
"0.5432452",
"0.5426816... | 0.0 | -1 |
i dont use this but it needs it because its an inherited class | @Override
public void proceedNewDay(int p_date)
throws RemoteException
{
// TODO Auto-generated method stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\... | [
"0.6785367",
"0.66721714",
"0.6618447",
"0.65245545",
"0.65164065",
"0.6478495",
"0.6417317",
"0.6409561",
"0.6409561",
"0.6380812",
"0.6352309",
"0.6346262",
"0.63421893",
"0.6274558",
"0.625492",
"0.62495065",
"0.6209552",
"0.6202073",
"0.61947495",
"0.6185616",
"0.6181408"... | 0.0 | -1 |
from the record array specifically get the prices so you have an array of ints instead of records | public static double[][] getRecords() throws RemoteException
{
for(int x= 0; x <= 100; x++)
{
info[x][1] = (int) records[x][1].m_leaderPrice;
info[x][2] = (int) records[x][2].m_followerPrice;
}
return info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int[] getPrice()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n String SearchPrice[]=new String[row];\n int a[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n SearchPrice[i]= TableData[i][5];... | [
"0.67092454",
"0.64896667",
"0.6067827",
"0.59211236",
"0.590344",
"0.5849715",
"0.579829",
"0.5727063",
"0.5709304",
"0.56998503",
"0.55950993",
"0.5568371",
"0.5567018",
"0.5528695",
"0.5502768",
"0.5499743",
"0.546087",
"0.5429051",
"0.5428134",
"0.54067683",
"0.53710866",... | 0.68071276 | 0 |
Seekbar can be handled by this method | private void changeSeekbar() {
seekbar.setProgress(mediaPlayer.getCurrentPosition());
if(mediaPlayer.isPlaying())
{
runnable=new Runnable() {
@Override
public void run() {
changeSeekbar();
}
};
handler.postDelayed(runnable,1000);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateSeekbar(int position, int duration);",
"@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}",
"private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBa... | [
"0.78807545",
"0.7668162",
"0.75068045",
"0.74471205",
"0.7354059",
"0.7346634",
"0.7327733",
"0.731186",
"0.7286495",
"0.72835016",
"0.720404",
"0.7183143",
"0.71626186",
"0.71626186",
"0.7161015",
"0.7084354",
"0.70717746",
"0.7048333",
"0.70422196",
"0.70125973",
"0.701259... | 0.7206285 | 10 |
Overriden method for on click listener | @Override
public void onClick(View view) {
switch (view.getId()){
case R.id.btnPlay:
if(mediaPlayer.isPlaying())
{
mediaPlayer.pause();
btnPlay.setImageResource(R.drawable.ic_play_arrow_black_24dp);
}
else{
mediaPlayer.start();
btnPlay.setImageResource(R.drawable.ic_pause_black_24dp);
changeSeekbar();
}
break;
case R.id.btnFor:
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition()+5000);
break;
case R.id.btnBack:
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition()-5000);
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}",
"@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t... | [
"0.82240087",
"0.79838204",
"0.79838204",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
... | 0.0 | -1 |
When back button pressed the audio service will stop;this method is called | @Override
protected void onPause() {
super.onPause();
if(mediaPlayer!=null)
{
mediaPlayer.pause();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onBackPressed() {\n if(mediaPlayer != null && mediaPlayer.isPlaying()){\n mediaPlayer.stop();\n }\n\n super.onBackPressed();\n }",
"public void onBackPressed(){\n //Gardera ses fonctions de base\n super.onBackPressed();\n\n //Exec... | [
"0.7918477",
"0.7788372",
"0.7720134",
"0.7582257",
"0.7572832",
"0.7473261",
"0.7421381",
"0.7393534",
"0.730536",
"0.72069126",
"0.7198638",
"0.7192358",
"0.71486574",
"0.7089589",
"0.7059508",
"0.7056798",
"0.70553106",
"0.7019305",
"0.70036614",
"0.69973886",
"0.6933847",... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void sendHasten(Affair affair, EdocOCIPSummary edocSummary, String msgContent, boolean sendMsg) {
} | {
"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 |
Allows changing of the incoming data processor | @Override
public void setHandler(Incoming handler) {
this.handler = handler;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"void assignDataReceived(Serializable dataReceived);",
"private void updateReceivedData(byte[] data) {\n }",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }",
"public void configurableDataInput() {\... | [
"0.6809941",
"0.6474689",
"0.62136805",
"0.6091016",
"0.6047112",
"0.5885274",
"0.58766145",
"0.5876428",
"0.5865627",
"0.5828087",
"0.5828087",
"0.5818901",
"0.5815294",
"0.58117944",
"0.57867306",
"0.5770855",
"0.5753778",
"0.5753778",
"0.5753778",
"0.5753778",
"0.5753778",... | 0.0 | -1 |
Gracefully stops the process and closes the socket | public void close(){
log.debug("[SC] Close called", 5);
if(socket!=null){
log.debug("[SC] Closing socket", 4);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
//Silly impatient thread
}
try {
out.close();
in.close();
socket.close();
} catch (IOException e) {
//we're going to close it anyway
}
socket = null;
run = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif (socket != null) {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Socket closed.\");\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\n\t\t}\n\t}",
"@Override\n public void stop() {\n ... | [
"0.7650044",
"0.7508449",
"0.7244",
"0.7224196",
"0.7219077",
"0.7127206",
"0.69937664",
"0.6983365",
"0.69650227",
"0.6919839",
"0.690271",
"0.6893677",
"0.68807614",
"0.68807614",
"0.68739414",
"0.6869295",
"0.68464077",
"0.6821566",
"0.68078107",
"0.6796563",
"0.6789389",
... | 0.71186864 | 6 |
Writes a string to the encrypted socket This will not send data unless encryption was established | public synchronized void write(String data){
log.debug("[SC] Writing "+data, 4);
writeBuffer.add(data.getBytes());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void writeNow(String data){\n\t\tlog.debug(\"[SC] Writing now unencrypted - \"+data, 4);\n\t\tif(out!=null){\n\t\t\ttry {\n\t\t\t\tif(!data.endsWith(\"\\n\")){\n\t\t\t\t\tdata = data + \"\\n\";\n\t\t\t\t}\n\t\t\t\tout.write(data.getBytes());\n\t\t\t\tout.flush();\n\t\t\t} catch (IOException e) ... | [
"0.7279213",
"0.6817555",
"0.6714846",
"0.6200621",
"0.61508113",
"0.6113059",
"0.6086333",
"0.6041304",
"0.60056627",
"0.5941328",
"0.5897775",
"0.5887264",
"0.58469373",
"0.58192337",
"0.5800148",
"0.5798186",
"0.5783287",
"0.57705414",
"0.5750527",
"0.573829",
"0.57375836"... | 0.555266 | 35 |
Writes unencrypted data to the socket This does not buffer, so may block until sent | public synchronized void writeNow(String data){
log.debug("[SC] Writing now unencrypted - "+data, 4);
if(out!=null){
try {
if(!data.endsWith("\n")){
data = data + "\n";
}
out.write(data.getBytes());
out.flush();
} catch (IOException e) {
log.error("[SC] Could not write to socket");
}
}else{
log.error("[SC] Could not write to socket");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int writeEncrypted()\n throws IOException\n {\n int cb = f_delegate.write(f_buffEncOut);\n\n if (!f_buffEncOut.hasRemaining())\n {\n endProtocol();\n }\n return cb;\n }",
"public void sendPacket(String data) throws IOExcepti... | [
"0.6754762",
"0.629491",
"0.6241638",
"0.6183069",
"0.61535794",
"0.61263293",
"0.5978093",
"0.5920339",
"0.5908464",
"0.5876375",
"0.58630985",
"0.5792926",
"0.5781449",
"0.5736547",
"0.57220405",
"0.5719422",
"0.5718065",
"0.5688631",
"0.567896",
"0.5620846",
"0.5610216",
... | 0.7506305 | 0 |
Called when a ping is received from the server, returns a pong | @Override
public void ping() {
//respond to ping with pong
lastPing = System.currentTimeMillis();
this.writeNow("type:pong;");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ping() {\n JsonNode rootNode = get(\"ping\");\n\n // TODO verify that the response was \"Pong!\"\n JsonNode dataNode = rootNode.get(\"data\");\n String pong = dataNode.asText();\n }",
"private void replyToPeerPing(final ByteString payload) {\n Runnable replierPong = ... | [
"0.8166462",
"0.71175617",
"0.6995177",
"0.69245195",
"0.6917279",
"0.68365866",
"0.6825229",
"0.6809777",
"0.67936873",
"0.65712744",
"0.65609163",
"0.6548212",
"0.6481814",
"0.637502",
"0.6338408",
"0.6314169",
"0.6280382",
"0.62748146",
"0.6251128",
"0.6251128",
"0.6180994... | 0.7614858 | 1 |
Not used, pong never received | @Override
public void pong() {
//shouldnt't ever be ponged, just here because pretty interface
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handlePongFrame() throws IOException {\n // read all of the pong payload\n consumePayload();\n }",
"public abstract void onPongReceived(byte[] data);",
"private void handlePongEvent(PongEvent event) {\t\t\n \t\tevent.loadMessage();\n \t\t//System.out.println(\"Received a pong even... | [
"0.7638178",
"0.755315",
"0.73672026",
"0.70299447",
"0.69127643",
"0.6837398",
"0.6550889",
"0.64000946",
"0.63866127",
"0.6382029",
"0.6347818",
"0.62209845",
"0.6156214",
"0.61504626",
"0.61364496",
"0.6060439",
"0.60542834",
"0.5973854",
"0.5928746",
"0.59264624",
"0.5922... | 0.80228496 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] a = new int[8];
for (int i = 0; i < 8; i++) {
a[i] = scan.nextInt();
}
int num = 1;
check(a, num);
} | {
"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 |
Created by sang on 2018/1/12. | public interface InductionMapper extends BaseMapper<Induction>{
int addInduction(Induction Induction);
int updateInduction(Induction Induction);
List<Induction> getInductioneByPage(@Param("start") Integer start, @Param("size") Integer size, @Param("name")String name, @Param("hr_id")int hr_id);
Long getCountByName(@Param("name") String name,@Param("hr_id")Integer hr_id);
List<Induction> getByIds(@Param("ids")String[] id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.6042199",
"0.587684",
"0.5775224",
"0.57584924",
"0.5711287",
"0.5711287",
"0.56967986",
"0.5611431",
"0.55909765",
"0.55777675",
"0.55736345",
"0.55636495",
"0.5551895",
"0.5542595",
"0.5541481",
"0.5533853",
"0.5529692",
"0.55291563",
"0.552614",
"0.54992336",
"0.5485608... | 0.0 | -1 |
logger.info("field 1 = " + field1 + ", field 2 = " + field2); | @Override
public void function()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }",
"void log();",
... | [
"0.62883085",
"0.6262196",
"0.6210531",
"0.61641353",
"0.6047917",
"0.5943188",
"0.5898807",
"0.58888686",
"0.5851233",
"0.5835677",
"0.5835677",
"0.5835677",
"0.5826294",
"0.5808557",
"0.5793997",
"0.5793274",
"0.5761334",
"0.57569116",
"0.5691561",
"0.56833154",
"0.56829",
... | 0.0 | -1 |
logger.info("field 1 = " + field1 + ", field 2 = " + field2); | @Override
public void function()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }",
"void log();",
... | [
"0.62883085",
"0.6262196",
"0.6210531",
"0.61641353",
"0.6047917",
"0.5943188",
"0.5898807",
"0.58888686",
"0.5851233",
"0.5835677",
"0.5835677",
"0.5835677",
"0.5826294",
"0.5808557",
"0.5793997",
"0.5793274",
"0.5761334",
"0.57569116",
"0.5691561",
"0.56833154",
"0.56829",
... | 0.0 | -1 |
Get the surface height. | protected int getSurfaceWidth() {
assertActivityNotNull();
return mActivity.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getSurfaceHeight();",
"protected int getSurfaceHeight() {\n assertActivityNotNull();\n return mActivity.getHeight();\n }",
"public float getHeight();",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public double getHeight();",
"public double getHeight();",
"p... | [
"0.8970287",
"0.80458695",
"0.78668636",
"0.78247064",
"0.77859515",
"0.77859515",
"0.7754931",
"0.7743542",
"0.7717785",
"0.76715434",
"0.76660436",
"0.7664159",
"0.7663498",
"0.7653247",
"0.76520437",
"0.7648254",
"0.76479846",
"0.7645664",
"0.76392365",
"0.7616765",
"0.761... | 0.0 | -1 |
Get the surface width. | protected int getSurfaceHeight() {
assertActivityNotNull();
return mActivity.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int getSurfaceWidth() {\n assertActivityNotNull();\n return mActivity.getWidth();\n }",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public float getWidth();",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth () {\r\n\tch... | [
"0.8038026",
"0.7689368",
"0.76750666",
"0.7631658",
"0.7594178",
"0.75833786",
"0.75833786",
"0.75308377",
"0.7521184",
"0.75196713",
"0.75193244",
"0.7517701",
"0.75159687",
"0.75100416",
"0.7494812",
"0.7493509",
"0.74919",
"0.7478995",
"0.7478995",
"0.7478995",
"0.7478359... | 0.0 | -1 |
Get the backend context. | protected BackendContext getBackendContext() {
assertActivityNotNull();
return mActivity.getBackendContext();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Context getContext();",
"public Context getContext() {\n return context;\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"public Context getContext... | [
"0.7058028",
"0.69713086",
"0.69376457",
"0.69258183",
"0.6918476",
"0.69060344",
"0.6825841",
"0.68169934",
"0.68169934",
"0.6804111",
"0.6800686",
"0.67898566",
"0.67898566",
"0.6778603",
"0.67024815",
"0.6701462",
"0.66757137",
"0.6661403",
"0.6650266",
"0.6633645",
"0.663... | 0.84639585 | 0 |
Set the test information. | protected void setTestInfo(final String testInfo) {
assertActivityNotNull();
try {
runTestOnUiThread(new Runnable() {
@Override
public void run() {
mActivity.setTestInfo(testInfo);
}
});
} catch (Throwable throwable) {
throwable.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setTest() {\n\t}",
"public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getPropert... | [
"0.68251634",
"0.68033224",
"0.65231645",
"0.65142864",
"0.627018",
"0.626214",
"0.62598294",
"0.6189853",
"0.6183796",
"0.61660254",
"0.6148492",
"0.6143983",
"0.61435175",
"0.6074181",
"0.605863",
"0.6056371",
"0.6048676",
"0.6029284",
"0.6027456",
"0.60199356",
"0.6018404"... | 0.75955325 | 0 |
Run a task on gl thread. | protected Object runOnGLThread(ResultRunnable task) {
assertActivityNotNull();
return mActivity.runOnGLThread(task);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcapt... | [
"0.6856728",
"0.6591487",
"0.64497375",
"0.64165854",
"0.63429475",
"0.6290014",
"0.62373215",
"0.6214619",
"0.6214619",
"0.6214619",
"0.6214619",
"0.6214619",
"0.61656",
"0.6109369",
"0.6109369",
"0.6109369",
"0.6109369",
"0.60364354",
"0.5975935",
"0.59703314",
"0.596052",
... | 0.76805323 | 0 |
Run a task in onDrawFrame. | protected Object runOnDrawFrame(ResultRunnable task) {
assertActivityNotNull();
return mActivity.runOnDrawFrame(task);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}",
"@Override\n public void draw(Canvas canvas) {\n ... | [
"0.6714947",
"0.669213",
"0.6597675",
"0.64802915",
"0.6408557",
"0.63707733",
"0.6303321",
"0.62858796",
"0.6276196",
"0.6261857",
"0.62090856",
"0.6194878",
"0.61564696",
"0.615366",
"0.6144387",
"0.61091834",
"0.60954094",
"0.6069446",
"0.60686547",
"0.60660243",
"0.606484... | 0.7705406 | 0 |
Make the onDrawFrame sleep for a duration. | protected void sleepOnDrawFrame(final long duration) {
runOnDrawFrame(new ResultRunnable() {
@Override
public Object run() {
try {
Thread.sleep(duration);
} catch (InterruptedException e) {
e.printStackTrace();
}
return null;
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doOneFrame(DrawSurface d, double dt) {\r\n\r\n gameScreen.drawAllOn(d);\r\n d.setColor(COLOR);\r\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, this.countFrom + \"...\", 32);\r\n\r\n if (this.countFrom < 3) {\r\n this.sleeper.sleepFor(this.displayTime);\r\n ... | [
"0.706684",
"0.70559514",
"0.688302",
"0.680707",
"0.6628425",
"0.6608322",
"0.65106004",
"0.64660275",
"0.6439187",
"0.63070756",
"0.62218183",
"0.6211435",
"0.6195293",
"0.6180043",
"0.6154456",
"0.6107901",
"0.60878307",
"0.6008498",
"0.5992642",
"0.5989546",
"0.5981007",
... | 0.8804215 | 0 |
Check that we have activity. Assert if not. | private void assertActivityNotNull() {
if (mActivity == null) {
mActivity = getActivity();
assertNotNull(mActivity);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testMessagesActivityNotNull(){\n assertNotNull(messagesActivity);\n }",
"@SmallTest\n public void testForActivity() {\n solo.assertCurrentActivity(\"Wrong activity\", WelcomeActivity.class);\n }",
"@Test\n public void homeActivityShouldNotBeNull() {\n ass... | [
"0.70247567",
"0.7002616",
"0.6699785",
"0.6532649",
"0.6486732",
"0.63512146",
"0.6122173",
"0.611691",
"0.60992074",
"0.6066673",
"0.5954765",
"0.592483",
"0.58422655",
"0.5833821",
"0.5812069",
"0.579984",
"0.57357717",
"0.570232",
"0.5678805",
"0.5614109",
"0.5579738",
... | 0.7618107 | 0 |
Gibt die ID des Sitzes zurueck | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"@Override\r\n public int getId() {\n return id;\r\n }",
"int getId();",
"int getId();",
"int getId();",
"int getId();... | [
"0.71611834",
"0.71421283",
"0.7120359",
"0.7084676",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0... | 0.0 | -1 |
Gibt den Semaphoren zurueck | public Semaphore getSemaphore() {
return semaphore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Semaphore() {\n m_available = true;\n }",
"protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n ... | [
"0.7691782",
"0.73534745",
"0.7198671",
"0.6965275",
"0.6964507",
"0.67684716",
"0.67113173",
"0.6690353",
"0.6579901",
"0.6518611",
"0.64915967",
"0.648505",
"0.6481193",
"0.6461101",
"0.63488656",
"0.6318389",
"0.628259",
"0.62087417",
"0.6191924",
"0.6182074",
"0.6142991",... | 0.6799257 | 5 |
gibt die Rechte Gabel zurueck | public Fork getRight() {
return right;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.... | [
"0.6140344",
"0.6084497",
"0.6037237",
"0.5982492",
"0.59338546",
"0.59133303",
"0.5849195",
"0.5831348",
"0.58312047",
"0.5774075",
"0.5753846",
"0.57523257",
"0.5733316",
"0.5711828",
"0.5697685",
"0.5648876",
"0.56417656",
"0.562306",
"0.5619452",
"0.5604496",
"0.5572206",... | 0.0 | -1 |
Gibt die linke Gabel zurueck | public Fork getLeft() {
return left;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void llenarLogros(){\n DefaultTableModel table = (DefaultTableModel) logrosTabla.getModel();\n ArrayList<Logro> logros = ninno.getLogros();\n \n for(Logro logro: logros){\n table.addRow(new Object[]{logro.getBimestreString(), logro.getTitulo(), logro.getEstado()});\n ... | [
"0.6114069",
"0.6069602",
"0.6045963",
"0.6041268",
"0.5936158",
"0.5934714",
"0.5892237",
"0.58578366",
"0.5832577",
"0.58108115",
"0.5810126",
"0.5709918",
"0.56442994",
"0.5611212",
"0.56081456",
"0.5605005",
"0.5603072",
"0.55949306",
"0.5576123",
"0.5574193",
"0.5569048"... | 0.0 | -1 |
Setzt die Rechte Gabel. | public void setRight(Fork right) {
this.right = right;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für para... | [
"0.6571501",
"0.6531755",
"0.65138453",
"0.6419106",
"0.63583994",
"0.6349657",
"0.6339533",
"0.6336995",
"0.6288125",
"0.61330885",
"0.61326045",
"0.61016494",
"0.609859",
"0.6089535",
"0.606151",
"0.60601807",
"0.6009628",
"0.6005306",
"0.59997296",
"0.5997827",
"0.59956115... | 0.0 | -1 |
Setzt die Linke Gabel | public void setLeft(Fork left) {
this.left = left;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setKlinik(Klinik klinik) {\r\n // variabel klinik sama dengan variabel lokal klinik\r\n this.klinik = klinik;\r\n }",
"@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}",
"public void setLien(String lien) {\n this.lien1 = li... | [
"0.66772884",
"0.63947237",
"0.6347329",
"0.6326851",
"0.61456126",
"0.61430174",
"0.6132404",
"0.59859324",
"0.59691525",
"0.59312457",
"0.5913319",
"0.5894234",
"0.5887398",
"0.5859423",
"0.58420324",
"0.5753416",
"0.5744666",
"0.57415175",
"0.57391924",
"0.5729791",
"0.572... | 0.0 | -1 |
Gibt den Client zurueck. | public ClientI getClient() {
return client;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Client getClient();",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"public Cliente() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void updateClient() {\n\t\t\n\t}",
"@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}",
"@Override\n\tpublic void createClient() {\n\t\t\n\t}... | [
"0.73313725",
"0.7324783",
"0.73098797",
"0.72010875",
"0.71549475",
"0.712269",
"0.7045966",
"0.6986994",
"0.6974322",
"0.6945989",
"0.69446963",
"0.6935203",
"0.6904001",
"0.6883291",
"0.68672335",
"0.68564534",
"0.68271524",
"0.6805603",
"0.6788741",
"0.67694134",
"0.67676... | 0.6558377 | 37 |
Data Formatter with extended functionality to format data for output as a standardized file. | public interface IDataExporter <T> extends IDataFormatter <T>{
/**Format the data so that it can be written to a plain text file appropriate to the datatype
*
*/
public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);
public IDataExporter<CRBBase> setBillingParty(String billingParty);
public IDataExporter<CRBBase> setBilledParty(String billedParty);
public IDataExporter<CRBBase> setAccountDate(LocalDate accountDate);
public IDataExporter<CRBBase> setInvoiceNumber(String invoiceNumber);
public IDataExporter<CRBBase> setPriceMaster(char priceMaster);
public IDataExporter<CRBBase> setTaxPayerId(String taxPayerId);
public IDataExporter<CRBBase> setPaymentTerms(int paymentTerms);
public IDataExporter<CRBBase> setPaymentDueDate(LocalDate paymentDueDate);
public IDataExporter<CRBBase> setInquiryContact(CRBContactInfo inquiryContact);
public IDataExporter<CRBBase> setRemitToContact(CRBContactInfo remitToContact);
public IDataExporter<CRBBase> setExceptionsContact(CRBContactInfo exceptionsContact);
public IDataExporter<CRBBase> setBillingContact(CRBContactInfo billingContact);
public IDataExporter<CRBBase> setBilledContact(CRBContactInfo billedContact);
void formatForPlainText() throws IllegalArgumentException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormatter();",
"private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath... | [
"0.58274746",
"0.570829",
"0.54110116",
"0.53604245",
"0.52553684",
"0.5232488",
"0.5227039",
"0.52253157",
"0.5223275",
"0.5203163",
"0.5179291",
"0.5173477",
"0.5158742",
"0.51391804",
"0.5136384",
"0.5119134",
"0.5112433",
"0.5105127",
"0.50821143",
"0.5074272",
"0.4996314... | 0.5186391 | 10 |
Format the data so that it can be written to a plain text file appropriate to the datatype | public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveDataType(int type) throws IOException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/datatype.txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(type + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n }... | [
"0.6040346",
"0.603875",
"0.59707177",
"0.59682226",
"0.58965486",
"0.57521725",
"0.56793964",
"0.5675053",
"0.56340677",
"0.5613128",
"0.5582385",
"0.55472386",
"0.5478313",
"0.54416066",
"0.5436696",
"0.54201037",
"0.54125863",
"0.5403633",
"0.54017884",
"0.5400223",
"0.539... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
LibInterfaceOneTest app2class = new LibInterfaceOneTest(
getApplicationContext());
System.gc();
for (; i < testCases; i++) {
value += app2class.testMethodCall2(value);
}
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "Total: " + value + " total time: "
+ totalTime + " display: " + displayTime1 + ", "
+ displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Total Time : " + displayTime1 + " μs. " + displayTime2
+ " ms. " + displayTime3 + " ns.",
Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.p... | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.628... | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
MainActivity tester = new MainActivity();
System.gc();
for (; i < testCases; i++) {
value += tester.intMethod(value);
}
long finishTime = System.nanoTime();
Log.d("MAIN ACTIVITY",
"************** math = " + tester.intMethod(100));
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "value: " + value + " total time: "
+ totalTime + " display: " + displayTime1 + ", "
+ displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Total: " + value + " Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.p... | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.628... | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
System.gc();
for (; i < testCases; i++) {
value += MainActivity.intMethod2(value);
}
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "total time: " + totalTime + " display: "
+ displayTime1 + ", " + displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Value: " + value + "Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.p... | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.628... | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 99;
int i = 0;
System.gc();
int time1 = MainActivity.intMethod2(value);
MainActivity tester = new MainActivity();
int time2 = tester.intMethod(value);;
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "total time: " + totalTime + " display: "
+ displayTime1 + ", " + displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Value: " + value + "Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.p... | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.628... | 0.0 | -1 |
Constructor Declaration of Class | public Tile(String num, int boardSize)
{
this.num = num;
this.color = "GREEN";
button.setText("_");
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg) {
if(occupied != true) {
System.out.println(num);//print which button was clicked
occupied = true; //make the button register itself as clicked so the game can see it has happened
//close();//closing the button makes it unable to have text... not sure why
//button.setBackground(Color.RED); coloring the buttons also seems to not work for ome reason...
//button.setOpaque(true); ^
//button.setBorderPainted(false); ^
button.setText("♘⦻♞_"); //sets the text of the button to a default of all possible text values
//if the tile has already been occupied then it will do nothing when clicked
}
}
});
//this.button.addActionListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Constructor(){\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private void __sep__Constructors__() {}",
"private Instantiation(){}",
"defaultConstructor(){}",
"public CyanSus() {\n\n }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"void DefaultConstru... | [
"0.79834956",
"0.77859634",
"0.7594428",
"0.7475746",
"0.74625134",
"0.7373163",
"0.73665136",
"0.72334945",
"0.72122896",
"0.7111211",
"0.7089239",
"0.70019174",
"0.69959855",
"0.6945893",
"0.6912709",
"0.6902503",
"0.6902414",
"0.6901879",
"0.69006515",
"0.6878792",
"0.6878... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public IBinder onBind(Intent arg0) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
User: guangtou Date: 2018/6/27 14:44 | @Repository
public interface TbRefundDividendDetailRepository extends JpaRepository<TbRefundDividendDetail, Long> {
List<TbRefundDividendDetail> findAllByDataTimeGreaterThanEqualAndDataTimeLessThanAndState(Date startDate, Date endDate, Integer state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Long getUserCreated();",
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }",
"public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTim... | [
"0.6315092",
"0.5910108",
"0.58042663",
"0.57673377",
"0.57425785",
"0.5729741",
"0.57272726",
"0.5708322",
"0.5708322",
"0.5708322",
"0.5700198",
"0.56979",
"0.56850374",
"0.5670478",
"0.5669754",
"0.56526",
"0.564405",
"0.5636252",
"0.56185657",
"0.56136495",
"0.5606351",
... | 0.0 | -1 |
Return the first value of the query parameter used to paginate (often 1 or empty string) | T getOrderedQueryParameterFirstValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFirstItemOnPage();",
"static int getPageNumber(String value){\n int pageNumber = 1;\n if(!TextUtils.isEmpty(value)){\n pageNumber = Integer.getInteger(value, pageNumber);\n }\n return pageNumber;\n }",
"private static int getFirstResultRelativeToPageNumber(int p... | [
"0.6426877",
"0.62433535",
"0.6181315",
"0.6081765",
"0.6042247",
"0.58522874",
"0.5831845",
"0.5755878",
"0.5740874",
"0.57130224",
"0.5549746",
"0.5514188",
"0.5498065",
"0.5446333",
"0.5426272",
"0.5426272",
"0.54110456",
"0.53826463",
"0.5364425",
"0.5362215",
"0.53616226... | 0.6763164 | 0 |
Set the value of the query parameter used to paginate with the last fetch value | void setOrderedQueryParameter(Query query, T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPagination(Query query) {\r\n\t\tif (getCount() != null && getCount() > 0) {\r\n\t\t\tquery.setMaxResults(getCount());\r\n\t\t}\r\n\t\tif (getPage() != null && getCount() != null) {\r\n\t\t\tquery.setFirstResult(getCount() * (getPage() - 1));\r\n\t\t}\r\n\t}",
"public void setLastPage(int lastPage... | [
"0.63038397",
"0.59366465",
"0.5649312",
"0.5626355",
"0.5575252",
"0.54923105",
"0.54360616",
"0.5392978",
"0.5376164",
"0.5287089",
"0.52839136",
"0.5240283",
"0.52253634",
"0.52046466",
"0.51944536",
"0.5189603",
"0.5188154",
"0.5188037",
"0.51781166",
"0.51614743",
"0.515... | 0.5645121 | 3 |
should use regex with whitespaces | private String normolize(String str) {
String str1 = str.replaceAll("<div class=\"cl\"/></div>", "");
//str1 = new String(str1.getBytes(), "");
return str1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testRegEx(){\n\t\tString emptyLineRegEx = \"\\\\s*\";\r\n\t\t\r\n\t\tassertTrue(\"\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\" \".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\n\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\t\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\r\".matches(empt... | [
"0.69458985",
"0.6744734",
"0.65348303",
"0.650481",
"0.64864063",
"0.6345411",
"0.62369794",
"0.6114548",
"0.61025697",
"0.6079018",
"0.60746074",
"0.60634565",
"0.603709",
"0.60336477",
"0.60173786",
"0.59902",
"0.5979935",
"0.59152436",
"0.5911301",
"0.59059775",
"0.590597... | 0.0 | -1 |
The interface Ticket mapper. | @Mapper(uses = {PassengerMapper.class, TicketScheduleSectionMapper.class})
public interface TicketMapper {
/**
* To dto ticket dto.
*
* @param ticketEntity the ticket entity
* @return the ticket dto
*/
@Mappings({
@Mapping(target = "passengerDto", source = "ticketEntity.passengerEntity"),
@Mapping(target = "ticketScheduleSectionDtoList", source = "ticketEntity.ticketScheduleSectionEntityList")
})
TicketDto toDto(TicketEntity ticketEntity);
/**
* To dto list list.
*
* @param ticketEntityList the ticket entity list
* @return the list
*/
List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);
/**
* To entity ticket entity.
*
* @param ticketDto the ticket dto
* @return the ticket entity
*/
@Mappings({
@Mapping(target = "passengerEntity", source = "ticketDto.passengerDto"),
@Mapping(target = "ticketScheduleSectionEntityList", source = "ticketDto.ticketScheduleSectionDtoList")
})
TicketEntity toEntity(TicketDto ticketDto);
/**
* To entity list list.
*
* @param ticketDtoList the ticket dto list
* @return the list
*/
List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n... | [
"0.6863328",
"0.68443453",
"0.6814248",
"0.6498212",
"0.63757986",
"0.63618773",
"0.6316457",
"0.6257052",
"0.624662",
"0.62221944",
"0.6196914",
"0.61583096",
"0.6122942",
"0.6110944",
"0.6090555",
"0.60360867",
"0.59709924",
"0.5957152",
"0.58267856",
"0.58076924",
"0.58052... | 0.6610916 | 3 |
To dto ticket dto. | @Mappings({
@Mapping(target = "passengerDto", source = "ticketEntity.passengerEntity"),
@Mapping(target = "ticketScheduleSectionDtoList", source = "ticketEntity.ticketScheduleSectionEntityList")
})
TicketDto toDto(TicketEntity ticketEntity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"public TicketDto convertTicketDto(Ticket ticket) {\r\n\t\tTicketDto ticketDto = new TicketDto(ticket.getTicketId(),ticket.getNoOfSeats(),ticket.getSeatIds(),ticket.getScreenName());\r\n\t\treturn ticketDto;\r\n\t}"... | [
"0.81289333",
"0.77594656",
"0.732776",
"0.7090893",
"0.67809916",
"0.6702664",
"0.6376191",
"0.60906315",
"0.608752",
"0.60098296",
"0.59934103",
"0.59647685",
"0.5882081",
"0.5878054",
"0.5819349",
"0.5794317",
"0.57574016",
"0.5741125",
"0.5733747",
"0.5717892",
"0.5648127... | 0.6640829 | 6 |
To dto list list. | List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);",
"@Override\n\tpublic List<PedidoDTO> toDto(List<Pedido> entityList) {\n\t\treturn null;\n\t}",
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n ... | [
"0.714651",
"0.71009296",
"0.7055669",
"0.70445156",
"0.690391",
"0.68621427",
"0.6854599",
"0.67835903",
"0.67513037",
"0.6717903",
"0.6710004",
"0.6685685",
"0.66490555",
"0.6628301",
"0.6586001",
"0.64289963",
"0.6426152",
"0.64123434",
"0.6401071",
"0.63468987",
"0.632683... | 0.7010413 | 4 |
To entity ticket entity. | @Mappings({
@Mapping(target = "passengerEntity", source = "ticketDto.passengerDto"),
@Mapping(target = "ticketScheduleSectionEntityList", source = "ticketDto.ticketScheduleSectionDtoList")
})
TicketEntity toEntity(TicketDto ticketDto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);",
"public void toEntity(){\n\n }",
"List<Ticket> ticketDTOToTicket(List<TicketDTO> all);",
"public CuentaEntity toEntity() {\r\n Cuent... | [
"0.74872226",
"0.7310208",
"0.70357794",
"0.6420507",
"0.63437986",
"0.6285042",
"0.62053686",
"0.6133707",
"0.6129079",
"0.6101311",
"0.6069639",
"0.6032688",
"0.60115606",
"0.6009041",
"0.59985965",
"0.597354",
"0.5942329",
"0.5941793",
"0.5940117",
"0.591368",
"0.5882594",... | 0.6927811 | 3 |
To entity list list. | List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<T> convertToEntities(List<D> dtos);",
"@Override\n\tpublic List<Pedido> toEntity(List<PedidoDTO> dtoList) {\n\t\treturn null;\n\t}",
"private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos... | [
"0.7204198",
"0.6945512",
"0.68613684",
"0.68457246",
"0.6800744",
"0.656455",
"0.6501077",
"0.6491884",
"0.64525133",
"0.64390045",
"0.6428649",
"0.64260066",
"0.6416855",
"0.64147043",
"0.6350479",
"0.6348693",
"0.63172126",
"0.62663555",
"0.6258004",
"0.62389845",
"0.62353... | 0.6688693 | 5 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int countByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.50327... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int deleteByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.5032... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int deleteByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.5032... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int insert(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60906166",
"0.56526107",
"0.5617674",
"0.55837315",
"0.55136687",
"0.5429205",
"0.5411432",
"0.53696513",
"0.5340896",
"0.52781796",
"0.527689",
"0.5241337",
"0.5221943",
"0.519121",
"0.51648223",
"0.51361287",
"0.5063901",
"0.5061823",
"0.5059611",
"0.5048682",
"0.5030823... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int insertSelective(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.50327... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | List<QtActivitytype> selectByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5... | 0.52778 | 9 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | QtActivitytype selectByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030... | 0.52413064 | 11 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByExampleSelective(@Param("record") QtActivitytype record, @Param("example") QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60906166",
"0.56526107",
"0.5617674",
"0.55837315",
"0.55136687",
"0.5429205",
"0.5411432",
"0.53696513",
"0.5340896",
"0.52781796",
"0.527689",
"0.5241337",
"0.5221943",
"0.519121",
"0.51648223",
"0.51361287",
"0.5063901",
"0.5061823",
"0.5059611",
"0.5048682",
"0.5030823... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByExample(@Param("record") QtActivitytype record, @Param("example") QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.50327... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByPrimaryKeySelective(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.5032... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByPrimaryKey(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n ... | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.5032... | 0.0 | -1 |
MyTreeNode newNode = new MyTreeNode(); | public void insert(T x) {
if (data == null) {
// root = new MyTreeNode<T>();
data = x;
return;
}
MyTreeNode<T> node = new MyTreeNode<T>();
node.data = x;
if (x.compareTo(data) < 0) {
if (leftChild == null) {
leftChild = node;
} else {
leftChild.insert(x);
}
// pointerNode = pointerNode.leftChild;
// if (pointerNode == null) {
//
// parent.leftChild = insert;
//
// return;
//
// }
} else if (x.compareTo(data) > 0) {
if (rightChild == null) {
rightChild = node;
} else {
rightChild.insert(x);
}
} else {
if (leftChild == null) {
leftChild = node;
} else {
leftChild.insert(x);
}
if (rightChild == null) {
rightChild = node;
} else {
rightChild.insert(x);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TreeNode() {\n }",
"static TreeNode newNode(int item) \n\t{ \n\t\tTreeNode temp = new TreeNode(); \n\t temp.key = item; \n\t temp.left = null; \n\t temp.right = null; \n\t return temp; \n\t}",
"TreeNode addChild(TreeNode node);",
"public TreeNode() {\n // do nothing\n }"... | [
"0.73970044",
"0.7155957",
"0.71440285",
"0.7137112",
"0.707384",
"0.7059773",
"0.700888",
"0.6983895",
"0.6957836",
"0.6869132",
"0.6827962",
"0.68250036",
"0.68168354",
"0.67264265",
"0.66384256",
"0.6632812",
"0.6611936",
"0.65861857",
"0.65861857",
"0.65861857",
"0.658618... | 0.0 | -1 |
Object methods Adds info to a hashMap and returns false if it already exists and true if added | public boolean add(RegistrationPlate plate, String owner){
if(this.registrationList.containsKey(plate)){
return false;
}
else {
this.registrationList.put(plate, owner);
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate boolean checkAndAdd(DefinitionName key, DmsDefinition obj, HashMap map){\n if (map.containsKey(key))\n return(false);\n else\n map.put(key,obj);\n\n return(true);\n }",
"@SuppressWarnings(\"unchecked\")\n\... | [
"0.71376264",
"0.69395375",
"0.6738148",
"0.66316503",
"0.66269344",
"0.66174865",
"0.6601254",
"0.6503552",
"0.64383733",
"0.6356147",
"0.63264865",
"0.6260561",
"0.62566257",
"0.6073825",
"0.6040215",
"0.60314196",
"0.60236377",
"0.6001916",
"0.5973027",
"0.59652764",
"0.59... | 0.0 | -1 |
Returns the cars owner if it exists or null if it doesn't | public String get(RegistrationPlate plate){
if(!this.registrationList.containsKey(plate))
return null;
return this.registrationList.get(plate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<String> getOwner();",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public void setCarOwner(String carOwner)\n {\n this.carOwner = carOwner;\n }",
"public Player getOwner() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);... | [
"0.6953029",
"0.6737546",
"0.6737546",
"0.65127087",
"0.6487428",
"0.6406746",
"0.6406746",
"0.6387674",
"0.63739854",
"0.63306",
"0.63132644",
"0.62970454",
"0.62855357",
"0.6245091",
"0.62103635",
"0.61725223",
"0.6092275",
"0.6092275",
"0.6083691",
"0.60835",
"0.6070379",
... | 0.0 | -1 |
Deletes the cars owner if it exists and returns true, false if it doesn't exist | public boolean delete(RegistrationPlate plate){
if(this.registrationList.containsKey(plate)) {
this.registrationList.remove(plate);
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean deleteCar(Car car) {\n\t\treturn carInter.deleteCar(car);\n\t}",
"public boolean deleteKey(String owner) {\n PublicKeyInfo key;\n\n for (int i = 0; i < keystore.numberOfKeys(); i++) {\n key = keystore.getKey(i);\n if (key.getOwner().equals(owner)) {... | [
"0.6860768",
"0.6339344",
"0.6330605",
"0.6215489",
"0.61603993",
"0.6124528",
"0.6020501",
"0.5838326",
"0.5821547",
"0.580382",
"0.5754058",
"0.5745434",
"0.5733237",
"0.5711485",
"0.57033455",
"0.5698839",
"0.56893104",
"0.5656706",
"0.56527555",
"0.56527555",
"0.56498235"... | 0.5454804 | 43 |
Displays all registration plates | public void printRegistrationPlates(){
for(RegistrationPlate plates: this.registrationList.keySet()){
System.out.println(plates);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void viewListOfRegistrants() {\n\t\tArrayList<Registrant> list_reg = getRegControl().listOfRegistrants();\r\n\t\tif (list_reg.size() == 0) {\r\n\t\t\tSystem.out.println(\"No Registrants loaded yet\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"List of registrants:\\n\");\r\n\t\t\tfor (Registran... | [
"0.6863282",
"0.65085304",
"0.6171512",
"0.59939104",
"0.5883866",
"0.5860423",
"0.5851464",
"0.5843924",
"0.5775437",
"0.5750821",
"0.57371634",
"0.5728402",
"0.5695423",
"0.56642425",
"0.5658563",
"0.56474876",
"0.56460905",
"0.56380093",
"0.56305045",
"0.55923957",
"0.5582... | 0.794396 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.