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
Gets the attribute value for MODIFIED_DATE using the alias name ModifiedDate.
public Timestamp getModifiedDate() { return (Timestamp) getAttributeInternal(MODIFIEDDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public Date getSrcModifiedDate() {\r\...
[ "0.707603", "0.6880671", "0.684024", "0.6826179", "0.65779287", "0.65779287", "0.65779287", "0.6571109", "0.65295464", "0.647489", "0.647489", "0.647489", "0.6433518", "0.64311105", "0.6362099", "0.6361414", "0.6355892", "0.6326414", "0.6326414", "0.6322687", "0.6322269", "...
0.7054846
1
Sets value as attribute value for MODIFIED_DATE using the alias name ModifiedDate.
public void setModifiedDate(Timestamp value) { setAttributeInternal(MODIFIEDDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setMODIFIED_DATE(...
[ "0.778343", "0.763917", "0.763917", "0.76324016", "0.7534486", "0.7534486", "0.7534486", "0.7495694", "0.74019384", "0.72093755", "0.72093755", "0.7119853", "0.7119853", "0.7119853", "0.70829034", "0.70829034", "0.70286804", "0.7024258", "0.70005333", "0.69531476", "0.6876240...
0.7359474
9
Gets the attribute value for NOTI_DESCRIPTION_LOCALISED using the alias name NotiDescriptionLocalised.
public String getNotiDescriptionLocalised() { return (String) getAttributeInternal(NOTIDESCRIPTIONLOCALISED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNotiDescriptionLocalised(String value) {\r\n setAttributeInternal(NOTIDESCRIPTIONLOCALISED, value);\r\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public java.lang.String getDescription() {\n return localDescription;\n }", "p...
[ "0.6730468", "0.5975574", "0.5956282", "0.5843688", "0.579844", "0.57702756", "0.56223994", "0.5493639", "0.54824364", "0.5452037", "0.5399511", "0.5380712", "0.5380712", "0.536522", "0.5355149", "0.53475434", "0.5341805", "0.5287741", "0.5272493", "0.5255768", "0.5181596", ...
0.78898513
0
Sets value as attribute value for NOTI_DESCRIPTION_LOCALISED using the alias name NotiDescriptionLocalised.
public void setNotiDescriptionLocalised(String value) { setAttributeInternal(NOTIDESCRIPTIONLOCALISED, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNotiDescriptionLocalised() {\r\n return (String) getAttributeInternal(NOTIDESCRIPTIONLOCALISED);\r\n }", "public void setNotiDescription(String value) {\r\n setAttributeInternal(NOTIDESCRIPTION, value);\r\n }", "public void setNewValues_description(java.lang.String param){\...
[ "0.6807748", "0.6238011", "0.5767937", "0.57020473", "0.5645847", "0.5638269", "0.5635889", "0.5519141", "0.5485098", "0.54599017", "0.5451346", "0.5451233", "0.5451233", "0.5426756", "0.5401514", "0.5378192", "0.5368828", "0.5343938", "0.53401995", "0.53396297", "0.53036815"...
0.82122076
0
Gets the attribute value for the calculated attribute readFlag.
public Boolean getreadFlag() { if(this.getShowFlag()!=null && this.getShowFlag().trim().equalsIgnoreCase("NO")){ return true; } else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getValue( String readMode ) {\n if ( readMode.trim().equalsIgnoreCase( SINGLE_READ ) ) {\n return -1;\n } else if ( readMode.trim().equalsIgnoreCase( MULTIPLE_READ ) ) {\n return -1;\n } else if ( readMode.trim().equalsIgnoreCase( XML_READ_CLASS ) ) {\n ...
[ "0.6961402", "0.6478052", "0.6282821", "0.6220891", "0.62011564", "0.6159225", "0.61443466", "0.6141862", "0.60341775", "0.59923214", "0.5983742", "0.59447694", "0.592215", "0.58717155", "0.5867585", "0.5840144", "0.58255804", "0.5820264", "0.5811005", "0.5795335", "0.5776717...
0.5865456
15
Sets value as the attribute value for the calculated attribute readFlag.
public void setreadFlag(Boolean value) { setAttributeInternal(READFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setRead(boolean value) {\n bitField0_ |= 0x00000008;\n read_ = value;\n onChanged();\n return this;\n }", "public Builder setForRead(boolean value) {\n bitField0_ |= 0x00000002;\n forRead_ = value;\n onChanged();\n return this;\n }"...
[ "0.6592029", "0.63829464", "0.62021774", "0.61944497", "0.6142984", "0.6142984", "0.6099267", "0.5987795", "0.5900639", "0.5864505", "0.5687386", "0.56858706", "0.5661125", "0.5606195", "0.55916786", "0.55667764", "0.55595815", "0.55242217", "0.54180765", "0.53861684", "0.537...
0.72563744
0
Gets the attribute value for the calculated attribute encodedCard.
public String getencodedCard() { String cardDesc=""; String partnerId=""; String cardId=""; if(session!=null) { if (session.getAttribute("Partner_Object_List") != null) { partnerInfoList = (List<PartnerInfo>)session.getAttribute("Partner_Object_List"); if(getPartner()!=null && !getPartner().equals("") && getCardPk() != null && !getCardPk().equals("")){ partnerId=getPartner(); cardId=getCardPk().toString().trim(); if (partnerInfoList != null) { for (int k = 0; k < partnerInfoList.size(); k++) { if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) { for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) { for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) { for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) { if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) { if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null) { cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString(); } } } } } } } } } } } return cardDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCardValue() {\n return Cvalue;\n }", "public ByteArrayAttribute getValue() {\n return value;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute_value() {\n return...
[ "0.65577173", "0.6493705", "0.64225596", "0.6355024", "0.6222861", "0.6216226", "0.61846006", "0.5968299", "0.5963205", "0.5935431", "0.5858787", "0.5851194", "0.5834533", "0.5828973", "0.58284146", "0.58186895", "0.5807955", "0.57833946", "0.5782885", "0.5757456", "0.5753453...
0.0
-1
Sets value as the attribute value for the calculated attribute encodedCard.
public void setencodedCard(String value) { setAttributeInternal(ENCODEDCARD, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCardValue(String value) {\n this.Cvalue = value;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespac...
[ "0.66315943", "0.60150963", "0.6003675", "0.59295017", "0.5880699", "0.5877666", "0.58711416", "0.5841375", "0.579954", "0.5791941", "0.5787591", "0.5744039", "0.5715202", "0.5713778", "0.5689531", "0.56826746", "0.56643075", "0.56638664", "0.5661254", "0.5658284", "0.564149"...
0.7119387
0
getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this); } return super.getAttrInvokeAccessor(index, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBU...
[ "0.7235902", "0.7182274", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.70843697", "0.70843697", "0.70843697", "0.70843697", "0.70244336"...
0.7068792
21
setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value); return; } super.setAttrInvokeAccessor(index, value, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNum...
[ "0.7710428", "0.76365644", "0.76225364", "0.76210123", "0.75809234", "0.75327307", "0.7520607", "0.7518691", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145"...
0.7518835
8
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.trustiphi.tpm2verification.platformcertparse
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception...
[ "0.6137277", "0.6111824", "0.6093608", "0.60048616", "0.5978538", "0.5955376", "0.5912494", "0.58772457", "0.584519", "0.5840055", "0.5840055", "0.5840055", "0.57863766", "0.57802874", "0.57758236", "0.57578325", "0.5752487", "0.5744744", "0.57440984", "0.5728312", "0.5684479...
0.0
-1
/ fab.animate().scaleX(0f).scaleY(0f); fab_contacts.animate().scaleX(0f).scaleY(0f); fab_heartbeat.animate().scaleX(0f).scaleY(0f);
@Override public void onClick(View v) { animateFAB(); Intent intent=new Intent(getApplicationContext(),Emergency_SMS.class) .putExtra("activityFROM","main2"); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scaleFab() {\n fabAdd.animate().alpha(0.0f);\n fabAdd.animate().translationYBy(80f);\n fabAdd.setClickable(false);\n\n textFabAdd.animate().alpha(0.0f);\n textFabAdd.animate().translationYBy(80f);\n\n fabDelete.animate().alpha(0.0f);\n fabDelete.animate...
[ "0.80835116", "0.7581445", "0.73080707", "0.7255903", "0.70888114", "0.68736875", "0.6477074", "0.64158136", "0.6399958", "0.6323233", "0.63191026", "0.62751585", "0.6267274", "0.6255209", "0.6240384", "0.62288517", "0.61929595", "0.6186734", "0.61770207", "0.61254144", "0.61...
0.0
-1
It is used to add a product item into excel.
@Override public String addItem(Product pro, String filePath) { return productDetailsRepository.addItem(pro, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addProduct(Product item)\n {\n stock.add(item);\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = ...
[ "0.6995885", "0.6939574", "0.6937986", "0.69344014", "0.68376243", "0.6767563", "0.66861236", "0.6644359", "0.6638575", "0.66375166", "0.6626132", "0.66248834", "0.66024476", "0.6570927", "0.65468", "0.6537211", "0.6409681", "0.63814926", "0.6371822", "0.63350886", "0.6333993...
0.6395041
17
It is used to remove a product item from excel.
@Override public String removeItem(String id, String filePath) { return productDetailsRepository.removeItem(id, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeProduct(int position) throws ProductNotFoundException;", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "void removeProduct(Product product);", "public void removeProduct(Product...
[ "0.7267626", "0.726567", "0.70453227", "0.6905147", "0.69007236", "0.68396217", "0.68166274", "0.68099445", "0.67260903", "0.6703708", "0.66864616", "0.6681054", "0.66488165", "0.6598632", "0.6531339", "0.64994866", "0.6477912", "0.6474368", "0.6450045", "0.64207184", "0.6409...
0.62182224
42
It is used to give all product details.
@Override public List<Product> getAllProducts(String filePath) { return productDetailsRepository.getAllProducts(filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products)...
[ "0.78257877", "0.7423373", "0.7375943", "0.730914", "0.71462154", "0.7038263", "0.7011479", "0.698709", "0.69805986", "0.69590896", "0.6946037", "0.6946037", "0.6914066", "0.68996185", "0.68978673", "0.6846709", "0.6829586", "0.6828908", "0.68185127", "0.678664", "0.67612666"...
0.0
-1
It is used to get the product details by Id.
@Override public Product getProductById(String productId, String filePath) { return productDetailsRepository.getProductById(productId, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = Constants.GET_PRODUCT_BY_ID, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> getProductDetails(@PathVariable (Constants.ID) Integer id) {\n try {\n ResponseWrapper result = productService.getProductDetails(id);\n ...
[ "0.8049145", "0.8014761", "0.8005772", "0.7893", "0.77783674", "0.7740512", "0.77383184", "0.77378476", "0.76804173", "0.7649796", "0.7631784", "0.7626065", "0.76255745", "0.75734544", "0.75734544", "0.75689685", "0.75249755", "0.7517151", "0.7467489", "0.74651706", "0.746352...
0.74183404
23
Tworzy nowy obiekt klasy SettingPresenter
public SettingPresenter(GameConstants gameConst, PlayerStatus player, ISettingController controller) { this.gameConstants = gameConst; this.player = player; this.controller = controller; SwingUtilities.invokeLater(new Runnable() { @Override public void run() { view = new ShipSettingPanel(SettingPresenter.this); view.initialize( SettingPresenter.this.gameConstants.getShipTypes(), SettingPresenter.this.gameConstants.getBoardSizeV(), SettingPresenter.this.gameConstants.getBoardSizeH()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n vo...
[ "0.669331", "0.66253775", "0.6459545", "0.6335578", "0.63065684", "0.6264001", "0.61636543", "0.6076379", "0.6058996", "0.6046286", "0.6043233", "0.6037377", "0.60138804", "0.5979883", "0.59474087", "0.59323937", "0.59273726", "0.5871242", "0.58690584", "0.5837072", "0.583628...
0.5976932
14
losowo ustawia statki na planszy
@Override public void resetBoard() { controller.resetGame(player); clearBoardView(); if (ready) controller.playerIsNotReady(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.ge...
[ "0.66982037", "0.6603085", "0.64753544", "0.6463799", "0.6316834", "0.62312585", "0.6013352", "0.60035133", "0.58320516", "0.57738227", "0.57441336", "0.57392323", "0.57281435", "0.57089496", "0.5702954", "0.56984836", "0.56744176", "0.56713516", "0.5665235", "0.56620544", "0...
0.0
-1
next hour or next day
private void nextDate() { Calendar calendar = Calendar.getInstance(); long hourMills = this.nextHourMills; int day; calendar.setTimeInMillis(this.nextHourMills); calendar.add(Calendar.HOUR_OF_DAY, 1); this.nextHourMills = calendar.getTimeInMillis(); day = calendar.get(Calendar.DATE); if (day != this.day) { // 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다. this.day = day; } else { // 바뀌지 않았으면 calendar.set(Calendar.HOUR_OF_DAY, 0); } try { File dir = new File(this.root, Long.toString(calendar.getTimeInMillis())); File file = new File(dir, Long.toString(hourMills)); this.data = JSONFile.getJSONObject(file); } catch (IOException e) { this.data = null; this.date.setTimeInMillis(this.nextHourMills); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyTime nextHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (hours!=23){\n\t\t\thour++;\n\t\t}\n\t\telse{\n\t\t\thour = 0;\n\t\t}\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "protected abstract void calcNextDate();", "private v...
[ "0.71705323", "0.65056515", "0.6254156", "0.6148408", "0.5990922", "0.593418", "0.5891423", "0.58449024", "0.5805227", "0.5766811", "0.5747301", "0.5721599", "0.5688898", "0.56504476", "0.56396997", "0.56211966", "0.5599634", "0.55789787", "0.5578339", "0.553927", "0.552538",...
0.629527
2
Sets the main app for the controller.
public void setMainApp(FXApplication fxapp) { app = fxapp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n }", "public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}", "public void setMainApp(MainApp mainApp);", "public void ...
[ "0.7867376", "0.782163", "0.7723465", "0.7718155", "0.76940846", "0.76940846", "0.76940846", "0.758678", "0.7563408", "0.74263066", "0.73092496", "0.7272556", "0.7257686", "0.70169985", "0.69110966", "0.6904806", "0.6733442", "0.6728229", "0.6713998", "0.67048746", "0.6660364...
0.6843309
16
Sets the stage of this dialog.
public void setDialogStage(Stage dialogStage) { _dialogStage = dialogStage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}", "public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }", "public void setStage(Stage stage) {\n this.stage = stage;\n }", "public void setStage(Stage stage) {\n this.stage = stage;\n }", "public ...
[ "0.75774777", "0.7509157", "0.74807495", "0.74807495", "0.7441088", "0.72132003", "0.6939371", "0.6865016", "0.68354553", "0.67804176", "0.67058396", "0.6640396", "0.66237754", "0.6545671", "0.64932525", "0.646926", "0.6405268", "0.63931686", "0.63909084", "0.6380902", "0.637...
0.6326845
30
Called when the user clicks the login button. Validates the login and displays main page if successful.
@FXML private void handleLoginAttempt() { if (isInputValid()) { String uname = userField.getText(); if (Model.doesUsernameExist(uname)) { User user = Model.verifyLogin(uname, pwField.getText()); if (user == null) { // uname exists but incorrect login user = UserInfoTable.getUserFromUserName(uname); _loginAuthenticated = false; user.setLockoutNum(user.getLockoutNum() + 1); Model.editUser(user); // increment incorrect login attempts, check if banned if (user.getLockoutNum() >= 3) { bannedAlert(); return; } } else { // uname exists and correct login // check if banned if (user.getLockoutNum() >= 3) { bannedAlert(); return; } user.setLockoutNum(0); Model.editUser(user); Model.setUser(user); _loginAuthenticated = true; app.showMainPage(); return; } } // Show the error message if bad data Alert alert = new Alert(Alert.AlertType.ERROR); alert.initOwner(_dialogStage); alert.setTitle("Please Correct Invalid Fields "); alert.setHeaderText("Incorrect password and/or username"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void login() {\n\t\trender();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t...
[ "0.74313676", "0.73104316", "0.72258633", "0.71920466", "0.7129617", "0.7122856", "0.70889264", "0.70856005", "0.6979919", "0.6945378", "0.6940506", "0.69371796", "0.6917343", "0.6900435", "0.68642354", "0.68631047", "0.68547446", "0.68494576", "0.6839018", "0.68332666", "0.6...
0.675211
27
Helper function to alert user that their account has been banned.
private void bannedAlert() { Alert alert = new Alert(Alert.AlertType.WARNING); alert.initOwner(_dialogStage); alert.setTitle("Account blocked"); alert.setHeaderText("Account blocked"); alert.setContentText("Your account has been blocked due" + " to too many incorrect login attempts. To " + "unblock your account, please contact an " + "administrator."); alert.showAndWait(); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void ban(String user) { sendMessage(\"/ban \" + user); }", "public abstract void banUser(String nickname, String reason);", "void ban(String user);", "public void checkBanStatus() {\n if(getBanned() != null && getBanned().after(getLast_join())) {\n Date today = new Date();\n ...
[ "0.70832455", "0.6990375", "0.6934938", "0.69156504", "0.676308", "0.640059", "0.62839586", "0.62398255", "0.61580515", "0.61038065", "0.5903379", "0.56682616", "0.56134564", "0.5599301", "0.5552614", "0.5464765", "0.5433375", "0.54326403", "0.54124695", "0.5409802", "0.54085...
0.78816867
0
Validates the user input in the text fields. If any are invalid, opens an alert box describing the invalid fields.
private boolean isInputValid() { String errorMessage = ""; //for now just check they actually typed something if ((userField.getText() == null) || userField.getText().isEmpty()) { errorMessage += "No username entered\n"; } if ((pwField.getText() == null) || pwField.getText().isEmpty()) { errorMessage += "No password entered\n"; } //no error message means success / good input if (errorMessage.isEmpty()) { return true; } else { // Show the error message if bad data Alert alert = new Alert(Alert.AlertType.ERROR); alert.initOwner(_dialogStage); alert.setTitle("Invalid Fields"); alert.setHeaderText("Please correct invalid fields"); alert.setContentText(errorMessage); alert.showAndWait(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\...
[ "0.7453682", "0.71437734", "0.69607526", "0.6938547", "0.6896535", "0.68188953", "0.6813673", "0.6792212", "0.67410684", "0.67043495", "0.66586137", "0.66346127", "0.6612948", "0.6601096", "0.65929466", "0.65879667", "0.65864843", "0.6553215", "0.6542545", "0.65013236", "0.64...
0.6767862
8
Called when the user clicks the register button. Displays the registration page.
@FXML private void handleRegistration() { app.showRegistrationPage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidR...
[ "0.82409036", "0.7909835", "0.76184964", "0.7462782", "0.7455885", "0.7278761", "0.7078401", "0.70414364", "0.70253325", "0.7024707", "0.6992092", "0.6905386", "0.68681234", "0.6861904", "0.6861046", "0.6839008", "0.682522", "0.6822589", "0.6820091", "0.6772317", "0.67588", ...
0.6999549
10
Returns an interface for randomly accessing the underlying orientation vectors.
public IOrientationImageRandomAccess getRandomAccess();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "public abstract double getOrientation();", ...
[ "0.61000615", "0.60938805", "0.60388327", "0.5870709", "0.57940096", "0.56992954", "0.56735957", "0.56536734", "0.5631332", "0.5608031", "0.5589252", "0.5524211", "0.5490602", "0.5456387", "0.5431462", "0.54313767", "0.5423302", "0.54117066", "0.53971237", "0.5396145", "0.534...
0.56301415
9
We want the parent to handle all touch events. There's a lot going on there, and there is no reason to overwrite that functionality. If we do, bad things will happen.
@Override public boolean onTouchEvent(MotionEvent e) { final boolean ret = super.onTouchEvent(e); int action = e.getActionMasked(); if (action == MotionEvent.ACTION_UP) { if (!mWasFlingCalledForGesture) { ((CarLayoutManager) getLayoutManager()).settleScrollForFling(this, 0); } mWasFlingCalledForGesture = false; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void touch()\n {\n\n }", "@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\r\n }", "@Override\r\n\tpublic boolean dispatchTouchEvent( MotionEvent e ) {\n\t\tint action = e.getAction();\r\n\t\tfloat x = e.getRawX();\r\n\t...
[ "0.75378555", "0.7413738", "0.738011", "0.7357488", "0.729136", "0.7260573", "0.71922266", "0.7189694", "0.7078167", "0.7065379", "0.70419693", "0.70347494", "0.701672", "0.70130974", "0.70009977", "0.69531393", "0.69520736", "0.69520736", "0.6951235", "0.69494647", "0.692752...
0.6183708
89
TODO Autogenerated method stub
private static void oddEven(int a) { if(a%2 ==0) { System.out.println("number is even"); } else { System.out.println("number is odd"); } }
{ "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
REMOVED Unused Var KReference s0_ref;
public JJITInstruction run(KFrame frame) throws Exception { KRegister[] regs = null; KLocalThread thread = frame.getThread(); KReference ref; // **REMOVED Unused Var** KFrame nextFrame = null; // *********[14] LDC(59->"char") // **REMOVED Substitution** s0_ref = R59; // *********[15] INVOKEVIRTUAL(jnt.Bench.Bench,parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V) regs = new KRegister[4]; regs[3] = R59; regs[2] = frame.pop(); regs[1] = frame.pop(); ref = frame.popRef(); regs[0] = ref; frame.setProgramCounter(11); // **REMOVED Substitution** nextFrame = thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature("parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V"),regs); return ((JJITInstruction)thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature("parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V"),regs).getCurrentInstruction()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ref() {\n\n\t}", "private void checkReference()\r\n {\r\n if (myKeyRef.get() == null)\r\n {\r\n myValue = null;\r\n }\r\n }", "public void softReference()\n {\n \t //====NOTE=====>>> RSN how SoftReference is created\n SoftReference<Ref...
[ "0.65108436", "0.6419445", "0.6210244", "0.61460865", "0.61125726", "0.6010901", "0.59129256", "0.5832765", "0.57659376", "0.57524246", "0.572385", "0.56646", "0.56609994", "0.56392014", "0.5632371", "0.55959314", "0.5574714", "0.55726016", "0.5559134", "0.5497672", "0.549767...
0.0
-1
nome do bem a ser leiloado contrutor
public Leilao (String n, double v) { nome= n; valorMinimo=v; leilaoAberto=true; lanceVencedor= new Lance ("inical",valorMinimo); lancesRecebidos = new ArrayList <Lance>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Banco(String nome) { // essa linha é uma assinatura do metodo\n \tthis.nome = nome;\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public bebedor(String nombre)\n {\n // initialise instance variables\n ...
[ "0.66749", "0.6560293", "0.6555446", "0.6550012", "0.6549288", "0.6509624", "0.6432754", "0.642816", "0.642816", "0.641696", "0.6416531", "0.6402258", "0.6398971", "0.6398971", "0.6398971", "0.6373344", "0.6360623", "0.63162255", "0.6311027", "0.6292786", "0.6257365", "0.62...
0.0
-1
Implementation note: existing loaders will send only one temp index at a time, i.e. recordCount==1. So there is no reason to implement batched message send.
private void processMetadataFromLoader() { int recordCount = mdi.readInt(); long currentTime = System.currentTimeMillis(); synchronized (entities) { clearOldTempIndexes(currentTime); for (int i = 0; i < recordCount; i++) { int tempIndex = mdi.readInt(); assert DirectProtocol.isValidTempIndex(tempIndex); String symbol = mdi.readCharSequence().toString().intern(); ConstantIdentityKey key; int entityIndex = entities.get(symbol, NOT_FOUND_VALUE); if (entityIndex == NOT_FOUND_VALUE) { entityIndex = entities.size(); key = new ConstantIdentityKey(symbol); entities.put(key, entityIndex); } else { key = entities.getKeyObject(symbol); } // Note: key is guarantied to be same object as in "entities" field tempIndexes.put(tempIndex, key); sendMetadata(symbol, entityIndex); } if (recordCount > 0) { lastTempIndexAdded = currentTime; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstant...
[ "0.6227037", "0.61616373", "0.6147652", "0.5938534", "0.58981246", "0.58790255", "0.5797131", "0.5734052", "0.57291836", "0.5724295", "0.57238114", "0.57165647", "0.5715648", "0.56744766", "0.56629306", "0.56389725", "0.5621014", "0.5620513", "0.5620017", "0.56179285", "0.559...
0.0
-1
This Runnable should be executed whenever there are new data in any of Loader's streams OR Loader was disconnected.
public Runnable getLoaderDataAvailabilityCallback() { return loaderDataAvailabilityCallback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n DownloadListener.getListener().execute();\n }", "@Override\n public void run() {\n load_remote_data();\n }", "@Override...
[ "0.6122929", "0.61196387", "0.60814995", "0.605103", "0.60365516", "0.59219754", "0.59200495", "0.59115845", "0.5903179", "0.5878745", "0.5877893", "0.5856911", "0.5855808", "0.58169657", "0.58069026", "0.57712", "0.57455295", "0.57448393", "0.57396644", "0.57262546", "0.5688...
0.600437
5
TODO: Check for existing method
static private int makeInt(int b3, int b2, int b1, int b0) { return (((b3 ) << 24) | ((b2 & 0xff) << 16) | ((b1 & 0xff) << 8) | ((b0 & 0xff) )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void function()\n ...
[ "0.60573375", "0.58298427", "0.5813259", "0.5796844", "0.57585406", "0.5736371", "0.5736371", "0.5732778", "0.572475", "0.5722406", "0.5691224", "0.5688619", "0.56538856", "0.55916953", "0.55868167", "0.55677867", "0.5565157", "0.5539215", "0.5534101", "0.5521264", "0.5492691...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. //GENBEGIN:initComponents
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jLabel3 = new javax.swing.JLabel(); jScrollPane3 = new javax.swing.JScrollPane(); jList3 = new javax.swing.JList(); jLabel4 = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jLabel8 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jScrollPane5 = new javax.swing.JScrollPane(); jList4 = new javax.swing.JList(); jLabel9 = new javax.swing.JLabel(); jScrollPane6 = new javax.swing.JScrollPane(); jList5 = new javax.swing.JList(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jScrollPane7 = new javax.swing.JScrollPane(); jList6 = new javax.swing.JList(); jList1.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane1.setViewportView(jList1); org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel1.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel2.text")); // NOI18N jList2.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane2.setViewportView(jList2); org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel3.text")); // NOI18N jList3.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane3.setViewportView(jList3); org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel4.text")); // NOI18N jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane4.setViewportView(jTextArea1); org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel5.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel6.text")); // NOI18N jTextField1.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField1.text")); // NOI18N jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel7.text")); // NOI18N jTextField2.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField2.text")); // NOI18N jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jButton1.text")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel8.text")); // NOI18N jTextField3.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField3.text")); // NOI18N jList4.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane5.setViewportView(jList4); org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel9.text")); // NOI18N jList5.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane6.setViewportView(jList5); org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel10.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel11, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel11.text")); // NOI18N jList6.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane7.setViewportView(jList6); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(46, 46, 46) .addComponent(jButton1) .addGap(484, 484, 484)) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane7) .addComponent(jScrollPane6) .addComponent(jScrollPane1) .addComponent(jScrollPane5) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11) .addComponent(jLabel10) .addComponent(jLabel9) .addComponent(jLabel1)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(449, 449, 449) .addComponent(jLabel6) .addGap(461, 461, 461)) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2) .addComponent(jScrollPane3) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel2)) .addGap(0, 0, Short.MAX_VALUE)))) ); layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jScrollPane4, jTextField1, jTextField2, jTextField3}); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35) .addComponent(jLabel6))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(97, 97, 97) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(64, 64, 64) .addComponent(jButton1)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)))) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(80, 80, 80) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(17, 17, 17)) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public GUIForm() { \...
[ "0.73920023", "0.73920023", "0.73920023", "0.73510396", "0.73314756", "0.732944", "0.7294636", "0.7265476", "0.72254306", "0.7214786", "0.7159011", "0.71552724", "0.7150036", "0.71403766", "0.71359104", "0.7133543", "0.71213406", "0.7119852", "0.71139586", "0.71109456", "0.70...
0.0
-1
End of variables declaration//GENEND:variables
@Override public void componentOpened() { // TODO add custom code on component opening }
{ "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
TODO add custom code on component closing
@Override public void componentClosed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void componentClosed() {\n }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Overrid...
[ "0.8031007", "0.72945017", "0.70179003", "0.70179003", "0.70179003", "0.70179003", "0.69580287", "0.69517297", "0.69447047", "0.6875769", "0.68651736", "0.6819023", "0.6819023", "0.6819023", "0.6819023", "0.68130755", "0.6802385", "0.6802385", "0.678444", "0.67737895", "0.675...
0.80696976
4
better to version settings since initial version as advocated at
void writeProperties(java.util.Properties p) { p.setProperty("version", "1.0"); // TODO store your settings }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public int getVersion() {\n return 3;\n }", "public int getVersion() { return 1; }", "@Override\n\tpublic void initSetting...
[ "0.6748733", "0.59921473", "0.58917177", "0.58804727", "0.5873192", "0.5756656", "0.57468534", "0.5727233", "0.5687406", "0.5672329", "0.5662397", "0.5622477", "0.5601024", "0.5596534", "0.5580043", "0.5531845", "0.5531721", "0.54886895", "0.5478813", "0.5457113", "0.54462874...
0.5370604
38
This implementation does nothing.
@Override public QuadHolder setValues(final Map<Var, Node> values) { this.values = values; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void doNothing(){\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6907649", "0.6809169", "0.67952675", "0.67686206", "0.6706031", "0.6615614", "0.65518904", "0.65490687", "0.65441525", "0.65441525", "0.6523766", "0.65207225", "0.6485074", "0.6483138", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "...
0.0
-1
Scheduler For owner Conscent
@Override @Scheduled(cron = "0 0 0 * * ?") public void changeOwnerConsent() throws UnauthorizedException { ActivitiResponseModel<List<RtaTaskInfo>> activeInstances = activitiService .getActiveInstances(taskOwnerConscent); List<RtaTaskInfo> tasks = activeInstances.getActiveTasks(); List<String> exectionIds = new ArrayList<String>(); for (RtaTaskInfo task : tasks) { exectionIds.add(task.getProcessInstanceId()); } RegistrationServiceResponseModel<TokenModel> loginResponse = registrationService.loginIfRequired(getUsername(), getPassword()); HttpHeaders headers = new HttpHeaders(); HttpEntity<OwnerConscent> httpEntity = null; headers.setContentType(MediaType.APPLICATION_JSON); headers.add("Authorization", loginResponse.getResponseBody().getToken()); OwnerConscent consent = null; Map<String, String> appList = applicationService.getApplicationFromExecId(exectionIds); if (!appList.isEmpty()) { for (Map.Entry<String, String> entry : appList.entrySet()) { consent = new OwnerConscent(); consent.setOwnerConscent(false); consent.setOwnerComment(OWNER_NO_RESPONSE); httpEntity = new HttpEntity<OwnerConscent>(consent, headers); ResponseEntity<FreshRcModel> response = restTemplate.exchange( getRootURL().append("/application/updateownerconsent/").append(entry.getValue()).toString(), HttpMethod.POST, httpEntity, FreshRcModel.class); String instanceId = entry.getKey(); if (response.getStatusCode() == HttpStatus.OK) { Assignee assignee = new Assignee(); assignee.setUserId(CitizenConstants.CITIZEN_USERID); Map<String, Object> variables = new HashMap<String, Object>(); if (response.getBody().getOwnerConsent()) { variables.put(taskOwnerConscent, Status.APPROVED); } else { variables.put(taskOwnerConscent, Status.REJECTED); } activitiService.completeTask(assignee, taskOwnerConscent, instanceId, true, variables); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), Ra...
[ "0.6767479", "0.6500357", "0.64036477", "0.638021", "0.6300652", "0.62943375", "0.62599796", "0.62147367", "0.6153785", "0.60852313", "0.60736585", "0.6038793", "0.59620595", "0.59562254", "0.59537315", "0.59529334", "0.59310764", "0.5922181", "0.59166205", "0.5911155", "0.59...
0.5652178
54
create an instance of sortedset
public static void main(String[] args) { SortedSet<String> ts = new TreeSet<String>(); // Adding elements into the TreeSet // using add() ts.add("Sravan"); ts.add("Ojaswi"); ts.add("Bobby"); ts.add("Rohith"); ts.add("Gnanesh"); ts.add("Devi2"); // Adding the duplicate // element ts.add("Sravan"); // Displaying the TreeSet System.out.println(ts); // Removing items from TreeSet // using remove() ts.remove("Ojaswi"); // Iterating over Tree set items System.out.println("Iterating over set:"); Iterator<String> i = ts.iterator(); while (i.hasNext()) System.out.println(i.next()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SortedSet() {\n\n }", "public static <T extends Comparable> Set<T> CreateSortedSet() {\n return new TreeSet<>();\n }", "<T extends Comparable> SortedSet<T> sorted(Set<T> in) {\n return new TreeSet<>(in);\n }", "public static <T extends Comparable> Set<T> AsSortedSet(@NonNull T.....
[ "0.75503975", "0.7147497", "0.6860912", "0.6625606", "0.651644", "0.64692265", "0.6378598", "0.63118505", "0.6224034", "0.6136638", "0.6123576", "0.6080856", "0.60136086", "0.5996624", "0.5967858", "0.595499", "0.59376884", "0.5937113", "0.5903525", "0.5893018", "0.5883263", ...
0.5500204
57
Main start the client from the command line.
public static void main(String[] args) throws Exception { CustomHeaderClient client = new CustomHeaderClient("localhost", 50051); try { /* Access a service running on the local machine on port 50051 */ String user = "world"; if (args.length > 0) { user = args[0]; /* Use the arg as the name to greet if provided */ } client.greet(user); } finally { client.shutdown(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n new ClientExternal(args).start();\n }", "public static void main(String[] args) {\n Client client = new Client();\n client.start();\n }", "public static void main(String[] args){\r\n\t\tnew Client();\r\n\t}", "public static void main(Strin...
[ "0.8125413", "0.8008812", "0.8008749", "0.79494804", "0.79293156", "0.79096025", "0.78883505", "0.7785017", "0.77527714", "0.76681656", "0.7516182", "0.7447336", "0.74370754", "0.74124336", "0.7386411", "0.7369066", "0.7279297", "0.724399", "0.7199531", "0.71844083", "0.71349...
0.0
-1
TODO: refactor data reader into util classes of jlindacore.io package
@Before public void setUp() throws Exception { logger.setLevel(Level.DEBUG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public abstract void readData(DataInput din) throws IOException;", "@Test\n void testRead() throws IOException, URISyntaxException {\n final Strin...
[ "0.63627356", "0.6359437", "0.63498694", "0.6268549", "0.6169143", "0.6098683", "0.6074173", "0.60612", "0.6050446", "0.6048035", "0.6014725", "0.6009941", "0.5947526", "0.5939974", "0.5939789", "0.5914916", "0.58873975", "0.5886212", "0.5865761", "0.58533245", "0.5850327", ...
0.0
-1
load Input Binary Data
@BeforeClass public static void setUpTestData() throws Exception { String unwFileName = "9192_6687.uint"; String hghtFileName = "heights.raw.ORIGINAL"; unwrappedPhase = castToDouble(512, 512, readFloatFile(512, 512, testDataDir + unwFileName)); heights = castToDouble(512, 512, readFloatFile(512, 512, testDataDir + hghtFileName)); File masterResFile = new File(testResDir + "9192.res"); File slaveResFile = new File(testResDir + "6687.res"); /** Construct metadata classes */ master = new SLCImage(); slave = new SLCImage(); master.parseResFile(masterResFile); slave.parseResFile(slaveResFile); masterOrbit = new Orbit(); masterOrbit.parseOrbit(masterResFile); masterOrbit.computeCoefficients(3); masterOrbit.computeCoefficients(ORBIT_DEGREE); slaveOrbit = new Orbit(); slaveOrbit.parseOrbit(slaveResFile); slaveOrbit.computeCoefficients(3); slaveOrbit.computeCoefficients(ORBIT_DEGREE); dataWindow = new Window(1, 26897, 1, 5167); tileWindow = new Window(15000, 15511, 3000, 3511); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void load(FileInputStream input) {\n\t\t\r\n\t}", "void loadNodeData(byte[] data) throws Exception;", "private void loadExpressionDataInBinaryFormat(String fileName, LoadLabels ll) throws IOException, ClassNotFoundException {\n this.fileName = fileName;\r\n File fileBinary = new File(fi...
[ "0.66478354", "0.6465541", "0.64491856", "0.63368446", "0.6181049", "0.6176214", "0.607263", "0.6044849", "0.60324466", "0.60324466", "0.60324466", "0.60324466", "0.6021887", "0.60140324", "0.5969334", "0.59557366", "0.59527266", "0.5925325", "0.5918995", "0.5914638", "0.5914...
0.0
-1
Making it as singleton to access the userInfo and session in other places
public static TwitterApplication getInstance() { return application; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "SessionManager get();", "public interface ISes...
[ "0.7180131", "0.65388584", "0.64306015", "0.63453734", "0.62269974", "0.62228215", "0.62228215", "0.61714476", "0.6138943", "0.61223745", "0.61038977", "0.6069935", "0.60657436", "0.606218", "0.606218", "0.6053052", "0.6040933", "0.602509", "0.602509", "0.59933245", "0.598967...
0.0
-1
Created by LGD on 2019/08/14.
public interface UserDao { List<User> selectUsers(); List<User> selectUserslistPage(Map<String,Object> map); User selectUserByName(Map<String,Object> map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n...
[ "0.57302386", "0.5695185", "0.54698515", "0.54570127", "0.5419008", "0.53743076", "0.5349697", "0.5349697", "0.53463453", "0.53452253", "0.5282926", "0.5263043", "0.52340496", "0.5233991", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.522027...
0.0
-1
/ Every subclass must to implement this magic method.
public abstract Object eval();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {...
[ "0.6833513", "0.66930574", "0.6673571", "0.65751165", "0.65100396", "0.6505202", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", ...
0.0
-1
Clear the choice selection.
public void clearChoiceSelect() { choiceSelect = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "void clearSelection();", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "public void...
[ "0.88620317", "0.7845655", "0.764469", "0.7594514", "0.7530107", "0.75209075", "0.74152434", "0.73318523", "0.7260807", "0.71938735", "0.7169397", "0.71429807", "0.7138146", "0.7137264", "0.7136168", "0.71130484", "0.7099428", "0.70966816", "0.7092649", "0.7041154", "0.703246...
0.88692325
0
Check if DTSMethod1 is current selection for choice.
public boolean ifDTSMethod1() { return choiceSelect == DTS_METHOD1_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "boolean applicable(...
[ "0.67182827", "0.6499104", "0.64751774", "0.6344835", "0.61538166", "0.6122073", "0.59887606", "0.595102", "0.5941999", "0.5884908", "0.58678997", "0.5773483", "0.56885546", "0.5630225", "0.5611544", "0.5586108", "0.55750334", "0.55708", "0.5527156", "0.55202174", "0.5455579"...
0.7910006
0
Check if DTSMethod236 is current selection for choice.
public boolean ifDTSMethod236() { return choiceSelect == DTS_METHOD236_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Sele...
[ "0.7095103", "0.7054127", "0.703974", "0.6236012", "0.61579835", "0.6045717", "0.5952492", "0.5874483", "0.58713496", "0.57674515", "0.5713185", "0.57123387", "0.5699262", "0.5626624", "0.5624726", "0.5602467", "0.55878186", "0.55471337", "0.554432", "0.55114853", "0.54911315...
0.7949679
0
Check if DTSMethod46 is current selection for choice.
public boolean ifDTSMethod46() { return choiceSelect == DTS_METHOD46_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Se...
[ "0.7570505", "0.7303171", "0.72695917", "0.64577335", "0.6185057", "0.6095977", "0.59864694", "0.5965979", "0.59209836", "0.5910037", "0.59068745", "0.5830403", "0.57694286", "0.5764161", "0.5736806", "0.57165736", "0.56742656", "0.5623018", "0.562053", "0.55999327", "0.55914...
0.7779857
0
Check if DTSMethod56 is current selection for choice.
public boolean ifDTSMethod56() { return choiceSelect == DTS_METHOD56_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Se...
[ "0.7572974", "0.73130107", "0.71896166", "0.61439353", "0.6086557", "0.5930736", "0.5926791", "0.5841875", "0.5824043", "0.5790095", "0.5735219", "0.5720455", "0.5684107", "0.5667196", "0.5656735", "0.5652286", "0.56347775", "0.5622156", "0.56056833", "0.5560165", "0.55142176...
0.78771824
0
Queries the size of the instruction in bytes. The size is the size of the instruction itself plus all operands.
public int getInstructionSize() { return instructionSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOperandSize(String operand, int type) {\n\t\tint size = -1;\n\t\tif (Op.matches(type, Op.SIZEQUALI)) {\n\t\t\tif (operand.equals(\"BYTE\")) {\n\t\t\t\tsize = 1;\n\t\t\t}\n\t\t\tif (operand.equals(\"WORD\")) {\n\t\t\t\tsize = 2;\n\t\t\t}\n\t\t\tif (operand.equals(\"DWORD\")) {\n\t\t\t\tsize = 4;\n\t\t...
[ "0.6808811", "0.6790219", "0.6722286", "0.6668761", "0.665329", "0.6507825", "0.64821947", "0.64632994", "0.6401137", "0.6344265", "0.6328329", "0.631582", "0.63151735", "0.6305254", "0.6240459", "0.62129146", "0.62076586", "0.62072456", "0.6203255", "0.6198841", "0.6191554",...
0.73437124
0
Helper method that dumps the result set of an arbitrary SQL query to the connector's logs.
private static void logQueryResults(OracleConnection connection, String query) throws SQLException { connection.query(query, rs -> { int columns = rs.getMetaData().getColumnCount(); List<String> columnNames = new ArrayList<>(); for (int index = 1; index <= columns; ++index) { columnNames.add(rs.getMetaData().getColumnName(index)); } LOGGER.debug("{}", columnNames); while (rs.next()) { List<Object> columnValues = new ArrayList<>(); for (int index = 1; index <= columns; ++index) { columnValues.add(rs.getObject(index)); } LOGGER.debug("{}", columnValues); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void recordQueryResultSet(String logLevel, Result result)\n {\n Recorder.SQLRecord(result, getRecordMetadata(), logLevel);\n }", "private void dumpResultMapping ()\r\n {\r\n for (Entry<Result, Set<Candidate>> entry : connection.getResultMap().\r\n entrySet()) {...
[ "0.63466305", "0.5953914", "0.593937", "0.57096905", "0.5658361", "0.5633387", "0.5531827", "0.54997075", "0.5497793", "0.54961497", "0.5458955", "0.54551727", "0.54253626", "0.5385952", "0.5361573", "0.5343325", "0.53368306", "0.53138083", "0.5276177", "0.5259403", "0.523884...
0.7161913
0
creating the sideUp variable, which is needed in the getSide later
Coin()//method to initialize the coin with a side {//opening code for the coin method toss();//statement of using the later toss method to initialize the coin }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSide()//method to retrive the value of the SideUp String\r\n {//opening code for getSide method\r\n return sideUp;//getting the value for sideUp\r\n }", "public String getSideUp()\n {\n return sideUp;\n }", "public String getSide2() { return side2; }", "public void setS...
[ "0.73898625", "0.7331069", "0.6450184", "0.62998366", "0.6283541", "0.62755257", "0.62652254", "0.6257683", "0.61443347", "0.6059017", "0.60471267", "0.598115", "0.59677684", "0.5953447", "0.5886718", "0.5865919", "0.58464104", "0.583307", "0.5797146", "0.5767063", "0.5741799...
0.0
-1
closing code for the coin method
public void toss()//method to flip a coin object {//opening code for the toss method Random coinflip = new Random();//creating a new object of the random class named coinflip int rng = coinflip.nextInt(2);//assigning an integer rng using the random, to get an int between of 0 or 1 if (rng == 0)//if statement saying if that rng integer comes out as 0 do the following {//opening code for if statement sideUp = "Heads";//if the integer is 0 assign the sideUp to the string Heads }//closing code for if statement else //if the integer comes up as anything that isn't 0 (which can only be 1) {//opening code for else statement sideUp = "Tails";//assigning the sideUp variable to a string called Tails }//closing code for else statement }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number o...
[ "0.67333156", "0.6591987", "0.65243393", "0.6516269", "0.6417576", "0.63232785", "0.6314708", "0.627256", "0.61959237", "0.618266", "0.61788416", "0.6175714", "0.6142251", "0.6049835", "0.6035178", "0.6031857", "0.59572786", "0.59511787", "0.59130466", "0.5912107", "0.591192"...
0.0
-1
closing code for the toss method
public String getSide()//method to retrive the value of the SideUp String {//opening code for getSide method return sideUp;//getting the value for sideUp }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() throws ToyPadException;", "public void close() {\t\t\n\t}", "public void closed() \r\n\t{\r\n\t\t\r\n\t}", "public void close() {\n\t\t\r\n\t}", "private void exit() {\n dispose();\r\n }", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Ex...
[ "0.68646127", "0.6758721", "0.6745568", "0.67291737", "0.67222595", "0.67061186", "0.6653205", "0.6592859", "0.65887505", "0.65887505", "0.6582548", "0.6582548", "0.6582548", "0.6573151", "0.6513736", "0.6507341", "0.65025693", "0.6488789", "0.648466", "0.6446145", "0.6438502...
0.0
-1
closing code for getSide method
public static void main(String[] args)//main method to actually use the previous methods {//opening main method code Coin coin = new Coin();//creating a new coin object of the Coin class System.out.println("The initial side of the coin is " + coin.getSide());//using the getSide method to tell user coins initial facing int heads = 0;//setting counter for how many times the coin flips heads int tails = 0;//setting counter for how many times the coin flips tails for(int i=1;i<21;i++)//creating a for loop to run 20 times, to simulate the coin flipping 20 times {//opening for loop code coin.toss();//using the toss method on our coin object if (coin.getSide()=="Heads")//if statemtn for if the coin toss brings up heads do the following {//opening code for if heads++;//adds 1 count to the heads int because it has come up heads System.out.println("Coin toss " + i + " came up as " + coin.getSide()); //tells user for this specific coin flip what the coin came up as }//closing code for if else//else statement if coin does not come up as heads {//opening code for else tails++;//adds 1 count to the tails int because it has come up tails System.out.println("Coin toss " + i + " came up as " + coin.getSide());//tells user for this specific coin flip what the coin came up as }//closing code for else }//closing for loop code System.out.println("The total amount of times the coin came up as heads was " + heads +//telling user how many total times each side came up " times.\nThe total amount of times the coin came up as tails was " + tails + " times.");//when the coin was flipped }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Side getSide();", "public double getSide()\n\t{\n\t\treturn this.side;\n\t}", "public String getSide() {\r\n return side;\r\n }", "com.cantor.drop.aggregator.model.CFTrade.Side getSide();", "public Side getSide() {\r\n\t\treturn side;\r\n\t}", "public String getSide() {\n\t\treturn side;\n\t}",...
[ "0.8039997", "0.7389987", "0.73558366", "0.73441595", "0.7337746", "0.71930546", "0.71501815", "0.708396", "0.70452946", "0.6955145", "0.6950965", "0.6917993", "0.67943347", "0.6694027", "0.6693043", "0.6688703", "0.6687474", "0.66532147", "0.66470253", "0.66437894", "0.65795...
0.0
-1
First decode with inJustDecodeBounds=true to check dimensions
public static Bitmap decodeSampledBitmap(String filePath, int reqWidth, int reqHeight) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(filePath, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; Bitmap scaled = BitmapFactory.decodeFile(filePath, options); return scaled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptio...
[ "0.6432617", "0.6136245", "0.51416576", "0.5101267", "0.5095376", "0.50884664", "0.5048905", "0.50201756", "0.50172", "0.49557889", "0.49417356", "0.49368507", "0.48979875", "0.4897402", "0.48968345", "0.48940542", "0.48910102", "0.4864934", "0.48616505", "0.48501822", "0.482...
0.0
-1
Raw height and width of image
public static int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) { inSampleSize *= 2; } } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().botto...
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946",...
0.0
-1
endregion region > shutdown
@Programmatic public void shutdown() { LOG.info("shutting down {}", this); cache.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown()\n {\n // todo\n }", "public void shutdown() {\n\t\t\n\t}", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "public void shutdown() {\n }", "public static void shutdown() {\n\t}", "public void shutdown();", "public void shutdown(...
[ "0.8781375", "0.8763621", "0.8749657", "0.87369096", "0.8728068", "0.86652046", "0.86652046", "0.86652046", "0.86652046", "0.8609913", "0.85722196", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495...
0.7298926
86
endregion region > invalidateCache
@Programmatic public void invalidateCache(final Class<?> cls) { if(!cache.isInitialized()) { // could be called by JRebel plugin, before we are up-and-running // just ignore. return; } final Class<?> substitutedType = classSubstitutor.getClass(cls); if(substitutedType.isAnonymousClass()) { // JRebel plugin might call us... just ignore 'em. return; } ObjectSpecification spec = loadSpecification(substitutedType, IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED); while(spec != null) { final Class<?> type = spec.getCorrespondingClass(); cache.remove(type.getName()); if(spec.containsDoOpFacet(ObjectSpecIdFacet.class)) { // umm. Some specs do not have an ObjectSpecIdFacet... recache(spec); } spec = spec.superclass(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invalidateCache() {\n\t}", "void invalidateCache();", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "protected void invalidateCache() {\r\n\tcurrentFilesFresh = false;\r\n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\...
[ "0.92025435", "0.8923454", "0.88937396", "0.80932355", "0.8062896", "0.7856773", "0.7856773", "0.78377944", "0.7832633", "0.778699", "0.7650707", "0.755137", "0.7518259", "0.7386018", "0.7320634", "0.7058884", "0.70465064", "0.7036931", "0.7014439", "0.6971084", "0.67722017",...
0.0
-1
Loads the specifications of the specified types except the one specified (to prevent an infinite loop).
@Programmatic public boolean loadSpecifications( final List<Class<?>> typesToLoad, final Class<?> typeToIgnore, final IntrospectionState upTo) { boolean anyLoadedAsNull = false; for (final Class<?> typeToLoad : typesToLoad) { if (typeToLoad != typeToIgnore) { final ObjectSpecification objectSpecification = internalLoadSpecification(typeToLoad, null, upTo); final boolean loadedAsNull = (objectSpecification == null); anyLoadedAsNull = loadedAsNull || anyLoadedAsNull; } } return anyLoadedAsNull; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;", "protected void setSpecializations(Set<AlfClass> specializations) \r\n\t{\tthis.specializations = specializations;\t}", "@Override\n\t\tprotected void loadSpecification(SpecificationContext context) {\n\t...
[ "0.57266635", "0.56904393", "0.55274785", "0.5502949", "0.53353465", "0.5290662", "0.51681954", "0.5160268", "0.5134033", "0.51265216", "0.5121809", "0.5086826", "0.50634813", "0.50464207", "0.49830005", "0.49816585", "0.4958642", "0.49444836", "0.48647973", "0.4862558", "0.4...
0.6669272
0
endregion region > allSpecifications Returns (a new list holding a copy of) all the loaded specifications. A new list is returned to avoid concurrent modification exceptions for if the caller then iterates over all the specifications and performs an activity that might give rise to new ObjectSpec's being discovered, eg performing metamodel validation.
@Programmatic public Collection<ObjectSpecification> allSpecifications() { return Lists.newArrayList(allCachedSpecifications()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebObjectSpecification[] getAllWebComponentSpecifications()\n\t{\n\t\treturn reader.getAllWebComponentSpecifications();\n\t}", "public Set<AlfClass> getSpecializations()\r\n\t{\treturn Collections.unmodifiableSet(this.specializations);\t}", "public java.util.List<ProductSpecificationMapping> findAll();"...
[ "0.64288604", "0.61189735", "0.596895", "0.5879992", "0.58578813", "0.57064253", "0.540476", "0.5362522", "0.5310882", "0.52503806", "0.5202291", "0.5148515", "0.5114784", "0.5105016", "0.50795937", "0.50792164", "0.50741994", "0.5065723", "0.50441587", "0.50400823", "0.50310...
0.83848196
0
endregion region > getServiceClasses, isServiceClass
@Programmatic public List<Class<?>> allServiceClasses() { List<Class<?>> serviceClasses = Lists .transform(this.servicesInjector.getRegisteredServices(), new Function<Object, Class<?>>(){ public Class<?> apply(Object o) { return o.getClass(); } }); // take a copy, to allow eg I18nFacetFactory to add in default implementations of missing services. return Collections.unmodifiableList(Lists.newArrayList(serviceClasses)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class getServiceClass() { return serviceClass; }", "ClassOfService getClassOfService();", "public Class getServiceClass()\n {\n return serviceClass;\n }", "public java.lang.String getServiceClass() {\n return serviceClass;\n }", "private void getServiceClasses(Class<?> serv...
[ "0.74964106", "0.7455864", "0.73583156", "0.696889", "0.66816175", "0.6570643", "0.65027255", "0.6434412", "0.6430886", "0.62930214", "0.624586", "0.6235703", "0.61639947", "0.61639947", "0.61639947", "0.61639947", "0.61639947", "0.6159094", "0.6149846", "0.6115359", "0.61153...
0.66054183
5
endregion region > loaded Whether this class has been loaded.
@Programmatic public boolean loaded(final Class<?> cls) { return loaded(cls.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLoaded() {\n\treturn loaded;\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "protected boolean isLoaded()\n {\n return m_fLoaded;\n }", "public boolean isLoaded(){return true;}", "public boolean isLoaded();", "public boolean isLoaded() {\n return loa...
[ "0.8180116", "0.817552", "0.8000884", "0.7927884", "0.79263103", "0.7916421", "0.79094005", "0.78419936", "0.7821635", "0.75931305", "0.75931305", "0.7560352", "0.7490122", "0.7424615", "0.7423829", "0.7359797", "0.73391086", "0.7337997", "0.7283942", "0.72684693", "0.7257483...
0.7166958
23
endregion region > lookupBySpecId
@Programmatic public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) { if(!cache.isInitialized()) { throw new IllegalStateException("Internal cache not yet initialized"); } final ObjectSpecification objectSpecification = cache.getByObjectType(objectSpecId); if(objectSpecification == null) { // fallback return loadSpecification(objectSpecId.asString(), IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED); } return objectSpecification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookup(String id) {\n return null;\n }", "public Part lookupPart(int partId) {\n for( Part part : allParts ) {\n if(part.getId() == partId) {\n return part;\n }\n }\n return null;\n }", "public Part lookupPart(int partId) {\n ...
[ "0.6504341", "0.6210124", "0.6160202", "0.59529865", "0.5894553", "0.5893515", "0.57377785", "0.5672964", "0.5589469", "0.55742866", "0.55661315", "0.5548098", "0.55424726", "0.55137277", "0.55064094", "0.55046076", "0.55021036", "0.5490127", "0.542422", "0.5413824", "0.53954...
0.6862247
0
legt eine neue Steuerrate fest
public Steuer(int owner, int rate, int faction) { this.owner = owner; this.rate = rate; this.faction = faction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n Syste...
[ "0.6722655", "0.67072386", "0.6655088", "0.65334517", "0.65075475", "0.6488783", "0.64497703", "0.62828296", "0.6261129", "0.6212622", "0.61951685", "0.6180119", "0.61783236", "0.61671716", "0.61668473", "0.6151114", "0.6150734", "0.6118314", "0.6114196", "0.6053211", "0.6045...
0.0
-1
diese Partei legt die Rate fest
public void setOwner(int owner) { this.owner = owner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRate();", "public float getRate(){\r\n return rate;\r\n }", "public void sendeRate(String spieler);", "double getTransRate();", "public void setRate(int rate) { this.rate = rate; }", "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "@Override\n\tpublic ...
[ "0.7872481", "0.74552584", "0.7290948", "0.7240544", "0.72045183", "0.7157025", "0.7129507", "0.71116877", "0.7103335", "0.7103335", "0.70614123", "0.7015791", "0.70103705", "0.70069295", "0.69440246", "0.6921845", "0.6892809", "0.6886404", "0.6845438", "0.6834227", "0.682668...
0.0
-1
diese Steuerrate wird verlangt
public void setRate(int rate) { this.rate = rate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void ausgabe() {\n\t\tthis.str...
[ "0.65773547", "0.643071", "0.63195425", "0.62658376", "0.6238157", "0.619573", "0.61437595", "0.61272633", "0.61216396", "0.61197835", "0.6064413", "0.60209376", "0.60072523", "0.59965545", "0.59753716", "0.5967154", "0.5952017", "0.5870272", "0.5854939", "0.58391976", "0.583...
0.0
-1
diese Partei hat zu zahlen
public void setFaction(int faction) { this.faction = faction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\...
[ "0.6295441", "0.61306876", "0.61154515", "0.61066264", "0.6065511", "0.6008014", "0.5937609", "0.5842109", "0.5796452", "0.5743078", "0.5635314", "0.5591271", "0.55878174", "0.5567765", "0.55594647", "0.5556371", "0.5487664", "0.54799026", "0.547891", "0.54543495", "0.5452689...
0.0
-1
Interface for the fitness function in a NEAT network.
public interface NeatFitness { public double calculate(Network network); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fitnessFunction()\n\t{\n\t\t\n\t}", "public abstract double getFitness(Genotype genotype);", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public abstr...
[ "0.7274804", "0.67863727", "0.67615193", "0.672967", "0.6713065", "0.65285367", "0.64820105", "0.6437834", "0.6374203", "0.6342447", "0.63234997", "0.63212323", "0.6310492", "0.6184136", "0.61707306", "0.61397374", "0.6095531", "0.6093976", "0.6079215", "0.6064957", "0.602550...
0.78101194
0
Retrieve chosen Entry Entry clickedEntry = (Entry) adapterView.getItemAtPosition(i); Give info to new view Intent intent = new Intent(MainActivity.this, DetailActivity.class); intent.putExtra("clickedEntry", clickedEntry); startActivity(intent);
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void OnItemClick(View view, int postion) {\n Intent intent = new Intent(MyPubishActivity.this, IndexDetailActivity.class);\n String entryId = String.valueOf(publishList.get(postion).getItem_id());\n intent.putExtra(\"entryId\", entryId);\n ...
[ "0.782486", "0.7602528", "0.7510523", "0.7497498", "0.7382407", "0.73726624", "0.7353442", "0.73507905", "0.73496073", "0.73437583", "0.73364484", "0.73364484", "0.7324034", "0.7317243", "0.7275368", "0.72539467", "0.7253855", "0.72504747", "0.71862507", "0.71696866", "0.7155...
0.0
-1
Retrieve chosen Entry Entry clickedEntry = (Entry) adapterView.getItemAtPosition(i);
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MediaPlayer.create(getActivity(), R.raw.click).start();\n\n RedditEntry redditEntry = (RedditEntr...
[ "0.68431705", "0.6572479", "0.64694977", "0.6395276", "0.6375057", "0.633946", "0.6314577", "0.6281828", "0.6270551", "0.62224215", "0.6179857", "0.6176003", "0.6169444", "0.61688405", "0.6131876", "0.6111027", "0.61061674", "0.608828", "0.6074576", "0.60642695", "0.6060355",...
0.599853
26
Go to the next activity
private void toInputActivity() { Intent intent = new Intent(this, InputActivity.class); this.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }", "protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}", "public void next() {\n String type = startIntent.getStringExtra(\"typ...
[ "0.8431823", "0.7653014", "0.7342462", "0.7228805", "0.71729964", "0.70856464", "0.7041969", "0.7035452", "0.7027443", "0.7015564", "0.69887644", "0.69630617", "0.6798769", "0.67845416", "0.6751534", "0.6741018", "0.6740032", "0.67226505", "0.67149395", "0.6700915", "0.661348...
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_commissioner, menu); menuItem=(MenuItem) menu.findItem(R.id.search); 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(); if (id == R.id.Profil) { Intent intent = new Intent(Commissioner.this,CommissionerProfil.class); startActivity(intent); } if (id == R.id.Payment) { Intent intent = new Intent(Commissioner.this,EnduserPayment.class); startActivity(intent); } if (id == R.id.accounts) { Intent intent = new Intent(Commissioner.this,AccountsIndex.class); startActivity(intent); } if (id==R.id.search){ // Toast.makeText(Commissioner.this,"Search Views",Toast.LENGTH_LONG).show(); int tabPos=getSupportActionBar().getSelectedTab().getPosition(); if (tabPos==1) edtSearch.setVisibility(View.VISIBLE); } if(id==R.id.balance){ progressDialog=new ProgressDialog(Commissioner.this); progressDialog.setMessage(getString(R.string.loaddata)); progressDialog.show(); String uid = synchronizer.getSession(); String url = synchronizer.getHost()+"/ajax/users.php"; //String url = "192.168.173.1:12/RUT/etracking/ajax/citizens.php"; String data = "cate=loadbyid&id=" + uid; RequestQueue queue = Volley.newRequestQueue(this); final JsonObjectRequest jsObjRequest = new JsonObjectRequest (Request.Method.GET, " http://" + url + "?" + data, null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { try{ progressDialog.dismiss(); final AlertDialog alertDialog=new AlertDialog.Builder(Commissioner.this).create(); alertDialog.setTitle(getString(R.string.accbalance)); alertDialog.setMessage(getString(R.string.accamount)+" "+response.getJSONArray("user").getJSONObject(0).getString("usr_amount")+" RWF"); alertDialog.setButton("Close", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { alertDialog.dismiss(); } }); alertDialog.show(); }catch (JSONException ex){ ex.printStackTrace(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { // TODO Auto-generated method stub progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); } }); queue.add(jsObjRequest); }else{ Toast.makeText(this,getString(R.string.offline),Toast.LENGTH_SHORT).show(); } if (id == R.id.action_lock) { Intent intent = new Intent(Commissioner.this,changepwd.class); startActivity(intent); } if(id==R.id.help){ startActivity(new Intent(Commissioner.this,Issues.class)); } if(id==R.id.logout){ synchronizer.logout(); finish(); } if (id==R.id.exit){ finish(); } 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.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459...
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
When the given tab is selected, switch to the corresponding page in the ViewPager.
@Override public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { mViewPager.setCurrentItem(tab.getPosition()); switch (tab.getPosition()){ case 0: setContentView(R.layout.queues); progressDialog=new ProgressDialog(Commissioner.this); progressDialog.setCancelable(false); autoType=(Spinner) findViewById(R.id.spnType); edtOwner=(EditText) findViewById(R.id.edtOwner); edtIdentification=(EditText) findViewById(R.id.edtIdentification); edtNid=(EditText) findViewById(R.id.edtNid); edtNiD=(EditText) findViewById(R.id.edtNiD); edtPhone=(EditText) findViewById(R.id.edtPhone); spnType=(Spinner) findViewById(R.id.spnType); btnRegQueue=(Button) findViewById(R.id.btnRegQueue); btnRegItem=(Button) findViewById(R.id.btnRegItem); readyRegistered=(TextView) findViewById(R.id.readyRegistered); yetRegistered=(TextView) findViewById(R.id.yetRegistered); readyContent=(LinearLayout) findViewById(R.id.readyContent); yetContent=(LinearLayout) findViewById(R.id.yetContent); readyRegistered.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { readyContent.setVisibility(View.VISIBLE); yetContent.setVisibility(View.GONE); } }); yetRegistered.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { readyContent.setVisibility(View.GONE); yetContent.setVisibility(View.VISIBLE); } }); btnRegQueue.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (synchronizer.checkConnectionState() == true) { if (edtOwner.getText().toString().trim().length() != 0 && edtNid.getText().toString().trim().length() != 0 || edtPhone.getText().toString().trim().length() != 0) { if (validator.nid(edtNid.getText().toString().trim())) { if (validator.phone(edtPhone.getText().toString().trim())) { final AlertDialog alert = new AlertDialog.Builder(Commissioner.this).create(); alert.setTitle(getString(R.string.mustpay)); alert.setMessage(getString(R.string.payacamount)); String url = synchronizer.getHost() + "/ajax/payments.php"; String data = "cate=registration"; RequestQueue queue = Volley.newRequestQueue(Commissioner.this); final JsonObjectRequest jsObjRequest = new JsonObjectRequest (Request.Method.GET, " http://" + url + "?" + data, null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { progressDialog.dismiss(); try { JSONObject payments = response.getJSONArray("payments").getJSONObject(0); JSONArray paymodes = response.getJSONArray("paymodes"); String msgData = getString(R.string.regamount) + payments.getString("pay_amount") + " RWF\n"; msgData += getString(R.string.paidonac) + "\n\n"; msgData += getString(R.string.acinfo) + "\n------------------------------------\n"; for (int i = 0; i < paymodes.length(); i++) { msgData += getString(R.string.actype) + paymodes.getJSONObject(i).getString("pmtd_name") + " \n"; msgData += getString(R.string.acname) + paymodes.getJSONObject(i).getString("pmtd_account_name") + " \n"; msgData += getString(R.string.acnbr) + paymodes.getJSONObject(i).getString("pmtd_account_number") + " \n\n"; } alert.setMessage(msgData); } catch (JSONException ex) { ex.printStackTrace(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { // TODO Auto-generated method stub progressDialog.dismiss(); error.printStackTrace(); Toast.makeText(Commissioner.this, getString(R.string.servernotconnect) + "->" + error.getMessage().toString(), Toast.LENGTH_LONG).show(); } }); queue.add(jsObjRequest); alert.setButton(DialogInterface.BUTTON_POSITIVE, "OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { addCitizens(); } }); alert.setButton(DialogInterface.BUTTON_NEGATIVE, "Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(Commissioner.this, "Operation Cancelled", Toast.LENGTH_SHORT).show(); dialog.dismiss(); } }); alert.show(); } else { Toast.makeText(Commissioner.this, getString(R.string.offline), Toast.LENGTH_SHORT).show(); } } } } } }); btnRegItem.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { addRegQueue(); } }); setTypeSpinner(); break; case 1: setContentView(R.layout.fragment_citizens); /* edtSearch=(EditText) findViewById(R.id.edtsearch); edtSearch.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { searchCitizens(); return true; } }); */ loadCitizens(); break; default: } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabS...
[ "0.80670947", "0.80645895", "0.7943302", "0.78497154", "0.7829055", "0.77918637", "0.7771067", "0.77596486", "0.7754267", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.7705085", "0.7685253", "0.7685253", "0.76...
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast.makeText(Commissioner.this, getString(R.string.servernotconnect) + "->" + error.getMessage().toString(), Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Fill Up Loaded Type to Spinner
public void setTypesView(JSONObject obj){ try { JSONArray arr = obj.getJSONArray("types"); String[] arrTypes=new String[arr.length()]; for(int i=0;i<arr.length();i++){ arrTypes[i]=arr.getJSONObject(i).getString("doctype"); } ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.select_dialog_item_material,arrTypes); autoType.setAdapter(arrayAdapter); }catch (JSONException ex){ ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSpinner() {\n // Chargement du spinner de la liste des widgets\n widgetAdapter = (WidgetAdapter) DomoUtils.createAdapter(context, VOCAL);\n spinnerWidgets.setAdapter(widgetAdapter);\n\n // Chargement du spinner Box\n BoxAdapter boxAdapter = (BoxAdapter) DomoUtil...
[ "0.7174788", "0.7110188", "0.69413555", "0.6888289", "0.6843952", "0.68083423", "0.6727435", "0.6656985", "0.6643979", "0.6633112", "0.6602589", "0.658011", "0.6551154", "0.6536413", "0.6510855", "0.6509829", "0.648635", "0.6472244", "0.63835335", "0.6382808", "0.6381081", ...
0.58524996
80
getItem is called to instantiate the fragment for the given page. Return a PlaceholderFragment (defined as a static inner class below).
@Override public Fragment getItem(int position) { return PlaceholderFragment.newInstance(position + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position);\n }", "@Override\n public Fragment getItem(int position) {\n return WebPageFragment.newInstance(position);\n }", "@NonNull\n\t\t@Override\n\t\tpu...
[ "0.72931826", "0.71674734", "0.71284634", "0.7076036", "0.6995453", "0.6978166", "0.69569373", "0.69329894", "0.6915904", "0.6794821", "0.67763954", "0.6727484", "0.67137283", "0.6680278", "0.66567665", "0.6612565", "0.6604856", "0.65769875", "0.6554182", "0.647986", "0.64752...
0.700654
13
Show 3 total pages.
@Override public int getCount() { return 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic int getCount() {\n\t\t\t// Show 3 total pages.\n\t\t\treturn 3;\n\t\t}", "@Override\n // This returns the number of pages we have within our view pager\n public int getCount() {\n return 3;\n }", "int getPagesAmount();", "long getAmountPage();", "int ge...
[ "0.7318532", "0.66357523", "0.65496594", "0.6074719", "0.6053452", "0.6024778", "0.59702045", "0.5968394", "0.59407145", "0.59407145", "0.59407145", "0.59407145", "0.5938616", "0.59303164", "0.5914587", "0.5895829", "0.5858472", "0.58557075", "0.58179796", "0.5745283", "0.573...
0.0
-1
Returns a new instance of this fragment for the given section number.
public static PlaceholderFragment newInstance(int sectionNumber) { PlaceholderFragment fragment = new PlaceholderFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MainFragment newInstance(int sectionNumber) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public s...
[ "0.7838247", "0.77156085", "0.7709555", "0.7696671", "0.7683662", "0.7610332", "0.75958824", "0.75668603", "0.7556759", "0.75511664", "0.7513243", "0.7513243", "0.749958", "0.749958", "0.7497363", "0.7477808", "0.74592596", "0.74592596", "0.74491405", "0.7446887", "0.73993045...
0.7568688
35
Subclasses must implement this to return any child content that must be placed in the packet extension
protected abstract String getEventChildXML();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object getContent();", "public WaypointCardBase<?> getContent() {\n return this.content.getValue();\n }", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\t...
[ "0.64689136", "0.6327032", "0.6317497", "0.61698246", "0.6071433", "0.59346193", "0.5837919", "0.58063084", "0.58063084", "0.58029556", "0.5709292", "0.5705112", "0.5690185", "0.56751966", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.563550...
0.5334786
85
Vector v = new Vector();
public static void main(String[] args) { packages.package1.Vector v = new packages.package1.Vector(); //List l = new List(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector() {\n construct();\n }", "public VOIVector() {\r\n super();\r\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "@Model\r\n\tpublic Vector() {\r\n\t\tthis(50,50);\r\n\...
[ "0.8023653", "0.7985514", "0.7781038", "0.7280475", "0.7153096", "0.7148653", "0.71210337", "0.69926584", "0.69921726", "0.6919418", "0.68908405", "0.6842469", "0.6808584", "0.6796263", "0.67712665", "0.67469597", "0.6745924", "0.67347944", "0.6674928", "0.66290146", "0.66202...
0.6493968
28
(nonJavadoc) Title: getMessage Description:
@Override public MessageDao getMessage() { return new BuyMessageImpl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage...
[ "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8363637", "0.8363637", "0.8363637", "0.8363637", "...
0.0
-1
add the value to the preorder string
public String addValToPreorder(Node root) { preorder = preorder + root.getNodeValue() + " "; return preorder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}", "public String getPreorder(Node root)\n\t{\n\t\tpreOrder(root);\n\t\t//return the string\n\t\treturn preorder;\n\t}", "private void _add(final String value) {\n appended();\n...
[ "0.5948506", "0.58979994", "0.5750146", "0.5724337", "0.5700327", "0.5553609", "0.55337286", "0.5507535", "0.5503513", "0.5484828", "0.5436373", "0.5413595", "0.54111886", "0.5408822", "0.5339079", "0.53319263", "0.53271", "0.5318885", "0.53120303", "0.53095615", "0.5308415",...
0.75024223
0
conduct recursive preorder method
public String getPreorder(Node root) { preOrder(root); //return the string return preorder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder() {\n\t\tpreorder(root);\n\t}", "@Override\r\n\tpublic List<Node<T>> getPreOrderTr...
[ "0.7823924", "0.7629518", "0.7629518", "0.74227554", "0.73916787", "0.7302879", "0.7211128", "0.7113689", "0.7099265", "0.7061353", "0.7028659", "0.7008732", "0.69915646", "0.69643646", "0.69603187", "0.6919067", "0.68408144", "0.6812275", "0.6796535", "0.6795079", "0.6772306...
0.0
-1
uses recursion to go through tree in preorder efficiency is O(n) because only "visits" each node once
public void preOrder (Node root) { if(root == null) { return; } addValToPreorder(root); //get all of the left nodes preOrder(root.leftNode()); //get all of the right nodes preOrder(root.rightNode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n ...
[ "0.78446287", "0.7505537", "0.7505537", "0.74737465", "0.7377926", "0.73383987", "0.73339915", "0.7319686", "0.7264278", "0.72286296", "0.7210622", "0.7207163", "0.7159382", "0.7130875", "0.71287346", "0.7125629", "0.7056428", "0.7054242", "0.7044415", "0.70420873", "0.703485...
0.69178647
31
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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 StateBruceDanner swallowSubstance() { return NON_CONTAMINED; }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public StateBruceDanner meetBetty() { return CONTAMINED; }
{ "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 quack() { 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
TODO Autogenerated method stub
@Override public void fly() { 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
anonymous class definition Implement the actionPerformed() method which is declared in the ActionListener interface.
public void actionPerformed(ActionEvent e){ //The methods in this inner-class have direct // access to the members of the enclosing // outer-classes named SampProg128. // Thus, direct access to the reference // variable named myLabel // is possible myLabel.setText("Ouch"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Override void actionPerformed(ActionEvent ev) {\n }", "@Override\n\t public void actionPerformed(ActionEvent e){\n\t }", "@Override\n\tpublic abstract void actionPerformed(ActionEvent arg0);", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t...
[ "0.79313517", "0.788896", "0.7859951", "0.78441066", "0.78441066", "0.78114563", "0.78114563", "0.77910197", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77765524", "0.7770223", "0.77618694", ...
0.0
-1
Sukuriamas grafinis interfeisas. Visi metodai cia skirti lango issidestymo nusakymui.
public HomeFrame() { super(); this.setSize(400, 80); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); this.setTitle("Reed-Muller code sending simulator"); JPanel panel = new JPanel(); JButton sendVector = new JButton(); sendVector.setText("Vector"); sendVector.addActionListener(e -> new VectorFrame()); JButton sendText = new JButton(); sendText.setText("Text"); sendText.addActionListener(e -> new TextFrame()); panel.add(sendVector); panel.add(sendText); panel.setVisible(true); this.add(panel); this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTud...
[ "0.6526259", "0.6386853", "0.62343675", "0.6200429", "0.614401", "0.61264443", "0.6110727", "0.6109183", "0.61046684", "0.61019635", "0.60955584", "0.6079486", "0.60360134", "0.6030695", "0.6022511", "0.6014256", "0.60045534", "0.5996492", "0.59880406", "0.5978425", "0.596515...
0.0
-1
Creates a new Service request record in amenities_request table
@Override public ServiceRequest saveServiceRequest(ServiceRequest sr) throws SQLException { System.out.println("Saving service request..."); logger.info("Saving service request..."); Session session = sessionFactory.getCurrentSession(); try { session.save(sr); } catch (Exception ex) { System.out.println("Error encountered while saving Service request. " + ex.getMessage()); logger.error("Error encountered while saving Service request. " + ex.getMessage()); throw new SQLException("Error encountered while saving Service request. " + ex.getMessage()); } return sr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();", "private void insertServiceRequest() {\n Random rand = new Random();\r\n...
[ "0.6263311", "0.5895725", "0.5754097", "0.5665098", "0.55534965", "0.5548075", "0.54070514", "0.53909403", "0.53535205", "0.53322166", "0.5299456", "0.52944136", "0.5286775", "0.5270824", "0.5223301", "0.5214159", "0.51913136", "0.51816255", "0.5177727", "0.51636976", "0.5148...
0.51680815
19
Get service requests by STATUS (used by admin home in loading NEW service requests)
@SuppressWarnings("unchecked") public List<ServiceBean> getServiceRequestsByStatus(List<String> statusList) { logger.debug("Getting service requests for the admin home page..."); System.out.println("Getting service requests for the admin home page..."); Session session = sessionFactory.getCurrentSession(); String statuses = StringUtil.getStatusList(statusList); String sql = SQLUtil.getServiceRequestsByStatus(statuses); Query query = null; List<String> scalarPropsList = null; scalarPropsList = SQLUtil.parseSQLScalarProperties(GET_ALL_SERVICE_REQUESTS_ADMIN_SQL_SCALAR); if (scalarPropsList != null) { query = SQLUtil.buildSQLQuery(session, scalarPropsList, sql); query.setResultTransformer(Transformers.aliasToBean(ServiceBean.class)); } return query.list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;", "public List<ServiceHealth> getServiceInstances(String service);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceBean> getService_Requests() \r\n {\r\n \tlo...
[ "0.65517217", "0.6443631", "0.64291173", "0.6148862", "0.61214566", "0.6086236", "0.60032505", "0.5987551", "0.597793", "0.5976145", "0.59712213", "0.59706527", "0.5942329", "0.5931148", "0.5924084", "0.591968", "0.591968", "0.59170985", "0.5853057", "0.58502144", "0.58495593...
0.67841053
0