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
Constructor for the single instance of the game. Constructs the instance of the labyrinth and creates the various hashMap.
private Game() { labyrinth = Labyrinth.getInstance(); player = Player.getInstance(); candies = new HashMap<>(); enemies = new HashMap<>(); buttons = new HashMap<>(); generateCandies(); generateEnemies(); //generateButtons(); score = Score.getInstance(); //Put the door randomly. int coordX = ThreadLocalRandom.current().nextInt(0, 16); int coordY = ThreadLocalRandom.current().nextInt(0, 16); this.door = Door.getInstance(coordX, coordY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Labyrinth(Labyrinth lab) {\n\t\tthis.squares = lab.getSquares();\n\t\tthis.width = lab.width;\n\t\tthis.height = lab.height;\n\t}", "public Trainer()\n\t{\n\t\t//tba = new DualHashBidiMap<>();\n\t\t//fba = new DualHashBidiMap<>();\n\t\t//cba = new DualHashBidiMap<>();\n\t}", "public HealthyWorld()\n ...
[ "0.68348897", "0.6479396", "0.6295161", "0.6144098", "0.6055636", "0.6033676", "0.6028888", "0.59716266", "0.5928444", "0.5921292", "0.59194434", "0.59085673", "0.58993584", "0.5861947", "0.5845505", "0.5837603", "0.5803658", "0.57887566", "0.57774657", "0.57763326", "0.57668...
0.5941559
8
Returns the only existing instance of a game.
public static Game getInstance() { if (game == null) game = new Game(); return game; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Game getGame()\n\t{\n\t\tif(instance == null)\n\t\t\tinstance = new Game();\n\t\treturn instance;\n\t}", "public synchronized Game getAvailableGame() {\n // if game available with 1 player, return that, otherwise make new game, add it to internal list of games, and return it\n\n Set<S...
[ "0.69747585", "0.6953269", "0.6883025", "0.66848725", "0.6629728", "0.66287905", "0.6588094", "0.657826", "0.65683526", "0.64836836", "0.64629984", "0.63809115", "0.6378049", "0.63533777", "0.631946", "0.6244626", "0.62417066", "0.61696553", "0.6165926", "0.6156942", "0.61364...
0.7008361
0
returns the single instance of a player
public Player getPlayer() { return player; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }", "Player getPlayer();", "Player getPlayer(UUID playerId);", "public Player getPlayer();", "public Player getPlayer();", "protec...
[ "0.7721273", "0.76570785", "0.7604785", "0.7288095", "0.7288095", "0.71893615", "0.7152556", "0.7152556", "0.71289474", "0.7124841", "0.7025592", "0.69785494", "0.6973069", "0.6963533", "0.6897018", "0.68933344", "0.68835807", "0.68572736", "0.68540627", "0.6842471", "0.68408...
0.6732373
45
returns the single instance of the labyrinth
public Labyrinth getLabyrinth() { return labyrinth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Labyrinth(Labyrinth lab) {\n\t\tthis.squares = lab.getSquares();\n\t\tthis.width = lab.width;\n\t\tthis.height = lab.height;\n\t}", "public void createLabyrinth() {\n int x = numberGenerator.nextInt(width-1);\n int y = numberGenerator.nextInt(height-1);\n //first walk until stop\n ...
[ "0.6384668", "0.6272034", "0.559686", "0.55444306", "0.5415692", "0.5316064", "0.5305332", "0.52887434", "0.5137811", "0.50906724", "0.5058938", "0.5039146", "0.50051326", "0.49976256", "0.49959403", "0.49854907", "0.4970504", "0.49498808", "0.4931647", "0.49218825", "0.49184...
0.75436705
0
return the hashmap containing every candy in game.
public HashMap<Integer, Element> getCandies() { return candies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<Integer, CheckersGame> getCurrentGames() {\n HashMap<Integer, CheckersGame> currentGames = new HashMap<>();\n Iterator<Map.Entry<Integer, CheckersGame>> cgit = games.entrySet().iterator();\n\n while (cgit.hasNext()) {\n Map.Entry<Integer, CheckersGame> entry = cgit.ne...
[ "0.65688187", "0.629066", "0.60642606", "0.5899388", "0.5849014", "0.5849014", "0.58083445", "0.5668711", "0.56640095", "0.5662902", "0.5654784", "0.5654035", "0.5639251", "0.5620608", "0.56204575", "0.5616772", "0.5580701", "0.5569297", "0.5561921", "0.5543473", "0.55405396"...
0.67850864
0
return the hashmap containing every enemy in game.
public HashMap<Integer, Element> getEnemies() { return enemies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateEnemies(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tEnemy enemy = new Enemy(coordX,coordY);\n\t\tenemies.put(0, enemy);\n\t\tcoordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tcoordY = ThreadLocalRan...
[ "0.6675461", "0.65714", "0.6462756", "0.6371919", "0.6318827", "0.62598526", "0.6250796", "0.62225735", "0.6092934", "0.5955375", "0.5916716", "0.5904656", "0.58734715", "0.5870764", "0.5856444", "0.5784758", "0.572255", "0.572055", "0.5691911", "0.56729835", "0.56322294", ...
0.76591307
0
return the hashmap containing every button in game.
public HashMap<Integer, Element> getButtons() { return buttons; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<Integer, Button> getButtons(){\r\n\t\tMap<Integer, Button> buttons = new HashMap<Integer, Button>();\r\n\r\n\t\tButton toLeftBt = new Button(\"&lt;\");\r\n\t\tbuttons.put(0, toLeftBt);\r\n\t\tButton toRightBt = new Button(\"&gt;\");\r\n\t\tbuttons.put(2, toRightBt);\r\n\t\tfinal Button playBt = new But...
[ "0.73789877", "0.71785194", "0.70475817", "0.6571518", "0.6388881", "0.60858744", "0.60584307", "0.6038705", "0.60297537", "0.5985202", "0.5982063", "0.5919061", "0.5902848", "0.58997834", "0.58757204", "0.58685774", "0.5778145", "0.5774058", "0.5736545", "0.5669926", "0.5654...
0.77562886
0
return the single instance of the score element.
public Score getScore() { return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Score getScore()\r\n { \r\n return theScore;\r\n }", "public Double getScore() {\n return this.score;\n }", "public Double getScore() {\n return this.score;\n }", "public double getScore() {\r\n return score;\r\n }", "public double getScore() {\r\n ...
[ "0.6633084", "0.6573555", "0.6573555", "0.65722543", "0.6566777", "0.6518228", "0.650438", "0.6503312", "0.6485105", "0.6439262", "0.6430046", "0.6428619", "0.64271986", "0.6403325", "0.6403325", "0.6396997", "0.63965094", "0.63881516", "0.63865924", "0.63865924", "0.63865924...
0.66044325
1
return the single instance of the door
public Door getDoor() { return door; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SingleObject getInstance(){\n return instance;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public int getDoorID()\n {\n return id;\n }", "public ...
[ "0.68731016", "0.6809128", "0.67462236", "0.65416884", "0.63866806", "0.6347352", "0.62502736", "0.62301916", "0.61959666", "0.6188857", "0.6148186", "0.6129984", "0.6126776", "0.61218673", "0.6055473", "0.6040974", "0.6007037", "0.5991999", "0.59685177", "0.5952835", "0.5952...
0.71106017
0
Generates candies randomly placed on the board. Every candy is added to the hashmap with an unique ID.
private void generateCandies(){ for (int i = 0; i < 16; i++){ int coordX = ThreadLocalRandom.current().nextInt(0, 16); int coordY = ThreadLocalRandom.current().nextInt(0, 16); Candy candy = new Candy(coordX, coordY, i); candies.put(i, candy); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newCandy() {\n\t\tDebugger.print(\"Making new candy\");\n\t\tint x = (Random.nextInt(1, this.SIZE * 2) - 2);\n\t\tint y = (Random.nextInt(1, this.SIZE - 2));\n\n\t\tTile t = new Tile(x, y);\n\t\tboolean foundFreeTile = false;\n\t\twhile (!foundFreeTile) {\n\t\t\tfor (Snake snake : this.snakes) {\n\t\t\...
[ "0.70183533", "0.63676304", "0.61911327", "0.61391246", "0.60935724", "0.6063027", "0.59133327", "0.58767545", "0.5825504", "0.58044404", "0.57538974", "0.5680292", "0.5668286", "0.5644289", "0.5640886", "0.56054074", "0.5600848", "0.5575192", "0.55567724", "0.552963", "0.551...
0.8485811
0
Generates two enemies placed randomly on the board. Each enemy is added to the hashmap with an unique ID
private void generateEnemies(){ int coordX = ThreadLocalRandom.current().nextInt(0, 16); int coordY = ThreadLocalRandom.current().nextInt(0, 16); Enemy enemy = new Enemy(coordX,coordY); enemies.put(0, enemy); coordX = ThreadLocalRandom.current().nextInt(0, 16); coordY = ThreadLocalRandom.current().nextInt(0, 16); enemy = new Enemy(coordX,coordY); enemies.put(1, enemy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateEnemies() {\n for(int i =0; i < currentEnemies.length; i++) {\n Attributes a = genAttributes();\n double[] healthSpeed = genHealthAndSpeed();\n LinkedList<Pathing> paths = map.getPathings();\n this.currentEnemies[i] = new Enemy(determineImage(...
[ "0.69261235", "0.68696177", "0.68541586", "0.68359035", "0.67366624", "0.67240924", "0.6584317", "0.6555476", "0.64961106", "0.6474633", "0.6399404", "0.63599056", "0.6340001", "0.63297504", "0.63194925", "0.62566125", "0.62554044", "0.6180888", "0.61531836", "0.6084603", "0....
0.8180215
0
Generates buttons placed randomly on the board. Each button is added to the hashmap with an unique ID
private void generateButtons(){ int coordX = ThreadLocalRandom.current().nextInt(0, 16); int coordY = ThreadLocalRandom.current().nextInt(0, 16); //Button button = new Button(coordX, coordY); //buttons.put(0, button); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateNewNumbersForKeyboard(JLabel[] keyboardButtons) {\r\n ArrayList<Integer> numbers = new ArrayList<>();\r\n Random randomGenerator = new Random();\r\n while (numbers.size() < keyboardButtons.length - 1) {\r\n int random = randomGenerator.nextInt(10);\r\n ...
[ "0.6260759", "0.6218473", "0.6095469", "0.6067756", "0.60557926", "0.6038443", "0.59554976", "0.594476", "0.59248906", "0.59223485", "0.5895116", "0.58934754", "0.58837163", "0.5877534", "0.5875279", "0.58292866", "0.58200955", "0.58168685", "0.5816123", "0.58156306", "0.5813...
0.8480311
0
Resets the game instance. A new Labyrinth is generated. The player is placed at its default position and the door is placed randomly. The various HashMap are also reinitialized and new enemies, candies and buttons are generated.
public void resetGame(){ labyrinth.reset(); labyrinth = Labyrinth.getInstance(); player.setX(0); player.setY(0); candies = new HashMap(); enemies = new HashMap(); buttons = new HashMap(); int coordX = ThreadLocalRandom.current().nextInt(0, 16); int coordY = ThreadLocalRandom.current().nextInt(0, 16); door.setX(coordX); door.setY(coordY); generateCandies(); generateEnemies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Game() {\n\t\tlabyrinth = Labyrinth.getInstance();\n\t\tplayer = Player.getInstance();\n\n\t\tcandies = new HashMap<>();\n\t\tenemies = new HashMap<>();\n\t\tbuttons = new HashMap<>();\n\n\t\tgenerateCandies();\n\t\tgenerateEnemies();\n\t\t//generateButtons();\n\n\t\tscore = Score.getInstance();\n\n\t\t//P...
[ "0.7327624", "0.69546735", "0.66889805", "0.66295534", "0.66277444", "0.66101533", "0.6515936", "0.6467046", "0.64553976", "0.64279836", "0.64268893", "0.64213663", "0.64055806", "0.63790345", "0.63786155", "0.6372719", "0.63714755", "0.6370799", "0.6341922", "0.6338308", "0....
0.86325145
0
Gesture Swipe left to right in portrait mode
public void swipeRightToLeftAt70PercentFromTop(AndroidDriver<WebElement> androidDriver){ int startX = (int) (getDeviceSize(androidDriver).width * 0.80); int endX = (int) (getDeviceSize(androidDriver).width * 0.20); int startY = (int) (getDeviceSize(androidDriver).height * 0.70); androidDriver.swipe(startX, startY, endX, startY, 300); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onSwipeRight() {\n\t\tcurrentGestureDetected = \"direita\";\r\n\t\t\r\n\t}", "boolean onViewSwipedToLeft(int position);", "boolean onViewSwipedToRight(int position);", "public void onSwipeRight() {\n }", "private void onSwipeLeft() {\n\t\t\r\n\t}", "@Override\n public boolean o...
[ "0.72955984", "0.7117158", "0.69185305", "0.6891169", "0.6837137", "0.6831714", "0.68301946", "0.6725266", "0.6526095", "0.6467858", "0.6304217", "0.616242", "0.6159911", "0.61420965", "0.61055833", "0.6094258", "0.6025581", "0.60122687", "0.6009395", "0.6009041", "0.6001", ...
0.0
-1
Gesture Swipe right to left in portrait mode
public void swipeLeftToRightAt70PercentFromTop(AndroidDriver<WebElement> androidDriver){ int startX = (int) (getDeviceSize(androidDriver).width * 0.20); int endX = (int) (getDeviceSize(androidDriver).width * 0.80); int startY = (int) (getDeviceSize(androidDriver).height * 0.70); androidDriver.swipe(startX, startY, endX, startY, 300); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onSwipeRight() {\n\t\tcurrentGestureDetected = \"direita\";\r\n\t\t\r\n\t}", "boolean onViewSwipedToRight(int position);", "boolean onViewSwipedToLeft(int position);", "public void onSwipeRight() {\n }", "public void onSwipeRight(View v, float delta);", "public void rightSwipe() {...
[ "0.7457362", "0.7166896", "0.7148136", "0.71123016", "0.6946733", "0.6767272", "0.6761374", "0.6753264", "0.6718838", "0.6388967", "0.6278265", "0.6250507", "0.62085456", "0.6142869", "0.6101713", "0.6089034", "0.6087462", "0.6076357", "0.607614", "0.600688", "0.59948003", ...
0.0
-1
Gesture Moving element from one position to another
public void moveElemetnt1ToElement2Position(AndroidDriver<WebElement> androidDriver, WebElement fromElement1, WebElement toElement2){ TouchAction touchAction = new TouchAction(androidDriver); touchAction.longPress(fromElement1).moveTo(toElement2).release().perform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onIdentityMove(int fromPosition, int toPosition);", "public void moveDown(TLProperty element);", "@Override\n public void onMove(float x, float y) {\n }", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n...
[ "0.65948886", "0.6264327", "0.6235711", "0.62114733", "0.6167657", "0.6158622", "0.61407655", "0.61160886", "0.61093473", "0.6105838", "0.6082545", "0.60741496", "0.60694325", "0.6068825", "0.6048526", "0.60283816", "0.60160905", "0.60028344", "0.59835106", "0.59835106", "0.5...
0.60759336
11
tapping with two fingers
public void tapwithOnefingures(AndroidDriver<WebElement> androidDriver, WebElement element){ androidDriver.tap(1, element, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTwoFingerSingleTap() {\n showToast(\"两个手指点击\");\n LogUtil.e(\"onTwoFingerSingleTap\");\n }", "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "void onDoubleTapAndHold(MotionEvent event, int policy...
[ "0.6894311", "0.66421205", "0.6481915", "0.6466255", "0.6416969", "0.6350794", "0.6343336", "0.6342875", "0.63081574", "0.6255249", "0.62155807", "0.62155807", "0.6209447", "0.62085176", "0.6188523", "0.61800057", "0.61800057", "0.61800057", "0.6177821", "0.6177589", "0.61663...
0.0
-1
tapping with two fingers
public void tapwithTwofingures(AndroidDriver<WebElement> androidDriver, WebElement element){ androidDriver.tap(2, element, 500); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTwoFingerSingleTap() {\n showToast(\"两个手指点击\");\n LogUtil.e(\"onTwoFingerSingleTap\");\n }", "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "void onDoubleTapAndHold(MotionEvent event, int policy...
[ "0.6894311", "0.66421205", "0.6481915", "0.6466255", "0.6416969", "0.6350794", "0.6343336", "0.6342875", "0.63081574", "0.6255249", "0.62155807", "0.62155807", "0.6209447", "0.62085176", "0.6188523", "0.61800057", "0.61800057", "0.61800057", "0.6177821", "0.6177589", "0.61663...
0.0
-1
Create a new Person with this name. initialize vars
public Person(String name) { // Person person1 = new Person(name); this.name = name; this.listOfFriends = new LinkedQueue<Person>(); this.messages = new LinkedStack<String>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}", "public Person(String name){\n\t\tthis.name = name ; \n\t}", "public Person(String name) {\n this.name = name;\n }", "public Person(String name)\n {\n this.name = name;\n }", "public Person(String firstName...
[ "0.8109439", "0.79657036", "0.7820929", "0.7783605", "0.7712581", "0.76678044", "0.7628661", "0.7608727", "0.7509003", "0.74475956", "0.7319007", "0.7290826", "0.728899", "0.7267779", "0.72272515", "0.7220115", "0.72187537", "0.72137225", "0.7195018", "0.71281123", "0.7075131...
0.7324763
10
Make these two people become friends with each other. Throw an exception if you try to meet yourself. We are allowed to assume we didn't meet this person yet.
public void meet(Person otherPerson) { if (this.equals(otherPerson)) { throw new RuntimeException(); } else { // add friend listOfFriends.enqueue(otherPerson); // add yourself to other person's list otherPerson.listOfFriends.enqueue(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeFriend(String name1, String name2) { \t\r\n\t \r\n\t if(name1==null || name2==null) return;\r\n\t \r\n\t if(friendsCache.containsKey(name1)){\r\n\t\t //add only if name2 is not friends with name1 already\r\n\t\t if(!friendsCache.get(name1).contains(name2)) friendsCache.get(name1).add(name2);\r\n\t...
[ "0.63712627", "0.62414044", "0.6231681", "0.6040625", "0.58846295", "0.588217", "0.58019775", "0.57867384", "0.5774818", "0.57545483", "0.5744185", "0.57040334", "0.5672065", "0.56617564", "0.56175214", "0.5611066", "0.5608741", "0.5562239", "0.55485797", "0.5513864", "0.5471...
0.70213187
0
Are these two people friends? Throw an exception if you ask about knowing yourself.
public boolean knows(Person otherPerson) { if (otherPerson == this) { throw new RuntimeException(); } else { // no for loop /* * Person person = listOfFriends.getFront() * while(listOfFriends.getFront() != null) { if(otherPerson == * listOfFriends.getFront()) return true; person = * getFront().getNext(); } */ /*List<Person> iter = new ArrayList<Person>(); for(Person person : listOfFriends) iter.add(person); */ for (Person person : listOfFriends ) { if (person == otherPerson){ return true;} } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean knows(int a, int b) {\n\t\treturn false;\n\t}", "public boolean isDangerousToPeople() {\n\t\treturn this.eats.equals(\"people\");\n\t}", "boolean hasUknown();", "@Test\r\n\tpublic void testDenyFriendRequest() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tp1.receiveFriendRequest(\"JavaLord\", \"JavaLordD...
[ "0.60230166", "0.6014473", "0.5854886", "0.5798929", "0.56363636", "0.56159073", "0.5561774", "0.5548596", "0.553728", "0.55165076", "0.5504057", "0.5500157", "0.54621106", "0.5398538", "0.5391247", "0.53794986", "0.53424644", "0.53371114", "0.53285074", "0.5317545", "0.52841...
0.5238974
30
Post a message to my list and the lists of all my friends stack push
public void post(String message) { messages.push(message); for (Person p : listOfFriends){ p.messages.push(message);} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void push(String message);", "private void forwardMessageToAll(Message m) {\n for (GuestToken tok: guestTokens.values())\n {\n tok.sendMessage(m);\n }\n for (EmployeeToken tok: employeeTokens.values())\n {\n tok.sendMessage(m);\n }\n }", "publi...
[ "0.582907", "0.5739323", "0.5696132", "0.56801194", "0.56591266", "0.5559541", "0.5553656", "0.55113065", "0.55070513", "0.54969174", "0.5480309", "0.5428599", "0.5420593", "0.541463", "0.5384866", "0.53823227", "0.53694504", "0.53591096", "0.5357936", "0.5355585", "0.5352248...
0.75355905
0
Print a header, then all messages this Person can read, newest first
public void listMessages() { System.out.println("== The wall of " + name + " =="); for(String msg : messages) { System.out.println(msg); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printHeader () {\n System.out.println(\"COMPLETED HEADER PARSING\");\n System.out.println(\"________________________\");\n for(String header : parseTableHeader.keySet()) {\n System.out.print(header);\n System.out.println(parseTableHeader.get(header));\n ...
[ "0.6412386", "0.6129779", "0.6108618", "0.5858221", "0.57110655", "0.5680462", "0.5569718", "0.5567351", "0.55394095", "0.549507", "0.5468469", "0.5468451", "0.5427092", "0.54212546", "0.5405319", "0.53657645", "0.53400826", "0.5336292", "0.5316137", "0.5307958", "0.53043133"...
0.50118625
54
this.songRepository.save(new Song(artist, genre, lyrics, songtitle))
@Override public void run(String... args) throws Exception { this.songRepository.save(new Song("Chris Brown", "Hip-Hop", "Oh, baby, everything you do is amazing Aint nobody watching, go crazy, I got what you need…", "Go Crazy")); this.songRepository.save(new Song("Drake", "Hip-Hop", "Man what a time to be alive. You and yours vs me and mine. Oh we talking teams? Oh we talking teams? Oh you switchin sides? Wanna come with me?", "Big Rings")); this.songRepository.save(new Song("Tim McGraw", "Country", "Dont expect a free ride from no one. Dont hold a grudge or a chip and heres why. Bitterness keeps you from flyin. Always stay humble and kind.", "Ring of Fire")); this.songRepository.save(new Song("test", "test", "test", "test")); // this.songRepository.save(new Song()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveSong(Song s)\n\t{\n\t\tsavedSongs.addSong(s);\n\t}", "@Override\n\tpublic List<Song> saveSongs(List<Song> songs) {\n\t\tsongRepository.saveAll(songs);\n\t\treturn songs;\n\t}", "public Article save(Article article);", "public void setSong(SongEntity song)\r\n {\r\n this.song = song;...
[ "0.7163727", "0.69677734", "0.695332", "0.68135333", "0.6757196", "0.6713546", "0.6710446", "0.6609186", "0.65916675", "0.6590254", "0.657213", "0.6555546", "0.65439475", "0.6539388", "0.6483176", "0.6467342", "0.645625", "0.6418052", "0.639829", "0.63812196", "0.63648015", ...
0.0
-1
Public API to access the Movilizer Cloud Services and utils related to it. Features: Compiled WSDL to Java classes and (a)sync webservice calls HTTP POST method to upload documents Convenient method for upload only requests File access and persistence to load and save Movilizer requests toString methods for Movilizer requests
public interface MovilizerDistributionService { // ---------------------------------------------------------------------- Webservice interaction /** * Set systemd Id and password for the request and erases the replies from next response. * * @param systemId the system id to be set in the request. * @param password the password to be set in the request. * @param request request to be modified for upload. * @return the same request entered in the method parameters but with the credentials and number * of replies changed. * @since 12.11.1.0 */ MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request); /** * Set systemd Id and password for the request and set the number of replies replies from next * response. * * @param systemId the system id to be set in the request. * @param password the password to be set in the request. * @param numResponses the number of responses to receive in the response. * @param request request to be modified for upload. * @return the same request entered in the method parameters but with the credentials and number * of replies changed. * @since 12.11.1.0 */ MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses, MovilizerRequest request); /** * Perform a synchronous request the Movilizer cloud. * * @param request request to be used in the call. * @return the response coming from the cloud with the corresponding acknowledgements, errors, * replies and datacontainers. * @throws MovilizerWebServiceException when there's connection problems. * @since 12.11.1.0 */ MovilizerResponse getReplyFromCloudSync(MovilizerRequest request); /** * Perform a synchronous request the Movilizer cloud. * * @param request request to be used in the call. * @param connectionTimeoutInMillis connection timeout to be used in the call. * @param receiveTimeoutInMillis receive timeout to be used in the call. * @return the response coming from the cloud with the corresponding acknowledgements, errors, * replies and datacontainers. * @throws MovilizerWebServiceException when there's connection problems. * @since 12.11.1.0 */ MovilizerResponse getReplyFromCloudSync(MovilizerRequest request, Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis); /** * Perform an asynchronous request the Movilizer cloud. * * @param request request to be used in the call. * @return A completable future with the response. * @throws MovilizerWebServiceException when there's connection problems. * @see CompletableFuture * @since 15.11.2.2 */ CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request); /** * Perform an asynchronous request the Movilizer cloud. * * @param request request to be used in the call. * @param connectionTimeoutInMillis connection timeout to be used in the call. * @param receiveTimeoutInMillis receive timeout to be used in the call. * @return A completable future with the response. * @throws MovilizerWebServiceException when there's connection problems. * @see CompletableFuture * @since 12.11.2.2 */ CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request, Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis); /** * Indicate if the response java instance has errors. * * @param response the response to be analyzed. * @return true in case response has errors else false. * @since 12.11.1.3 */ Boolean responseHasErrors(MovilizerResponse response); /** * Generate a string with errors. * * @param response the response that contains the errors. * @return string represantion of the errors to use in messages. * @since 12.11.1.3 */ String responseErrorsToString(MovilizerResponse response); /** * Send all files that has .mxml extension in a folder and subfolders collecting all cloud * responses. * * @param folder to walk for the request files. * @return a list with all the cloud responses. * @since 15.11.1.5 */ List<MovilizerResponse> batchUploadFolderSync(Path folder); // ----------------------------------------------------------------------------- Document upload /** * Perform a synchronous blob upload to the Movilizer Cloud given the input stream. * * @param documentInputStream the input stream containing the blob/document to upload. * @param filename the name of the file for the document. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @return the upload response with the results of the upload * @throws MovilizerWebServiceException when there's connection problems. * @see UploadResponse * @since 12.11.1.0 */ UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey); /** * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file. * * @param documentFilePath the path to the document file to upload. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @return the upload response with the results of the upload * @throws MovilizerWebServiceException when there's connection or file access problems. * @see UploadResponse * @since 12.11.1.0 */ UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey); /** * Perform a synchronous blob upload to the Movilizer Cloud given the input stream. * * @param documentInputStream the input stream containing the blob/document to upload. * @param filename the name of the file for the document. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @param connectionTimeoutInMillis timeout of the request. * @return the upload response with the results of the upload * @throws MovilizerWebServiceException when there's connection problems. * @see UploadResponse * @since 12.11.1.2 */ UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis); /** * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file. * * @param documentFilePath the path to the document file to upload. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @param connectionTimeoutInMillis timeout of the request. * @return the upload response with the results of the upload * @throws MovilizerWebServiceException when there's connection or file access problems. * @see UploadResponse * @since 12.11.1.2 */ UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis); /** * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream. * * @param documentInputStream the input stream containing the blob/document to upload. * @param filename the name of the file for the document. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @return a future with the upload response. * @throws MovilizerWebServiceException when there's connection problems. * @see CompletableFuture * @see UploadResponse * @since 15.11.2.2 */ CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey); /** * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file. * * @param documentFilePath the path to the document file to upload. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @return a future with the upload response. * @throws MovilizerWebServiceException when there's connection or file access problems. * @see CompletableFuture * @see UploadResponse * @since 15.11.2.2 */ CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey); /** * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream. * * @param documentInputStream the input stream containing the blob/document to upload. * @param filename the name of the file for the document. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @param connectionTimeoutInMillis timeout of the request. * @return a future with the upload response. * @throws MovilizerWebServiceException when there's connection problems. * * @see CompletableFuture * @see UploadResponse * @since 15.11.2.2 */ CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis); /** * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file. * * @param documentFilePath the path to the document file to upload. * @param systemId the system id where the document is going to be uploaded to. * @param password the password of the system id where the document is going to be uploaded to. * @param documentPool the document pool of the document. * @param documentKey the document key for the document. * @param language the language of the document. * @param ackKey the acknowledge key for the document. * @param connectionTimeoutInMillis timeout of the request. * @return a future with the upload response. * @throws MovilizerWebServiceException when there's connection or file access problems. * * @see CompletableFuture * @see UploadResponse * @since 15.11.2.2 */ CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis); // ----------------------------------------------------------------------------------- XML utils /** * Read a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply, * etc...) and creates a java object instance of the class indicated. * * @param elementString string value of the serialization of the object. * @param movilizerElementClass class of the Movilizer object to create from the string. * @param <T> Movilizer object class * @return the java instance parsed from the string. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing * problems. * @since 12.11.1.3 */ <T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass); /** * Print a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply, * etc...) to string. * * @param movilizerElement java instance of the Movilizer element. * @param movilizerElementClass class of the Movilizer element to use. * @param <T> Movilizer object class * @return XML string representation for the Movilizer element given. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing * problems. * @since 12.11.1.3 */ <T> String printMovilizerElementToString(final T movilizerElement, final Class<T> movilizerElementClass); // ------------------------------------------------------------------------------ File XML utils /** * Read and parses a Movilizer Request file (.mxml) from the file system. * * @param filePath path to the request file. * @return the java instance parsed from the file. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or * file access problems. * @since 12.11.1.0 */ MovilizerRequest getRequestFromFile(Path filePath); /** * Read and parses a Movilizer Request from the given String. * * @param requestString non null string with a valid xml request. * @return the java instance parsed from the file. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or * string problems. * @since 12.11.1.1 */ MovilizerRequest getRequestFromString(String requestString); /** * Persist a request java instance to a file. * * @param request the request to be persisted. * @param filePath the path to the file. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or * file access problems. * @since 12.11.1.0 */ void saveRequestToFile(MovilizerRequest request, Path filePath); /** * Generate a string from a request java instance. * * @param request the request to be transformed into string. * @return the string representation of the request. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing * problems. * @since 12.11.1.0 */ String requestToString(MovilizerRequest request); /** * Generate a string from a response java instance. * * @param response the response to be transformed into string. * @return the string representation of the response. * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing * problems. * @since 12.11.1.0 */ String responseToString(MovilizerResponse response); // ------------------------------------------------------------------------------ MAF Management /** * Read a file into an MAF source file for latter source uploading. * * @param sourceFile file to read * @return MafSource with the source and the metadata * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having * troubles reading the file. * @see com.movilizer.mds.webservice.models.maf.MafEventScript * @see com.movilizer.mds.webservice.models.maf.MafLibraryScript * @see com.movilizer.mds.webservice.models.maf.MafGenericScript * @since 15.11.2.1 */ MafSource readSource(File sourceFile); /** * Deploy a MAF source to the cloud. * * @param systemId where to deploy the file * @param password for the system id given * @param token for MAF access * @param source file to upload * @return MafResponse with the result of the operation * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having * troubles uploading the file. * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse * @since 15.11.2.1 */ MafResponse deploySourceSync(long systemId, String password, String token, MafSource source); /** * Deploy a MAF source to the cloud. * * @param systemId where to deploy the file * @param password for the system id given * @param token for MAF access * @param sourceFile file to upload * @return MafResponse with the result of the operation * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having * troubles uploading the file. * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse * @since 15.11.2.1 */ MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GiftSvcApi {\n\n public static final String PASSWORD_PARAMETER = \"password\";\n\n public static final String USERNAME_PARAMETER = \"username\";\n\n public static final String TITLE_PARAMETER = \"title\";\n\n public static final String TOKEN_PATH = \"/oauth/token\";\n\n public stati...
[ "0.66915256", "0.6450134", "0.6314598", "0.6125181", "0.6119928", "0.61111605", "0.6109751", "0.6096899", "0.604873", "0.60421735", "0.6007563", "0.5997038", "0.59619594", "0.5951237", "0.5942326", "0.59131956", "0.5911392", "0.5901682", "0.5862099", "0.584668", "0.58292824",...
0.70731384
0
Webservice interaction Set systemd Id and password for the request and erases the replies from next response.
MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearChangePasswordRsp() {\n if (rspCase_ == 15) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "private void clearChangePasswordReq() {\n if (reqCase_ == 11) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public void clearPassword() throws RemoteExce...
[ "0.6043831", "0.54885894", "0.5360411", "0.53523135", "0.53249174", "0.52689207", "0.5263282", "0.5239547", "0.52031344", "0.5198469", "0.51963925", "0.5189674", "0.5188574", "0.5183768", "0.50786316", "0.50452447", "0.50204057", "0.49599287", "0.49541306", "0.49440926", "0.4...
0.0
-1
Set systemd Id and password for the request and set the number of replies replies from next response.
MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses, MovilizerRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increseReplyCount() {\n\r\n\t}", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - po...
[ "0.54166484", "0.5159606", "0.504951", "0.48121935", "0.47773626", "0.47612575", "0.4756558", "0.4755931", "0.4743589", "0.47110322", "0.46648243", "0.46538758", "0.46373695", "0.46321854", "0.46197996", "0.45979637", "0.45979387", "0.45974177", "0.45885557", "0.45643416", "0...
0.4606983
15
Perform a synchronous request the Movilizer cloud.
MovilizerResponse getReplyFromCloudSync(MovilizerRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);", "MovilizerResponse getReplyFromCloudSync(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);", ...
[ "0.6006064", "0.56417733", "0.5625975", "0.55918205", "0.54665565", "0.5446634", "0.54416436", "0.5411034", "0.53049046", "0.52824414", "0.52809817", "0.52787316", "0.525344", "0.5247969", "0.5246912", "0.52352935", "0.52239853", "0.52008194", "0.5197425", "0.519178", "0.5181...
0.612923
0
Perform a synchronous request the Movilizer cloud.
MovilizerResponse getReplyFromCloudSync(MovilizerRequest request, Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MovilizerResponse getReplyFromCloudSync(MovilizerRequest request);", "CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);", "public Object call() throws Exception {\n\t\t\t\t\t\tProducerSimpleNettyResponseFuture future;\n\t\t\t\t\t\tProducerSimpleNettyResponse responseFuture;\n\t\...
[ "0.6130144", "0.60056305", "0.5623605", "0.55911016", "0.5464966", "0.5446899", "0.544056", "0.54105026", "0.5304218", "0.5282789", "0.5279559", "0.5278373", "0.5253135", "0.52462995", "0.5245132", "0.5235078", "0.522444", "0.52005357", "0.5197444", "0.5193265", "0.51777774",...
0.5642517
2
Perform an asynchronous request the Movilizer cloud.
CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startAPICall() {\n String url = \"https://www.googleapis.com/civicinfo/v2/representatives?address=\"\n + getParsedAddress(address)\n + \"&key=\" + apiKey;\n final android.content.Context context = getApplicationContext();\n final Toast toast = Toast.makeText(...
[ "0.58034515", "0.57895505", "0.5767531", "0.5714294", "0.56815994", "0.5623176", "0.56196505", "0.5556105", "0.5555532", "0.5520924", "0.55198044", "0.5490724", "0.54709715", "0.5460673", "0.54377586", "0.540946", "0.54088175", "0.53975517", "0.5385811", "0.5374082", "0.53656...
0.61685914
0
Perform an asynchronous request the Movilizer cloud.
CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request, Integer connectionTimeoutInMillis, Integer receiveTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);", "void startAPICall() {\n String url = \"https://www.googleapis.com/civicinfo/v2/representatives?address=\"\n + getParsedAddress(address)\n + \"&key=\" + apiKey;\n final android.content....
[ "0.61685914", "0.58034515", "0.57895505", "0.5767531", "0.5714294", "0.56815994", "0.5623176", "0.56196505", "0.5556105", "0.5555532", "0.55198044", "0.5490724", "0.54709715", "0.5460673", "0.54377586", "0.540946", "0.54088175", "0.53975517", "0.5385811", "0.5374082", "0.5365...
0.5520924
10
Indicate if the response java instance has errors.
Boolean responseHasErrors(MovilizerResponse response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isResponseError()\n\t{\n\t\treturn this.responseError;\t\t\n\t}", "public boolean isError() {\n\t\tif (response.containsKey(\"Result\")) {\n\t\t\tif (response.get(\"Result\").equals(\"E\") || response.get(\"Result\").equals(\"MISSING\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n...
[ "0.8036618", "0.776893", "0.7262968", "0.72465956", "0.7245705", "0.7221567", "0.7195729", "0.7187318", "0.71592283", "0.70614904", "0.7007282", "0.69973433", "0.6980318", "0.696094", "0.6947813", "0.6939534", "0.693792", "0.6918868", "0.6902542", "0.6901581", "0.6890179", ...
0.7587822
2
Generate a string with errors.
String responseErrorsToString(MovilizerResponse response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getErrorsString();", "private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n st...
[ "0.73368824", "0.71750635", "0.71543396", "0.6775141", "0.66626304", "0.6555277", "0.65240735", "0.6522461", "0.6514519", "0.6514519", "0.6514519", "0.64177555", "0.63801193", "0.6379124", "0.63783425", "0.62573856", "0.62463194", "0.6243428", "0.6236069", "0.6220515", "0.622...
0.5500694
92
Send all files that has .mxml extension in a folder and subfolders collecting all cloud responses.
List<MovilizerResponse> batchUploadFolderSync(Path folder);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sendMessagesByDirectory(String directory, Pollable jmsInstance) throws IOException {\n List<File> files = getMessagesFromDirectory(directory);\n for (File file : files) {\n String text = FileUtils.readFileToString(file);\n String threadNumber = Long.toString(T...
[ "0.5987053", "0.5825249", "0.55692446", "0.5497609", "0.5380955", "0.53603107", "0.5321142", "0.53155833", "0.53116775", "0.52821374", "0.52821374", "0.52574885", "0.52531564", "0.52487993", "0.5234054", "0.5225036", "0.52026373", "0.51905423", "0.5174266", "0.5172606", "0.51...
0.56766856
2
Document upload Perform a synchronous blob upload to the Movilizer Cloud given the input stream.
UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey,\n Integer c...
[ "0.74141616", "0.73929167", "0.72932816", "0.6386932", "0.6320356", "0.62857205", "0.62581", "0.6149586", "0.61067873", "0.5974111", "0.59247154", "0.58872795", "0.5816218", "0.57309115", "0.5729873", "0.56467897", "0.5584827", "0.5570463", "0.5560718", "0.554495", "0.5536554...
0.7506487
0
Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.
UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void uploadingFile(String path);", "private String uploadFileInBlob(MultipartFile file, String fileName) {\r\n\t\tCloudStorageAccount storageAccount = null;\r\n\t\tInputStream inputStream = null;\r\n\t\tString profileImageBLOBUrl = null;\r\n\t\tbyte[] byteArr = null;\r\n\t\tfinal String storageConnectionString =...
[ "0.6510009", "0.6455025", "0.6204591", "0.6149473", "0.6147462", "0.61128217", "0.6096299", "0.6052109", "0.5970808", "0.5968578", "0.5866851", "0.58627844", "0.57697344", "0.576934", "0.57517415", "0.57507646", "0.5711165", "0.5688129", "0.5685153", "0.5667373", "0.5647883",...
0.5824532
12
Perform a synchronous blob upload to the Movilizer Cloud given the input stream.
UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey);", "CompletableFuture<UploadResponse> uploadDo...
[ "0.62274045", "0.60364735", "0.59373957", "0.58978814", "0.5877343", "0.5850896", "0.5845171", "0.57018054", "0.56492674", "0.56160295", "0.56041", "0.5586023", "0.55752265", "0.55247337", "0.54773617", "0.54564947", "0.5450512", "0.54280585", "0.54278296", "0.5401073", "0.53...
0.6129173
1
Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.
UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void uploadingFile(String path);", "private String uploadFileInBlob(MultipartFile file, String fileName) {\r\n\t\tCloudStorageAccount storageAccount = null;\r\n\t\tInputStream inputStream = null;\r\n\t\tString profileImageBLOBUrl = null;\r\n\t\tbyte[] byteArr = null;\r\n\t\tfinal String storageConnectionString =...
[ "0.65098137", "0.64549345", "0.62042826", "0.6147323", "0.61467594", "0.6113317", "0.60953635", "0.60502875", "0.59698015", "0.59691733", "0.5867244", "0.5862435", "0.58245677", "0.57698345", "0.57676405", "0.57513046", "0.57499963", "0.56885964", "0.56841195", "0.5667764", "...
0.5710866
17
Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.
CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void run() {\n upload();\r\n }", "void uploadCompleted(String blobId);", "void uploadStarted(StreamingStartEvent event);", "void uploadFinished(StreamingEndEvent event, File uploadedTemporaryFile);", "CompletableFuture<UploadResponse> up...
[ "0.6156518", "0.6005138", "0.59522384", "0.58371985", "0.58182204", "0.5790062", "0.56762594", "0.55920297", "0.55904144", "0.5588427", "0.5572894", "0.55610865", "0.55208004", "0.5481543", "0.54208577", "0.541932", "0.5347114", "0.5288182", "0.5269156", "0.5254182", "0.52155...
0.5848765
3
Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.
CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void uploadCompleted(String blobId);", "void uploadingFile(String path);", "@Override\n public void uploadPart(RefCountedFSOutputStream file) throws IOException {\n // this is to guarantee that nobody is\n // writing to the file we are uploading.\n checkState(file.isClosed());\n\n ...
[ "0.6536062", "0.64038765", "0.6116417", "0.6060339", "0.6056617", "0.6053738", "0.5921479", "0.5920583", "0.58793736", "0.585708", "0.57344174", "0.56966406", "0.56841743", "0.5662822", "0.5655687", "0.5627878", "0.56032664", "0.5602347", "0.5597791", "0.55840373", "0.5578422...
0.5655358
15
Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.
CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream, String filename, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void run() {\n upload();\r\n }", "void uploadCompleted(String blobId);", "void uploadStarted(StreamingStartEvent event);", "CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n ...
[ "0.6154526", "0.6005367", "0.5951908", "0.58465433", "0.58366066", "0.5787878", "0.56753814", "0.5589811", "0.5588536", "0.5586213", "0.55721587", "0.55599844", "0.55210364", "0.54791564", "0.54203904", "0.5418338", "0.5344587", "0.528885", "0.5267029", "0.5252441", "0.521517...
0.58160454
5
Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.
CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId, String password, String documentPool, String documentKey, String language, String ackKey, Integer connectionTimeoutInMillis);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void uploadCompleted(String blobId);", "void uploadingFile(String path);", "@Override\n public void uploadPart(RefCountedFSOutputStream file) throws IOException {\n // this is to guarantee that nobody is\n // writing to the file we are uploading.\n checkState(file.isClosed());\n\n ...
[ "0.6534659", "0.6403379", "0.6115425", "0.6060986", "0.60578567", "0.605322", "0.5919981", "0.5918441", "0.5878216", "0.5855589", "0.57335085", "0.5695407", "0.5684605", "0.56597644", "0.56554776", "0.56553674", "0.5602056", "0.56018955", "0.5595274", "0.5582262", "0.557713",...
0.56279504
16
XML utils Read a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply, etc...) and creates a java object instance of the class indicated.
<T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static GetVehicleInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPageResponse object =\n new GetVehicleInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lan...
[ "0.5672516", "0.5634373", "0.5619585", "0.56085557", "0.5607049", "0.55976444", "0.55885667", "0.5585511", "0.55828804", "0.55732954", "0.5548268", "0.55380785", "0.5532815", "0.5521999", "0.5521916", "0.5485584", "0.54673535", "0.5433786", "0.54272115", "0.54223305", "0.5419...
0.5460594
17
Print a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply, etc...) to string.
<T> String printMovilizerElementToString(final T movilizerElement, final Class<T> movilizerElementClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String responseToString(MovilizerResponse response);", "String requestToString(MovilizerRequest request);", "public String toString() {\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"WSDL name=\");\r\n\t\tbuf.append(name);\r\n\t\tbuf.append(\", TargetNamespace=\");\r\n\t\tbuf.append(targetNa...
[ "0.6199101", "0.58066976", "0.5561432", "0.5382226", "0.5342962", "0.5281824", "0.52185744", "0.5169806", "0.50332373", "0.50316745", "0.49362212", "0.49252713", "0.491788", "0.49065226", "0.4900309", "0.4894901", "0.4890001", "0.48895353", "0.48867783", "0.48740146", "0.4849...
0.6615206
0
File XML utils Read and parses a Movilizer Request file (.mxml) from the file system.
MovilizerRequest getRequestFromFile(Path filePath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadRequest(String fileName)\n throws ParserConfigurationException, SAXException, IOException, ParseException {\n resetPlanningRequest();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!mapLoaded){\n ...
[ "0.6083484", "0.56221557", "0.53357255", "0.5325433", "0.5300507", "0.52816737", "0.5267462", "0.52355725", "0.52327055", "0.5231154", "0.5187706", "0.51836187", "0.51595813", "0.5139434", "0.51326764", "0.5108822", "0.5082487", "0.50376487", "0.50376487", "0.50376487", "0.50...
0.7252296
0
Read and parses a Movilizer Request from the given String.
MovilizerRequest getRequestFromString(String requestString);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Request parseRequest(BufferedReader input) throws IOException, IllegalStateException, SocketException\n {\n Request request = new Request();\n String line;\n Matcher matcher;\n\n // Parsing request method & uri\n if ((line = input.readLine()) == null) throw new S...
[ "0.59914184", "0.59072435", "0.5805023", "0.57488704", "0.5615727", "0.55313396", "0.55241627", "0.5492452", "0.5465722", "0.541256", "0.5404618", "0.5339252", "0.52744454", "0.5267903", "0.5230407", "0.51821065", "0.51442456", "0.513666", "0.5129261", "0.51169324", "0.511238...
0.7838363
0
Persist a request java instance to a file.
void saveRequestToFile(MovilizerRequest request, Path filePath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n ...
[ "0.62147886", "0.62112725", "0.61159664", "0.6046876", "0.59222263", "0.58259374", "0.5772182", "0.5734361", "0.56979376", "0.56800735", "0.5679604", "0.56669027", "0.5656436", "0.5655345", "0.56540203", "0.56472117", "0.56472117", "0.56472117", "0.56472117", "0.5595049", "0....
0.7025186
0
Generate a string from a request java instance.
String requestToString(MovilizerRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRequest();", "public String getRequest() {\n Object ref = request_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if ...
[ "0.60497034", "0.5943954", "0.5872672", "0.5826925", "0.5719135", "0.56537205", "0.5624138", "0.5561129", "0.55094963", "0.54983264", "0.5492187", "0.5469672", "0.5448772", "0.54467726", "0.54385746", "0.5412831", "0.53701806", "0.5357244", "0.5346766", "0.53451496", "0.53336...
0.6580423
0
Generate a string from a response java instance.
String responseToString(MovilizerResponse response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getResponse();", "public String getResponse() {\n Object ref = response_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();...
[ "0.64914703", "0.6371172", "0.63310677", "0.62484986", "0.6208422", "0.6205982", "0.5991389", "0.5973502", "0.5955514", "0.5856923", "0.5847187", "0.58364505", "0.5807027", "0.5786963", "0.57368016", "0.5736593", "0.5722255", "0.5691873", "0.5687422", "0.5618874", "0.56150246...
0.7006104
0
MAF Management Read a file into an MAF source file for latter source uploading.
MafSource readSource(File sourceFile);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryNa...
[ "0.6136289", "0.59911925", "0.59908247", "0.59476614", "0.5667896", "0.5667896", "0.55847627", "0.5532763", "0.5532735", "0.54960626", "0.5483259", "0.5478263", "0.5440104", "0.53626776", "0.53520596", "0.5332625", "0.53174216", "0.53058726", "0.5298891", "0.529857", "0.52870...
0.7790613
0
Deploy a MAF source to the cloud.
MafResponse deploySourceSync(long systemId, String password, String token, MafSource source);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile);", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "private void initialDeploy() {\n }", ...
[ "0.69234806", "0.5951942", "0.58986384", "0.5689142", "0.54626685", "0.5152267", "0.51485217", "0.50793266", "0.50524265", "0.5027394", "0.4981118", "0.49607602", "0.49279958", "0.49160028", "0.48597333", "0.4856246", "0.485132", "0.48385483", "0.48147863", "0.48130718", "0.4...
0.695621
0
Deploy a MAF source to the cloud.
MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MafResponse deploySourceSync(long systemId, String password, String token, MafSource source);", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "private void initialDeploy() {\n }",...
[ "0.6953615", "0.5944751", "0.58954525", "0.5690107", "0.54589236", "0.51505625", "0.5145248", "0.50733906", "0.5050116", "0.5025821", "0.49783048", "0.49560085", "0.49252215", "0.49127814", "0.4860635", "0.48533583", "0.48454326", "0.4837185", "0.48136166", "0.48101857", "0.4...
0.69209677
1
CHECKSTYLE.ON: Method length is 320 lines (max allowed is 150).
static String printableString(final String string) { int maxLogStringLength = 64; if (string == null || string.length() == 0) { return string; } String ret = string.replaceAll("[^\\p{Print}]", "?"); ret = ret.substring(0, Math.min(ret.length(), maxLogStringLength)) + (ret.length() > maxLogStringLength ? "..." : ""); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FameProperty(name = \"numberOfLinesOfCodeWithMoreThanOneCharacter\", derived = true)\n public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public int getMaxTextLength() {\n/* 529 */ throw new RuntimeExce...
[ "0.6116239", "0.6026259", "0.56475496", "0.56209147", "0.5604983", "0.55618703", "0.5559327", "0.5554034", "0.5548065", "0.5526898", "0.5506802", "0.54948807", "0.5485209", "0.54584926", "0.54152024", "0.54104406", "0.5380426", "0.5365057", "0.53633744", "0.5356244", "0.53414...
0.0
-1
arrange no need to use Mockito.when().thenReturn(); because personService.deletePerson(3L) returns void; act
@Test public void deletePerson_ShouldReturnUpdatedRecordAnd_NO_CONTENT() { ResponseEntity<Person> response = personController.deletePerson(3L); //assert Mockito.verify(personService).deletePerson(3L); assertEquals(null, response.getBody()); assertEquals(HttpStatus.NO_CONTENT, response.getStatusCode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDeletePerson_whenPersonToDeleteExist_thenReturnStringSUCCESS() {\n\t\t// GIVEN\n\t\tPerson personToDeleted = new Person(\"Lily\", \"Cooper\", \"489 Manchester St\", \"Culver\", \"97451\", \"841-874-9845\",\n\t\t\t\t\"lily@email.com\");\n\t\tString firstName = personToDeleted.getFirstName()...
[ "0.7671348", "0.72521913", "0.72287524", "0.7088264", "0.70535415", "0.7042836", "0.7031133", "0.7012929", "0.70001584", "0.6996389", "0.6960541", "0.68834144", "0.68732935", "0.68712366", "0.6852593", "0.6846328", "0.68401647", "0.6836943", "0.6820583", "0.68141055", "0.6811...
0.76523584
1
arrange Need to do this because of void return type
@Test public void deletePerson_ShouldReturnError404_WhenPersonNotFoundException() { Mockito.doThrow(PersonNotFoundException.class).when(personService).deletePerson(3L); //act ResponseEntity<Person> response = personController.deletePerson(3L); //assert assertEquals(HttpStatus.NOT_FOUND, response.getStatusCode()); assertEquals(null, response.getBody()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reorganize() {\n\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@Override\n\tpublic void postorder() {\n\n\t}", "private void rearrangeGeneric(){\n for (int i = rear; i > 0; i++) {\n if (arr1[i].compare...
[ "0.6187413", "0.6074527", "0.5808279", "0.5692016", "0.5666838", "0.5631171", "0.5609757", "0.5590242", "0.55791134", "0.5562642", "0.55566114", "0.55298585", "0.5525685", "0.54884946", "0.5482925", "0.5477338", "0.54512537", "0.5432896", "0.5421089", "0.54126734", "0.5402627...
0.0
-1
Initialize function, gets appointments, users, and contacts, populating tables Lambda: This lambda functions by dynamically setting the predicate for the Contact_Table item. The predicate works by checking the contact ID against the Contact ID in the appointment.
public void initialize() { allAppointments = DBAppointments.returnAllAppointments(); allUsers = DBUser.returnAllUsers(); allContacts = DBContacts.returnAllContacts(); Contact_Choicebox.setItems(allContacts); Contact_Choicebox.setConverter(new StringConverter<Contact>() { @Override public String toString(Contact contact) { return contact.getName(); } @Override public Contact fromString(String s) { return null; } }); Contact_Id_Column.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>("id")); Contact_Title_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>("title")); Contact_Description_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>("description")); Contact_Start_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>("startString")); Contact_End_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>("endString")); Contact_Customer_Id_Column.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>("customerId")); //Lambda FilteredList<Appointment> filteredAppointments = new FilteredList<>(allAppointments, a -> true); Contact_Table.setItems(filteredAppointments); Contact_Choicebox.getSelectionModel().selectedItemProperty().addListener(obs -> { filteredAppointments.setPredicate(Appointment -> { return Appointment.getContactId() == Contact_Choicebox.getSelectionModel().getSelectedItem().getId(); }); }); Contact_Choicebox.getSelectionModel().selectFirst(); //Setup Appointment description list ObservableList<String> monthData = FXCollections.observableArrayList(); Month currentMonth = LocalDate.now().getMonth(); ObservableList<Appointment> monthAppointments = FXCollections.observableArrayList(); for (Appointment allAppointment : allAppointments) { if (currentMonth == allAppointment.getStart().getMonth()) { monthAppointments.add(allAppointment); } } for (int i=0; i < monthAppointments.size(); i++) { String description = monthAppointments.get(i).getDescription(); int count = 0; for (Appointment monthAppointment : monthAppointments) { if (monthAppointment.getDescription().equals(description)) { count++; } } monthData.add(description + " - " + count); } Month_Appointment_List.setItems(monthData); ObservableList<String> userData = FXCollections.observableArrayList(); for (int i = 0; i < allUsers.size(); i++) { int count = 0; for(int j = 0; j < allAppointments.size(); j++) { if (allUsers.get(i).getId() == allAppointments.get(j).getUserId()) { count ++; } } userData.add(allUsers.get(i).getName() + " - " + count); } User_Appointment_List.setItems(userData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void onActChooseContact(ActionEvent event) {\n ObservableList<Appointment> filteredAppointments = allAppointments.filtered(a -> {\n if(contactList.getSelectionModel().getSelectedItem().equals(a.getContact()))\n return true;\n return false;\n\n });\n ...
[ "0.60801214", "0.5934532", "0.56126714", "0.5601265", "0.5534106", "0.5516664", "0.5479788", "0.5418523", "0.5373153", "0.53641516", "0.5328193", "0.5315127", "0.52887505", "0.5279059", "0.5274444", "0.5268043", "0.52182215", "0.5169567", "0.51416117", "0.5133141", "0.5111571...
0.6859455
0
Test that the apply method produces the expected result
@Test public void testThatApplyWorks() { Solver solver = new Solver(); PuzzleState state = new PuzzleState(Arrays.asList(CANNIBAL, MISSIONARY, CANNIBAL), Arrays.asList(MISSIONARY, MISSIONARY, CANNIBAL), PuzzleState.Position.LEFT_BANK); Move move = new Move(Move.Direction.LEFT_TO_RIGHT, Arrays.asList(CANNIBAL)); // apply the move PuzzleState newState = solver.apply(state, move); PuzzleState expectedState = new PuzzleState(Arrays.asList(MISSIONARY, CANNIBAL), Arrays.asList(MISSIONARY, MISSIONARY, CANNIBAL, CANNIBAL), PuzzleState.Position.RIGHT_BANK); assertEquals("Expected state not achieved!", expectedState, newState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCanApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), true);\n\t\tthis.replayMockObjects();\n\t\tassertTrue(\"Should be able to apply if all changes can apply\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}...
[ "0.68592143", "0.65054417", "0.65054417", "0.65054417", "0.6452665", "0.6422791", "0.6371032", "0.63107836", "0.62049145", "0.6127402", "0.60205895", "0.5924815", "0.58709747", "0.5850138", "0.58022034", "0.577407", "0.5720001", "0.57009476", "0.5695271", "0.56834155", "0.561...
0.6458769
4
Test that the getAvailableMoves method produces the correct moves
@Test public void testThatCorrectMovesAreFound() { Solver solver = new Solver(); PuzzleState state = new PuzzleState(Arrays.asList(CANNIBAL, CANNIBAL), Arrays.asList(MISSIONARY, MISSIONARY, CANNIBAL, MISSIONARY), PuzzleState.Position.LEFT_BANK); // get available moves List<Move> moves = solver.getAvailableMoves(state); Move expectedMove = new Move(Move.Direction.LEFT_TO_RIGHT, Arrays.asList(CANNIBAL, CANNIBAL)); assertEquals("Only two moves should be available!", 2, moves.size()); assertTrue("List of moves doesn't contain exptected move!", moves.contains(expectedMove)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testGetMoves() {\n\t\tGameState test = new GameState();\n\t\ttest.move(4);\n\t\ttest.move(7);\n\t\ttest.move(15);\n\t\ttest.move(20);\n\t\tassertEquals(4, test.getMoves());\n\t\ttest.move(24);\n\t\ttest.move(16);\n\t\tassertEquals(6, test.getMoves());\n\t}", "public void testBoardAvailablePo...
[ "0.74420154", "0.7379423", "0.72086054", "0.71543396", "0.71207285", "0.7029366", "0.6900881", "0.6896591", "0.6856535", "0.6822638", "0.68026114", "0.67488843", "0.6708973", "0.66776156", "0.6630719", "0.662473", "0.66235095", "0.6591732", "0.65910816", "0.65677845", "0.6567...
0.7950181
0
Gets the all movies.
@Test public void getAllMovies() throws Exception { final ImmutableList<Movie> movies = ImmutableList.of(this.movie); when(DAO.findAll()).thenReturn(movies); final Map<String, Object> paramMap = new HashMap<String, Object>(); final RPCMessage req = new RPCMessage(MovieRPCServer.GET_ACTION, paramMap, null); final String response = this.RESOURCE.getValue(req.toString()); final RPCMessage responseObj = RPCMessage.fromString(response); assertThat(responseObj).isNotNull(); assertThat(responseObj.getObj()).isEqualTo(MovieBusterUtils.serializeMovieList(movies)); verify(DAO).findAll(); assertThat(MovieBusterUtils.movieFromStringArray(responseObj.getObj())).containsAll(movies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Movie> getAllMovies() {\n\t\treturn movieRepository.getAllMovies();\n\t}", "@Override\n\tpublic List<Movie> findAllMovie() {\n\t\treturn repository.findAllMovie();\n\t}", "public List<Movie> getAllMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<M...
[ "0.8325662", "0.8083805", "0.80190635", "0.7802381", "0.7760072", "0.77410036", "0.7727907", "0.7651906", "0.7627041", "0.76073384", "0.760435", "0.7532146", "0.7517456", "0.7472431", "0.74657065", "0.7455933", "0.7432572", "0.74053186", "0.7371406", "0.7358677", "0.7129495",...
0.66181725
41
TODO Autogenerated method stub
public static void Error_Msg(Context context, String Message) { final AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle("Warning"); builder.setIcon(R.drawable.warning); builder.setMessage(Message).setCancelable(false) .setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // //Log.i("alert id : ", "" + id); dialog.dismiss(); } }); final AlertDialog alert = builder.create(); alert.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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
//Log.i("alert id : ", "" + id);
public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n\n id = intent.getExtras().getString(\"idRedApoyo\");\n final String funcion = \"viewAlertas\";\n\n\n }", "public Long getAlertId();", "void toast(int resId);", ...
[ "0.65724766", "0.62714285", "0.6216314", "0.6118316", "0.60005325", "0.58985764", "0.5841051", "0.5841051", "0.58224463", "0.581351", "0.574551", "0.5725003", "0.57161576", "0.56814593", "0.5672222", "0.56457156", "0.5641541", "0.5605561", "0.5596528", "0.558426", "0.5574155"...
0.0
-1
This node represents an instance of mx.core.DeferredInstanceFromClass.
public void initializeFromFragments(MXMLTreeBuilder builder, ISourceLocation location, ISourceFragment[] fragments) { RoyaleProject project = builder.getProject(); String qname = project.getDeferredInstanceFromClassClass(); setClassReference(project, qname); // Add an expression dependency on that class. builder.addExpressionDependency(qname); // The source fragments are a class name (possibly a complex one // like Vector.<Vector.<int>>. This is the class from which // we're making a DeferredInstanceFromClass object. // Create a child MXMLClassNode from it. childNode = new MXMLClassNode(this); ((MXMLClassNode)childNode).setClassReference(project, childNode.getName()); // TODO Move this logic to initializeFromText(). ((MXMLClassNode)childNode).initializeFromFragments(builder, location, fragments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ClassInstanceCreationExpression getClass_();", "DsmlClass createDsmlClass();", "public ClassifyDynamics GetClassDynm() {\n\t\treturn this.class_dynm;\n\t}", "Object getClass_();", "Object getClass_();", "public PgClass() {\n this(DSL.name(\"pg_class\"), null);\n }", "public Class<? extends T>...
[ "0.5971767", "0.5676275", "0.53728056", "0.53289884", "0.53289884", "0.5325366", "0.52330995", "0.5221717", "0.5190652", "0.517417", "0.5167105", "0.51635575", "0.5044777", "0.5004667", "0.4978311", "0.49676952", "0.4963381", "0.4958629", "0.49528074", "0.49118432", "0.490151...
0.46303797
53
Note that IMXMLClassNode extends IMXMLInstanceNode.
@Override public IMXMLInstanceNode getInstanceNode() { return !(childNode instanceof IMXMLClassNode) ? childNode : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n public ClassNode getClassNode() {\n return this.classNode;\n }", "XClass getElementClass();", "public interface ClassNode\n{\n}", "private void processClassParentNode(Element node) {\n ClassDataItem cls =...
[ "0.69084054", "0.6840939", "0.66940457", "0.656094", "0.6458514", "0.62610567", "0.6249161", "0.62032014", "0.62032014", "0.6032006", "0.600561", "0.59232765", "0.5876518", "0.5798522", "0.57906353", "0.57670295", "0.57121253", "0.57121253", "0.56841564", "0.56324434", "0.562...
0.73109335
0
Default constructor sets everything to 0
public Block() { this.xPos = 0; this.yPos = 0; this.width = 0; this.height = 0; this.color = Color.MINTCREAM; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter()\n {\n this(0);\n }", "public Counter() {\r\n value = 0;\r\n }", "public Int() {\n this(0);\n }", "public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }", "private Zeroes() {\n // This space intentionally left blank.\n...
[ "0.75318104", "0.7286174", "0.7248763", "0.7191866", "0.71765965", "0.711305", "0.7074938", "0.7061747", "0.7007322", "0.6957072", "0.691139", "0.6900161", "0.68887144", "0.6866503", "0.6782751", "0.675461", "0.6752225", "0.67307144", "0.6729995", "0.6729995", "0.66869104", ...
0.0
-1
Draws a block on the canvas
public void update(Canvas canvas) { GraphicsContext graphics = canvas.getGraphicsContext2D(); graphics.setFill(this.color); graphics.fillRect(getX(), getY(), getWidth(), getHeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n \n // TODO\n }", "public void paintComponent(Graphics g){\n \t\t\t g.setColor(Color.white);\n \t\t\t g.fillRect(0,0,getWidth(),getHeight());\n for(Block z : blocks){\n z.draw(g);\n }\n \t\t }", "private void draw(){\n GraphicsContext g...
[ "0.6754318", "0.66940475", "0.66802365", "0.66039103", "0.6567604", "0.655305", "0.6549494", "0.6520452", "0.6505924", "0.6504998", "0.6491914", "0.6447009", "0.64299417", "0.64022785", "0.64022785", "0.6399919", "0.636521", "0.63484454", "0.6312636", "0.6303344", "0.6235247"...
0.0
-1
TODO Autogenerated method stub
public void update(long ms) { }
{ "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
public void draw(Graphics g) { if(isActivate()){ g.drawImage(icon_show.getImage(0), getX(), getY(), getSizeX(), getSizeY(), null); }else{ g.drawImage(icon_hide.getImage(0), getX(), getY(), getSizeX(), getSizeY(), 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
Setup a mock wiper set object for use in testing
@Before public void setUp() { WiperStatus testWiperStatusFront = new WiperStatus(0); WiperStatus testWiperStatusRear = new WiperStatus(0); WiperRate testWiperRateFront = new WiperRate(0); WiperRate testWiperRateRear = new WiperRate(0); mockWiperSet = new WiperSet( testWiperStatusFront, testWiperRateFront, testWiperStatusRear, testWiperRateRear); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeEach\n public void setup() {\n wireMockServer = new WireMockServer(8090);\n wireMockServer.start();\n setupStubs();\n }", "@Before\n\tpublic void setUp()\n\t{\n\t\tm_mockery = new Mockery();\n\t\tm_values = m_mockery.mock(KeyedValues.class);\n\t}", "@BeforeEach\n\tpublic void...
[ "0.62587976", "0.6159328", "0.6152154", "0.6060039", "0.60359997", "0.6004441", "0.5989202", "0.59704494", "0.5929942", "0.5913187", "0.5875451", "0.5873518", "0.58664316", "0.58460605", "0.584061", "0.5836948", "0.58290756", "0.58214796", "0.58027804", "0.58017766", "0.57727...
0.7998271
0
AmbientAirTemperature tests Test that the ambient air temperature undefined flag value (191) returns (null)
@Test public void shouldReturnUnknownAmbientAirTemperature() { Integer testInput = 191; Integer expectedValue = null; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnUndefinedAmbientAirPressure() {\n \n Integer testInput = 0;\n Integer expectedValue = null;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirP...
[ "0.77754277", "0.7618458", "0.7579719", "0.7294252", "0.7150863", "0.6926191", "0.68696815", "0.68341017", "0.6821176", "0.6756681", "0.6731548", "0.6464474", "0.6345726", "0.6265007", "0.6238016", "0.6189332", "0.6075478", "0.58587426", "0.57381946", "0.57030654", "0.5558561...
0.8393686
0
Test that the minimum ambient air temperature value (0) returns (40)
@Test public void shouldReturnMinimumAmbientAirTemperature() { Integer testInput = 0; Integer expectedValue = -40; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnCornerCaseMinimumAmbientAirTemperature() {\n\n Integer testInput = 1;\n Integer expectedValue = -39;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new A...
[ "0.7910174", "0.7716673", "0.7546409", "0.71690303", "0.7094767", "0.6908522", "0.6905445", "0.67303705", "0.6726052", "0.6697715", "0.6642325", "0.6633413", "0.64985573", "0.64953756", "0.6457845", "0.63728833", "0.6320149", "0.63102305", "0.6266554", "0.6261495", "0.6254188...
0.80356616
0
Test that a corner case minimum ambient air temperature value (1) returns (39)
@Test public void shouldReturnCornerCaseMinimumAmbientAirTemperature() { Integer testInput = 1; Integer expectedValue = -39; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnMinimumAmbientAirTemperature() {\n\n Integer testInput = 0;\n Integer expectedValue = -40;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirP...
[ "0.7867819", "0.7771684", "0.75650173", "0.73545563", "0.70209235", "0.6910619", "0.6676829", "0.6541956", "0.65221", "0.6471965", "0.64485574", "0.62539357", "0.62307596", "0.6229248", "0.61914825", "0.6185258", "0.6152115", "0.61191016", "0.6111609", "0.6100906", "0.6089318...
0.81674176
0
Test that a corner case maximum ambient air temperature value (189) returns (149)
@Test public void shouldReturnCornerCaseMaximumAmbientAirTemperature() { Integer testInput = 189; Integer expectedValue = 149; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnMaximumAmbientAirTemperature() {\n\n Integer testInput = 190;\n Integer expectedValue = 150;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new AmbientAi...
[ "0.7878698", "0.7793672", "0.75611985", "0.6951078", "0.66835135", "0.66730076", "0.6641186", "0.6620965", "0.65676993", "0.63750535", "0.63711125", "0.6355357", "0.633732", "0.6249254", "0.6241322", "0.6231174", "0.6207585", "0.6200249", "0.6195613", "0.6190532", "0.6144865"...
0.81107724
0
Test that the maximum ambient air temperature value (190) returns (150)
@Test public void shouldReturnMaximumAmbientAirTemperature() { Integer testInput = 190; Integer expectedValue = 150; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnCornerCaseMaximumAmbientAirTemperature() {\n\n Integer testInput = 189;\n Integer expectedValue = 149;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new...
[ "0.7938118", "0.7660903", "0.7617315", "0.7091157", "0.70690316", "0.67734236", "0.67362386", "0.6718516", "0.67051655", "0.668776", "0.6637305", "0.6611822", "0.66095316", "0.6558238", "0.6544212", "0.6422275", "0.63995725", "0.63817495", "0.6380877", "0.63755465", "0.635461...
0.8034812
0
Test that an ambient air temperature value (1) below the lower bound (0) throws IllegalArgumentException
@Test public void shouldThrowExceptionAmbientAirTemperatureBelowLowerBound() { Integer testInput = -1; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); try { OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); fail("Expected IllegalArgumentException"); } catch (RuntimeException e) { assertEquals(IllegalArgumentException.class, e.getClass()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldThrowExceptionAmbientAirTemperatureAboveUpperBound() {\n\n Integer testInput = 192;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0);\n ...
[ "0.81134987", "0.7991126", "0.782329", "0.7130731", "0.7119657", "0.6803653", "0.6763916", "0.67563355", "0.66578573", "0.6629292", "0.6595475", "0.6452338", "0.6417853", "0.64072853", "0.6106657", "0.6091744", "0.60196126", "0.59943527", "0.598256", "0.5897032", "0.58718985"...
0.8204881
0
Test that an ambient air temperature value (192) above the upper bound (191) throws IllegalArgumentException
@Test public void shouldThrowExceptionAmbientAirTemperatureAboveUpperBound() { Integer testInput = 192; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); try { OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp(); fail("Expected IllegalArgumentException"); } catch (RuntimeException e) { assertEquals(IllegalArgumentException.class, e.getClass()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldThrowExceptionAmbientAirPresureAboveUpperBound() {\n\n Integer testInput = 256;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput);\n \n ...
[ "0.7906282", "0.78665686", "0.7619579", "0.70854986", "0.6923648", "0.6900135", "0.6888521", "0.6826499", "0.671141", "0.6550221", "0.65351033", "0.65288943", "0.6512317", "0.62663007", "0.6232972", "0.6227596", "0.6213986", "0.62128764", "0.62114006", "0.61690515", "0.611472...
0.82074803
0
AmbientAirPressure tests Test that the ambient air pressure undefined flag value (0) returns (null)
@Test public void shouldReturnUndefinedAmbientAirPressure() { Integer testInput = 0; Integer expectedValue = null; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnUnknownAmbientAirTemperature() {\n \n Integer testInput = 191;\n Integer expectedValue = null;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new ...
[ "0.76273906", "0.7411056", "0.7305336", "0.72275513", "0.71801156", "0.7106174", "0.71000624", "0.7091695", "0.67618686", "0.67542106", "0.6733972", "0.6661834", "0.6552838", "0.6324925", "0.56488234", "0.55993414", "0.5594519", "0.5508148", "0.5487692", "0.54535824", "0.5407...
0.8268574
0
Test that the minimum ambient air pressure value (1) returns (580)
@Test public void shouldReturnMinimumAmbientAirPressure() { Integer testInput = 1; Integer expectedValue = 580; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnCornerCaseMinimumAmbientAirPressure() {\n\n Integer testInput = 2;\n Integer expectedValue = 582;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPr...
[ "0.79065007", "0.7583001", "0.7526398", "0.7209926", "0.7052203", "0.68591094", "0.6828321", "0.6750295", "0.65231067", "0.63485616", "0.6274459", "0.62532955", "0.6236876", "0.61884224", "0.6143057", "0.6057383", "0.60414857", "0.60174423", "0.5991783", "0.5980972", "0.59591...
0.8080438
0
Test that the corner case minimum ambient air pressure value (2) returns (582)
@Test public void shouldReturnCornerCaseMinimumAmbientAirPressure() { Integer testInput = 2; Integer expectedValue = 582; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnMinimumAmbientAirPressure() {\n\n Integer testInput = 1;\n Integer expectedValue = 580;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(tes...
[ "0.8043549", "0.7856303", "0.76300824", "0.76266474", "0.72331774", "0.7187451", "0.6873212", "0.6709137", "0.6603321", "0.64262545", "0.63990504", "0.63283485", "0.6218685", "0.61802274", "0.60254323", "0.592931", "0.58899873", "0.5882655", "0.5839251", "0.58314556", "0.5809...
0.8237103
0
Test that the corner case maximum ambient air pressure value (254) returns (1086)
@Test public void shouldReturnCornerCaseMaximumAmbientAirPressure() { Integer testInput = 254; Integer expectedValue = 1086; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnMaximumAmbientAirPressure() {\n\n Integer testInput = 255;\n Integer expectedValue = 1088;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(...
[ "0.80379343", "0.7775868", "0.76224136", "0.69364405", "0.68733037", "0.6730217", "0.6570412", "0.641797", "0.6384381", "0.6346576", "0.62927365", "0.61799675", "0.61650157", "0.6163184", "0.6138177", "0.6127341", "0.6114405", "0.60832256", "0.60782033", "0.6046213", "0.60448...
0.8236593
0
Test that the maximum ambient air pressure value (255) returns (1088)
@Test public void shouldReturnMaximumAmbientAirPressure() { Integer testInput = 255; Integer expectedValue = 1088; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); assertEquals(expectedValue, actualValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldReturnCornerCaseMaximumAmbientAirPressure() {\n\n Integer testInput = 254;\n Integer expectedValue = 1086;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAi...
[ "0.7983628", "0.7511979", "0.7453151", "0.6945682", "0.6603057", "0.656482", "0.64124984", "0.6309339", "0.6222178", "0.62088615", "0.6201982", "0.6174771", "0.61660224", "0.6159956", "0.61571234", "0.6138473", "0.6133967", "0.61192733", "0.61151004", "0.61038965", "0.6088704...
0.8066981
0
Test that an ambient air pressure value (1) below the lower bound (0) throws IllegalArgumentException
@Test public void shouldThrowExceptionAmbientAirPressureBelowLowerBound() { Integer testInput = -1; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); try { OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); fail("Expected IllegalArgumentException"); } catch (RuntimeException e) { assertEquals(IllegalArgumentException.class, e.getClass()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldThrowExceptionAmbientAirPresureAboveUpperBound() {\n\n Integer testInput = 256;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput);\n \n ...
[ "0.7948111", "0.7875705", "0.77882826", "0.6922612", "0.6872278", "0.6800019", "0.66167957", "0.6611759", "0.6570287", "0.6300639", "0.6294525", "0.62764996", "0.6234392", "0.61907035", "0.6035137", "0.59979725", "0.5888588", "0.58793485", "0.5835845", "0.580866", "0.577321",...
0.8183844
0
Test that an ambient air pressure value (256) above the upper bound (255) throws IllegalArgumentException
@Test public void shouldThrowExceptionAmbientAirPresureAboveUpperBound() { Integer testInput = 256; AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(0); AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(testInput); WeatherProbe testWeatherProbe = new WeatherProbe( testAmbientAirTemperature, testAmbientAirPressure, mockWiperSet); try { OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirPressure(); fail("Expected IllegalArgumentException"); } catch (RuntimeException e) { assertEquals(IllegalArgumentException.class, e.getClass()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void shouldThrowExceptionAmbientAirTemperatureAboveUpperBound() {\n\n Integer testInput = 192;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0);\n ...
[ "0.78491783", "0.77893376", "0.7532843", "0.7155529", "0.69895995", "0.66904527", "0.66465217", "0.6569322", "0.6426071", "0.63779175", "0.63252115", "0.6210263", "0.61437786", "0.60869557", "0.6049025", "0.58688146", "0.5803847", "0.5802034", "0.57993466", "0.5795337", "0.57...
0.8039435
0
Constructor for objects of class Conway
public Conway(AutomataCelular ac,int fila,int columna){ super(ac,fila,columna); estadoActual=VIVA; //decida(); estadoSiguiente=VIVA; edad=0; automata.setElemento(fila,columna,(Elemento)this); color=Color.blue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TbusRoadGraph() {}", "public Cohete() {\n\n\t}", "private Road()\n\t{\n\t\t\n\t}", "public RailRoad() {}", "@Test\n public void constructor(){\n /**Positive tests*/\n Road road = new Road(cityA, cityB, 4);\n assertEquals(road.getFrom(), cityA);\n assertEquals(road.get...
[ "0.6777356", "0.6710959", "0.6629967", "0.6598253", "0.6578387", "0.6446818", "0.6339184", "0.6313867", "0.62874866", "0.62685436", "0.6263597", "0.6241192", "0.6226301", "0.6218999", "0.6213811", "0.6208831", "0.6204508", "0.61911047", "0.6174266", "0.615571", "0.611719", ...
0.5661024
92
An example of a method replace this comment with your own
public void decida(){ int f=this.getFila(); int c=this.getColumna(); int cont=alRededor(f,c); if(this.isVivo()){ if(cont==2 || cont==3){ estadoSiguiente=VIVA; }else/* if(cont==1 || cont>3)*/{ estadoSiguiente=MUERTA; } }else{ if(cont==3){ estadoSiguiente=VIVA; }else if(cont==1 || cont>3){ estadoSiguiente=MUERTA; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comment() {\n\t\t\n\t}", "public void method_4270() {}", "public static void listing5_14() {\n }", "private stendhal() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "public void mo21792Q() {...
[ "0.68785363", "0.66270095", "0.64212173", "0.63640654", "0.6342811", "0.6335338", "0.6333748", "0.6328557", "0.63058066", "0.6301445", "0.6290838", "0.62798584", "0.6275525", "0.62737083", "0.62683684", "0.6241536", "0.622795", "0.6220703", "0.6212683", "0.62052286", "0.61958...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int age = 70; if (age>=18 && age<=70) { System.out.println("Result: Eligible to vote!"); } else { System.out.println("Not eligible to vote!"); } }
{ "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 workEnlong on 2015/12/3.
public interface GpsBandCallBack extends ISyncDataCallback { public void onGetGpsInfo(GpsSummaryInfo info); public void onEphemerisProgressQurey(int progress, String file_name); public void onEphemerisProgressReset(); public void onEphemerisUpdateSuccess(); public void onCrcCheckResult(int status); // public String getEphemerisFilePath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.62277764", "0.6017813", "0.601769", "0.6012484", "0.59515244", "0.59515244", "0.5934043", "0.59038943", "0.5853624", "0.58402777", "0.583608", "0.581117", "0.5806642", "0.57882667", "0.5786859", "0.5777973", "0.5765052", "0.5760553", "0.5760553", "0.5760553", "0.5760553", ...
0.0
-1
TODO Autogenerated method stub
@Override public void service(Request request,Response response) { System.out.println("LoginServlet"); response.println("<html>"); response.println("<head>"); response.println("<meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\"/>"); response.println("<title>"); response.println("<hello>"); response.println("</title>"); response.println("</head>"); response.println("<body>"); response.println("欢迎回来"+(request.getParameterValue("uname")==null? new String("") : request.getParameterValue("uname"))); response.println("</body>"); response.print("</html>"); }
{ "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
constructors Constructor that creates an empty shopping cart.
public ShoppingCart() { myShoppingCart = new HashMap<Item, BigDecimal>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cart() {\r\n\t\tSystem.out.println(\"in ctor of cart\");\r\n\t}", "public ShoppingCart() {\n\t\t_items = new ArrayList<Product>();\n\t}", "public Cart() {\n\t\tcart = new ArrayList<CartItem>();\n\t}", "public Cart() {\n\t}", "public Shopper() {\r\n cart = new Carryable[MAX_CART_ITEMS];\r\n ...
[ "0.83680445", "0.829302", "0.81996983", "0.81548357", "0.79729474", "0.7841413", "0.77811164", "0.76990914", "0.7650268", "0.7483342", "0.7458992", "0.7458271", "0.737878", "0.70914793", "0.7030772", "0.6997727", "0.68793976", "0.6842084", "0.68334013", "0.67671025", "0.66928...
0.7180381
13
Adds an order to the shopping cart, replacing any previous order for an equivalent item with the new order.
public void add(final ItemOrder theOrder) { Objects.requireNonNull(theOrder, "theOrder can't be null!"); myShoppingCart.put(theOrder.getItem(), theOrder.calculateOrderTotal()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewItem(OrderItem newOrderItem){\n itemsInOrder.add(newOrderItem);\n }", "public void addItemToOrder(Item item){\n\t\t//first, checking if such item already is in the order\n\t\t//if so, only quantity is increased\n\t\tint i; \n\t\tfor(i=0; i<currentOrder.getItems().size();i++){\n\t\t\tif(curr...
[ "0.74256533", "0.71107614", "0.70911616", "0.7063296", "0.6921104", "0.688745", "0.6882117", "0.68534815", "0.6852608", "0.68430334", "0.6699266", "0.6602758", "0.6579775", "0.6538764", "0.65275", "0.6520923", "0.65159583", "0.6506314", "0.6493795", "0.64736855", "0.64191157"...
0.7378825
1
Sets whether or not the customer for this shopping cart has a store membership.
public void setMembership(final boolean theMembership) { myMembership = theMembership; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetStoreName() {\r\n return storeName != null;\r\n }", "public boolean hasCustomer() {\n return customer_ != null;\n }", "protected boolean containsCustomer() {\n return customer.getOptional().isPresent();\n }", "boolean hasCustomer();", "boolean hasCustomer();"...
[ "0.578801", "0.5764829", "0.55660754", "0.5523229", "0.5523229", "0.55185515", "0.5456306", "0.54529524", "0.54316777", "0.5385057", "0.5337699", "0.5316139", "0.52837265", "0.5272103", "0.5235424", "0.5230677", "0.52304447", "0.5183402", "0.5169487", "0.5150101", "0.5148336"...
0.5503288
6
Calculates the shopping cart total cost.
public BigDecimal calculateTotal() { BigDecimal orderTotal = BigDecimal.ZERO; final Iterator<Item> iterator = myShoppingCart.keySet().iterator(); while (iterator.hasNext()) { final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next()); orderTotal = orderTotal.add(currentOrderPrice); } //if membership take %10 off the total cost if (myMembership) { if (orderTotal.compareTo(new BigDecimal("25.00")) == 1) { //myOrderTotal > $25 final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); orderTotal = orderTotal.subtract(discount); } } return orderTotal.setScale(2, RoundingMode.HALF_EVEN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return ...
[ "0.81795067", "0.7927444", "0.75678927", "0.7494986", "0.7491357", "0.72594696", "0.7138037", "0.71059144", "0.7098992", "0.7074275", "0.7046449", "0.70041674", "0.69463223", "0.69369996", "0.69314563", "0.6928813", "0.6897515", "0.68642825", "0.68311536", "0.68303233", "0.68...
0.73849577
5
Removes all orders from the cart.
public void clear() { myShoppingCart = new HashMap<Item, BigDecimal>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteCartAll() {\n cartTable.getItems().removeAll(componentsCart);\n\n //Clear ComponentsCart List\n componentsCart.clear();\n updateTotal();\n }", "public void clearCart() {\n this.items.clear();\n }", "@DeleteMapping(value = { \"\", \"/cart/delete/all\" })\n...
[ "0.71257734", "0.6875121", "0.6854237", "0.6846442", "0.6645603", "0.65809965", "0.6442184", "0.63951576", "0.63551503", "0.63112503", "0.62323695", "0.6134296", "0.6095123", "0.6065292", "0.5981169", "0.58778733", "0.5847731", "0.58072114", "0.57913965", "0.57485276", "0.574...
0.0
-1
This method generates an authentication in case credentials entered are correct, otherwise throws an exception.
@GetMapping("/authentication/{username}/{password}") public ResponseEntity<AuthenticationDTO> login(@PathVariable(value = "username") String username, @PathVariable(value = "password") String password) { return new ResponseEntity<>(authenticationConvertor.convertToAuthenticationDTO(authenticationService.login(username,password)), HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n ...
[ "0.673962", "0.645615", "0.64185786", "0.6414283", "0.63325477", "0.6255882", "0.62412256", "0.622675", "0.6202809", "0.616577", "0.61238766", "0.61161155", "0.6113474", "0.61038786", "0.6103676", "0.6057037", "0.60388196", "0.60337526", "0.5957713", "0.5916427", "0.59121454"...
0.0
-1
This method performs the logout process for the token provided as parameter.
@DeleteMapping("/authentication/{token}") @ResponseStatus(HttpStatus.OK) public void logout(@PathVariable(value ="token") String token) { authenticationService.deleteToken(token); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void logout(Token token) throws WorkspaceException;", "private String PerformLogout(String token){\n next_online.remove(token);\n current_online.remove(token);\n\n // rimuovo anche la callback dalla Hashtable\n cr.RemoveClient(token);\n return \"ok\";\n }", "void logout(St...
[ "0.7722793", "0.7689768", "0.75574803", "0.71083915", "0.70152056", "0.6983513", "0.698239", "0.678533", "0.6754762", "0.66588706", "0.6603669", "0.6586732", "0.6565547", "0.6490654", "0.6483267", "0.64622444", "0.64425725", "0.6434079", "0.64272493", "0.63346577", "0.6334101...
0.72630394
3
Utility function to bind the disabled state to a boolean value.
public ActiveMenuItem bindEnabled(BooleanExpression controller) { this.disableProperty().bind(controller.not()); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public static void setDisabled(boolean _disabled) {\r\n disabled = _disabled;\r\n }", "public final boolean isDis...
[ "0.70642626", "0.6734658", "0.65841204", "0.6563568", "0.64568716", "0.6404864", "0.6371728", "0.6339597", "0.6315057", "0.63006306", "0.6263017", "0.62475455", "0.6241744", "0.62358826", "0.6230264", "0.62301093", "0.6199795", "0.61796606", "0.61643416", "0.6160539", "0.6129...
0.59601724
28
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
public java.util.List<java.util.Map<String, AttributeValue>> getItems() { return items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayList getAttributes();", "public String[] getRelevantAttributes();", "public java.util.Collection getAttributes();", "Object[] getAttributes() throws SQLException;", "public final String[] getAttributes() {\n return this.attributes;\n }", "Map<String, Object> getAttributes();", "Map<Strin...
[ "0.65117294", "0.6339975", "0.63381386", "0.61987185", "0.6152858", "0.61434287", "0.61434287", "0.61434287", "0.6121053", "0.60360307", "0.60360307", "0.60286975", "0.6018939", "0.6012375", "0.5989522", "0.59560007", "0.5875344", "0.58698404", "0.58503795", "0.5842503", "0.5...
0.5454851
62
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
public void setItems(java.util.Collection<java.util.Map<String, AttributeValue>> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<java.util.Map<String, AttributeValue>>(items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayList getAttributes();", "public String[] getRelevantAttributes();", "public java.util.Collection getAttributes();", "Object[] getAttributes() throws SQLException;", "public final String[] getAttributes() {\n return this.attributes;\n }", "Map<String, Object> getAttributes();", "Map<Strin...
[ "0.65129405", "0.63402134", "0.6339035", "0.62003374", "0.6153854", "0.6144009", "0.6144009", "0.6144009", "0.6121655", "0.6036561", "0.6036561", "0.6029575", "0.60200703", "0.60128915", "0.5990105", "0.59574634", "0.5875886", "0.5869776", "0.5850653", "0.5843679", "0.5829837...
0.0
-1
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
public QueryResult withItems(java.util.Collection<java.util.Map<String, AttributeValue>> items) { setItems(items); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ArrayList getAttributes();", "public String[] getRelevantAttributes();", "public java.util.Collection getAttributes();", "Object[] getAttributes() throws SQLException;", "public final String[] getAttributes() {\n return this.attributes;\n }", "Map<String, Object> getAttributes();", "Map<Strin...
[ "0.6512716", "0.6339957", "0.6339071", "0.61990047", "0.61531955", "0.61446685", "0.61446685", "0.61446685", "0.61225694", "0.60367835", "0.60367835", "0.6028971", "0.6017303", "0.6012856", "0.59905815", "0.5956748", "0.5875993", "0.5872042", "0.5851338", "0.5842288", "0.5829...
0.0
-1
The number of items in the response. If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied. If you did not use a filter in the request, then Count and ScannedCount are the same.
public void setCount(Integer count) { this.count = count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "int getQueryItemsCount();", "public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n...
[ "0.718106", "0.71607983", "0.70730287", "0.702843", "0.6845183", "0.6845183", "0.6834966", "0.68338615", "0.6813266", "0.6813266", "0.6813266", "0.6813266", "0.6813266", "0.6813266", "0.67954916", "0.67954916", "0.6777595", "0.6777595", "0.6756666", "0.6747955", "0.6737968", ...
0.0
-1
The number of items in the response. If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied. If you did not use a filter in the request, then Count and ScannedCount are the same.
public Integer getCount() { return this.count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "int getQueryItemsCount();", "public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n...
[ "0.7179308", "0.7157137", "0.70708835", "0.7026036", "0.684324", "0.684324", "0.6832791", "0.68317807", "0.68111944", "0.68111944", "0.68111944", "0.68111944", "0.68111944", "0.68111944", "0.6793324", "0.6793324", "0.67741567", "0.67741567", "0.6754487", "0.6746525", "0.67357...
0.66971195
27