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
No code is needed here
@Override public void onNothingSelected(AdapterView<?> parent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic vo...
[ "0.63360983", "0.6185603", "0.6170411", "0.6161416", "0.60562956", "0.60558516", "0.6033801", "0.59785336", "0.5971031", "0.5910027", "0.59066033", "0.5904348", "0.58977604", "0.58859855", "0.58859855", "0.5866238", "0.58632076", "0.58480585", "0.5842323", "0.58265126", "0.57...
0.0
-1
get the "from" value
public void calculateAndDisplay() { fromUnitString = fromUnitEditText.getText().toString(); if (fromUnitString.equals("")) { fromValue = 0; } else { fromValue = Float.parseFloat(fromUnitString); } // calculate the "to" value toValue = fromValue * ratio; // display the results with formatting NumberFormat number = NumberFormat.getNumberInstance(); number.setMaximumFractionDigits(2); number.setMinimumFractionDigits(2); toUnitTextView.setText(number.format(toValue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFrom() {\n return (from);\n }", "public int getFrom() {\n return from;\n }", "public V getFrom()\n\t{\n\t\treturn from;\n\t}", "public int getFrom() {\n return from_;\n }", "public String getFrom()\r\n {\r\n return from;\r\n }", "public Integer getFr...
[ "0.83910704", "0.8270011", "0.81545186", "0.81375086", "0.8098487", "0.80856794", "0.80158365", "0.7980357", "0.79638654", "0.79292566", "0.7908973", "0.7908973", "0.7908973", "0.7908973", "0.78929275", "0.7848456", "0.78393936", "0.7799334", "0.7750333", "0.772615", "0.76510...
0.0
-1
Overloaded constructor which takes in an ItemContainer and immediately populates the inventory TreeSet with Films and TvSeries objects
public Model(ItemContainer i) {//takes from the container inventory.addAll(i.getFilms()); inventory.addAll(i.getTvseries()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public Inventory() {\n \titems = new ArrayList<Collectable>();\n \tnumTokens = 0;\n }", "public InventoryItem(Stri...
[ "0.62978226", "0.60061526", "0.6005471", "0.594855", "0.5910906", "0.59072316", "0.58442867", "0.58039486", "0.575063", "0.5744364", "0.5735079", "0.57006115", "0.568058", "0.56562215", "0.5649755", "0.56397206", "0.56152004", "0.5554898", "0.55505836", "0.5548847", "0.554070...
0.73362327
0
Method that populates the everyGenre TreeMap from the Genres ArrayList in the ItemContainer
public void populateGenreMap(ItemContainer itemContainer) { for (Genres genre : itemContainer.getGenres()) { if (everyGenre.containsKey(genre.getGenre())) { TreeSet<Genres> genres = everyGenre.get(genre.getGenre()); genres.add(genre); everyGenre.put(genre.getGenre(), genres); } else { TreeSet<Genres> tempSet = new TreeSet<Genres>(); tempSet.add(genre); everyGenre.put(genre.getGenre(), tempSet); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n ...
[ "0.64548993", "0.5927457", "0.5870315", "0.5798062", "0.5772562", "0.5732974", "0.56592524", "0.5555003", "0.5468536", "0.5444929", "0.5425336", "0.53752923", "0.5321917", "0.52427083", "0.52373695", "0.521166", "0.519455", "0.519292", "0.5185226", "0.51844454", "0.5171038", ...
0.8224507
0
Method that populates the everyPerson TreeMap from the People ArrayList in the ItemContainer
public void populatePeopleMap(ItemContainer itemContainer) { for (People person : itemContainer.getPeople()) { if (everyPerson.containsKey(person.getName())) { TreeSet<People> people = everyPerson.get(person.getName()); people.add(person); everyPerson.put(person.getName(), people); } else { TreeSet<People> tempSet = new TreeSet<People>(); tempSet.add(person); everyPerson.put(person.getName(), tempSet); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeMap<Integer, Person> getPersons() {\n return _persons;\n }", "public static void main(String[] args) {\n Person.insertToPeopleMap(new Person(39105153322l,\"Romas\",\"Garkas\"));\n Person.insertToPeopleMap(new Person(38512013245l,\"Arnas\",\"Lionginas\"));\n Person.insertToPeop...
[ "0.5905783", "0.58932567", "0.5861477", "0.5805604", "0.5439784", "0.53722775", "0.52422917", "0.52252257", "0.519063", "0.5162948", "0.51491827", "0.5116369", "0.511309", "0.51076615", "0.5103114", "0.5099623", "0.50928396", "0.504597", "0.49920315", "0.49654534", "0.4957696...
0.80501395
0
First, we validate the input.
private void sendNameToServer() { String textToServer = nameField.getText(); // Then, we send the input to the server. greetingService.greetServer(nameField.getValue(), new AsyncCallback<String>() { public void onFailure(Throwable caught) { resultField.setValue(caught.getMessage()); } public void onSuccess(String result) { resultField.setValue(result); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidInput() {\n\t\treturn true;\n\t}", "private void validateInputParameters(){\n\n }", "private boolean isInputValid() {\n return true;\n }", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "private void validateData() {\n }", "private void checkUse...
[ "0.7903999", "0.78623784", "0.76367563", "0.75214016", "0.70909256", "0.70442504", "0.7040915", "0.69367623", "0.6864361", "0.68586713", "0.684041", "0.68382114", "0.6820942", "0.680359", "0.6775256", "0.6741673", "0.6740276", "0.6727131", "0.6714976", "0.6681463", "0.6622328...
0.0
-1
This test depends on looping many times to determine that a random selection has changed. If this test fails, simply run it again it should not fail more than once in a blue moon.
@Test public void testPlayer_setRandomStrategy_2() { player2 = new Player("", true); player2.setRandomStrategy(); String firstStrategy = player2.getStrategy(); boolean strategyReplaced = false; // generate 20 random strategies and assert at least one of them comes back different. for(int i = 0; i < 20; i++) { player2.setRandomStrategy(); if (!player2.getStrategy().equalsIgnoreCase(firstStrategy)) { strategyReplaced = true; } } assertTrue(strategyReplaced); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void testTargetRandomSelection() {\n \tComputerPlayer player = new ComputerPlayer();\n \t// Pick a location with no rooms in target, just three targets\n \tboard.calcTargets(23, 7, 2);\n \tint loc_24_8Tot = 0;\n \tint loc_22_8Tot = 0;\n \tint loc_21_7Tot = 0;\n \t// Run the test 100 times\n \tfor ...
[ "0.7167595", "0.67140025", "0.6629662", "0.6386812", "0.6201545", "0.61238974", "0.60831475", "0.6082942", "0.6035929", "0.5977129", "0.59432274", "0.5941678", "0.5884778", "0.5871666", "0.5867275", "0.5862037", "0.585226", "0.58342683", "0.58279467", "0.5827937", "0.57792276...
0.58705765
14
tempt algorithm with higher cards (strategy hand has both wild and wd4)
@Test public void testPlayer_getBoldStrategyCard_numeric_colorBeatsNumber() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // pick a cpc that could return two possible options // and assert that the higher value card comes back // make a cpc that might return a yellow six or a red eight // assert the yellow comes back, even though the red eight has a higher value Card redSix = new Card(Card.RED, Card.SIX, cvm); assertTrue(player2.getBoldStrategyCard(redSix, redSix.getColor()).equals(yellowSix)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void evaluateHand(){only public for testing\n //hand types will be\n //1 royal flush\n //2 straight flush\n //3 four of a kind\n //4 full house\n //5 flush\n //6 straight\n //7 three of a kind\n //8 two pair\n //9 pair\n //10 high ...
[ "0.7056583", "0.702746", "0.67451876", "0.6694648", "0.6692249", "0.6432276", "0.6423483", "0.63862234", "0.6348517", "0.63473004", "0.6334134", "0.6331812", "0.632375", "0.63087356", "0.62950766", "0.62899196", "0.6248036", "0.62069434", "0.61801285", "0.61534667", "0.615281...
0.0
-1
assert that, given no nonnumeric cards, a color match is possible without a numeric match
@Test public void testPlayer_getBoldStrategyCard_numeric_matchColorNotNumber() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); player2.getHand().discard(greenThree); player2.getHand().discard(yellowZero); assertTrue(player2.getBoldStrategyCard(yellowThree, yellowThree.getColor()).equals(yellowSix)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_numeric_matchColorNotNumber() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // let the cpc be a yellow three\r\n // get rid of all non-numeric cards and the green t...
[ "0.7842191", "0.7588271", "0.7198289", "0.68563515", "0.6844098", "0.6414499", "0.6370853", "0.6358855", "0.6278115", "0.6202722", "0.61457115", "0.6121987", "0.6080572", "0.60732263", "0.6056853", "0.6050172", "0.5984559", "0.59475005", "0.5928625", "0.5836331", "0.58111525"...
0.73046434
2
assert that, given no nonnumeric cards, a numeric match is possible without a color match
@Test public void testPlayer_getBoldStrategyCard_numeric_matchNumberNotColor() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); Card blueEight = new Card(Card.BLUE, Card.EIGHT, cvm); player2.getHand().discard(blueFour); player2.getHand().discard(yellowZero); Card redEight = new Card(Card.RED, Card.EIGHT, cvm); assertTrue(player2.getBoldStrategyCard(blueEight, yellowThree.getColor()).equals(redEight)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_numeric_matchColorNotNumber() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // let the cpc be a yellow three\r\n // get rid of all non-numeric cards and the green t...
[ "0.7716127", "0.77016693", "0.71657795", "0.6784718", "0.6116214", "0.60920346", "0.6069052", "0.59803843", "0.59409875", "0.58873224", "0.58651394", "0.5849499", "0.58392483", "0.58081114", "0.5796819", "0.57575345", "0.57564896", "0.5713951", "0.5704936", "0.5664257", "0.56...
0.726576
2
make sure the cautious strategy gets rid of higher value cards last when there are no other legal lower value cards in the hand. should pick nonnumeric colors (skip, reverse, draw two) before wilds.
@Test public void testPlayer_getBoldStrategyCard_higherLast_drawTwo() { player2 = new Player("Player Two", true); Hand hand = new Hand(); player2.setHand(hand.getAllCards()); player2.getHand().addCard(blueDrawTwo); player2.getHand().addCard(wild); player2.getHand().addCard(wildDrawFour); assertTrue(player2.getBoldStrategyCard(blueFour, blueFour.getColor()).equals(blueDrawTwo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_numeric_matchColorNotNumber() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // let the cpc be a yellow three\r\n // get rid of all non-numeric cards and the green t...
[ "0.6929497", "0.6777335", "0.6404627", "0.6392811", "0.6196544", "0.6188261", "0.6152748", "0.6152217", "0.61319226", "0.6115167", "0.6112326", "0.60137045", "0.59963053", "0.5983302", "0.5952558", "0.59524596", "0.58811337", "0.5822539", "0.57985216", "0.57902145", "0.577045...
0.0
-1
this is a bit of a trivial test, asserting the strategy will return a wild or a wd4 if nothing else is present
@Test public void testPlayer_getBoldStrategyCard_higherLast_wild_wd4() { player2 = new Player("Player Two", true); Hand hand = new Hand(); player2.setHand(hand.getAllCards()); player2.getHand().addCard(wild); assertTrue(player2.getBoldStrategyCard(yellowThree, yellowThree.getColor()).equals(wild)); player2.getHand().discard(wild); player2.getHand().addCard(wildDrawFour); assertTrue(player2.getBoldStrategyCard(yellowThree, yellowThree.getColor()).equals(wildDrawFour)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetStrategy() throws Exception {\n System.out.println(\"*** Best Path Strategy Factory tests ****\");\n String type = \"ShortestPath\";\n BestPathFactory instance = BestPathFactory.getInstance();\n BestPathStrategy result = instance.GetStrategy(type);\n ...
[ "0.5947422", "0.5746554", "0.567555", "0.5608408", "0.55866796", "0.55094403", "0.54785794", "0.54671353", "0.5432169", "0.54087454", "0.53576374", "0.5344885", "0.52957827", "0.52909136", "0.5281941", "0.52650976", "0.5260335", "0.52177256", "0.52042735", "0.5199455", "0.519...
0.5401255
10
let the cpc be a yellow six, tempting the bold strategy with a perfect match but see if bold returns a yellow zero instead for color groups with size > 2
@Test public void testPlayer_getBoldStrategyCard_zeroColor() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); assertTrue(player2.getBoldStrategyCard(yellowSix, yellowSix.getColor()).equals(yellowZero)); // try again, but reduce the yellow color group to <= 2 player2.getHand().discard(yellowSix); player2.getHand().discard(yellowReverse); assertTrue(player2.getBoldStrategyCard(yellowOne, yellowSix.getColor()).equals(yellowOne)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean similarColorTo(Card c);", "@Test\r\n public void testPlayer_getBoldStrategyCard_numeric_colorBeatsNumber() {\n\r\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // pick a cpc that could return two possible options\r\n /...
[ "0.6076347", "0.58510387", "0.5758325", "0.5720445", "0.57082903", "0.5696643", "0.56854737", "0.56517327", "0.5650239", "0.56448", "0.5623824", "0.5615885", "0.5614362", "0.5592548", "0.5583053", "0.5579335", "0.55692744", "0.5560362", "0.5552144", "0.55389714", "0.55387515"...
0.6098093
0
make sure the cautious strategy gets rid of higher value cards first when there are other legal lower value cards in the hand.
@Test public void testPlayer_getCautiousStrategyCardCard_higherFirst_wd4() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // get rid of the wild so the wd4 is the most attractive option player2.getHand().discard(wild); assertTrue(player2.getCautiousStrategyCard(yellowThree, yellowThree.getColor()).equals(wildDrawFour)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeHigh() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = this.cards.size() - 5; i < this.cards.size(); i++)\n validHand.add(this.cards.get(i).toString());\n this.cardHand = new CardHand(va...
[ "0.69807875", "0.6687522", "0.6444543", "0.6421975", "0.63321817", "0.62753564", "0.61993456", "0.6163325", "0.6161017", "0.6152925", "0.609701", "0.6084212", "0.60724443", "0.6030475", "0.6026662", "0.6003614", "0.5984277", "0.59827626", "0.59821963", "0.5974949", "0.5951741...
0.6380108
4
make sure the cautious strategy gets rid of higher value cards first when there are other legal lower value cards in the hand.
@Test public void testPlayer_getCautiousStrategyCardCard_higherFirst_drawTwo() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // let the cpc be a red nine // get rid of the wild and wd4 cards so the red draw two is the most attractive option player2.getHand().discard(wild); player2.getHand().discard(wildDrawFour); Card redNine = new Card(Card.RED, Card.NINE, cvm); assertTrue(player2.getCautiousStrategyCard(redNine, redNine.getColor()).equals(redDrawTwo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeHigh() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = this.cards.size() - 5; i < this.cards.size(); i++)\n validHand.add(this.cards.get(i).toString());\n this.cardHand = new CardHand(va...
[ "0.69811", "0.66877985", "0.6444614", "0.64220464", "0.6380917", "0.62755746", "0.6200595", "0.6163179", "0.61618143", "0.61522377", "0.6096841", "0.6085034", "0.6071958", "0.60304946", "0.60273415", "0.6003574", "0.59849685", "0.59827185", "0.5982406", "0.597542", "0.5952737...
0.63324803
5
assert that, given no nonnumeric cards, a color match is possible without a numeric match
@Test public void testPlayer_getCautiousStrategyCardCard_numeric_matchColorNotNumber() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // let the cpc be a yellow three // get rid of all non-numeric cards and the green three so the yellow six is the most attractive option player2.getHand().discard(wild); player2.getHand().discard(wildDrawFour); player2.getHand().discard(yellowReverse); player2.getHand().discard(redDrawTwo); player2.getHand().discard(greenThree); assertTrue(player2.getCautiousStrategyCard(yellowThree, yellowThree.getColor()).equals(yellowSix)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_numeric_matchNumberNotColor() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // let the cpc be a blue eight\r\n Card blueEight = new Card(Card.BLUE, Card.EIGHT, cvm)...
[ "0.7586943", "0.7304255", "0.7197761", "0.6856518", "0.68447196", "0.641441", "0.63702893", "0.635899", "0.62785953", "0.620228", "0.61442393", "0.6120811", "0.60796154", "0.6073282", "0.60570556", "0.60495806", "0.598328", "0.5948798", "0.5928809", "0.58349645", "0.581146", ...
0.7841206
0
assert that, given no nonnumeric cards, a numeric match is possible without a color match
@Test public void testPlayer_getCautiousStrategyCardCard_numeric_matchNumberNotColor() { player2 = new Player("Player Two", true); player2.setHand(strategyHand.getAllCards()); // let the cpc be a blue eight Card blueEight = new Card(Card.BLUE, Card.EIGHT, cvm); // get rid of all non-numeric cards and the blue four so the red eight is the most attractive option player2.getHand().discard(wild); player2.getHand().discard(wildDrawFour); player2.getHand().discard(yellowReverse); player2.getHand().discard(redDrawTwo); player2.getHand().discard(blueFour); Card redEight = new Card(Card.RED, Card.EIGHT, cvm); assertTrue(player2.getCautiousStrategyCard(blueEight, yellowThree.getColor()).equals(redEight)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getCautiousStrategyCardCard_numeric_matchColorNotNumber() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // let the cpc be a yellow three\r\n // get rid of all non-numeric cards and the green t...
[ "0.7716127", "0.726576", "0.71657795", "0.6784718", "0.6116214", "0.60920346", "0.6069052", "0.59803843", "0.59409875", "0.58873224", "0.58651394", "0.5849499", "0.58392483", "0.58081114", "0.5796819", "0.57575345", "0.57564896", "0.5713951", "0.5704936", "0.5664257", "0.5637...
0.77016693
1
make sure getDumbStrategyCard returns null if no legal card found
@Test public void testPlayer_getDumbStrategyCard_null() { player2 = new Player("", true); Hand hand = new Hand(); player2.setHand(hand.getAllCards()); assertEquals(player2.getDumbStrategyCard(yellowOne, yellowOne.getColor()), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DevCard giveDevCard(){\n \n return null;\n }", "@Override\n public boolean canUseCard(){\n return false;\n }", "public Card enemyPlayCard(){ //Is it really worth the effort to give the enemy a full deck/temp hand? Having 2-4 basic abilities that vary should be enough.\n ...
[ "0.6784903", "0.6620885", "0.6470615", "0.64520025", "0.64515245", "0.6257009", "0.6235854", "0.62256294", "0.61977386", "0.61267275", "0.60983455", "0.6065121", "0.60526204", "0.60487556", "0.60245997", "0.60179156", "0.6015426", "0.60129297", "0.60106087", "0.60097396", "0....
0.7169054
0
verify that the dumb strategy returns the one winning card in its hand.
@Test public void testPlayer_getDumbStrategyCard_oneWinner_color() { player2 = new Player("", true); player2.setHand(strategyHand.getAllCards()); player2.getHand().discard(wild); player2.getHand().discard(wildDrawFour); assertTrue(player2.getDumbStrategyCard(blueNine, blueNine.getColor()).equals(blueFour)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getCo...
[ "0.75144076", "0.6827024", "0.67469424", "0.6697358", "0.6679343", "0.6608894", "0.65943694", "0.6480828", "0.6465366", "0.6457245", "0.6433399", "0.64145505", "0.6398387", "0.63899356", "0.6375386", "0.63574696", "0.63571686", "0.6347381", "0.63335913", "0.63222814", "0.6321...
0.69229025
1
This test depends on looping many times to determine that a random selection has changed. If this test fails, simply run it again it should not fail more than once in a blue moon.
@Test public void testPlayer_getDumbStrategyCard_differentWinners() { player2 = new Player("", true); player2.setHand(strategyHand.getAllCards()); boolean differentLegalCardFound = false; Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor()); for(int i = 0; i < 25; i++) { Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor()); if(!loopCard.equals(firstDiscard)) { differentLegalCardFound = true; } } assertTrue(differentLegalCardFound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void testTargetRandomSelection() {\n \tComputerPlayer player = new ComputerPlayer();\n \t// Pick a location with no rooms in target, just three targets\n \tboard.calcTargets(23, 7, 2);\n \tint loc_24_8Tot = 0;\n \tint loc_22_8Tot = 0;\n \tint loc_21_7Tot = 0;\n \t// Run the test 100 times\n \tfor ...
[ "0.7167262", "0.6713701", "0.6630352", "0.6386354", "0.6201514", "0.61248344", "0.60839564", "0.6082365", "0.6037024", "0.59782845", "0.5941966", "0.5941828", "0.58866096", "0.5872392", "0.5870861", "0.5867345", "0.5862639", "0.5852303", "0.58352983", "0.5828", "0.58265674", ...
0.0
-1
This test depends on looping many times to determine that a random selection has changed. If this test fails, simply run it again it should not fail more than once in a blue moon.
@Test public void testPlayer_selectNewColor_dumb() { player2 = new Player("", true); player2.setStrategy(Player.STRATEGY_DUMB); player2.setHand(strategyHand.getAllCards()); player2.setLastPlayedCard(wild); String firstRandomColor = player2.selectNewColor(); boolean differentColorFound = false; for(int i = 0; i < 25; i++) { String nextRandomColor = player2.selectNewColor(); if(!nextRandomColor.equalsIgnoreCase(firstRandomColor)) { differentColorFound = true; } } assertTrue(differentColorFound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void testTargetRandomSelection() {\n \tComputerPlayer player = new ComputerPlayer();\n \t// Pick a location with no rooms in target, just three targets\n \tboard.calcTargets(23, 7, 2);\n \tint loc_24_8Tot = 0;\n \tint loc_22_8Tot = 0;\n \tint loc_21_7Tot = 0;\n \t// Run the test 100 times\n \tfor ...
[ "0.716668", "0.67145175", "0.6385688", "0.6200205", "0.61238253", "0.60827786", "0.6082272", "0.60352606", "0.59767216", "0.5942972", "0.59415716", "0.58846706", "0.5872104", "0.58691514", "0.5866626", "0.58614635", "0.5851184", "0.58333635", "0.5826667", "0.58258224", "0.577...
0.6628764
2
Make the player, give it a hand.
@Test public void testHasAtLeastTwoPlayableCards() { Player player2 = new Player("Three Playable Cards Test", true); Hand threePlayableCardsHand = strategyHand; player2.setHand(threePlayableCardsHand.getAllCards()); // Make it harder to find playable cards: player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD, cvm)); player2.getHand().discard(new Card(Card.COLORLESS, Card.WILD_DRAW_FOUR, cvm)); Card currentPlayedCard_1 = new Card(Card.YELLOW, Card.ONE, cvm); assertTrue(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_1, Card.BLUE)); Card currentPlayedCard_2 = new Card(Card.BLUE, Card.SEVEN, cvm); assertFalse(player2.hasAtLeastTwoPlayableCards(currentPlayedCard_2, Card.BLUE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player() {\n hand = new Hand();\n }", "public HumanPlayer(Hand hand, Card selected) {\n this.hand = hand;\n // Set up human player for interaction\n CardListener cardListener = new CardAdapter() {\n private Card card;\n\n public void leftDoubleClicked(C...
[ "0.698644", "0.6645504", "0.6333755", "0.6260479", "0.6250391", "0.6239201", "0.622043", "0.6192841", "0.6158051", "0.6149951", "0.6133489", "0.6033814", "0.60287327", "0.6025396", "0.6001259", "0.59908724", "0.5987783", "0.59252757", "0.5922857", "0.591638", "0.5877568", "...
0.0
-1
/ View view1 = new GUIView(); View view2 = new GUIView(); View view3 = new GUIView(); view1.connect("P1","127.0.0.1", Constants.SOCKET, "1"); view2.connect("P2","127.0.0.1", Constants.SOCKET, "1"); view3.connect("P3","127.0.0.1", Constants.SOCKET, "1"); Thread.sleep(6000); view1.getPlayerInput().put(Constants.POWERUP, Arrays.asList("Red_Newton"));
@Test public void testServerApp() throws InterruptedException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void multiPlayerChosen(){\n IP = view.ipTF.getText();\n ConnectingViewController connecting = new ConnectingViewController(this, IP);\n connecting.showView();\n this.hideView();\n }", "public interface View {\n /**\n * Prints that Client lost the connection to Server ...
[ "0.65164775", "0.6232271", "0.6056205", "0.5984048", "0.5977133", "0.59624517", "0.5937895", "0.58915764", "0.587139", "0.5848913", "0.58092785", "0.5805222", "0.57817733", "0.5772513", "0.5763018", "0.5760503", "0.5760263", "0.57461816", "0.57290375", "0.5726367", "0.5724541...
0.0
-1
This method is called when the order button is clicked.
public void submitOrder(View view) { CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox); boolean hasWhippedCream = whippedCreamCheckBox.isChecked(); CheckBox chocolateCheckBox= (CheckBox) findViewById(R.id.chocolate_checkbox); boolean hasChocolate = chocolateCheckBox.isChecked(); EditText nameField = (EditText)findViewById(R.id.name_field); /**getting the name */ String name = nameField.getText().toString(); /**calculating price*/ int price=calculatePrice(hasWhippedCream,hasChocolate); /**creating order summary*/ String priceMessage=createOrderSummary(price,hasWhippedCream,hasChocolate,name); Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("*/*"); intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.order_summary_email_subject,name)); intent.putExtra(Intent.EXTRA_TEXT,priceMessage); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void orderClicked(View view) {\n Log.d(\"Method\", \"orderClicked()\");\n orderPlace();\n }", "@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case...
[ "0.7512184", "0.737486", "0.7362862", "0.7091616", "0.69533724", "0.69117", "0.68465847", "0.68266517", "0.6773915", "0.6769986", "0.67150253", "0.6704984", "0.66957325", "0.6653095", "0.6641884", "0.6599688", "0.65948117", "0.6591403", "0.658026", "0.6554097", "0.65529776", ...
0.0
-1
This method displays the given quantity value on the screen.
private void display(int number) { TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view); quantityTextView.setText("" + number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextV...
[ "0.8213166", "0.77711684", "0.76877743", "0.7662449", "0.76077026", "0.75838345", "0.75393534", "0.7531525", "0.75173247", "0.74963754", "0.73660475", "0.73062533", "0.72967106", "0.72941256", "0.72941005", "0.7285573", "0.7280236", "0.72365487", "0.71914005", "0.71198004", "...
0.730518
17
normalize and split the line
@Override public void flatMap(String value, Collector<Tuple2<String, Integer>> out) { String[] tokens = value.toLowerCase().split("\\W+"); // emit the pairs for (String token : tokens) { if (token.length() > 0) { out.collect(new Tuple2<>(token, 1)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String[] splitMVSLine(String raw) {\n if (raw == null) {\n return new String[] {};\n }\n StringTokenizer st = new StringTokenizer(raw);\n String[] rtn = new String[st.countTokens()];\n int i = 0;\n while (st.hasMoreTokens()) {\n String nextToken = st.nextToken();\n rtn[i]...
[ "0.6533829", "0.6370605", "0.62501514", "0.6248125", "0.6224249", "0.61208814", "0.60954285", "0.60354406", "0.59879774", "0.5934873", "0.5917446", "0.5850977", "0.58324426", "0.58200365", "0.5782829", "0.5719349", "0.5698696", "0.5683159", "0.56819624", "0.5676527", "0.56547...
0.0
-1
Based on using the "Inverse Formula" (section 4)
private static void computeDistanceAndBearing(double lat1, double lon1, double lat2, double lon2, double[] results) { int MAXITERS = 20; // Convert lat/long to radians lat1 *= Math.PI / 180.0; lat2 *= Math.PI / 180.0; lon1 *= Math.PI / 180.0; lon2 *= Math.PI / 180.0; double a = 6378137.0; // WGS84 major axis double b = 6356752.3142; // WGS84 semi-major axis double f = (a - b) / a; double aSqMinusBSqOverBSq = (a * a - b * b) / (b * b); double L = lon2 - lon1; double A = 0.0; double U1 = Math.atan((1.0 - f) * Math.tan(lat1)); double U2 = Math.atan((1.0 - f) * Math.tan(lat2)); double cosU1 = Math.cos(U1); double cosU2 = Math.cos(U2); double sinU1 = Math.sin(U1); double sinU2 = Math.sin(U2); double cosU1cosU2 = cosU1 * cosU2; double sinU1sinU2 = sinU1 * sinU2; double sigma = 0.0; double deltaSigma = 0.0; double cosSqAlpha = 0.0; double cos2SM = 0.0; double cosSigma = 0.0; double sinSigma = 0.0; double cosLambda = 0.0; double sinLambda = 0.0; double lambda = L; // initial guess for (int iter = 0; iter < MAXITERS; iter++) { double lambdaOrig = lambda; cosLambda = Math.cos(lambda); sinLambda = Math.sin(lambda); double t1 = cosU2 * sinLambda; double t2 = cosU1 * sinU2 - sinU1 * cosU2 * cosLambda; double sinSqSigma = t1 * t1 + t2 * t2; // (14) sinSigma = Math.sqrt(sinSqSigma); cosSigma = sinU1sinU2 + cosU1cosU2 * cosLambda; // (15) sigma = Math.atan2(sinSigma, cosSigma); // (16) double sinAlpha = (sinSigma == 0) ? 0.0 : cosU1cosU2 * sinLambda / sinSigma; // (17) cosSqAlpha = 1.0 - sinAlpha * sinAlpha; cos2SM = (cosSqAlpha == 0) ? 0.0 : cosSigma - 2.0 * sinU1sinU2 / cosSqAlpha; // (18) double uSquared = cosSqAlpha * aSqMinusBSqOverBSq; // defn A = 1 + (uSquared / 16384.0) * // (3) (4096.0 + uSquared * (-768 + uSquared * (320.0 - 175.0 * uSquared))); double B = (uSquared / 1024.0) * // (4) (256.0 + uSquared * (-128.0 + uSquared * (74.0 - 47.0 * uSquared))); double C = (f / 16.0) * cosSqAlpha * (4.0 + f * (4.0 - 3.0 * cosSqAlpha)); // (10) double cos2SMSq = cos2SM * cos2SM; deltaSigma = B * sinSigma * // (6) (cos2SM + (B / 4.0) * (cosSigma * (-1.0 + 2.0 * cos2SMSq) - (B / 6.0) * cos2SM * (-3.0 + 4.0 * sinSigma * sinSigma) * (-3.0 + 4.0 * cos2SMSq))); lambda = L + (1.0 - C) * f * sinAlpha * (sigma + C * sinSigma * (cos2SM + C * cosSigma * (-1.0 + 2.0 * cos2SM * cos2SM))); // (11) double delta = (lambda - lambdaOrig) / lambda; if (Math.abs(delta) < 1.0e-12) { break; } } float distance = (float) (b * A * (sigma - deltaSigma)); results[0] = distance; float initialBearing = (float) Math.atan2(cosU2 * sinLambda, cosU1 * sinU2 - sinU1 * cosU2 * cosLambda); initialBearing *= 180.0 / Math.PI; float finalBearing = (float) Math.atan2(cosU1 * sinLambda, -sinU1 * cosU2 + cosU1 * sinU2 * cosLambda); finalBearing *= 180.0 / Math.PI; results[1] = finalBearing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int ainverse(int z)\n {\n return (65536-z);\n }", "public final void invert() {\r\n\t\tRadical1 s = determinant();\r\n\t\tif (s.equals(Radical1.ZERO))\r\n\t\t\treturn;\r\n\r\n\t\tif (!s.equals(Radical1.ONE))\r\n\t\t\tthrow new ArithmeticException(\"can't invert ...
[ "0.7458774", "0.7228451", "0.71970034", "0.7145124", "0.70881134", "0.7022031", "0.6991155", "0.69871885", "0.698636", "0.6964465", "0.69350886", "0.69276834", "0.691758", "0.6877991", "0.68166804", "0.67834973", "0.6755819", "0.6730349", "0.66992104", "0.6621614", "0.6610418...
0.0
-1
TODO Autogenerated method stub
@Override public void prepare() { System.out.println("i am in ShanTou,i like the pork,so i add the pork"); }
{ "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
To fight color banding.
private void init(int color) { getWindow().setFormat(PixelFormat.RGBA_8888); setUp(color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j =...
[ "0.6607069", "0.6485882", "0.6231806", "0.6158383", "0.61263114", "0.612025", "0.612025", "0.6031252", "0.6024009", "0.6000648", "0.5958585", "0.5922553", "0.5887433", "0.58793986", "0.58562607", "0.584344", "0.5843148", "0.58352643", "0.58185595", "0.5774817", "0.5771673", ...
0.0
-1
Set a OnColorChangedListener to get notified when the color selected by the user has changed.
public void setOnColorChangedListener(OnColorChangedListener listener) { mListener = listener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOnColorChangedListener(@NonNull OnColorChangedListener listener);", "interface ColorChangedListener {\n void colorChanged(Color newColor);\n }", "public interface OnColorChangedListener {\n\t/**\n\t * color change call back\n\t * @param color 选择的颜色\n\t */\n void colorChanged(int co...
[ "0.867271", "0.8056842", "0.75854987", "0.7361858", "0.69965386", "0.6811801", "0.679091", "0.66799814", "0.6672865", "0.6661419", "0.66561365", "0.6640978", "0.64697236", "0.63618064", "0.62760776", "0.6253922", "0.6231881", "0.62123567", "0.6155136", "0.61294585", "0.611950...
0.834232
1
Save the new price to the data store for this currency and update the currentPrice accordingly. Returns true if any data was changed;
boolean applyPrice(int asOfDate, boolean makeCurrent) { if (newPrice == null || newPrice.doubleValue() == 0) { updateCurrentPrice(); return false; } security.setSnapshotInt(asOfDate, 1 / Util.safeRate(newPrice), relativeCurrency).syncItem(); if (makeCurrent) { if(relativeCurrency!=null && !relativeCurrency.equals(currencyTable.getBaseType())) { double viewRateMult = CurrencyUtil.getUserRate(relativeCurrency, currencyTable.getBaseType()); newPrice *= viewRateMult; } security.setUserRate(1.0/newPrice); security.setParameter("price_date", System.currentTimeMillis()); security.syncItem(); } newPrice = null; updateCurrentPrice(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}", "@Override\n public boolean updateItemModelPrice(ItemModelPrice itemModelPrice) {\n return itemModelPriceDao.update(itemModelPrice);\n }", "public boolean updatePricingForId(int productId, Pricing pricing);",...
[ "0.68450683", "0.654263", "0.6357688", "0.6322423", "0.6211837", "0.6211276", "0.61080074", "0.6047645", "0.6017085", "0.6006013", "0.5841136", "0.5809556", "0.5806451", "0.58001995", "0.5796951", "0.579292", "0.579101", "0.5776985", "0.5762277", "0.5721214", "0.57154906", ...
0.5889828
10
This is a separate method because, unlike the other things done in initializeData, these may need to be done again. Namely, after the user has entered new prices and applied them to the data store, we want those new prices to be shown in the "current price" column of our window.
void loadCurrentPrices() { for(SecurityRow row : allSecurities) { row.updateCurrentPrice(); } fireTableRowsUpdated(0, allSecurities.size()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshData() {\n\t\tif (error == null) {\n\t\t\terror = \"\";\n\t\t}\n\t\terrorLabel.setText(error);\n\t\tif (error.trim().length() > 0) {\n\t\t\terror = \"\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get instance of system\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t...
[ "0.6579778", "0.6536777", "0.65306383", "0.64478683", "0.64375955", "0.6395011", "0.6307614", "0.6263193", "0.62513924", "0.61846894", "0.6152379", "0.61378217", "0.6137602", "0.6128398", "0.6113553", "0.6110154", "0.60684234", "0.6063212", "0.6051113", "0.600128", "0.5986243...
0.6935364
0
Takes the prices (and other information) entered by the user, and applies them to (enters them into) the Moneydance data store.
public void applyPrices(int effectiveDate, boolean setCurrentPrice) { int count = 0; // How many new prices were entered? for (SecurityRow row : allSecurities) { if(row.applyPrice(effectiveDate, setCurrentPrice)) count++; } loadCurrentPrices(); // If any new prices were entered, refresh the view fireTableDataChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculatePrice() {\n\t\tint temp = controller.getQualityPrice(hotel.getText(), quality.getText());\n\n\t\ttemp *= getDays();\n\n\t\tif (discountChoice > 0) {\n\t\t\tdouble discountTmp = (double) discountChoice / 100;\n\t\t\ttemp *= (1.00 - discountTmp);\n\t\t}\n\n\t\tprice.setText(Integer.toString(tem...
[ "0.64819187", "0.64398485", "0.6439019", "0.6348215", "0.61839336", "0.61037594", "0.6100739", "0.6052285", "0.5995636", "0.5972338", "0.59630716", "0.59372306", "0.5930919", "0.5912269", "0.58911157", "0.5888824", "0.5830498", "0.58094734", "0.58034307", "0.5787172", "0.5783...
0.583442
16
Get the data represented in any one cell of the table, given the row number and column number. Used only by Swing.
public Object getValueAt(int row, int column) { switch(column) { case SECURITY_NAME_COLUMN: return allSecurities.get(row).security; case CURRENT_PRICE_COLUMN: return allSecurities.get(row).currentPrice; case NEW_PRICE_COLUMN: return allSecurities.get(row).newPrice; default: return "?"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T getCell(int row, int column);", "Object getDataValue(String column, int row);", "protected abstract double getCell(\r\n int row,\r\n int col);", "public Object getCell(int col, int row) {\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n ...
[ "0.7484968", "0.7011976", "0.6984171", "0.6978295", "0.69609386", "0.69488585", "0.6913547", "0.6874658", "0.68220234", "0.67378896", "0.67329955", "0.6683297", "0.66494983", "0.6640914", "0.6618477", "0.66122854", "0.6612248", "0.6609267", "0.6606261", "0.6577398", "0.652974...
0.0
-1
Used by JTable to determine whether a given table cell should be made editable or not. Returns "true" if and only if the cell in question is in the "New Price" column.
@Override public boolean isCellEditable (int row, int column) { return (column == NEW_PRICE_COLUMN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCellEditable (int rowIndex, int columnIndex) {\n return true;\n }", "public boolean isCellEditable(int row, int col) { return (col!=0); }", "public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return (this.table.canAddRow() && this.table.canRemoveRow());\r\n...
[ "0.79494804", "0.7936127", "0.7875074", "0.784297", "0.7841319", "0.78057253", "0.78053385", "0.78044623", "0.7779407", "0.7779407", "0.77777684", "0.77555573", "0.7754068", "0.77536124", "0.77378523", "0.7733718", "0.77223736", "0.7716748", "0.7716748", "0.770902", "0.770826...
0.8355121
0
Called by JTable when a table cell has been edited, to let this "table model" object know the new value, so that it may store that value.
@Override public void setValueAt (Object value, int row, int col) { SecurityRow secRow = allSecurities.get(row); if (col == NEW_PRICE_COLUMN) { if(value==null) { secRow.newPrice = null; } else if(value instanceof Double) { secRow.newPrice = (Double)value; } else { double d = StringUtils.parseRate(String.valueOf(value), decimalChar); secRow.newPrice = d==0 ? null : d; } fireTableCellUpdated (row, col); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void cellChanged(String newCellValue) {\n\t \n }", "public void cellValueChanged(int row, int col, String oldValue, String newValue);", "public void onCellEdit(CellEditEvent event) {\n Object oldValue = event.getOldValue();\n Object newValue = event.getNewValue();\n ...
[ "0.7865587", "0.73932093", "0.73261493", "0.6943357", "0.68466574", "0.679608", "0.67103016", "0.6661072", "0.657268", "0.65611786", "0.6545059", "0.6498529", "0.6498529", "0.6495536", "0.64932466", "0.64915895", "0.64915895", "0.648913", "0.6487393", "0.6463568", "0.64620167...
0.61575407
46
[START write_message] Write a message to the database
public void basicReadWrite() { FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference myRef = database.getReference("message"); myRef.setValue("Hello, World!"); // [END write_message] // [START read_message] // Read from the database myRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. String value = dataSnapshot.getValue(String.class); Log.d(TAG, "Value is: " + value); } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); // [END read_message] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeString(String message);", "void write(String message) {\n this.message = message;\n }", "void sendMessage(String message) {\n writer.println(message);\n }", "public static void writeFile(String msg){\n\t\ttry { \n File f1 = new File(\"/Users/snehithraj/eclipse-work...
[ "0.6779535", "0.66118914", "0.65341854", "0.63412106", "0.6287925", "0.6285562", "0.6270428", "0.62647235", "0.61723", "0.60927904", "0.6073272", "0.60715055", "0.60609984", "0.6012551", "0.6002688", "0.59807557", "0.5977693", "0.5953188", "0.5952468", "0.5941175", "0.5930338...
0.592176
22
This method is called once with the initial value and again whenever data at this location is updated.
@Override public void onDataChange(DataSnapshot dataSnapshot) { String value = dataSnapshot.getValue(String.class); Log.d(TAG, "Value is: " + value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n...
[ "0.6856542", "0.6654883", "0.6446471", "0.64045274", "0.62937367", "0.62570226", "0.62508667", "0.624989", "0.6217914", "0.6217914", "0.6217914", "0.61913645", "0.6187112", "0.61626685", "0.6160627", "0.6160627", "0.61481184", "0.614558", "0.6142754", "0.6118363", "0.6087983"...
0.0
-1
Failed to read value
@Override public void onCancelled(DatabaseError error) { Log.w(TAG, "Failed to read value.", error.toException()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignore...
[ "0.6520245", "0.644224", "0.62601036", "0.6077715", "0.6027265", "0.59389204", "0.5928014", "0.5897478", "0.5892562", "0.5891626", "0.5821752", "0.5813256", "0.5813256", "0.58093756", "0.58006567", "0.5798476", "0.5776234", "0.5774579", "0.57361126", "0.5728217", "0.57143444"...
0.5678807
37
Access method for the lockFlag property.
public Integer getLockFlag() { return lockFlag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }", "public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }", "public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }", "public long getLockStatus() {\r\n return loc...
[ "0.7516615", "0.7516615", "0.7516615", "0.7176856", "0.711824", "0.70147014", "0.6980605", "0.6948886", "0.68920654", "0.6846797", "0.6838122", "0.68128365", "0.68127614", "0.6782189", "0.6777991", "0.6767545", "0.6729084", "0.67289096", "0.6670418", "0.666866", "0.66494", ...
0.8453918
2
Sets the value of the lockFlag property.
public void setLockFlag(Integer aLockFlag) { lockFlag = aLockFlag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetIsLock(boolean isLock)\n {\n this._lock = isLock;\n }", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "public void setLockStatus(long lockStatus) {\r\n this.lockStatus = lockStatus;\r\n }", "public void setLocked(boolean value) {\n...
[ "0.7333631", "0.67976457", "0.6771066", "0.6715769", "0.67071646", "0.6696542", "0.6696542", "0.6687558", "0.6672267", "0.6672267", "0.6672267", "0.6651718", "0.66029245", "0.6563471", "0.6557844", "0.6508111", "0.6456588", "0.64473337", "0.64124256", "0.62608355", "0.6249609...
0.8870401
2
Access method for idacquirente.
public int getIdacquirente() { return idacquirente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdacquirente(int aIdacquirente) {\n idacquirente = aIdacquirente;\n }", "public synchronized void acquire(int id) throws InterruptedException\r\n\t{\r\n\t\twhile (avail2 == 0) {\r\n\t\t\tSystem.out.println(\"+Process_\" + id + \" is waiting for SR2.\");\r\n\t\t\twait();\r\n\t\t}\r\n\t\tS...
[ "0.6995045", "0.6138521", "0.61275357", "0.60716885", "0.60160613", "0.5862816", "0.572856", "0.57031137", "0.5703016", "0.5682236", "0.5623721", "0.5611927", "0.55901724", "0.5553036", "0.5544009", "0.55348843", "0.550649", "0.5455563", "0.5443957", "0.5420822", "0.53775877"...
0.73141456
0
Setter method for idacquirente.
public void setIdacquirente(int aIdacquirente) { idacquirente = aIdacquirente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdacquirente() {\n return idacquirente;\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "private void setAid(int value) {\n \n aid_ = value;\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "public void setAr...
[ "0.73160535", "0.6326793", "0.6227328", "0.6022876", "0.54541415", "0.54467916", "0.54376125", "0.54235816", "0.54084104", "0.5377567", "0.53572285", "0.5346754", "0.53366846", "0.53171766", "0.531194", "0.5308276", "0.5297463", "0.5297463", "0.5297463", "0.5297463", "0.52974...
0.8336727
0
Access method for telefono.
public String getTelefono() { return telefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "public String getTelefono(){\n return telefono;\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "@AutoEscape\n\t...
[ "0.75085187", "0.7410024", "0.7132251", "0.7122056", "0.7120618", "0.7114074", "0.7083386", "0.7020289", "0.6991805", "0.69245344", "0.68313813", "0.6824384", "0.6773596", "0.67727125", "0.6720139", "0.65162814", "0.6479845", "0.6479845", "0.6474486", "0.6468346", "0.6358072"...
0.7413122
2
Setter method for telefono.
public void setTelefono(String aTelefono) { telefono = aTelefono; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTelefono(String telefono);", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r...
[ "0.835018", "0.8261006", "0.81965846", "0.8005473", "0.7942225", "0.7895386", "0.78072596", "0.7730229", "0.7635855", "0.74571705", "0.74571705", "0.7444439", "0.73657113", "0.7133341", "0.71305895", "0.7128382", "0.71181273", "0.70529836", "0.7023606", "0.67482436", "0.67183...
0.8282772
1
Access method for indirizzo.
public String getIndirizzo() { return indirizzo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIndirizzo();", "public IndirizzoBean getIndirizzo() {\n\t\t\treturn indirizzo;\n\t\t}", "void setIndirizzo(String indirizzo);", "public void setIndirizzo(String aIndirizzo) {\n indirizzo = aIndirizzo;\n }", "public void setIndirizzo(IndirizzoBean indirizzo) {\n\t\t\tthis.indirizzo = ind...
[ "0.679553", "0.63065135", "0.6237541", "0.60712075", "0.5776213", "0.55290323", "0.524647", "0.5246253", "0.5115533", "0.50389886", "0.50343275", "0.50206304", "0.5007074", "0.5001481", "0.49975973", "0.4987007", "0.49588308", "0.49333736", "0.49280632", "0.49096033", "0.4897...
0.6679646
1
Setter method for indirizzo.
public void setIndirizzo(String aIndirizzo) { indirizzo = aIndirizzo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setIndirizzo(String indirizzo);", "public void setIndirizzo(IndirizzoBean indirizzo) {\n\t\t\tthis.indirizzo = indirizzo;\n\t\t}", "public String getIndirizzo() {\n return indirizzo;\n }", "public void setDiretor(IPessoa diretor);", "public IndirizzoBean getIndirizzo() {\n\t\t\treturn indiri...
[ "0.7910704", "0.6523797", "0.6286844", "0.61611694", "0.5869526", "0.5706212", "0.5706212", "0.54950005", "0.53249365", "0.530119", "0.52870214", "0.5285053", "0.52740127", "0.52488536", "0.5247482", "0.5225386", "0.5225386", "0.5215256", "0.5203262", "0.51871884", "0.5187188...
0.7103657
1
Access method for citta.
public String getCitta() { return citta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Citation getAuthority() {\n return SimpleCitation.NETCDF;\n }", "public void setCitta(String aCitta) {\n citta = aCitta;\n }", "public void Citation() {\n\t}", "public String getCitation();", "private ISciIntInstituicaoCTA obterInstituicaoCTA(Integer idInstituicao)...
[ "0.5982671", "0.5778872", "0.5732458", "0.5590885", "0.55776113", "0.55254024", "0.5482353", "0.5477882", "0.5439687", "0.5439338", "0.54152125", "0.5382306", "0.53792644", "0.5362916", "0.5355756", "0.53519255", "0.53501785", "0.5349878", "0.532165", "0.5279278", "0.52340275...
0.6670764
0
Setter method for citta.
public void setCitta(String aCitta) { citta = aCitta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCit(java.lang.String cit);", "public String getCitta() {\n return citta;\n }", "public void setITALoc(int ITAIndex, int loc){\r\n\t\tif(ITAIndex < 0 || ITAIndex > Model.getITACount())\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.locVec[ITAIndex] = loc;\r\n\t}", "public void setCuentaContable(Cuenta...
[ "0.67936385", "0.66113067", "0.5744853", "0.57074016", "0.56736743", "0.5630993", "0.55941486", "0.5593436", "0.55178607", "0.5495644", "0.5480809", "0.54614556", "0.54583037", "0.54396874", "0.53865", "0.5376045", "0.5363448", "0.53620255", "0.5360074", "0.5353734", "0.53476...
0.7081813
0
Access method for cap.
public String getCap() { return cap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cap();", "EReqOrCap getReq_cap();", "public final CapabilityBlock getCapability() {\n return cap;\n }", "int getCap();", "public Crate(int cap){\r\n capacity = cap;\r\n }", "public String getCapStatus() {\n return capStatus;\n }", "public String getCapCode() {\n ...
[ "0.6841637", "0.66172296", "0.65992844", "0.6572151", "0.63085794", "0.62536144", "0.6135379", "0.61161125", "0.60964936", "0.59778154", "0.5913632", "0.58407223", "0.57946026", "0.57725567", "0.5739151", "0.57170075", "0.5710852", "0.57061696", "0.5644023", "0.5553772", "0.5...
0.66779816
1
Setter method for cap.
public void setCap(String aCap) { cap = aCap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCap(int cap);", "public String getCap() {\n return cap;\n }", "public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}", "public Crate(int cap){\r\n capacity = cap;\r\n }", "public void setCap(EditableSceneObjectC...
[ "0.8221553", "0.7526149", "0.7468143", "0.7179069", "0.70007086", "0.6647745", "0.64713776", "0.64140654", "0.638985", "0.6381572", "0.637124", "0.63443285", "0.62213624", "0.62143755", "0.6182567", "0.61567044", "0.6134234", "0.61270374", "0.6118561", "0.61102706", "0.609399...
0.79532087
1
Access method for prenotazione.
public Set<Prenotazione> getPrenotazione() { return prenotazione; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void remplirPrestaraireData() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private List<PreDocumentoEntrata> getPreDocume...
[ "0.6253601", "0.6233916", "0.6208144", "0.61608684", "0.6148479", "0.6130363", "0.60243905", "0.5917538", "0.58986133", "0.5892964", "0.5882817", "0.58698404", "0.5869323", "0.5859694", "0.58387953", "0.5800782", "0.57496256", "0.5749392", "0.57103884", "0.569856", "0.5663706...
0.5601427
29
Setter method for prenotazione.
public void setPrenotazione(Set<Prenotazione> aPrenotazione) { prenotazione = aPrenotazione; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setPreco(double preco) {\n\t\tthis.preco = preco;\n\t}", "public void setPreco(Double preco);", "public void setPreco(Float preco) { this.preco = preco; }", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ ...
[ "0.7294719", "0.6754306", "0.6625232", "0.65476", "0.6373678", "0.6243953", "0.60947275", "0.60400236", "0.60071254", "0.5981845", "0.5965597", "0.5955359", "0.5943919", "0.59131986", "0.5906059", "0.59008485", "0.58891016", "0.5878856", "0.58760786", "0.5867386", "0.5864684"...
0.6926168
1
Access method for commento.
public Set<Commento> getCommento() { return commento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "String getComment();", "String getComment();", "Comment getBase_Comment();", "@Override\n\tpublic void comment(...
[ "0.7057371", "0.7057371", "0.7057371", "0.7057371", "0.7057371", "0.7057371", "0.6859363", "0.6859363", "0.6824514", "0.6793092", "0.6735165", "0.6697368", "0.65918475", "0.6578509", "0.654674", "0.6519194", "0.64879626", "0.64703244", "0.64441866", "0.6442325", "0.64400154",...
0.0
-1
Setter method for commento.
public void setCommento(Set<Commento> aCommento) { commento = aCommento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setComment(String comment);", "public void setComment(String comment);", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public void setComments(java.lang.String value);", "public void set...
[ "0.7620584", "0.7620584", "0.7200046", "0.7181964", "0.71713454", "0.71098757", "0.7069955", "0.7066696", "0.7024237", "0.6960615", "0.6952038", "0.68463534", "0.6841788", "0.6824086", "0.67402446", "0.6715614", "0.6714495", "0.6701013", "0.6677571", "0.6668508", "0.66231966"...
0.67708117
14
Access method for utente.
public Utente getUtente() { return utente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Utente getUtente() {\n\t\treturn utente;\n\t}", "public void setUtente(Utente aUtente) {\n utente = aUtente;\n }", "public String getNomeUtente()\r\n\t{\r\n\t\treturn nomeUtente;\r\n\t}", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "protected void accionUsuario...
[ "0.7298522", "0.68283385", "0.66351414", "0.653824", "0.62163866", "0.6185724", "0.61116636", "0.60570264", "0.60194725", "0.5966441", "0.59529674", "0.59297687", "0.59132314", "0.5886142", "0.58578146", "0.584205", "0.58370423", "0.58302176", "0.5812355", "0.57884926", "0.57...
0.7512497
0
Setter method for utente.
public void setUtente(Utente aUtente) { utente = aUtente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Utente getUtente() {\n return utente;\n }", "public void setNomeUtente(String nomeUtente)\r\n\t{\r\n\t\tthis.nomeUtente = nomeUtente; \r\n\t}", "public Utente getUtente() {\n\t\treturn utente;\n\t}", "public void setUsuario(java.lang.String newUsuario);", "void setTitolo(String titolo);", ...
[ "0.69065934", "0.6761687", "0.6743237", "0.670568", "0.6597261", "0.6409378", "0.62286425", "0.6148598", "0.6115593", "0.61039156", "0.6034544", "0.5982265", "0.597453", "0.59597576", "0.59494823", "0.59494823", "0.59422547", "0.5930165", "0.5908909", "0.5908909", "0.5882499"...
0.8354593
0
Access method for pagamento.
public Set<Pagamento> getPagamento() { return pagamento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected Paginador<UnidadFuncional_VO> getPaginador() {\n\t\treturn null;\r\n\t}", "private static void pagarEmpleado(int cod) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override // Métodos que fazem a anulação\n\tpublic void pagaIR() {\n\t\t// TODO ...
[ "0.67537904", "0.6732023", "0.6591611", "0.6361069", "0.631361", "0.62446016", "0.62026757", "0.6182163", "0.6155658", "0.6109454", "0.6100604", "0.6078689", "0.59790045", "0.59331477", "0.5926167", "0.5886896", "0.58696383", "0.5862104", "0.5858358", "0.5846104", "0.5826006"...
0.61575544
8
Setter method for pagamento.
public void setPagamento(Set<Pagamento> aPagamento) { pagamento = aPagamento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public Set<Pagamento> getPagamento() {\n return pagamento;\n }", "public void setMontoPagado(java.lang.String montoPagado) {\n this.montoPagado = montoPagado;\...
[ "0.67897373", "0.6612551", "0.65254617", "0.65057933", "0.63972104", "0.6374455", "0.6364298", "0.60731524", "0.60650086", "0.604063", "0.60305095", "0.6000564", "0.59860456", "0.59860456", "0.590626", "0.58734524", "0.5858127", "0.5837001", "0.58245045", "0.580392", "0.57763...
0.70964426
0
Access method for notifica.
public Set<Notifica> getNotifica() { return notifica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Notifica(){}", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public interface Notice extends Event\n\t{\n\t\tpublic static final String TOPIC_ID = \"aether.notice.topic.id\";\n\t}", "public abstract String tiposervicio();", "@Override // Métodos que fazem a anulação\n\tpu...
[ "0.63804394", "0.5983013", "0.59646213", "0.5914114", "0.563054", "0.56293756", "0.5600706", "0.5581505", "0.557092", "0.5560245", "0.5545464", "0.5530661", "0.55256635", "0.55238014", "0.5511826", "0.55089056", "0.5502543", "0.54966074", "0.5489502", "0.542175", "0.5418863",...
0.0
-1
Setter method for notifica.
public void setNotifica(Set<Notifica> aNotifica) { notifica = aNotifica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNotification(String notif) {\n frame.setNotification(notif);\n }", "public void setDocumentNote (String DocumentNote);", "public void setNote(String note);", "@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTAp...
[ "0.65369856", "0.6191608", "0.61866325", "0.6136633", "0.6085818", "0.60674584", "0.6002439", "0.5913865", "0.58135766", "0.57935137", "0.577238", "0.57698154", "0.5766597", "0.5755398", "0.5720852", "0.57185197", "0.5712123", "0.5699264", "0.56956553", "0.56715745", "0.56622...
0.6024258
6
Compares the key for this instance with another Acquirente.
private boolean equalKeys(Object other) { if (this==other) { return true; } if (!(other instanceof Acquirente)) { return false; } Acquirente that = (Acquirente) other; if (this.getIdacquirente() != that.getIdacquirente()) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Acquirente)) return false;\n return this.equalKeys(other) && ((Acquirente)other).equalKeys(this);\n }", "@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProdu...
[ "0.7471261", "0.6046948", "0.59622574", "0.58267486", "0.5773407", "0.5760481", "0.56852865", "0.5653124", "0.5635047", "0.56328404", "0.5573567", "0.5561905", "0.5546417", "0.5527707", "0.55177754", "0.5507854", "0.5490595", "0.5483651", "0.54564565", "0.541072", "0.53766984...
0.7337519
1
Compares this instance with another Acquirente.
@Override public boolean equals(Object other) { if (!(other instanceof Acquirente)) return false; return this.equalKeys(other) && ((Acquirente)other).equalKeys(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n ...
[ "0.6342189", "0.50823045", "0.5053452", "0.5031258", "0.4969607", "0.48975682", "0.48920888", "0.48717347", "0.48672968", "0.4850193", "0.4821859", "0.48209253", "0.47980288", "0.4758514", "0.4740246", "0.4697875", "0.46701992", "0.46628776", "0.46241507", "0.45981464", "0.45...
0.7007571
0
Returns a hash code for this instance.
@Override public int hashCode() { int i; int result = 17; i = getIdacquirente(); result = 37*result + i; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHash() {\n return hash_;\n }", "public int getHash() {\n return hash_;\n }", "public int hashcode();", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[...
[ "0.7660051", "0.76481766", "0.7641668", "0.7474032", "0.73277396", "0.73142415", "0.73102975", "0.7233651", "0.7220492", "0.72138613", "0.7206837", "0.7206837", "0.7206837", "0.72063285", "0.71886986", "0.7164714", "0.716034", "0.71597964", "0.7157775", "0.7152946", "0.714885...
0.0
-1
Returns a debugfriendly String representation of this instance.
@Override public String toString() { StringBuffer sb = new StringBuffer("[Acquirente |"); sb.append(" idacquirente=").append(getIdacquirente()); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return str.toString();\n }", "public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return super.toDebugString()+str.toString();\n }", "public String toDebugString();", ...
[ "0.81951606", "0.8156881", "0.774933", "0.77431333", "0.767539", "0.76388955", "0.74720114", "0.74663234", "0.7394183", "0.73836356", "0.73463917", "0.7297789", "0.729308", "0.72906446", "0.7266007", "0.72658205", "0.72348756", "0.7228848", "0.71234727", "0.7088974", "0.70837...
0.0
-1
Return all elements of the primary key.
public Map<String, Object> getPrimaryKey() { Map<String, Object> ret = new LinkedHashMap<String, Object>(6); ret.put("idacquirente", Integer.valueOf(getIdacquirente())); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> getPrimaryKeys(Table table) {\n\t\tlog.debug(\"getPrimaryKeys\");\n\t\tList<String> primaryKeyList = new ArrayList<String>();\n\n\t\tfor (Index index : table.getIndexes()) {\n\t\t\tfor (Index.Column column : index.getColumns()) {\n\t\t\t\tif (index.isPrimaryKey()) {\n\t\t\t\t\tprimaryKeyList.a...
[ "0.7321617", "0.7162765", "0.71422434", "0.68415403", "0.66742766", "0.65876496", "0.6444915", "0.643716", "0.63894904", "0.63310885", "0.6314038", "0.63072056", "0.6274004", "0.62541133", "0.6253869", "0.6224833", "0.62202317", "0.6194848", "0.61773825", "0.61773825", "0.617...
0.56168854
98
starts the game again
public void playAgainButton(View view) { Intent intent = new Intent(this, MainActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void restartGame() {\n\t\tclearGame();\n\t\tstartGame();\n\t}", "private void startGame() {\r\n setGrid();\r\n setSnake();\r\n newPowerUp();\r\n timer.start();\r\n }", "public void startAgain() {\n setLevel(1);\n setScore(0);\n setPotion(0);\n setBonusKeys(0);\...
[ "0.83517003", "0.79176867", "0.7900356", "0.78104085", "0.762884", "0.7625604", "0.75904965", "0.7543743", "0.7528354", "0.75128716", "0.7472573", "0.74563456", "0.7443607", "0.7422224", "0.73767674", "0.73656625", "0.73445654", "0.7336277", "0.7324247", "0.7320889", "0.73087...
0.0
-1
Obter id do template property
public int getPropertyId(int templateId, String templateproperty){ int id=0; String sql = "select id from templateproperty where " +" idtemplate="+templateId +" AND " + " templateproperty=\"" +templateproperty+"\""; try { // prepared statement para inserção Connection con = DatabaseConnectionFactory.getConnection(); PreparedStatement stmt = con.prepareStatement(sql); ResultSet rs = stmt.executeQuery(); if(rs.next()) { // criando o objeto TemplateProperty id=rs.getInt("id"); } stmt.close(); } catch (SQLException e) { throw new RuntimeException(e); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SimpleIntegerProperty getIDProperty(){ return id; }", "@ApiModelProperty(value = \"The id of the template\")\n public String getId() {\n return id;\n }", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(21)\n void templateID(\n int pVal);", "@DISPID(14) //= 0xe...
[ "0.6249997", "0.62408924", "0.61615694", "0.60700524", "0.6018437", "0.59738773", "0.591347", "0.5891666", "0.5760518", "0.5709581", "0.5709455", "0.56751466", "0.5656637", "0.56519103", "0.5648198", "0.5636394", "0.55948967", "0.55933076", "0.55910087", "0.5575665", "0.55275...
0.5299963
28
Extract attributes we will need
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { MessageResources messages = getResources(request); // save errors ActionMessages errors = new ActionMessages(); //START check for login (security) if (!SecurityService.getInstance().checkForLogin(request.getSession(false))) { return (mapping.findForward("welcome")); } //END check for login (security) List results = new ArrayList(); String number = request.getParameter("number"); if(number == null){ number = request.getParameter("id"); } CapaId capaId = QMSService.getInstance().getSingleCapaId(number); Capa capa = QMSService.getInstance().getSingleCapa(number); DateFormat df = new SimpleDateFormat("MM-dd-yyyy"); // Date date = ...; // wherever you get this //DateFormat df = new SimpleDateFormat("dd MMMM yyyy"); //String text = df.format(date); ////System.out.println(text); DynaValidatorForm uvg = (DynaValidatorForm) form; try { uvg.set("number", StandardCode.getInstance().noNull(capa.getNumber())); } catch (Exception e) { uvg.set("number", ""); } try { uvg.set("cdate", capa.getCdate()); } catch (Exception e) { uvg.set("cdate", ""); } try { uvg.set("employee", StandardCode.getInstance().noNull(capa.getEmployee())); } catch (Exception e) { uvg.set("employee", ""); } try { uvg.set("location", StandardCode.getInstance().noNull(capa.getLocation())); } catch (Exception e) { uvg.set("location", ""); } try { uvg.set("description", StandardCode.getInstance().noNull(capa.getDescription())); } catch (Exception e) { uvg.set("description", ""); } try { uvg.set("reportedby", StandardCode.getInstance().noNull(capa.getReportedby())); // request.setAttribute("reportedby", StandardCode.getInstance().noNull(capa.getReportedby())); } catch (Exception e) { uvg.set("reportedby", ""); // request.setAttribute("reportedby",""); } try { uvg.set("reportedbydesc", StandardCode.getInstance().noNull(capa.getReportedbydesc())); } catch (Exception e) { uvg.set("reportedbydesc", ""); } try { if(null != capa.getIsLocked()){ uvg.set("admin_locked", ""+capa.getIsLocked()); request.setAttribute("isLocked", capa.getIsLocked()); }else{ uvg.set("admin_locked", "false"); request.setAttribute("isLocked", Boolean.FALSE); } } catch (Exception e) { uvg.set("admin_locked", "false"); request.setAttribute("isLocked", Boolean.FALSE); } try { if (capa.getAdmin_lock_date() == null) { uvg.set("admin_lock_date", ""); } else { uvg.set("admin_lock_date", "" + df.format(capa.getAdmin_lock_date())); } } catch (Exception e) { uvg.set("admin_lock_date", ""); } try { if(capa.getIsLocked()){ User user = UserService.getInstance().getSingleUser(capa.getLockedby()); request.setAttribute("lockedBy","The Capa "+capa.getNumber()+" is locked by " +user.getFirstName() +" "+user.getLastName() +" on "+ df.format(capa.getAdmin_lock_date())+". You cannot edit it once locked.<br>" + "<img src=\"/logo/images/"+user.getSignature()+"\" width=\"148\" height=\"35\" alt=\"Sign\"/>");} } catch (Exception e) { e.printStackTrace(); request.setAttribute("lockedBy", "The Capa is locked.You cannot edit it once locked."); } try { uvg.set("fromc", StandardCode.getInstance().noNull(capa.getFromc())); } catch (Exception e) { uvg.set("fromc", ""); } try { uvg.set("issueId", StandardCode.getInstance().noNull(capa.getIssueId())); } catch (Exception e) { uvg.set("issueId", ""); } try { uvg.set("source", StandardCode.getInstance().noNull(capa.getSource())); request.setAttribute("source", StandardCode.getInstance().noNull(capa.getSource())); } catch (Exception e) { uvg.set("source", ""); request.setAttribute("source", ""); } try { uvg.set("status", StandardCode.getInstance().noNull(capa.getStatus())); } catch (Exception e) { uvg.set("status", ""); } try { uvg.set("ncr", StandardCode.getInstance().noNull(capa.getNcr())); } catch (Exception e) { uvg.set("ncr", ""); } try { uvg.set("rca", StandardCode.getInstance().noNull(capaId.getRca())); } catch (Exception e) { uvg.set("rca", ""); } try { uvg.set("imact", StandardCode.getInstance().noNull(capaId.getImact())); } catch (Exception e) { uvg.set("imact", ""); } try { if (capaId.getImact_t_date() == null) { uvg.set("imact_t_date", ""); } else { uvg.set("imact_t_date", "" + df.format(capaId.getImact_t_date())); } } catch (Exception e) { uvg.set("imact_t_date", ""); } try { if (capaId.getImact_a_date() == null) { uvg.set("imact_a_date", ""); } else { uvg.set("imact_a_date", "" + df.format(capaId.getImact_a_date())); } } catch (Exception e) { uvg.set("imact_a_date", ""); } try { if (capaId.getRca_t_date() == null) { uvg.set("rca_t_date", ""); } else { uvg.set("rca_t_date", "" + df.format(capaId.getRca_t_date())); } } catch (Exception e) { uvg.set("rca_t_date", ""); } try { if (capaId.getRca_a_date() == null) { uvg.set("rca_a_date", ""); } else { uvg.set("rca_a_date", "" + df.format(capaId.getRca_a_date())); } } catch (Exception e) { uvg.set("rca_a_date", ""); } try { uvg.set("nc", StandardCode.getInstance().noNull(capaId.getNc())); } catch (Exception e) { uvg.set("nc", ""); } try { uvg.set("ncyesno", capaId.getNcyesno()); } catch (Exception e) { uvg.set("ncyesno", ""); } try { uvg.set("actionplan", StandardCode.getInstance().noNull(capaId.getActionplan())); } catch (Exception e) { uvg.set("actionplan", ""); } try { uvg.set("actionplan_approve", StandardCode.getInstance().noNull(capaId.getActionplan_approve())); } catch (Exception e) { uvg.set("actionplan_approve", ""); } try { uvg.set("actionimp", StandardCode.getInstance().noNull(capaId.getActionimp())); } catch (Exception e) { uvg.set("actionimp", ""); } try { if (capaId.getActionimp_t_date() == null) { uvg.set("actionimp_t_date", ""); } else { uvg.set("actionimp_t_date", "" + df.format(capaId.getActionimp_t_date())); } } catch (Exception e) { uvg.set("actionimp_t_date", ""); } try { if (capaId.getActionimp_a_date() == null) { uvg.set("actionimp_a_date", ""); } else { uvg.set("actionimp_a_date", "" + df.format(capaId.getActionimp_a_date())); } } catch (Exception e) { uvg.set("actionimp_a_date", ""); } try { uvg.set("effectiveplan", StandardCode.getInstance().noNull(capaId.getEffectiveplan())); } catch (Exception e) { uvg.set("effectiveplan", ""); } try { uvg.set("verify", StandardCode.getInstance().noNull(capaId.getVerify())); } catch (Exception e) { uvg.set("verify", ""); } try { if (capaId.getVerify_t_date() == null) { uvg.set("verify_t_date", ""); } else { uvg.set("verify_t_date", "" + df.format(capaId.getVerify_t_date())); } } catch (Exception e) { uvg.set("verify_t_date", ""); } try { if (capaId.getVerify_a_date() == null) { uvg.set("verify_a_date", ""); } else { uvg.set("verify_a_date", "" + df.format(capaId.getVerify_a_date())); } } catch (Exception e) { uvg.set("verify_a_date", ""); } try { uvg.set("verify_approve", StandardCode.getInstance().noNull(capaId.getVerify_approve())); } catch (Exception e) { uvg.set("verify_approve", ""); } try { uvg.set("comments", StandardCode.getInstance().noNull(capaId.getComments())); } catch (Exception e) { uvg.set("comments", ""); } try { if (capaId.getAdmin_rec_date() == null) { uvg.set("admin_rec_date", ""); } else { uvg.set("admin_rec_date", "" + df.format(capaId.getAdmin_rec_date())); } } catch (Exception e) { uvg.set("admin_rec_date", ""); } try { if (capaId.getAdmin_own_date() == null) { uvg.set("admin_own_date", ""); } else { uvg.set("admin_own_date", "" + df.format(capaId.getAdmin_own_date())); } } catch (Exception e) { uvg.set("admin_own_date", ""); } try { uvg.set("admin_rec_person", StandardCode.getInstance().noNull(capaId.getAdmin_rec_person())); } catch (Exception e) { uvg.set("admin_rec_person", ""); } try { uvg.set("admin_own_person", StandardCode.getInstance().noNull(capaId.getAdmin_own_person())); } catch (Exception e) { uvg.set("admin_own_person", ""); } try { uvg.set("admin_disposition", StandardCode.getInstance().noNull(capaId.getAdmin_disposition())); } catch (Exception e) { uvg.set("admin_disposition", ""); } try { uvg.set("owner", StandardCode.getInstance().noNull(capaId.getOwner())); } catch (Exception e) { uvg.set("owner", ""); } try { uvg.set("owner2", StandardCode.getInstance().noNull(capaId.getOwner2())); } catch (Exception e) { uvg.set("owner2", ""); } try { uvg.set("owner3", StandardCode.getInstance().noNull(capaId.getOwner3())); } catch (Exception e) { uvg.set("owner3", ""); } try { uvg.set("capaid_description", StandardCode.getInstance().noNull(capaId.getCapaid_description())); } catch (Exception e) { uvg.set("capaid_description", ""); } try { if (capaId.getAdmin_disp_date() == null) { uvg.set("admin_disp_date", ""); } else { uvg.set("admin_disp_date", "" + df.format(capaId.getAdmin_disp_date())); } } catch (Exception e) { uvg.set("admin_disp_date", ""); } try { uvg.set("ncminormajor", StandardCode.getInstance().noNull(capaId.getNcminormajor())); } catch (Exception e) { uvg.set("ncminormajor", ""); } try { uvg.set("actionplan_approve2", StandardCode.getInstance().noNull(capaId.getActionplan_approve2())); } catch (Exception e) { uvg.set("actionplan_approve2", ""); } try { uvg.set("actionimp_status", StandardCode.getInstance().noNull(capaId.getActionimp_status())); } catch (Exception e) { uvg.set("actionimp_status", ""); } try { uvg.set("verify_approve2", StandardCode.getInstance().noNull(capaId.getVerify_approve2())); } catch (Exception e) { uvg.set("verify_approve2", ""); } try { uvg.set("admin_disp_person", StandardCode.getInstance().noNull(capaId.getAdmin_disp_person())); } catch (Exception e) { uvg.set("admin_disp_person", ""); } request.setAttribute("formValue", uvg); request.setAttribute("number", number); return (mapping.findForward("Success")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attributes getAttributes();", "Map<String, String> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public abstract Map<String, Object> getAttributes();", "public Map<String, String> getAttributes();", "public ...
[ "0.77672106", "0.77060777", "0.764907", "0.764907", "0.764907", "0.73944855", "0.73662126", "0.7337933", "0.7337933", "0.7274053", "0.7272954", "0.71663094", "0.7141731", "0.709252", "0.70213944", "0.69656736", "0.68758875", "0.68027544", "0.67953783", "0.67307085", "0.671758...
0.0
-1
This is the constructor, not the class declaration
public GameScreen() { int midPointY = (int) (Const.GAME_HEIGHT / 2); world = new GameWorld(midPointY); renderer = new GameRenderer(world); Gdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown())); // Gdx.input.setInputProcessor(new // InputHandler(world.getVentilatorTwo())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public PSRelation()\n {\n }", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "public Pitonyak_09_02() {\r\n }", "public _355() {\n\n }", "private TMCourse() {\n\t}", "publ...
[ "0.8496339", "0.83125263", "0.7630571", "0.7583408", "0.75236744", "0.7463118", "0.7405229", "0.7374676", "0.73718274", "0.7355323", "0.7342831", "0.7326976", "0.7254203", "0.72439474", "0.7229902", "0.7202963", "0.7202822", "0.7191192", "0.7184763", "0.7173076", "0.7162084",...
0.0
-1
TODO Autogenerated method stub
@Override public int hashCode() { return year*10000+month*100+day; }
{ "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
/ 8 53 98 183 37 122 14 124 65 67 9 120 38 180 130 10 50 15 190 90 150 9 80 162 20 70 190 150 185 10 110 50
public static void main(String[] args) { int n = in.nextInt(); int q = in.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = in.nextInt(); } DiskSchedulerInfo dsi = new DiskSchedulerInfo(arr, q, 200); ISchedule[] scs = new ISchedule[]{ new FCFS(dsi), new SSTF(dsi), new SCAN(dsi), new C_SCAN(dsi), new LOOK(dsi), new C_LOOK(dsi), new Optimized(dsi) }; for (ISchedule sc : scs) { System.out.println("---------------------------"); System.out.println(sc.getClass().getName()); System.out.println("---------------------------"); sc.simulate(); Movement.printMovements(dsi.headStart, sc.getMovements()); System.out.print("Order of processing: "); for (int v : sc.getOrderOfProcessing()) { System.out.print(v + " "); } System.out.println(); System.out.println("Total Movement is: " + Movement.getTotalMovements(sc.getMovements())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tRandom rnd = new Random();\n\t\tint[]data = new int[1];\n\t\tint i=0;\n\t\tfor(i=0;i<1;i++){\n\t\t\tdata[i]=rnd.nextInt(1000)+1;\n\t\t\tSystem.out.println(data[i]);\n\t\t\t\tint v1 = data[i]/500;\n\t\t\t\tdata[i] = data[i]%500;\n\t\t\t\tif(v1!=0){\n\t\t\t\t\tSystem.out...
[ "0.5894013", "0.5810187", "0.5744376", "0.55712074", "0.5568676", "0.55548525", "0.5501423", "0.5459378", "0.5458312", "0.5453852", "0.5446104", "0.53958315", "0.5388962", "0.5386986", "0.5378102", "0.5377923", "0.5373902", "0.53649145", "0.53621894", "0.5327063", "0.5320413"...
0.0
-1
Constructs a new application properties container and initializes it with the provided settings.
public ApplicationConfigurationProperties( Collection<ApplicationConfigurationSetting> settings) { // TODO init with localhost as default? String urlPrefixValue = ""; String urlPrefixSecuredValue = ""; properties = new HashMap<String, String>(); if (settings != null) { for (ApplicationConfigurationSetting setting : settings) { properties.put(setting.getSettingKey(), setting.getSettingValue()); } // initialize the configured URLs required for situations where no request is available String hostName = getProperty(ApplicationProperty.WEB_SERVER_HOST_NAME); if (StringUtils.isBlank(hostName)) { LOG.warn("The application property " + ApplicationProperty.WEB_SERVER_HOST_NAME.getKeyString() + " is not defined. The URL rendering will not work correctly."); } else { String context = getProperty(ApplicationProperty.WEB_SERVER_CONTEXT_NAME, "") .trim(); if (StringUtils.isNotBlank(context) && !context.startsWith("/")) { context = "/" + context; } int port = getProperty(ApplicationProperty.WEB_HTTP_PORT, ApplicationProperty.DEFAULT_WEB_HTTP_PORT); urlPrefixValue = buildUrlPrefix(hostName, port, context, false); if (getProperty(ApplicationProperty.WEB_HTTPS_SUPPORTED, ApplicationProperty.DEFAULT_WEB_HTTPS_SUPPORTED)) { port = getProperty(ApplicationProperty.WEB_HTTPS_PORT, ApplicationProperty.DEFAULT_WEB_HTTPS_PORT); urlPrefixSecuredValue = buildUrlPrefix(hostName, port, context, true); } else { urlPrefixSecuredValue = urlPrefixValue; } } } urlPrefix = urlPrefixValue; urlPrefixSecured = urlPrefixSecuredValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n ...
[ "0.6533052", "0.6270586", "0.57552356", "0.5735315", "0.5700948", "0.5672036", "0.5653792", "0.56536037", "0.5619731", "0.55708736", "0.5480212", "0.54782873", "0.5461958", "0.54328126", "0.5429139", "0.5408928", "0.53727895", "0.5338425", "0.53333867", "0.529673", "0.5288451...
0.66952884
0
Builds the URL prefix for an absolute URL.
private String buildUrlPrefix(String hostName, int port, String context, boolean https) { StringBuilder urlBuilder = new StringBuilder(https ? "https://" : "http://"); int standardPort = https ? 443 : 80; urlBuilder.append(hostName); if (port != standardPort) { urlBuilder.append(":"); urlBuilder.append(port); } urlBuilder.append(context); return urlBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FullUriTemplateString baseUri();", "public URL makeBase(URL startingURL);", "private String getUrlPrefix(HttpServletRequest req) {\n StringBuffer url = new StringBuffer();\n String scheme = req.getScheme();\n int port = req.getServerPort();\n url.append(scheme);\t\t// http, http...
[ "0.6037446", "0.5953948", "0.5738791", "0.5715133", "0.5689611", "0.56338394", "0.56309396", "0.56203765", "0.5582681", "0.5469872", "0.54583204", "0.5397205", "0.53564847", "0.53549576", "0.5352269", "0.5296129", "0.5184275", "0.5178189", "0.51638865", "0.51583046", "0.51460...
0.6043973
0
Get the decrypted value of an encrypted property.
public String getPropertyDecrypted(ApplicationConfigurationPropertyConstant key) throws EncryptionException { String value = properties.get(key.getKeyString()); if (StringUtils.isNotEmpty(value)) { return EncryptionUtils.decrypt(value, ApplicationProperty.INSTALLATION_UNIQUE_ID.getValue()); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEncryptedValue() {\n\t\treturn encryptedValue;\n\t}", "public EncryptionProperties encryption() {\n return this.encryption;\n }", "public EncryptionProperties encryption() {\n return this.encryption;\n }", "private String decryptAndEncryptProperty(String property) throws ...
[ "0.66896856", "0.62047404", "0.62047404", "0.60113543", "0.5927744", "0.5912185", "0.5827416", "0.5777627", "0.57718253", "0.5709545", "0.5704661", "0.5667821", "0.5667821", "0.56061137", "0.5562229", "0.5537813", "0.55238926", "0.5510497", "0.54594463", "0.54409957", "0.5409...
0.6748207
0
Returns all the properties for constant subset.
private Properties getSpecificProperties(ApplicationConfigurationPropertyConstant[] constants) { Properties props = new Properties(); for (ApplicationConfigurationPropertyConstant constant : constants) { String value = getProperty(constant); if (value != null) { props.setProperty(constant.getKeyString(), value); } } return props; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<ModuleProperty> getProperties();", "CommonProperties getProperties();", "Property[] getProperties();", "public String getConstProperty() {\n return this.constProperty;\n }", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n ...
[ "0.60343444", "0.600641", "0.5951862", "0.58621067", "0.57352203", "0.5678776", "0.56591004", "0.56421304", "0.56362534", "0.55833143", "0.55748093", "0.55431986", "0.554232", "0.5541729", "0.5532643", "0.5507835", "0.545824", "0.54257625", "0.54206467", "0.539816", "0.539428...
0.58913034
3
Returns the configured URL prefix for rendering absolute URLs with HTTP protocol.
public String getUrlPrefix() { return urlPrefix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUrlPrefix() {\r\n\t\treturn urlPrefix;\r\n\t}", "private String getUrlPrefix(HttpServletRequest req) {\n StringBuffer url = new StringBuffer();\n String scheme = req.getScheme();\n int port = req.getServerPort();\n url.append(scheme);\t\t// http, https\n u...
[ "0.73179424", "0.7045767", "0.61007124", "0.60982907", "0.6024325", "0.600703", "0.5962315", "0.59430784", "0.5937254", "0.59130377", "0.5881217", "0.585574", "0.5847786", "0.58290684", "0.58161336", "0.5797299", "0.5793765", "0.578044", "0.57756966", "0.57612133", "0.5760692...
0.7224346
1
Returns the virus scanning properties. The returned value is a copy of the properties, thus modifications will not be persisted.
public Properties getVirusScanningProperties() { // create a subset with all the VirusChecking properties return getSpecificProperties(ApplicationPropertyVirusScanning.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProperties();", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> getDetectionProperties() {\n return detectionProperties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Ma...
[ "0.60256946", "0.59770906", "0.59308785", "0.5925887", "0.5925887", "0.5914068", "0.5896115", "0.58655375", "0.5855976", "0.58487767", "0.5835674", "0.58201617", "0.58201617", "0.581025", "0.58029425", "0.5777645", "0.57764506", "0.5776265", "0.5761715", "0.5759901", "0.57550...
0.86557966
0
Returns the value of the 'Id Num' attribute. If the meaning of the 'Id Num' attribute isn't clear, there really should be more of a description here...
int getIdNum();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumID() {\n return numID;\n }", "String getIdNumber();", "public String getIdNumber() {\n return idNumber;\n }", "public String getId_number() {\n return id_number;\n }", "public String getIdNo() {\n return idNo;\n }", "public String getIdNo() {\n ...
[ "0.74138564", "0.73286533", "0.7285287", "0.7271865", "0.7133293", "0.7133293", "0.70987976", "0.69681036", "0.6922436", "0.68903095", "0.6869866", "0.6857848", "0.68524075", "0.67842716", "0.67688024", "0.67560506", "0.6742132", "0.6740602", "0.66853297", "0.66786623", "0.66...
0.6797955
13
Returns the value of the 'Points' attribute. If the meaning of the 'Points' attribute isn't clear, there really should be more of a description here...
int getPoints();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPoints() {\r\n return points;\r\n }", "public double getPoints()\r\n {\r\n return points;\r\n }", "public String getPoints();", "public java.math.BigDecimal getPoints() {\n return this.points;\n }", "public int getPoints() {\n\t\treturn points;\n\t}", "p...
[ "0.7998161", "0.7881276", "0.77689683", "0.7659951", "0.7620913", "0.7609704", "0.7572933", "0.7559844", "0.7559844", "0.75488526", "0.75265235", "0.7524974", "0.7522339", "0.7522339", "0.7522339", "0.7522339", "0.749544", "0.7494406", "0.7438796", "0.742668", "0.73183006", ...
0.7000165
24
Initializing the page method
public WorkflowsPage () { PageFactory.initElements(driver, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "protected void init() {\n PageFactory.initElements(webDriver,...
[ "0.79145867", "0.7711846", "0.770841", "0.7706728", "0.7688934", "0.7656744", "0.7630407", "0.7614012", "0.75799876", "0.7550027", "0.75032413", "0.74659497", "0.74656373", "0.74585587", "0.74410474", "0.7412909", "0.7412909", "0.7412909", "0.7412909", "0.74021477", "0.738475...
0.6962075
48
TODO Autogenerated method stub
@Override public int setIndividualObjectProPerty(String individualName_1, String individualName_2, String relation) { synchronized (token) { return super.setOWLIndividualObjectProPerty(individualName_1, individualName_2, relation); } }
{ "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
processRequest(request, response); / CategoriaDAO categoria = new CategoriaDAOImplementar(); Categoria guardar_cat = new Categoria(); guardar_cat.setNom_categoria("Bebidas Naturales"); guardar_cat.setId_categoria(5); //Modificar la categoria registrada anteriormente. guardar_cat.setEstado_categoria(1); //Estado 1. categoria.guardarCat(guardar_cat);
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String status; Categoria categoria = new Categoria(); //Se efectua el casting o conversión de datos porque lo ingresado en el formulario es texto. int id_categoria = Integer.parseInt(request.getParameter("id_categoria")); String nom_categoria = request.getParameter("txtNomCategoria"); int estado_categoria = Integer.parseInt(request.getParameter("txtEstadoCategoria")); categoria.setId_categoria(id_categoria); categoria.setNom_categoria(nom_categoria); categoria.setEstado_categoria(estado_categoria); CategoriaDAO guardarCategoria = new CategoriaDAOImplementar(); //guardarCategoria.guardarCat(categoria); //this.listaCategorias(request, response); boolean resultado = guardarCategoria.guardarCat(categoria); if(resultado){ HttpSession session = request.getSession(true); session.setAttribute("lista", guardarCategoria.Listar()); status = "ok"; }else{ status = "err"; } response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { out.print(status); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 19: */ {\r\n/* 20:43 */ this.categoriaArticuloServicioDao.guardar(categoriaArticuloServicio);\r\n/* 21: */ }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws Se...
[ "0.7572366", "0.69568646", "0.6783003", "0.6731122", "0.65078706", "0.649398", "0.64861774", "0.646153", "0.6421336", "0.629241", "0.62569016", "0.6197264", "0.61910975", "0.61850554", "0.6175598", "0.61592096", "0.6099939", "0.60985065", "0.60776025", "0.6048661", "0.6038618...
0.75753903
0
/Metodo para encontrar todos los
public List<ProveedorEntity> getProveedores(){ List<ProveedorEntity>proveedores = proveedorPersistence.findAll(); return proveedores; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@In String search();", "private void searchFunction() {\n\t\t\r\n\t}", "public void search() {\r\n \t\r\n }", "void search();", "void search();", "public List search(Veranstaltung veranstatung) throws RuntimeException;", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@Override\n\tpublic voi...
[ "0.68052936", "0.6545252", "0.64001936", "0.63984", "0.63984", "0.6351062", "0.6241086", "0.6238257", "0.6237144", "0.62224674", "0.621374", "0.6170589", "0.61476916", "0.59867376", "0.5979617", "0.5951858", "0.5945857", "0.5928872", "0.59165514", "0.5915148", "0.5884894", ...
0.0
-1
/Obtener un objeto de la tabla
public ProveedorEntity getProveedor(Long id_proveedor){ ProveedorEntity proveedor = proveedorPersistence.find(id_proveedor); if(proveedor == null){ throw new IllegalArgumentException("El proveedor solicitado no existe"); } return proveedor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tablero consultarTablero();", "Table getTable();", "FromTable createFromTable();", "TableInstance createTableInstance();", "public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }", "public Table getTable() { return this.table; }", "private EstabelecimentoTable() {\n\t...
[ "0.70019305", "0.69397646", "0.66060084", "0.6486213", "0.64716035", "0.6464613", "0.64568716", "0.6427651", "0.63947415", "0.6345551", "0.630565", "0.63029116", "0.62762576", "0.6261669", "0.625124", "0.6236726", "0.6231787", "0.6203631", "0.61999214", "0.6186847", "0.618014...
0.0
-1
/ ACTUALIZACION OBJETO PROVEEDOR
public ProveedorEntity updateProveedor(Long id_pago, ProveedorEntity proveedor){ ProveedorEntity proveedorEntity = proveedorPersistence.update(proveedor); return proveedorEntity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public contrustor(){\r\n\t}", "public void realiserAcahatProduit() {\n\t\t\n\t}", ...
[ "0.6445446", "0.6355322", "0.6348491", "0.63098836", "0.6286557", "0.62841207", "0.6221883", "0.6163905", "0.6147724", "0.6119024", "0.60835606", "0.60788137", "0.6072408", "0.59953105", "0.5979333", "0.5945219", "0.5944009", "0.5921859", "0.5912669", "0.58926255", "0.5891695...
0.0
-1
/ Eliminar un objeto proveedor
public void deleteProveedor (Long id_proveedor){ proveedorPersistence.delete(id_proveedor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminar(Object o) {\n\t\t\n\t}", "void remover(Object o);", "public void removeByObject()\r\n\t{\n\t}", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public void eliminarPersonaje(Personaje p) {\n this.listaPersonajes....
[ "0.7356326", "0.71052337", "0.6901089", "0.6644991", "0.6611256", "0.6550354", "0.6538382", "0.6519294", "0.6505858", "0.6505806", "0.64377075", "0.6435617", "0.6421598", "0.64189637", "0.63923013", "0.63921165", "0.63497233", "0.6343512", "0.63167006", "0.63101166", "0.62867...
0.0
-1
Start of main method
public static void main (String [] args) { //Start of main method Scanner myScanner; //Declaring my scanner myScanner = new Scanner (System.in); //Constructing the scanner System.out.print("Enter the number of seconds: "); //Prints the space for the value of the time of the //trip in seconds double nSeconds = myScanner.nextDouble(); System.out.print("Enter the number of counts: "); //Prints the space for the value of the number of //counts of the trip int nCounts = myScanner.nextInt(); double secs=480; //Value of the time in secs double counts=1561; //Value of the counts double wheelDiameter=27.0, //Diameter of the wheel PI=3.14159, //Declares the variable π which is needed //to calculate the distance traveled feetPerMile=5280, //The conversion units to change the //rotation measurements from feet to miles inchesPerFoot=12, //The conversion units to change the //rotation measurements from inches to feet secondsPerMinute=60; //The conversion units to change the time //from seconds to minutes double distanceTrip=counts*wheelDiameter*PI; //Declares the variable that represents the distance double minutes=(secs/secondsPerMinute); //Declares the variable that represents the time in mins double hours=minutes/60; //Declares the variable that represents the time in hours distanceTrip/=inchesPerFoot*feetPerMile; //Converts the value of the distance from inches to feet and then //from feet to miles System.out.println("The distance was " + ((double)((int)(distanceTrip*100))/100) + " miles and took " +minutes+ " minutes"); //Prints out the distance in miles and the time in minutes //with the two decimal places System.out.println("The average mph was " + ((double)((int)(distanceTrip/hours*100))/100)); //Prints out the average miles per hour with only //two decimal places }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "public Main() {\n\t\tsuper();\n\t}", "private Main() {\n\n super();\n }", "public static void main(){\n\t}", "public Main() {\n \n ...
[ "0.8101513", "0.8027417", "0.7972776", "0.79071075", "0.784746", "0.7839537", "0.7794321", "0.7783565", "0.7693633", "0.7658289", "0.7611465", "0.7574952", "0.75243896", "0.75243896", "0.7467664", "0.74669516", "0.74300045", "0.7412641", "0.7412641", "0.7380362", "0.7372672",...
0.0
-1
Permission function starts from here
private void RequestMultiplePermission() { /** * Creating String Array with Permissions. */ ActivityCompat.requestPermissions(FamilyMemberActivity.this, new String[] { CAMERA, WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE }, PERMISSION_REQUEST_CODE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void getPermission();", "@Override\n public void checkPermission(Permission perm) {\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "void askForPermissions();", "void permissionGranted(int requestCode);", "private...
[ "0.80680794", "0.7928635", "0.77439773", "0.7689333", "0.7578518", "0.75305897", "0.749642", "0.7467543", "0.74531186", "0.74082625", "0.7399815", "0.7363955", "0.728091", "0.72677654", "0.71864325", "0.7108778", "0.70717734", "0.6996582", "0.6996582", "0.6946087", "0.691678"...
0.0
-1
Checking permission is enabled or not
public boolean CheckingPermissionIsEnabledOrNot() { int CameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA); int WriteStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE); int ReadStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE); return CameraPermissionResult == PackageManager.PERMISSION_GRANTED && WriteStoragePermissionResult == PackageManager.PERMISSION_GRANTED && ReadStoragePermissionResult == PackageManager.PERMISSION_GRANTED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isHasPermissions();", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_informatio...
[ "0.79228884", "0.7818504", "0.777076", "0.7680193", "0.7677216", "0.7660879", "0.7560006", "0.75595945", "0.74988437", "0.7468714", "0.74060744", "0.73480904", "0.72318697", "0.72205585", "0.7188427", "0.71649307", "0.71549696", "0.7140592", "0.71000373", "0.7088373", "0.7087...
0.7288013
12
ib_delete.setVisibility(View.GONE); layout_loading.setVisibility(View.GONE); Toast.makeText(getApplicationContext(), "Failed to Upload", Toast.LENGTH_LONG).show();
@Override public void run() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this, \"Error\", Toast.LENGTH_SHORT).show();\r\n hideProgress();\r\n }", "p...
[ "0.7263892", "0.70255786", "0.69648653", "0.6918108", "0.69139844", "0.68907183", "0.67849517", "0.67284185", "0.67284185", "0.67284185", "0.67284185", "0.67284185", "0.6712109", "0.6695342", "0.66833395", "0.668025", "0.6636928", "0.662521", "0.66181517", "0.6608308", "0.658...
0.0
-1
layout_loading.setVisibility(View.GONE); Toast.makeText(getApplicationContext(), "Upload Cancelled", Toast.LENGTH_LONG).show();
@Override public void run() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this, \"Error\", Toast.LENGTH_SHORT).show();\r\n hideProgress();\r\n }", "p...
[ "0.7503468", "0.73959273", "0.7243807", "0.7154695", "0.71237093", "0.7097877", "0.7096616", "0.7075899", "0.7070861", "0.7024818", "0.7021526", "0.70096433", "0.6952594", "0.69437593", "0.68782604", "0.68648744", "0.685895", "0.6835517", "0.68306357", "0.68273914", "0.682113...
0.0
-1
C R E A T
@Override public boolean create(Pontuacao pontuacao) { Connection conexao = mysql.getConnection(); try { PreparedStatement stm = conexao.prepareStatement(createSQL); stm.setInt(1, pontuacao.getIdcodigo()); stm.setString(2, pontuacao.getData()); stm.setInt(3, pontuacao.getP_rodada()); stm.setInt(4, pontuacao.getS_rodada()); stm.setInt(5, pontuacao.getT_rodada()); stm.setInt(6, pontuacao.getTotal()); int registros = stm.executeUpdate(); return registros > 0 ? true : false; } catch (final SQLException ex) { System.out.println("Falha de conexão com a base de dados!"); ex.printStackTrace(); } catch (final Exception ex) { ex.printStackTrace(); } finally { try { conexao.close(); } catch (final Exception ex) { ex.printStackTrace(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "T mo26439a();",...
[ "0.6374067", "0.6059683", "0.5879428", "0.5863829", "0.58267254", "0.5747797", "0.5738669", "0.5660013", "0.56502336", "0.5639168", "0.557893", "0.55314666", "0.5529348", "0.55080324", "0.5489212", "0.5472078", "0.5472078", "0.5464106", "0.54635495", "0.5455908", "0.5454338",...
0.0
-1
D E L E T E
@Override public boolean delete(int opc) { Connection conexao = mysql.getConnection(); try { PreparedStatement stm = conexao.prepareStatement(deleteSQL); stm.setInt(1, opc); int registros = stm.executeUpdate(); return registros > 0 ? true : false; } catch (final SQLException ex) { System.out.println("Falha de conexão com a base de dados!"); ex.printStackTrace(); } catch (final Exception ex) { ex.printStackTrace(); } finally { try { conexao.close(); } catch (final Exception ex) { ex.printStackTrace(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "public void mo21795T() {...
[ "0.56175655", "0.54284286", "0.5348516", "0.5244629", "0.5236484", "0.5167207", "0.51668787", "0.5141312", "0.5121238", "0.509219", "0.5083362", "0.50781924", "0.50714725", "0.5052994", "0.5048336", "0.5044844", "0.5036105", "0.50350606", "0.501184", "0.5006396", "0.500487", ...
0.0
-1
U P D A T E
@Override public boolean update(Pontuacao pontuacao) { Connection conexao = mysql.getConnection(); try { PreparedStatement stm = conexao.prepareStatement(updateSQL); stm.setString(1, pontuacao.getData()); stm.setInt(2, pontuacao.getP_rodada()); stm.setInt(3, pontuacao.getS_rodada()); stm.setInt(4, pontuacao.getT_rodada()); stm.setInt(5, pontuacao.getTotal()); stm.setInt(6, pontuacao.getIdcodigo()); int registros = stm.executeUpdate(); return registros > 0 ? true : false; } catch (final SQLException ex) { System.out.println("Falha de conexão com a base de dados!"); ex.printStackTrace(); } catch (final Exception ex) { ex.printStackTrace(); } finally { try { conexao.close(); } catch (final Exception ex) { ex.printStackTrace(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.punto...
[ "0.541268", "0.5330705", "0.52557594", "0.52362335", "0.5142644", "0.5140958", "0.5114497", "0.5099736", "0.5083453", "0.5082616", "0.5080555", "0.50640744", "0.5055676", "0.5026163", "0.5019378", "0.49844092", "0.4980982", "0.49753615", "0.49597204", "0.49539682", "0.4950955...
0.0
-1
R E A D
@Override public void read() { Connection conexao = mysql.getConnection(); try { PreparedStatement stm = conexao.prepareStatement(readSQL); ResultSet rs = stm.executeQuery(); while (rs.next()) { int idcodigo = rs.getInt("idcodigo"); String data = rs.getString("data"); int p_rodada = rs.getInt("p_rodada"); int s_rodada = rs.getInt("s_rodada"); int t_rodada = rs.getInt("t_rodada"); int total = rs.getInt("total"); System.out.println("\nCódigo: " + idcodigo + "\nData: " + data + "\nPrimeira Rodada: " + p_rodada+ "\nSegunda Rodada: " + s_rodada + "\nTerceira Rodada: " + t_rodada + "\nTotal: " + total); } rs.close(); conexao.close(); } catch (final SQLException ex) { System.out.println("Falha de conexão com a base de dados!"); ex.printStackTrace(); } catch (final Exception ex) { ex.printStackTrace(); } finally { try { conexao.close(); } catch (final Exception ex) { ex.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getD();", "public int getD() {\n\t\treturn d;\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract C17954dh<E> mo45842a();", "public int getD() {\n return d_;\n }", "public void dorm22_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER N1,INTEGER N2,double[] ...
[ "0.5961559", "0.57615423", "0.5724162", "0.57082826", "0.56902707", "0.5685891", "0.56161684", "0.55609053", "0.55234206", "0.54970163", "0.5489888", "0.54834634", "0.54704595", "0.5462701", "0.54415494", "0.54403245", "0.54075307", "0.53908515", "0.5344132", "0.53377557", "0...
0.0
-1
Gets the row key for the current row
public Object getRowKey() { if (isRowAvailable()) { Object rowKey = _getRowKey(); return rowKey; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }", "public Comparable getRowKey(int row) { return this.underlying.getRowKey(row); }", "public Long getRowKey() {\n return (Long) getAtt...
[ "0.8485919", "0.80520195", "0.79879993", "0.76319134", "0.71845907", "0.71022415", "0.70867175", "0.7045725", "0.6956362", "0.6948644", "0.6848099", "0.6848099", "0.6848099", "0.6848099", "0.6848099", "0.6835002", "0.678612", "0.6783794", "0.6769314", "0.67686826", "0.6768682...
0.8488423
0
Moves the model to the row identified by the key.
public void setRowKey(Object key) { if (key == null) { setRowIndex(-1); return; } if (getRowKey() != null && getRowKey().equals(key)) return; for (int i = 0; i < getRowCount(); i++) { setRowIndex(i); Object prop = getRowKey(); if (key.equals(prop)) { return; } } // if we didn't find an element with a matching key, // then don't make any rows current setRowIndex(-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void move(String key) {\n\t\tif (settings.contains(key)) {\n\t\t\tString value = settings.getString(key, SAMPLE_TONE);\n\t\t\tmRecordsDatabase.insertRecord(value, value);\n\t\t\tsettings.edit().remove(key).apply();\n\t\t}\n\t}", "public void moveToCurrentRow() throws SQLException\n {\n m_rs...
[ "0.6184074", "0.57766145", "0.5745625", "0.5532631", "0.53141004", "0.5260492", "0.52273715", "0.5197272", "0.51943487", "0.5177039", "0.5169419", "0.5156119", "0.51516765", "0.5150992", "0.5134435", "0.51313907", "0.5119466", "0.51106685", "0.5106539", "0.5099842", "0.507347...
0.6625263
0
Gets the row key property name for this model
public String getRowKeyProperty() { return _rowKeyProperty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object _getRowKey()\n {\n Object data = getRowData();\n \n assert (_rowKeyProperty != null);\n return __resolveProperty(data, _rowKeyProperty);\n }", "public void setRowKeyProperty(String rowKeyProperty)\n {\n _rowKeyProperty = rowKeyProperty;\n }", "public String getPropertyName(){\...
[ "0.79300493", "0.75838166", "0.7240161", "0.7161755", "0.7127542", "0.7092526", "0.69569194", "0.6905327", "0.6879735", "0.68566906", "0.68010855", "0.6766524", "0.66856366", "0.6675478", "0.6670854", "0.66544795", "0.6640362", "0.6519252", "0.6496037", "0.6467117", "0.643994...
0.8199944
0
Sets the row key property for this model
public void setRowKeyProperty(String rowKeyProperty) { _rowKeyProperty = rowKeyProperty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowKey(Object key)\n {\n if (key == null)\n {\n setRowIndex(-1);\n return;\n }\n\n if (getRowKey() != null && getRowKey().equals(key))\n return;\n \n for (int i = 0; i < getRowCount(); i++)\n {\n setRowIndex(i);\n Object prop = getRowKey();\n if (k...
[ "0.7661254", "0.75030404", "0.71977085", "0.7155196", "0.6953443", "0.6772926", "0.67410004", "0.6440311", "0.6320919", "0.63084394", "0.6283985", "0.6283985", "0.6283985", "0.6242217", "0.61887753", "0.6129653", "0.6129653", "0.6129653", "0.6129653", "0.6129653", "0.6093675"...
0.8461068
0