query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Constructor con valores por defecto
public Parametros() { semilla = SEMILLA_DEFECTO; numeroPistas = NUMERO_PISTAS_DEFECTO; duracionSlot = DURACION_SLOT_DEFECTO; frecuencia = FRECUENCIA_DEFECTO; duracionMedia = DURACION_MEDIA_DEFECTO; duracionDesviacion = DURACION_DESVIACION_DEFECTO; duracionMinima = DURACION_MINIMA_DEFECTO; demoraMedia = DEMORA_MEDIA_DEFECTO; demoraDesviacion = DEMORA_DESVIACION_DEFECTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValorVariavel() {\r\n }", "public Pasien() {\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Valvula(){}", "public Alojamiento() {\r\n\t}", "public Propuestas() {}", "public AntrianPasien() {\r\n\r\n }", "public Caso_de_uso () {\n }", "protected Asignatura()\r\n\t{}", "publ...
[ "0.7359346", "0.7190805", "0.7132344", "0.70304984", "0.7002759", "0.69547325", "0.6928974", "0.6906747", "0.68966645", "0.68798465", "0.68308204", "0.67957324", "0.6789768", "0.67595", "0.6736077", "0.67322683", "0.6724538", "0.6722362", "0.67208904", "0.670681", "0.6694418"...
0.6425663
68
Intervalo medio de tiempo entre llegadas
public double getEntreLlegadas() { return 60.0 / frecuencia; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int interval() {\n return 30;\n }", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denomin...
[ "0.6810421", "0.6645972", "0.65825486", "0.6471379", "0.63406664", "0.62967664", "0.62340426", "0.6191362", "0.6179394", "0.61748034", "0.5951615", "0.59460884", "0.5920553", "0.59158397", "0.5865446", "0.58368033", "0.5830048", "0.5793081", "0.5748323", "0.5726708", "0.56397...
0.5440417
39
Frecuencia de llegadas de aeronaves
public double getFrecuencia() { return frecuencia; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cub...
[ "0.64335513", "0.6393337", "0.61501336", "0.612534", "0.61240125", "0.61114097", "0.6110236", "0.60423225", "0.6027882", "0.60099655", "0.59381413", "0.5929637", "0.5920289", "0.59066397", "0.5904452", "0.589259", "0.58796483", "0.5879078", "0.58709806", "0.58676916", "0.5866...
0.5644715
35
Constructor that will be automatically called as soon as the object of the class is created
public RemoveProductCart(WebDriver driver) { this.driver=driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "public void init() {\n \n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private SingleObject()\r\n {\r\n }", "public void...
[ "0.80309963", "0.79807293", "0.78478545", "0.73197395", "0.7279825", "0.72712153", "0.72614425", "0.72479063", "0.72102004", "0.7189117", "0.7175273", "0.7163286", "0.71590513", "0.7156519", "0.7155913", "0.710279", "0.7095514", "0.70946497", "0.70946497", "0.7086645", "0.708...
0.0
-1
Click on Remove Btn to select a product
public void RemoveproductCartSaucedemo() { driver.findElement(RemoveProduct).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tt...
[ "0.8415045", "0.6846508", "0.6825443", "0.6820247", "0.68177027", "0.6797787", "0.6797381", "0.67059857", "0.6663737", "0.6637527", "0.66168493", "0.66111875", "0.66040057", "0.65979815", "0.6572211", "0.65445596", "0.6524408", "0.64848024", "0.64754766", "0.64697146", "0.645...
0.70550066
1
Get the allRequiredConnectionIdsPresent value.
public List<String> allRequiredConnectionIdsPresent() { return this.allRequiredConnectionIdsPresent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "public MergingPrerequisites withAllRequiredConnectionIdsPresent(List<String> allRequiredConnectionIdsPresent) {\n this.allRequiredConnectionIdsPresent = allRequiredConnectionIdsPresent;\n ...
[ "0.6892625", "0.6676988", "0.547994", "0.53608966", "0.524248", "0.5208438", "0.5208438", "0.5208438", "0.5208438", "0.5187376", "0.50100356", "0.50100356", "0.49777257", "0.49661803", "0.4943286", "0.4936065", "0.488888", "0.48806337", "0.48779398", "0.4864959", "0.4864959",...
0.85535896
0
Set the allRequiredConnectionIdsPresent value.
public MergingPrerequisites withAllRequiredConnectionIdsPresent(List<String> allRequiredConnectionIdsPresent) { this.allRequiredConnectionIdsPresent = allRequiredConnectionIdsPresent; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> allRequiredConnectionIdsPresent() {\n return this.allRequiredConnectionIdsPresent;\n }", "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "private void setNodeConnectionRequirement() {\n for (NodeRecord node :...
[ "0.655063", "0.54466856", "0.53570276", "0.52218616", "0.49843553", "0.488587", "0.48221266", "0.4784387", "0.4756867", "0.46969387", "0.46844393", "0.46143082", "0.4526068", "0.4526068", "0.4526068", "0.4526068", "0.4483049", "0.44752842", "0.44673258", "0.43882018", "0.4379...
0.74445975
0
Get the oneConnectionIdMustBePresent value.
public List<String> oneConnectionIdMustBePresent() { return this.oneConnectionIdMustBePresent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) {\n this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent;\n return this;\n }", "boolean getCampaignIdNull();", "public boolean isSetCreateId() {\n return this.createId != null...
[ "0.55050504", "0.5467213", "0.52264506", "0.5165798", "0.5156019", "0.51297146", "0.51147664", "0.5111636", "0.51080567", "0.50988317", "0.50950485", "0.50857896", "0.50742483", "0.5061719", "0.5060747", "0.505506", "0.50244427", "0.50236803", "0.50236803", "0.50235933", "0.5...
0.71195245
0
Set the oneConnectionIdMustBePresent value.
public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) { this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "public Builder setValueCharacteristicIdNull(boolean value) {\n \n valueCharacteristicIdNull_ = value;\n onChanged();\n return this;\n }", "public Builder setConnect...
[ "0.58624333", "0.5136447", "0.512689", "0.512689", "0.512689", "0.5087482", "0.50199795", "0.50004905", "0.50004905", "0.50004905", "0.48240337", "0.48050532", "0.47935927", "0.47763216", "0.4749815", "0.4706924", "0.47063237", "0.47013903", "0.4699013", "0.46164197", "0.4607...
0.59972787
0
Cached enemy player ========================================================= Returns object that is responsible for the production queue.
public static AtlantisProductionStrategy getProductionStrategy() { return AtlantisConfig.getProductionStrategy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Enemy getEnemyPlayer() {\n return batMan.getEnemyPlayer();\n }", "public Enemy getEnemy(){\n return enemy;\n }", "public EpicPlayer getEpicPlayer(){ return epicPlayer; }", "protected Player getPlayer() { return player; }", "public Enemy summon() {\n\t\treturn null;...
[ "0.6210905", "0.6033432", "0.59682715", "0.5957493", "0.5954605", "0.59337705", "0.5872342", "0.58644336", "0.58425087", "0.5826521", "0.58089525", "0.57942873", "0.5788308", "0.57846236", "0.57832706", "0.5777271", "0.57692677", "0.57692677", "0.57444876", "0.57444876", "0.5...
0.0
-1
Returns true if we have all techs needed for given unit (but we may NOT have some of the buildings!).
public static boolean hasTechToProduce(UnitType unitType) { // Needs to have tech TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID()); if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID...
[ "0.7459601", "0.7384629", "0.6813257", "0.64556473", "0.6348037", "0.631412", "0.62958854", "0.62369466", "0.6218536", "0.61616313", "0.6149052", "0.6128578", "0.6031334", "0.6029038", "0.6015781", "0.6009328", "0.60007477", "0.5993997", "0.599141", "0.5989987", "0.5958898", ...
0.7010665
2
Returns true if we have all buildings needed for given unit.
public static boolean hasBuildingsToProduce(UnitType unitType) { // Need to have every prerequisite building for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) { UnitType requiredUnitType = UnitType.getByID(unitTypeID); // if (requiredUnitType.isLarva()) { // continue; // } // System.out.println("=req: " + requiredUnitType); if (!requiredUnitType.isBuilding()) { // System.out.println(" continue"); continue; } int requiredAmount = unitType.getRequiredUnits().get(unitTypeID); int weHaveAmount = requiredUnitType.isLarva() ? SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count(); // System.out.println(requiredUnitType + " x" + requiredAmount); // System.out.println(" and we have: " + weHaveAmount); if (weHaveAmount < requiredAmount) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsTo...
[ "0.69554347", "0.686156", "0.6779698", "0.65610933", "0.65174574", "0.63659847", "0.624116", "0.624116", "0.6214262", "0.6175303", "0.6032179", "0.60076", "0.5985433", "0.5985433", "0.59054095", "0.58888125", "0.5873359", "0.5873359", "0.58515775", "0.5826989", "0.5807363", ...
0.779495
0
Returns true if it's possible to produce unit (or building) of given type.
public static boolean hasTechAndBuildingsToProduce(UnitType unitType) { return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType...
[ "0.7086388", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "...
0.70058346
1
========================================================= Changes game speed. 0 fastest 1 very quick 20 around default
public static void changeSpeed(int speed) { AtlantisConfig.GAME_SPEED = speed; getBwapi().setGameSpeed(AtlantisConfig.GAME_SPEED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 1...
[ "0.7613897", "0.7590296", "0.74744016", "0.73641926", "0.72694504", "0.72258925", "0.72184706", "0.7199545", "0.71733755", "0.7115425", "0.70949167", "0.7083425", "0.7044232", "0.70156866", "0.7006622", "0.69794863", "0.6948179", "0.6943582", "0.69067365", "0.6906466", "0.689...
0.70030844
15
Returns approximate number of ingame seconds elapsed.
public static int getTimeSeconds() { return Atlantis.getBwapi().getFrameCount() / 30; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "long getElapsedTime();", "public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }", "long...
[ "0.72465885", "0.7216343", "0.7200033", "0.71831876", "0.7105128", "0.7092058", "0.70663285", "0.7059589", "0.7033453", "0.7005631", "0.69903475", "0.6986917", "0.6975632", "0.6968416", "0.6928406", "0.6927054", "0.688925", "0.6852936", "0.6710486", "0.670662", "0.6677942", ...
0.6662895
23
Returns number of frames elapsed.
public static int getTimeFrames() { return Atlantis.getBwapi().getFrameCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getFrameDuration();", "int getFramesCount();", "int getNumberFrames();", "public int getTotalFrames() {\n int frame = 0;\n for (MOFPartPolyAnimEntry entry : getEntryList().getEntries())\n frame += entry.getDuration();\n return frame;\n }", "public double get...
[ "0.7519336", "0.74644643", "0.73234886", "0.72275573", "0.7161156", "0.700501", "0.6937332", "0.6852544", "0.6745452", "0.6739652", "0.6735573", "0.6720378", "0.6651899", "0.6588729", "0.6583715", "0.6572621", "0.657172", "0.6510062", "0.6502684", "0.646121", "0.64501613", ...
0.76117074
0
Number of free supply.
public static int getSupplyFree() { return getSupplyTotal() - getSupplyUsed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "int getTotalFree();", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public int getAvailableCount();", "public int getTotalSupply() {\n if (this.totalSupply ==...
[ "0.77858627", "0.7750841", "0.76119316", "0.73121464", "0.71639353", "0.7149762", "0.70644116", "0.70597804", "0.6961488", "0.69433296", "0.6929255", "0.69029814", "0.68458766", "0.683331", "0.6824184", "0.6799182", "0.67989546", "0.67792493", "0.67783946", "0.6769156", "0.67...
0.84079856
0
Number of supply used.
public static int getSupplyUsed() { return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSupply() {\n return totalSupplyGet();\n }", "public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n ...
[ "0.7959107", "0.769782", "0.76877517", "0.74830884", "0.7346501", "0.72638106", "0.6995668", "0.69542867", "0.68659174", "0.6782424", "0.6778341", "0.6778341", "0.6778341", "0.67254096", "0.67254096", "0.67254096", "0.67008513", "0.66912097", "0.66911954", "0.66826624", "0.66...
0.8211073
0
Number of supply totally available.
public static int getSupplyTotal() { return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSupply() {\n return totalSupplyGet();\n }", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public int getAvailableCount();", "public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUse...
[ "0.8024762", "0.79585874", "0.7955324", "0.7897677", "0.74359584", "0.736655", "0.72732896", "0.726622", "0.7137895", "0.70961654", "0.7010467", "0.7003824", "0.6914271", "0.68768203", "0.68396527", "0.67658126", "0.67608565", "0.6755895", "0.6699794", "0.6686543", "0.6681667...
0.7306273
6
========================================================= Auxiliary Returns random int number from range [min, max], both inclusive.
public static int rand(int min, int max) { return RUtilities.rand(min, max); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int randInt(final int min, final int max) {\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n return rand.nextInt((max - min) + 1) + min;\n }", "private static int randInt(int min, int max) {\n Random rand = new Random();\n\n ...
[ "0.8723456", "0.8702804", "0.86215156", "0.86188704", "0.8527583", "0.846902", "0.84515506", "0.84511197", "0.844315", "0.8440646", "0.8431071", "0.8430012", "0.8403477", "0.8384328", "0.8380379", "0.83782345", "0.8373744", "0.83635616", "0.8361019", "0.83531713", "0.8347856"...
0.7991137
59
Returns true if user plays as Terran.
public static boolean playsAsTerran() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isEnemyTerran() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Terran);\n }", "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "public boolean isTankRole() {\n\n return heroRole.equals(HeroRol...
[ "0.6632215", "0.62531155", "0.59903747", "0.5940961", "0.5916532", "0.5909826", "0.58972496", "0.581774", "0.579628", "0.5765916", "0.57291293", "0.57031304", "0.5698337", "0.56240064", "0.5613103", "0.5605918", "0.5538483", "0.55171454", "0.5505936", "0.54938936", "0.5471412...
0.85807836
0
Returns true if user plays as Protoss.
public static boolean playsAsProtoss() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPlayable();", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "boolean isMultiplayer();", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean isPlaying() {\n return params.isPlay();\n ...
[ "0.64636177", "0.6329168", "0.6212117", "0.62099314", "0.62057465", "0.6194762", "0.61741006", "0.61673635", "0.6062599", "0.6055121", "0.6054197", "0.603274", "0.6007746", "0.59826165", "0.5969128", "0.59576887", "0.59565943", "0.5944372", "0.5932724", "0.59297276", "0.59242...
0.84288174
0
Returns true if user plays as Zerg.
public static boolean playsAsZerg() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isZengin() {\n\t\treturn zengin;\n\t}", "public static boolean isEnemyZerg() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Zerg);\n }", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "public boolean isGuest() {\n\t\treturn (getUser()....
[ "0.67962414", "0.6430835", "0.60201573", "0.59571046", "0.59546137", "0.58356863", "0.5774859", "0.57710576", "0.57486427", "0.5748213", "0.57348406", "0.57289296", "0.56788665", "0.5643299", "0.5627588", "0.5581305", "0.5570861", "0.55544233", "0.55471176", "0.554436", "0.55...
0.82019365
0
Returns true if enemy plays as Terran.
public static boolean isEnemyTerran() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Terran); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsTerran() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran);\n }", "public boolean isTie() {\n if (gameStatus == null) return false;\n return gameStatus.isTie()\n || (gameStatus.getPlayerOnePoints() != -1\n && gameStatus.g...
[ "0.820851", "0.6892357", "0.62911856", "0.62639225", "0.6228606", "0.6226359", "0.6078766", "0.60481715", "0.60068995", "0.5916473", "0.5915535", "0.5903742", "0.5846598", "0.58368045", "0.58004665", "0.5799688", "0.576913", "0.57393485", "0.5726945", "0.56836104", "0.5665670...
0.83035487
0
Returns true if enemy plays as Protoss.
public static boolean isEnemyProtoss() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Protoss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public abstract ...
[ "0.795299", "0.65949446", "0.65259266", "0.6466124", "0.6442982", "0.64307916", "0.6413243", "0.6347229", "0.6285313", "0.62846506", "0.61352515", "0.6093142", "0.6080482", "0.60726154", "0.6058642", "0.6044542", "0.60307366", "0.6021465", "0.60108393", "0.5998392", "0.599166...
0.8083085
0
Returns true if enemy plays as Zerg.
public static boolean isEnemyZerg() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Zerg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsZerg() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg);\n }", "public boolean isZengin() {\n\t\treturn zengin;\n\t}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\n public boolean isChasingPlayer()\n {\...
[ "0.8081331", "0.65634704", "0.6407118", "0.62434536", "0.62429446", "0.6226715", "0.62248117", "0.6179186", "0.61545", "0.6152559", "0.61384255", "0.6135872", "0.613109", "0.6130894", "0.6097331", "0.6085326", "0.60488164", "0.6038526", "0.6032233", "0.6014486", "0.6004941", ...
0.8248876
0
Returns true if we can afford given amount of minerals.
public static boolean hasMinerals(int mineralsToAfford) { return getMinerals() >= mineralsToAfford; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean increaseMinions() {\r\n\t\tif (this.minions < TOTAL_MINIONS) {\r\n\t\t\tthis.minions = this.minions + 1;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n ...
[ "0.647429", "0.634345", "0.6317827", "0.6120791", "0.61132556", "0.6091154", "0.60383797", "0.60355127", "0.60268795", "0.6015661", "0.6010231", "0.5967878", "0.59581065", "0.5947052", "0.5928837", "0.5921253", "0.59141195", "0.59065706", "0.5901816", "0.590159", "0.5900951",...
0.772548
0
Returns true if we can afford given amount of gas.
public static boolean hasGas(int gasToAfford) { return getGas() >= gasToAfford; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canCredit(double amount);", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "public boolean canTakeCharge();", "...
[ "0.67432034", "0.66307694", "0.65911555", "0.65617794", "0.6448914", "0.63907", "0.6380732", "0.6349847", "0.63424987", "0.6302113", "0.6302113", "0.6292373", "0.6289785", "0.61839634", "0.61812806", "0.6177685", "0.61635375", "0.61634487", "0.6135553", "0.6102779", "0.609452...
0.7718315
0
Returns true if we can afford minerals and gas for given unit type.
public static boolean canAfford(UnitType unitType) { return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have ever...
[ "0.66027063", "0.6493202", "0.6307329", "0.6207871", "0.62065154", "0.6091603", "0.60858464", "0.60572124", "0.59660906", "0.58311635", "0.58191633", "0.5791439", "0.57655036", "0.5749138", "0.5741757", "0.57263446", "0.572153", "0.5707073", "0.5694382", "0.5684528", "0.56633...
0.8105448
0
Returns true if we can afford minerals and gas for given upgrade.
public static boolean canAfford(UpgradeType upgrade) { return hasMinerals(upgrade.getMineralPriceBase()) && hasGas(upgrade.getGasPriceBase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "private boolean CheckCostToBuildOrUpgrade(double cost)\r\n {\r\n return cost <= this.bitcoins;\r\n }", "public boolean isUpgrading() {\n this.readLock.lock();\n\n try {\n ...
[ "0.67711955", "0.60152644", "0.60124826", "0.59621906", "0.5861356", "0.58183545", "0.5788026", "0.57536954", "0.57159835", "0.57109183", "0.5699414", "0.56779206", "0.5665742", "0.56295174", "0.55615", "0.5557663", "0.5555484", "0.55517083", "0.55271864", "0.5521724", "0.549...
0.81920904
0
Returns true if we can afford both so many minerals and gas at the same time.
public static boolean canAfford(int minerals, int gas) { return hasMinerals(minerals) && hasGas(gas); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public static boolean hasGas(int gasToAfford) {\n return getGas() >= gasToAfford;\n }", "public boolean hasBust() {\n\t\tretur...
[ "0.6633408", "0.6501874", "0.63022244", "0.63000077", "0.6259472", "0.6192585", "0.61858845", "0.6146416", "0.6095795", "0.6093444", "0.6086315", "0.6064096", "0.6059406", "0.6057788", "0.60376626", "0.60327184", "0.6017728", "0.60024375", "0.59936064", "0.5982213", "0.597391...
0.6490026
2
========================================================= Utility Sends ingame message that will be visible by other players.
public static void sendMessage(String message) { getBwapi().sendText(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t...
[ "0.70041174", "0.69627184", "0.667426", "0.6673806", "0.66530895", "0.66454285", "0.6607921", "0.6507117", "0.64629775", "0.64344114", "0.63857204", "0.6372061", "0.6368359", "0.63651687", "0.6340596", "0.6306788", "0.6282045", "0.6251836", "0.6249998", "0.6244156", "0.622376...
0.0
-1
konstruktor koji prima konktetne vrijednosti za x, y i radius
Circle2D(double newX, double newY, double newRadius){ this.x = newX; this.y = newY; this.radius = newRadius; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRadius();", "public Coordinate getCircle();", "public double getRadius(){return radius;}", "public double getCircleRadius();", "long getRadius();", "public double getRadius() { return radius; }", "int getRadius();", "public int getRadius() { return radius; }", "public abstract float getRa...
[ "0.7137577", "0.6995768", "0.69618165", "0.69439656", "0.69367886", "0.69087917", "0.6868397", "0.68683463", "0.68593335", "0.68593335", "0.6819599", "0.6719856", "0.6700105", "0.6675351", "0.6670556", "0.66372806", "0.66293293", "0.66067296", "0.658956", "0.65590936", "0.653...
0.0
-1
/ metod koji racuna povrsinu kruga
public double getArea(){ double povrsina = PI * this.radius * this.radius; return povrsina; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart]...
[ "0.634762", "0.61452436", "0.612364", "0.60984874", "0.60955393", "0.6062688", "0.60131216", "0.60109836", "0.6009785", "0.59991777", "0.59721553", "0.5968054", "0.59431744", "0.59396684", "0.58932793", "0.58853185", "0.5876934", "0.5857764", "0.58577543", "0.58499706", "0.58...
0.0
-1
/ metoda koja racuna obim kruga
public double getPerimeter(){ double obim = 2 * PI * this.radius; return obim; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa....
[ "0.65698117", "0.64471203", "0.632283", "0.6236948", "0.6230116", "0.61952204", "0.6182099", "0.61786056", "0.61576074", "0.6123129", "0.6112027", "0.61102945", "0.61086774", "0.6052995", "0.6039606", "0.6034907", "0.6020101", "0.6014699", "0.6010881", "0.6006924", "0.6006018...
0.0
-1
/ metoda koja testira da li se tacka nalazi unutar kruga
public boolean contains(double x, double y){ boolean contains = false; //odredjivanje koliko je tacka udaljena od centra kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - x), 2) + Math.pow((this.y - y), 2)); //ako je radijus veci ili jednak udaljenosti tacke od centra kruga, tacka se nalazi u krugu if(this.radius >= udaljenost){ contains = true; } return contains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\t...
[ "0.6942594", "0.67839015", "0.6719528", "0.6706511", "0.66967756", "0.66943765", "0.6666107", "0.6599785", "0.6571836", "0.6549125", "0.65339094", "0.6525305", "0.6498957", "0.64887434", "0.64886147", "0.64696735", "0.64577454", "0.6395921", "0.63907063", "0.6368594", "0.6359...
0.0
-1
/ metoda koja testira da li se krug nalazi unutar kruga
public boolean contains(Circle2D circle){ boolean contains = false; //odredjivanje koliko je centar drugog kruga udaljena od centra prvog kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - circle.getX()), 2) + Math.pow((this.y - circle.getY()), 2)); if(this.radius >= udaljenost + circle.radius){ contains = true; } return contains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\t...
[ "0.71598566", "0.6886276", "0.6782096", "0.6778397", "0.6777126", "0.67548805", "0.6736905", "0.6677576", "0.6676154", "0.6630031", "0.6583113", "0.65669405", "0.65355563", "0.6526381", "0.65061975", "0.65049285", "0.6498125", "0.6493297", "0.64838856", "0.64721364", "0.64708...
0.0
-1
/ metoda koja testira da li se dva kruga ukrstaju
public boolean overlaps(Circle2D circle){ boolean overlaps = false; //odredjivanje koliko je centar drugog kruga udaljena od centra prvog kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - circle.getX()), 2) + Math.pow((this.y - circle.getY()), 2)); if(udaljenost < this.radius + circle.radius){ overlaps = true; } return overlaps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\t...
[ "0.68847394", "0.66820014", "0.6613551", "0.6581251", "0.6547025", "0.6491354", "0.64051133", "0.6379642", "0.63596505", "0.6338468", "0.63121206", "0.629273", "0.622702", "0.6225633", "0.6222519", "0.6219446", "0.6172969", "0.617152", "0.6168953", "0.616304", "0.6151342", ...
0.0
-1
Create a action to add a word to the current user dictionary.
public AddWordAction(JTextComponent jText, String word) { this(jText, word, Utils.getResource("Adicionar ao dicionário")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(Word word);", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = Spel...
[ "0.7505322", "0.7261651", "0.67016447", "0.664095", "0.6614351", "0.6535532", "0.65184575", "0.64887303", "0.64774686", "0.64533126", "0.64288396", "0.6384611", "0.63663745", "0.63282454", "0.6299207", "0.62487847", "0.62480986", "0.6189677", "0.61830527", "0.61419976", "0.61...
0.7017473
2
Create a action to add a word to the current user dictionary.
public AddWordAction(JTextComponent jText, String word, String label) { super(label); this.word = word; this.jText = jText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(Word word);", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = Spel...
[ "0.7500738", "0.7262029", "0.7016383", "0.6696395", "0.6637828", "0.6609512", "0.6530394", "0.6513059", "0.64716125", "0.6447993", "0.6425262", "0.6379843", "0.6361034", "0.63264173", "0.62980926", "0.6243838", "0.62421113", "0.6185356", "0.6178592", "0.61358005", "0.61088747...
0.64886916
8
Add the word to the current user directory.
@Override public void actionPerformed(ActionEvent arg0) { UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider(); if (provider != null) { provider.addWord(word); } Dictionary dictionary = SpellChecker.getCurrentDictionary(); dictionary.add(word); dictionary.trimToSize(); AutoSpellChecker.refresh(jText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(String word) {\n root.addWord(word);\n }", "public void addWord(String word) {\n root = put(root, word, 0);\n }", "public void addWord(String word) {\n\t\taddWord(word, root);\n\t}", "public void addWord(String word) {\n trie.insert(word);\n }", "pu...
[ "0.6489381", "0.644485", "0.6402157", "0.61583424", "0.611918", "0.60807765", "0.60222274", "0.59904236", "0.5912507", "0.59082323", "0.58545023", "0.5848224", "0.581429", "0.577529", "0.5759445", "0.57578266", "0.5731658", "0.5730758", "0.57151675", "0.5693262", "0.5685826",...
0.55499625
32
TODO Autogenerated method stub
@Override public void update(StockDataRecord bo) throws SQLException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public StockDataRecord get(int id) throws SQLException, BusinessObjectException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
System.out.println(bo.getPapername().toString()+";"+bo.getDate().toString()+";"+bo.getTime().toString()+";"+Double.toString(bo.getClose())+";"+Double.toString(bo.getVolume())); /if (this.checkRecordExistence(bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume())) ) throw new BusinessObjectException("This record is already exists.");
@Override public void create(StockDataRecord bo) throws SQLException, BusinessObjectException { this.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) ); bo.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid existDataInDBTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 2, 1);\n\t\texpected = \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n...
[ "0.5902319", "0.58985823", "0.5750226", "0.5655584", "0.5554846", "0.5554846", "0.5539447", "0.5487133", "0.54723924", "0.54445875", "0.5438454", "0.5438367", "0.53953004", "0.53850234", "0.537192", "0.53666764", "0.5362431", "0.53298736", "0.5318132", "0.53161776", "0.529694...
0.6609519
0
Check not existing user
@Test public void checkForNonExistingUserCredential() { UserLogin userLogin = new UserLogin(); userLogin.setUserLogin("+380680000000"); userLogin.setUserPassword("12345"); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignIn"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean existUser(String id);", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences...
[ "0.74376816", "0.73503566", "0.73398995", "0.7278826", "0.7257307", "0.72571486", "0.72493494", "0.7155364", "0.71396613", "0.7132022", "0.713104", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.712606", "0.7090711", "0.70...
0.66243774
78
Try to register user without repeated password
@Test public void createNewUserAndCheckIt() { UserLogin userLogin = new UserLogin(); userLogin.setUserLogin("068-068-68-68"); userLogin.setUserPassword("12345"); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); //Successful registration userLogin.setUserPasswordNew("12345"); UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); assertThat(userResponse.getUserPhone().equals(usersService.normalizeAndCheckPhoneFormat(userLogin.getUserLogin()))); assertThat(userResponse.getUserPoints()).size().isEqualTo(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testNonMatchingPasswords() {\n registerUser(username, password, password + password, email, email, forename, surname, null);\n assertNull(userService.getUser(username));\n }", "@Test\n public void testPasswordHasNumbersAndLetters() {\n registerUser(username, \"12...
[ "0.7179783", "0.693734", "0.68969727", "0.67835003", "0.67390656", "0.6683439", "0.6662445", "0.6627291", "0.65856594", "0.6574794", "0.65496755", "0.65442526", "0.65405214", "0.6534288", "0.65020144", "0.648749", "0.6486778", "0.6463125", "0.6459278", "0.6421621", "0.6418824...
0.0
-1
Create new user using external token only error expected
@Test public void createNewUserByExternalTokenAndCheckIt() throws Exception { UserLogin userLogin = new UserLogin(); userLogin.setUserToken(UUID.randomUUID().toString()); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); //Add login and expect new user successful registration userLogin.setUserLogin("val@gmail.com"); UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); assertThat(userResponse.getUserMail().equals(userLogin.getUserLogin())); assertThat(userResponse.getUserPoints()).size().isEqualTo(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "public UserAuthToken createUser(CreateUserRequest request);", "String createToken(User user);", "int createUser(User data) throws Exception;", "public Token createAuthorizationT...
[ "0.79099417", "0.78441703", "0.76406115", "0.689301", "0.6865952", "0.68648684", "0.6852291", "0.67392486", "0.67367595", "0.67364544", "0.67259204", "0.6705289", "0.66395515", "0.66011894", "0.65488756", "0.65436155", "0.65214807", "0.6503635", "0.64920866", "0.64887196", "0...
0.7423246
3
TODO Autogenerated method stub
@Override public void missiel() { System.out.println("미사일을 쏠 수 있습니다"); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_place_view, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_edit) { Intent intent = new Intent(getApplicationContext(), AddTripActivity.class); intent.putExtra("TripID", tripItem.getID()); startActivityForResult(intent, EDIT_TRIP_CODE); return true; } else if (id == R.id.action_view_map) { Intent intent = new Intent(getApplicationContext(), MapActivity.class); intent.putExtra("TRIP", tripID); startActivity(intent); return true; } else if(id == R.id.menu_item_share) { String text = "Have a look at Joshes Place, " + tripItem.getTitle(); Intent sharingIntent = new Intent(Intent.ACTION_SEND_MULTIPLE); sharingIntent.setType("*/*"); sharingIntent.putExtra(Intent.EXTRA_SUBJECT, "Joshes Trip, " + tripItem.getTitle()); ArrayList<Uri> imageUris = new ArrayList<Uri>(); if((tripItem.getPic() != null) && (tripItem.getPic().getID() > 0)) { String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), tripItem.getPic().getImage(), tripItem.getPic().getTitle(), null); Uri bmpUri = Uri.parse(pathofBmp); imageUris.add(bmpUri); } List<Note> notes = tripItem.getNotes(); if(notes.size() > 0) { text += "\nNotes:\n"; for (Note n : notes) { text += n.getTitle() + ", \n" + n.getNote() + "\n"; } } List<String> companions = tripItem.getCompanions(); if(companions.size() > 0) { text += "\nCompanions:\n"; for (String s : companions) { text += s + "\n"; } } List<PlaceItem> places = tripItem.getPlaces(); if(places.size() > 0) { text += "\nPlaces Visited: \n"; for(PlaceItem p : places) { text += p.getTitle() + " (" + p.getDate() + ")\n"; } } text +="\nHere on: " + tripItem.getStartDate() + " to " + tripItem.getEndDate(); ArrayList<ImageItem> images = tripItem.getImages(); if(images.size() > 0) { sharingIntent.putExtra(Intent.EXTRA_TEXT, "\nImages:\n"); for (ImageItem i : images) { String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), i.getImage(), i.getTitle(), null); Uri bmpUri = Uri.parse(pathofBmp); imageUris.add(bmpUri); } sharingIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris); } sharingIntent.putExtra(Intent.EXTRA_TEXT, text); startActivity(Intent.createChooser(sharingIntent, "Share trip using")); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7905088", "0.7806473", "0.7767427", "0.7727654", "0.76322067", "0.7622006", "0.7585653", "0.75316405", "0.7488972", "0.745797", "0.745797", "0.7439378", "0.742269", "0.7403919", "0.7392367", "0.73876", "0.73803836", "0.7371262", "0.7362839", "0.73568594", "0.7346477", "0...
0.0
-1
Get the dimensions of the View Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath); image.setImageBitmap(bitmap);
protected void setPic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOpt...
[ "0.77071136", "0.7237939", "0.7198731", "0.7050766", "0.69483155", "0.69312495", "0.69280416", "0.6923731", "0.6882833", "0.6817194", "0.6788475", "0.67306614", "0.670752", "0.6702247", "0.66830355", "0.6658902", "0.65481883", "0.6532653", "0.65306205", "0.6530483", "0.651031...
0.0
-1
Create an image file name
protected File createImageFile() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String imageFileName = "JPEG_" + timeStamp + "_"; File storageDir = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES); File image = File.createTempFile( imageFileName, /* prefix */ ".jpg", /* suffix */ storageDir /* directory */ ); // Save a file: path for use with ACTION_VIEW intents mCurrentPhotoPath = image.getAbsolutePath(); return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prep...
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.66945...
0.0
-1
Initializes the controller class.
@FXML private void btnNederlandsOnAction(ActionEvent event) { locale = new Locale(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "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
Checks if file exists.
public static boolean exists(String path) { File propFile = new File(path); return propFile.exists(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean fileExists(String path) throws IOException;", "private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "public boolean exists() {\n return _file.exists();\n }", "private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}", "@O...
[ "0.7967822", "0.7696723", "0.7671952", "0.76454383", "0.76323026", "0.7592412", "0.75729567", "0.752124", "0.7514734", "0.74417114", "0.7410872", "0.73682564", "0.73198026", "0.73100114", "0.72724533", "0.7260427", "0.7230493", "0.71964264", "0.71884084", "0.7173508", "0.7167...
0.61766404
79
Opens file if exists, throws exception otherwise.
public static File fileFromPathOrThrow(String path) { File propFile = new File(path); if (!propFile.exists()) { throw new IllegalArgumentException("Message file '" + path + "' does not exist."); } return propFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void\topen(File path) throws IOException;", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not e...
[ "0.6404769", "0.6403488", "0.6309768", "0.63040113", "0.6270654", "0.6265518", "0.62020254", "0.61451817", "0.6117045", "0.6089596", "0.6052028", "0.60265523", "0.59373987", "0.5843113", "0.5817975", "0.5777375", "0.5770012", "0.57345676", "0.57315964", "0.5693335", "0.566088...
0.0
-1
Opens file if exists, or creates it if not exist yet.
public static File fileFromPathOrCreate(String path) throws IOException { File propFile = new File(path); if (!propFile.exists()) { propFile.createNewFile(); } return propFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthr...
[ "0.67536247", "0.6580323", "0.6479184", "0.63441443", "0.6220112", "0.61581105", "0.61569875", "0.61521137", "0.61211807", "0.6070813", "0.6067594", "0.60482025", "0.59723943", "0.59606004", "0.59480786", "0.5945035", "0.5909662", "0.58161944", "0.57853323", "0.57486993", "0....
0.5880764
17
Solution from the book.
public static int updateBits(int n, int m, int i, int j){ // all '1's int max = ~0; // left with '1' int left = max - ((1<<j) -1); // right with '1' int right = ((1<<i) - 1); // left with '1', middle '0', and right '1' int mask = left | right; // clear up the middle return (n & mask) | (m << i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solution() {\n\t\t\n\t}", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public static void main(String[] args) {\n\t\t\tSystem.out.println(Solution(5, 83));\n\t\t\t\n\t\t}", "public static void main(String[] arg...
[ "0.6958662", "0.66130364", "0.6479223", "0.627459", "0.62652946", "0.61614704", "0.6114777", "0.60927606", "0.60869235", "0.60852385", "0.6060058", "0.60538334", "0.6045786", "0.6040958", "0.6040958", "0.6010636", "0.59932274", "0.59896827", "0.59694463", "0.5961149", "0.5952...
0.0
-1
JPA repository for ProjectGenerationTask table
@Repository public interface ProjectGenerationTaskRepository extends JpaRepository<ProjectGenerationTask, String> { List<ProjectGenerationTask> findAllByStorageLocation(String storageLocation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface TaskRepository extends JpaRepository<Task, Long> {\n\n}", "@Repository\npublic interface RepositoryOrgTaskTracker extends JpaRepository<OrgTaskTracker, Integer>{\n}", "public interface TaskReporitory extends JpaRepository<Task, Integer>, JpaSpecificationExecutor<Task>, CrudReposit...
[ "0.7182898", "0.6944843", "0.6762257", "0.671328", "0.6706502", "0.66581523", "0.6411793", "0.633582", "0.63043976", "0.61934084", "0.61757714", "0.617084", "0.6148031", "0.6127765", "0.608325", "0.5957579", "0.59516615", "0.59406936", "0.592975", "0.59077543", "0.5906148", ...
0.77930194
0
ensure locales are loaded
@Test public void testConfigLoading(){ assertEquals(2,occurrencePortalConfig.getSupportedLocale().size()); assertNotNull(occurrencePortalConfig.getResourceBundle(Locale.ENGLISH)); assertEquals("cc0",occurrencePortalConfig.getLicenseShortName("http://creativecommons.org/publicdomain/zero/1.0/")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void testLocales() throws Exception\n {\n assumeJvm();\n Locale[] locales = new MPXReader().getSupportedLocales();\n for (Locale locale : locales)\n {\n testLocale(locale);\n }\n }", "public static void loadStrings() {\n\t\tloadStrings(Locale.getDefault());\n\t}"...
[ "0.6846686", "0.66063815", "0.65504545", "0.65269744", "0.6368366", "0.62558246", "0.620222", "0.618019", "0.6079526", "0.607614", "0.60691094", "0.6068224", "0.6062764", "0.60323596", "0.6025123", "0.59734213", "0.59476936", "0.59147525", "0.59116375", "0.58880424", "0.58844...
0.5618965
47
The flow logic is encapsulated within the call() method.
@Suspendable @Override public Void call() throws FlowException { // We retrieve the notary identity from the network map. final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0); QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId), Vault.StateStatus.UNCONSUMED, null); List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates(); // We create the transaction components. NDAState outputState = new NDAState(getOurIdentity(), crmParty, "APPROVED"); StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID); List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey()); Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners); // We create a transaction builder and add the components. final TransactionBuilder txBuilder = new TransactionBuilder(); txBuilder.addInputState(ndaStates.get(0)); txBuilder.setNotary(notary); txBuilder.withItems(outputStateAndContract, cmd); // Signing the transaction. final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder); // Creating a session with the other party. FlowSession otherpartySession = initiateFlow(crmParty); // Obtaining the counterparty's signature. SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow( signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker())); // Finalising the transaction. subFlow(new FinalityFlow(fullySignedTx)); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void call() {\n\t\t\n\t}", "public abstract void call();", "void call();", "@Override\r\n public FlowState call() {\r\n // TODO: We should not need? to pass the flowState because this flow is already known (reapplying same values???)\r\n FlowState flowState = getFlowState...
[ "0.7337531", "0.70945305", "0.6791918", "0.6497212", "0.6459287", "0.645401", "0.6423208", "0.6354677", "0.63416106", "0.62825674", "0.6261117", "0.62325865", "0.62049854", "0.6201101", "0.6164186", "0.61455196", "0.61067015", "0.60626537", "0.6021023", "0.6020057", "0.601101...
0.0
-1
Constructs with the specified initial frame and date selector.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector) { this(owner, dateSelector, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ARXDate() {\r\n this(\"Default\");\r\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\n\tpublic void initDate() {\n\n\t}", "Frame createFrame();", "public JDateSelectorDialog(Frame owner, JDate...
[ "0.5521151", "0.5470748", "0.54251814", "0.5268475", "0.5192947", "0.51001096", "0.509493", "0.5087827", "0.50817806", "0.50608283", "0.49868965", "0.4975774", "0.495411", "0.49500132", "0.49452585", "0.49424893", "0.49396327", "0.49350104", "0.49220857", "0.4909034", "0.4884...
0.5858253
0
Constructs with the specified initial dialog and date selector.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector) { this(owner, dateSelector, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Dialog onCreateDialog(int id) {\n\n\t\t// listener for setting date in starting date dialog\n\t\tOnDateSetListener goToDateSetListener = new OnDateSetListener() {\n\n\t\t\t// use when \"set\" press\n\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\tint dayOfMonth) {\n\n\t...
[ "0.6836603", "0.6782969", "0.6752844", "0.6696911", "0.666917", "0.66473615", "0.6640167", "0.6628811", "0.66005254", "0.6594426", "0.6594426", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.65787554", "0.6576582", "0.6500847", "0.6447955", ...
0.6900203
0
Constructs with the specified initial frame, date selector and modal.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal) { this(owner, dateSelector, modal, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "public TimeFramesSelectionDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public NewGameDialog(Frame ...
[ "0.624051", "0.60813564", "0.6021623", "0.60043645", "0.5991147", "0.59125346", "0.5832585", "0.5825741", "0.58256835", "0.5762115", "0.5761973", "0.57053727", "0.56970906", "0.5655435", "0.5647059", "0.5640912", "0.5530102", "0.55243766", "0.551076", "0.55058104", "0.5502881...
0.6524387
0
Constructs with the specified initial dialog, date selector and modal.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal) { this(owner, dateSelector, modal, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dime...
[ "0.68894047", "0.6667541", "0.66273904", "0.65095764", "0.6483332", "0.6402133", "0.6400093", "0.63586104", "0.63302827", "0.62937725", "0.6271507", "0.626257", "0.626257", "0.62597483", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.62477803...
0.70127445
0
Constructs with the specified initial frame, date selector, modal and hint.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint) { super(owner, SwingLocale.getString("date_selector"), new Dimension(280, 145), modal, hint, true); this.dateSelector = dateSelector; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public JDateSelectorDia...
[ "0.6088302", "0.60325795", "0.588358", "0.5858922", "0.5815889", "0.57710177", "0.57653373", "0.5718021", "0.56830376", "0.5637565", "0.5634057", "0.5600332", "0.5563637", "0.5555381", "0.55303127", "0.5507157", "0.5504603", "0.5485842", "0.54846704", "0.5474171", "0.5453859"...
0.6384823
0
Constructs with the specified initial dialog, date selector, modal and hint.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint) { super(owner, SwingLocale.getString("date_selector"), new Dimension(280, 145), modal, hint, true); this.dateSelector = dateSelector; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public abstract void ini...
[ "0.6879349", "0.67057794", "0.6657223", "0.65717804", "0.6464664", "0.6372457", "0.6357964", "0.63526416", "0.6351222", "0.63426226", "0.63014156", "0.62817925", "0.62817925", "0.62813973", "0.6274227", "0.6273784", "0.62704164", "0.62704164", "0.62704164", "0.62704164", "0.6...
0.6889171
0
Gets the date selector.
public JDateSelector getDateSelector() { return dateSelector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getSelectDate();", "public Date getSelectedDate();", "public Widget getDateSelector( DSLVariableValue value ) {\n return new DSLDateSelector( value );\n }", "public JDateTimeSelector getDateTimeSelector()\n\t{\n\t\treturn dateTimeSelector;\n\t}", "public Date getDateSelected() {\n ...
[ "0.69024277", "0.6785805", "0.6738536", "0.6692691", "0.66712475", "0.6634329", "0.65133435", "0.644457", "0.6331475", "0.6234356", "0.61526567", "0.61219835", "0.61217374", "0.6092343", "0.6080718", "0.6071503", "0.6055907", "0.60323447", "0.60165095", "0.60165095", "0.59986...
0.817828
0
Sets the date selector.
public void setDateSelector(JDateSelector dateSelector) { this.dateSelector = dateSelector; layoutPanel.removeAll(); layoutPanel.add(dateSelector, BorderLayout.NORTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedDate(Date selectedDate);", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick...
[ "0.716667", "0.6908046", "0.68156815", "0.67547166", "0.6684823", "0.665894", "0.660636", "0.6587516", "0.6553814", "0.6533728", "0.6521536", "0.65189266", "0.6509847", "0.6497171", "0.6491897", "0.64918023", "0.64180183", "0.640911", "0.639313", "0.6386247", "0.63724613", ...
0.7730442
0
Returns true if it is confirmed.
public abstract boolean confirm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isConfirmed() {\n return confirmed;\n }", "boolean isConfirmed(){\n\t\treturn confirmed;\n\t}", "public final boolean isConfirmed() {\n return isConfirmed;\n }", "boolean isConfirmed();", "public abstract boolean isConfirmed();", "public void setConfirmed(boolean confir...
[ "0.87059474", "0.845994", "0.8414747", "0.82235384", "0.76681834", "0.73540664", "0.72241056", "0.6977643", "0.6936814", "0.69037753", "0.6833888", "0.681147", "0.67951226", "0.67719877", "0.66688406", "0.6611389", "0.65192866", "0.6464828", "0.64475095", "0.64018726", "0.625...
0.6585753
16
Returns true if it is cancelled.
public abstract boolean cancel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isCancelled(){\n return cancel;\n }", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled() {\n return cancelled;\n }", "boolean isCancelled();", "@Override\n\tpublic boolean isCa...
[ "0.8609123", "0.85175556", "0.85175556", "0.85175556", "0.84947157", "0.8460973", "0.84293246", "0.83150524", "0.8298942", "0.82900554", "0.8265233", "0.8259905", "0.80477834", "0.80452657", "0.8043671", "0.80380446", "0.7991359", "0.7924315", "0.7850848", "0.78483224", "0.78...
0.7489349
28
Instantiates a new Bft block header functions.
public BftBlockHeaderFunctions( final Function<BlockHeader, Hash> hashFunction, final BftExtraDataCodec bftExtraDataCodec) { this.hashFunction = hashFunction; this.bftExtraDataCodec = bftExtraDataCodec; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "DefineBlock createDefineBlock();", "Header createHeader();", "TestBlock createTestBlock();", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) {\n return new Bf...
[ "0.65663564", "0.631982", "0.62820315", "0.61979115", "0.6160125", "0.61162406", "0.61099845", "0.60280263", "0.6025257", "0.596676", "0.59601617", "0.59436405", "0.59272784", "0.5907515", "0.5907441", "0.58635014", "0.58206064", "0.5762304", "0.5757286", "0.57310665", "0.572...
0.704426
0
Instantiate Block Header Functions for onchain block.
public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) { return new BftBlockHeaderFunctions( h -> new BftBlockHashing(bftExtraDataCodec).calculateHashOfBftBlockOnchain(h), bftExtraDataCodec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BftBlockHeaderFunctions(\n final Function<BlockHeader, Hash> hashFunction, final BftExtraDataCodec bftExtraDataCodec) {\n this.hashFunction = hashFunction;\n this.bftExtraDataCodec = bftExtraDataCodec;\n }", "Block createBlock();", "TestBlock createTestBlock();", "BlockchainFactory getBloc...
[ "0.65362525", "0.6324775", "0.6176733", "0.61212087", "0.601791", "0.59855694", "0.5864748", "0.58378124", "0.57682884", "0.5661358", "0.5647429", "0.5638517", "0.55907094", "0.55702007", "0.5528382", "0.55271727", "0.5516773", "0.5514487", "0.54754436", "0.5469865", "0.54631...
0.67494804
0
Instantiate Block Header Functions for committed seal.
public static BlockHeaderFunctions forCommittedSeal(final BftExtraDataCodec bftExtraDataCodec) { return new BftBlockHeaderFunctions( h -> new BftBlockHashing(bftExtraDataCodec).calculateDataHashForCommittedSeal(h), bftExtraDataCodec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "DefineBlock createDefineBlock();", "TestFirstBlock createTestFirstBlock();", "CommunityProfileEventHeader()\n {\n /*\n * Nothing to do.\n */\n }", "@Test\r\n\t\tpublic void testTableBlockTranslationAddsHeader() throws Exception {\r\n\t\t\t\r\n\t\t\tTempl...
[ "0.5901091", "0.58599806", "0.58265984", "0.5695872", "0.5628015", "0.56103927", "0.5572566", "0.554677", "0.54995525", "0.54716146", "0.5431209", "0.5413132", "0.5394572", "0.5357679", "0.5326222", "0.52596605", "0.52484244", "0.52012396", "0.5187288", "0.51641595", "0.51598...
0.7068779
0
Creates new form mainGUI
public mainGUI() { initComponents(); setSize(Toolkit.getDefaultToolkit().getScreenSize()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "public static void createMainframe()\n\t{\n\t\t//C...
[ "0.7625538", "0.73443097", "0.72847915", "0.72804916", "0.72795576", "0.72420126", "0.71972686", "0.7178062", "0.7098915", "0.7047819", "0.7038688", "0.7038688", "0.7038688", "0.70351934", "0.70146877", "0.7012781", "0.69780046", "0.6973058", "0.6955959", "0.6952435", "0.6947...
0.69547826
19
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); lendItem = new javax.swing.JButton(); viewCustBut = new javax.swing.JButton(); sellItem = new javax.swing.JButton(); exitBut = new javax.swing.JButton(); viewItemBut = new javax.swing.JButton(); mainDesktopPane = new javax.swing.JDesktopPane(); viewlendItemBut1 = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); newMenuItem = new javax.swing.JMenu(); addCustomerMenuItem = new javax.swing.JMenuItem(); addItemMenuItem = new javax.swing.JMenuItem(); exitMenuItem = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); updateCustomerMenuItem = new javax.swing.JMenuItem(); deleteCustomerMenuItem = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); updateItemMenuItem = new javax.swing.JMenuItem(); deleteItemMenuItem = new javax.swing.JMenuItem(); jMenu5 = new javax.swing.JMenu(); viewAllCustomerMenuItem = new javax.swing.JMenuItem(); viewAllItemMenuItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setAlwaysOnTop(true); jLabel1.setBackground(new java.awt.Color(102, 0, 255)); jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 48)); // NOI18N jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText(" Pemasara Harware"); jLabel1.setMaximumSize(new java.awt.Dimension(296, 42)); jLabel1.setMinimumSize(new java.awt.Dimension(296, 42)); lendItem.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N lendItem.setText("Lend Items"); lendItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lendItemActionPerformed(evt); } }); viewCustBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewCustBut.setText("View Customers"); viewCustBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewCustButActionPerformed(evt); } }); sellItem.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N sellItem.setText("Sell Items"); sellItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sellItemActionPerformed(evt); } }); exitBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N exitBut.setText("Exit"); exitBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButActionPerformed(evt); } }); viewItemBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewItemBut.setText("View Items"); viewItemBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewItemButActionPerformed(evt); } }); javax.swing.GroupLayout mainDesktopPaneLayout = new javax.swing.GroupLayout(mainDesktopPane); mainDesktopPane.setLayout(mainDesktopPaneLayout); mainDesktopPaneLayout.setHorizontalGroup( mainDesktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 358, Short.MAX_VALUE) ); mainDesktopPaneLayout.setVerticalGroup( mainDesktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE) ); viewlendItemBut1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewlendItemBut1.setText("View Lending Details"); viewlendItemBut1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewlendItemBut1ActionPerformed(evt); } }); jLabel3.setText("jLabel3"); jMenu1.setText("File"); newMenuItem.setText("New"); addCustomerMenuItem.setText("Customer"); addCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addCustomerMenuItemActionPerformed(evt); } }); newMenuItem.add(addCustomerMenuItem); addItemMenuItem.setText("Item"); addItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addItemMenuItemActionPerformed(evt); } }); newMenuItem.add(addItemMenuItem); jMenu1.add(newMenuItem); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); jMenu1.add(exitMenuItem); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMenu3.setText("Customer"); updateCustomerMenuItem.setText("Update"); updateCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { updateCustomerMenuItemActionPerformed(evt); } }); jMenu3.add(updateCustomerMenuItem); deleteCustomerMenuItem.setText("Delete"); deleteCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteCustomerMenuItemActionPerformed(evt); } }); jMenu3.add(deleteCustomerMenuItem); jMenu2.add(jMenu3); jMenu4.setText("Item"); updateItemMenuItem.setText("Update"); updateItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { updateItemMenuItemActionPerformed(evt); } }); jMenu4.add(updateItemMenuItem); deleteItemMenuItem.setText("Delete"); deleteItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteItemMenuItemActionPerformed(evt); } }); jMenu4.add(deleteItemMenuItem); jMenu2.add(jMenu4); jMenuBar1.add(jMenu2); jMenu5.setText("View"); viewAllCustomerMenuItem.setText("View All Customer"); viewAllCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewAllCustomerMenuItemActionPerformed(evt); } }); jMenu5.add(viewAllCustomerMenuItem); viewAllItemMenuItem.setText("View All Item"); viewAllItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewAllItemMenuItemActionPerformed(evt); } }); jMenu5.add(viewAllItemMenuItem); jMenuBar1.add(jMenu5); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(viewCustBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(exitBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(viewItemBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lendItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(sellItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(viewlendItemBut1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(mainDesktopPane)) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(sellItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(lendItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(viewCustBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(viewItemBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(viewlendItemBut1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exitBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(5, 5, 5)) .addComponent(mainDesktopPane)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
End of variables declaration//GENEND:variables
public void centerJIF(JInternalFrame jif) { Dimension desktopSize = mainDesktopPane.getSize(); Dimension jInternalFrameSize = jif.getSize(); int width = (desktopSize.width - jInternalFrameSize.width) / 2; int height = (desktopSize.height - jInternalFrameSize.height) / 2; jif.setLocation(width, height); jif.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Create an Array to transfer what we want to print in the JFrame
public String[] dataArrangement(){ String result[] = new String[10]; /**Extra Credit (5%): Enable user input for the value of K. the program should use the input if it is valid, if not it should print an error. **/ int K = 0; do { System.out.println("Enter a number for K(odd number between 1 and 90): "); Scanner scanner = new Scanner(System.in); if (scanner.hasNextInt()) { K = scanner.nextInt(); } if (K<1 || K>90 || (K%2 == 0)) { System.out.println("Invalid input, try again."); } }while (K<1 || K>90 || (K%2 == 0)); /**b. Read titanic.csv into an ArrayList of DataPoints as using readData. **/ ArrayList<DataPoint> data = new ArrayList<DataPoint>(); KNNPredictor KNNP = new KNNPredictor(K); data = KNNP.readData("titanic.csv"); //Create an ArrayList to store testing data ArrayList<DataPoint> testData = new ArrayList<DataPoint>(); for(int i=0; i<data.size(); i++) { //Check if the dataPoint is a test data if(data.get(i).getIsTest() == true) { //Run test method KNNP.test(data.get(i)); testData.add(data.get(i)); } } double accuracy = 0.0; double precision = 0.0; /**c. Compute the precision and accuracy using the ArrayList of DataPoints. **/ accuracy = KNNP.getAccuracy(testData); precision = KNNP.getPrecision(testData); long accuracyR = Math.round(accuracy*100); long precisionR = Math.round(precision*100); result[0] = "Accuracy: " + accuracyR + "%"; result[1] = "Precision: " + precisionR + "%"; //return the information that will be printed by JFrame return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }", "private void ArrayT...
[ "0.68025494", "0.6328894", "0.6311047", "0.6203178", "0.6153767", "0.60634357", "0.6051504", "0.60491186", "0.6049108", "0.6013549", "0.59854436", "0.5975228", "0.5923437", "0.58745277", "0.5864299", "0.58506286", "0.58470416", "0.5836855", "0.5823677", "0.58168364", "0.58110...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following sample code. */ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet AddTaskServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet AddTaskServlet at " + request.getContextPath() + "</h1>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.70041305", "0.6658495", "0.6603461", "0.650908", "0.6447329", "0.6442597", "0.6440696", "0.64322716", "0.6428243", "0.64247036", "0.64247036", "0.64201605", "0.64201605", "0.64201605", "0.6418442", "0.64144915", "0.64144915", "0.6400502", "0.6394304", "0.6394304", "0.63930...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); employee Employee = (employee)session.getAttribute("emp"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); List errorMsgs = new LinkedList(); //retrieve employee id int empID = Employee.getId(); //Retrive form parameters String name = request.getParameter("tasktype"); String department = request.getParameter("department"); String remarks = request.getParameter("taskRemarks"); String proID = request.getParameter("Project"); //Business logic taskDB TaskDB = new taskDB(); task Task = new task(); Task.setStartDate(java.time.LocalDate.now().toString()); Task.setDueDate(java.time.LocalDate.now().plusDays(2).toString()); Task.setIsComplete(false); Task.setLateTask(false); Task.setProjectID(Integer.parseInt(proID)); Task.setRemarks(remarks); Task.setType(Integer.parseInt(name)); Task.setDepid(Integer.parseInt(department)); String nextTask = TaskDB.addTask(Task); //Message messageDB SMSdb = new messageDB(); message SMS = new message(); SMS.setTitle(TaskDB.getTaskName(Integer.parseInt(name))); SMS.setRemarks(Task.getRemarks()); SMS.setCreateDate(Task.getDueDate()); SMS.setEmpFrom(empID); SMS.setEmpTo(Integer.parseInt(department)); SMS.setType("Task"); String addSMS = SMSdb.addMessage(SMS); if(nextTask.equals("SUCCESS")) //If function returns success string then user will be rooted to Home page { request.getRequestDispatcher("/listTask.jsp").forward(request, response);//RequestDispatcher is used to send the control to the invoked page. } else { request.setAttribute("errMessage", nextTask); //If authenticateUser() function returnsother than SUCCESS string it will be sent to Login page again. Here the error message returned from function has been stored in a errMessage key. request.getRequestDispatcher("/home.jsp").forward(request, response);//forwarding the request } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
!wca! clearSelection: (): void Clears the selection state.
public void clearSelection() { getElement().clearSelection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearSelection();", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}", "public void clearSelection() {\n\t\ttable.clearSelection();\n\t}", "public void c...
[ "0.9187669", "0.87714934", "0.86235327", "0.8526284", "0.8466397", "0.8334931", "0.8181538", "0.8128809", "0.8114528", "0.8045057", "0.8014581", "0.7732664", "0.76591504", "0.75192875", "0.7483713", "0.7437158", "0.71866065", "0.7158445", "0.7062131", "0.70154065", "0.6989921...
0.8942944
1
!wca! deselect: (item: ): void Deselects the given item if it is already selected. item: Item from items array to deselect
public void deselect(T item) { getElement().deselect(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deselect();", "@Override\n public void deselectGolem() {\n }", "@Override\n\tpublic void unselect() {\n\t}", "public void itemRemoved(boolean wasSelected);", "@Override\n protected void processUnselect() {\n \n }", "public void removeSelectedItem() {\r\n\t\tint i = getSelec...
[ "0.7920401", "0.74625194", "0.7386166", "0.7060158", "0.69503504", "0.6892714", "0.6834465", "0.68059725", "0.6723237", "0.66262525", "0.66198915", "0.65795374", "0.6576304", "0.6551363", "0.6480054", "0.6472026", "0.64433163", "0.6443105", "0.64084834", "0.6403949", "0.63870...
0.823629
0
!wca! deselectIndex: (idx: number): void Deselects the given index if it is already selected. idx: Index from items array to deselect
public void deselectIndex(int idx) { getElement().deselectIndex(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deselect();", "@Override\n\tpublic void unselect() {\n\t}", "public void unselect() {\n for (int i = 0; i < series.size(); i++) {\n series.setItemSliced(i, false, false, true);\n }\n }", "@Override\n public void deselectGolem() {\n }", "public static void deselectByIndex(WebEl...
[ "0.7389681", "0.6954614", "0.6912116", "0.6747784", "0.67422366", "0.6684513", "0.6632847", "0.6618692", "0.66065645", "0.65460193", "0.6475097", "0.6467418", "0.6449377", "0.6429477", "0.6378446", "0.6369986", "0.6270546", "0.6269442", "0.62613434", "0.62492794", "0.62360436...
0.7821436
0
!wca! isIndexSelected: (idx: number): boolean Returns whether the item is currently selected. idx: Index from items array to test
public boolean isIndexSelected(int idx) { return getElement().isIndexSelected(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isIndexSelected(int i);", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }", "protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t...
[ "0.8392749", "0.7505204", "0.74934304", "0.7404232", "0.7011718", "0.6927509", "0.6804478", "0.67844427", "0.67844427", "0.67844427", "0.6689765", "0.6604094", "0.6562887", "0.6562887", "0.6562887", "0.6537653", "0.6537653", "0.6514749", "0.6514749", "0.6514749", "0.6475863",...
0.7923432
1
!wca! isSelected: (item: ): boolean Returns whether the item is currently selected. item: Item from items array to test
public boolean isSelected(T item) { return getElement().isSelected(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemSelected(boolean selected);", "public boolean isSelected();", "public boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public abstract boolean isSelected();", "public boolean isSelected() { return selected; }", "protected boolean is...
[ "0.7602412", "0.75980425", "0.75980425", "0.7530632", "0.7530632", "0.7530632", "0.75012857", "0.7407305", "0.7386781", "0.7322228", "0.7292284", "0.72787666", "0.7250575", "0.72490025", "0.7248394", "0.72324246", "0.71565264", "0.71300125", "0.7044234", "0.7038578", "0.70385...
0.8232038
0
!wca! select: (item: ): void Selects the given item. When toggle is true, this will automatically deselect the item if already selected. item: Item from items array to select
public void select(T item) { getElement().select(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemSelected(boolean selected);", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",...
[ "0.72950274", "0.6761945", "0.6656316", "0.65800995", "0.64716476", "0.6343983", "0.63208914", "0.6293236", "0.628162", "0.6273126", "0.62367076", "0.62315", "0.6183099", "0.6175054", "0.6173709", "0.61555564", "0.6092237", "0.6075937", "0.6069914", "0.6028577", "0.6025407", ...
0.71828103
1
!wca! selectIndex: (idx: number): void Selects the given index. When toggle is true, this will automatically deselect the item if already selected. idx: Index from items array to select
public void selectIndex(int idx) { getElement().selectIndex(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "private void toggleSelect...
[ "0.69756997", "0.6879376", "0.68008083", "0.67447937", "0.669706", "0.66241634", "0.65807015", "0.6550332", "0.6546669", "0.6380103", "0.6365721", "0.6342609", "0.6316803", "0.623077", "0.62036", "0.61582786", "0.6149867", "0.6071502", "0.6064767", "0.6060271", "0.6059558", ...
0.6663837
5
!wca! get items: array An array containing items from which selection will be made.
public List<T> getItems() { return SerDes.unmirrorList(getElement().getItems(), getItemClass()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getSelectedItems();", "void setSelectedItems(ValueType selectedItems);", "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.l...
[ "0.74553066", "0.7058574", "0.69116557", "0.66556156", "0.658762", "0.6392249", "0.63914025", "0.6354405", "0.6262647", "0.6229273", "0.60798204", "0.60422325", "0.6001516", "0.5991678", "0.59604496", "0.5959543", "0.5950309", "0.5947203", "0.5945427", "0.5923189", "0.5923028...
0.0
-1
!wca! set items: array An array containing items from which selection will be made.
public void setItems(List<T> value) { getElement().setItems(SerDes.mirror(value).cast()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSe...
[ "0.76569355", "0.7553615", "0.7477287", "0.6861262", "0.6634899", "0.66227335", "0.6575398", "0.65505886", "0.6437404", "0.63793087", "0.6349045", "0.6327865", "0.6320912", "0.62961906", "0.62714607", "0.61979383", "0.61793274", "0.6163591", "0.6115804", "0.6095271", "0.60649...
0.0
-1
!wca! observe items: array An array containing items from which selection will be made.
public ObservableValue<List<T>> items() { return createObservableValue(this::getItems, this::setItems, "items-changed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSe...
[ "0.675912", "0.6745083", "0.65776217", "0.65341437", "0.6473451", "0.6429388", "0.64237", "0.63952464", "0.6312031", "0.6300878", "0.622931", "0.6153297", "0.61422753", "0.6033968", "0.5962811", "0.5952446", "0.59357303", "0.5919112", "0.5902911", "0.58810693", "0.5877561", ...
0.0
-1
!wca! get multi: boolean When true, multiple items may be selected at once (in this case, selected is an array of currently selected items). When false, only one item may be selected at a time.
public boolean isMulti() { return getElement().isMulti(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public void setMultiSelection(...
[ "0.7813939", "0.76815987", "0.76800895", "0.750864", "0.74255615", "0.7309587", "0.72589254", "0.7204263", "0.6852939", "0.68446517", "0.671502", "0.6670554", "0.65769446", "0.6551505", "0.6499681", "0.6477105", "0.64644396", "0.64641804", "0.6458058", "0.64177", "0.6391446",...
0.66469324
12
!wca! set multi: boolean When true, multiple items may be selected at once (in this case, selected is an array of currently selected items). When false, only one item may be selected at a time.
public void setMulti(boolean value) { getElement().setMulti(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\...
[ "0.7958267", "0.76499", "0.7531192", "0.7509803", "0.7420452", "0.7325326", "0.7246534", "0.70948887", "0.6999635", "0.6632035", "0.66185266", "0.66049135", "0.66008896", "0.65843165", "0.6583947", "0.6541008", "0.64281046", "0.6404442", "0.6392198", "0.6392008", "0.6382972",...
0.6362154
24
!wca! observe multi: boolean !wca! get selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public List<T> getSelected() { Unknown selected = getElement().getSelected(); if (isMulti()) { return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass()); } else { return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public ObservableValue<List<T>> selected() {\n return createObservableValue(this::getSelected, this::setSelected, \"selected-changed\");\n }", "public boolean getSelected()\n {\n return sel...
[ "0.7198518", "0.7177191", "0.7096813", "0.70584846", "0.70584846", "0.7038395", "0.69028854", "0.689714", "0.6894502", "0.6802663", "0.67217666", "0.67084193", "0.6694772", "0.6693196", "0.6686739", "0.6676075", "0.6675681", "0.6674386", "0.6657638", "0.66538054", "0.6644902"...
0.7608434
0
!wca! set selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public void setSelected(List<T> value) { if (isMulti()) { getElement().setSelected(SerDes.mirror(value)); } else { getElement().setSelected(value.isEmpty()?null:SerDes.mirror(value.iterator().next())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass...
[ "0.7244206", "0.6961926", "0.6961926", "0.69183874", "0.6687182", "0.6601002", "0.659196", "0.65735203", "0.6568471", "0.65368193", "0.65264505", "0.6508784", "0.6490146", "0.644926", "0.6439064", "0.64360625", "0.64349335", "0.6389333", "0.63732606", "0.6358079", "0.6335221"...
0.0
-1
!wca! observe selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public ObservableValue<List<T>> selected() { return createObservableValue(this::getSelected, this::setSelected, "selected-changed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass...
[ "0.74296224", "0.70185065", "0.70185065", "0.6964771", "0.6853584", "0.6798854", "0.67217636", "0.67121804", "0.669234", "0.66713303", "0.66658145", "0.6578073", "0.6542002", "0.6519654", "0.65103894", "0.65013915", "0.6497259", "0.6491058", "0.6488631", "0.64872813", "0.6477...
0.7208626
1