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
Validation Functions Description : To validate the Security Question of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:SecurityQuestion
public void validate_the_Security_Question_of_Security_in_Customer_Tab(String SecurityQuestion)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Security Question").replaceAll("M_InnerText", SecurityQuestion), "Security Question - "+SecurityQuestion, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText()...
[ "0.6471008", "0.6441492", "0.6392627", "0.6392627", "0.63362134", "0.63252723", "0.62966293", "0.624039", "0.61814624", "0.616876", "0.6074127", "0.60643655", "0.6027238", "0.6018214", "0.5991649", "0.5986464", "0.59532773", "0.5932436", "0.5932436", "0.5932098", "0.5923798",...
0.6637797
0
Validation Functions Description : To validate the Security Answer of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:SecurityAnswer
public void validate_the_Security_Answer_of_Security_in_Customer_Tab(String SecurityAnswer)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Security Answer").replaceAll("M_InnerText", SecurityAnswer), "Security Answer - "+SecurityAnswer, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans....
[ "0.66832244", "0.66832244", "0.65866315", "0.65084094", "0.62716705", "0.6245503", "0.6228582", "0.62238526", "0.6157448", "0.6119678", "0.6107489", "0.6031855", "0.6021551", "0.60161424", "0.60074294", "0.59886384", "0.5974048", "0.59571576", "0.59545505", "0.5951701", "0.59...
0.65996003
2
Validation Functions Description : To validate the Date of Birth of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:DateofBirth
public void validate_the_Date_of_Birth_of_Security_in_Customer_Tab(String DateofBirth)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Date of Birth").replaceAll("M_InnerText", DateofBirth), "Date of Birth - "+DateofBirth, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void birthDateValidity();", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\...
[ "0.712833", "0.7003447", "0.665768", "0.63361156", "0.63189775", "0.631185", "0.62816274", "0.6232431", "0.6226556", "0.6220341", "0.6178844", "0.617396", "0.61267525", "0.6113514", "0.60549235", "0.6043632", "0.60404015", "0.5978477", "0.5938741", "0.5938344", "0.5929006", ...
0.7471816
0
Validation Functions Description : To validate the Nominated user of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Nominateduser
public void validate_the_Nominated_user_of_Security_in_Customer_Tab(String Nominateduser)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Nominated user").replaceAll("M_InnerText", Nominateduser), "Nominated user - "+Nominateduser, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser...
[ "0.6759888", "0.6549214", "0.6479061", "0.64065266", "0.63328004", "0.6307085", "0.6281728", "0.62321603", "0.6223951", "0.62192404", "0.6215264", "0.6143726", "0.6134415", "0.61230487", "0.61161053", "0.6093587", "0.60765755", "0.606998", "0.60617256", "0.60589206", "0.60519...
0.6853692
0
Validation Functions Description : To validate the Accessibility Need of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:AccessibilityNeed
public void validate_the_Accessibility_Need_of_Security_in_Customer_Tab(String AccessibilityNeed)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Accessibility Need").replaceAll("M_InnerText", AccessibilityNeed), "Accessibility Need - "+AccessibilityNeed, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private void validateData() {\n }", "public void...
[ "0.65451163", "0.62808037", "0.62322867", "0.62322867", "0.6206186", "0.6188334", "0.61882603", "0.61800325", "0.6106852", "0.61038387", "0.6071245", "0.6002692", "0.59790486", "0.5948582", "0.59281373", "0.58985764", "0.58891815", "0.5864459", "0.58460236", "0.5841364", "0.5...
0.6392555
1
Validation Functions Description : To validate the Email Address 1 of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:EmailAddress1
public void validate_the_Email_Address_1_of_Security_in_Customer_Tab(String EmailAddress1)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Email Address 1").replaceAll("M_InnerText", EmailAddress1), "Email Address 1 - "+EmailAddress1, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email...
[ "0.7614055", "0.70194167", "0.699815", "0.6805919", "0.67979485", "0.6763793", "0.6634965", "0.6633394", "0.66286147", "0.6607353", "0.658656", "0.64885485", "0.64833623", "0.64122766", "0.64097697", "0.6386938", "0.63619065", "0.6332783", "0.6323229", "0.6317393", "0.6269487...
0.7222335
1
Validation Functions Description : To validate the Email Address 2 of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:EmailAddress2
public void validate_the_Email_Address_2_of_Security_in_Customer_Tab(String EmailAddress2)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Email Address 2").replaceAll("M_InnerText", EmailAddress2), "Email Address 2 - "+EmailAddress2, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email...
[ "0.7642448", "0.69914347", "0.6961519", "0.69066405", "0.67666245", "0.6705159", "0.6666472", "0.66442823", "0.65798104", "0.65631896", "0.65489244", "0.6542482", "0.65373164", "0.6519465", "0.6493211", "0.64029956", "0.6358558", "0.6256248", "0.6249244", "0.6226585", "0.6194...
0.7173072
1
Validation Functions Description : To validate the Online Username of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:OnlineUsername
public void validate_the_Online_Username_of_Security_in_Customer_Tab(String OnlineUsername)throws Exception { VerifyElementPresentAndClick(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Online Username").replaceAll("M_InnerText", OnlineUsername), "Online Username - "+OnlineUsername); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testvalidateUserName0001()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"usrnm\"));\n\t}", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n ...
[ "0.6484331", "0.6420249", "0.63629335", "0.62378347", "0.6218098", "0.62177783", "0.6209015", "0.6198244", "0.6176502", "0.6143522", "0.6141928", "0.6124973", "0.61107904", "0.60692215", "0.60607123", "0.60438895", "0.6043035", "0.6042648", "0.6029545", "0.60198545", "0.59976...
0.72864944
0
Gets the user id.
public int getUserId() { return userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "long getUserId();", "long getUserId();", "Long getUserId();", "String getUserId();", "String getUserId();", "public long getUserId();", "public long getUserId();", "publi...
[ "0.8233876", "0.8096648", "0.8096648", "0.8096648", "0.808114", "0.808114", "0.8017144", "0.8015706", "0.8015706", "0.7924564", "0.7924564", "0.7924564", "0.7924564", "0.7905659", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0....
0.0
-1
Sets the user id.
public void setUserId(int userId) { this.userId = userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", ...
[ "0.8424531", "0.8338321", "0.83239496", "0.8144418", "0.81207603", "0.8083222", "0.7980484", "0.7801382", "0.7704092", "0.7645542", "0.76327235", "0.7625344", "0.7555822", "0.75469667", "0.7541217", "0.7525742", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121...
0.0
-1
Gets the job id.
public int getJobId() { return jobId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}", "public Long getJobID() {\n return jobID;\n }", "@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}", "public String getJobID() {\n\t\t\treturn JobID;\n\t\t}", "public java.lang.String getJobId() ...
[ "0.828947", "0.7947347", "0.78448504", "0.7814408", "0.7638478", "0.76348317", "0.7526758", "0.74556756", "0.7426238", "0.7382669", "0.7348353", "0.72542775", "0.7207674", "0.7165531", "0.7165531", "0.7165531", "0.7165007", "0.7140329", "0.7119057", "0.7117943", "0.71098185",...
0.7351506
10
Sets the job id.
public void setJobId(int jobId) { this.jobId = jobId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public ...
[ "0.7404343", "0.7103717", "0.69893175", "0.69298744", "0.6861032", "0.65832126", "0.6563532", "0.65538067", "0.65256226", "0.6461063", "0.6455667", "0.6453711", "0.6453711", "0.64493966", "0.6446546", "0.6446546", "0.64452314", "0.64438194", "0.6442912", "0.6431334", "0.64311...
0.64031476
32
Gets the creates the date.
public Date getCreateDate() { return createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getCreateDate();", "Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreate_date() {\n return create_date;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDa...
[ "0.77725047", "0.77725047", "0.7567058", "0.7567058", "0.7567058", "0.74717075", "0.7463533", "0.74629784", "0.74629784", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148"...
0.74321604
9
Sets the creates the date.
public void setCreateDate(Date createDate) { this.createDate = createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreateDate(Date date);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "@Override\n\tpublic void setCreateDate(Date create...
[ "0.8598939", "0.8065697", "0.8065697", "0.8065697", "0.79819036", "0.79237217", "0.79237217", "0.7835316", "0.78233737", "0.7788152", "0.77609915", "0.7755187", "0.7711099", "0.771104", "0.7674224", "0.7622459", "0.7603311", "0.7555816", "0.755479", "0.755479", "0.75468713", ...
0.7329167
68
Gets the applied date.
public Date getAppliedDate() { return appliedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getCurrentApplyDate() {\n return currentApplyDate;\n }", "public java.util.Date getForcedApplyDate() {\n return forcedApplyDate;\n }", "public java.util.Date getAutoAppliedAfterDate() {\n return autoAppliedAfterDate;\n }", "public Date getApplyTime() {\n ...
[ "0.7593411", "0.74215305", "0.6821792", "0.6685383", "0.66080457", "0.65429157", "0.65265596", "0.64321446", "0.64321446", "0.64321446", "0.6418638", "0.6412506", "0.64064103", "0.6402724", "0.6392408", "0.63657814", "0.63462245", "0.6333298", "0.6323615", "0.6293093", "0.628...
0.8086956
0
Sets the applied date.
public void setAppliedDate(Date appliedDate) { this.appliedDate = appliedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCurrentApplyDate(java.util.Date currentApplyDate) {\n this.currentApplyDate = currentApplyDate;\n }", "public void SetDate(Date date);", "public void setEffectiveDate(java.util.Date value);", "void setDate(Date data);", "@Override\n\tprotected void setDate() {\n\n\t}", "private v...
[ "0.7152506", "0.7130001", "0.7028265", "0.6978809", "0.6944967", "0.69398737", "0.69066405", "0.69066405", "0.69066405", "0.68991864", "0.68824697", "0.6875279", "0.6863125", "0.68612814", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.681328...
0.76917005
0
Gets the checks if is applied.
public byte getIsApplied() { return isApplied; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getMyChecksExtists(){\n return my_checks_exists;\n }", "private void loadAlwaysChecks() {\n alwaysChecks.addEnabled(new FlyAllCheck(), new WorldPermissionCheck(true), new RegionPermissionCheck(true));\n // CrazyEnchants Check\n if (pluginLoading(\"CrazyEnchantments\"...
[ "0.6670621", "0.6083705", "0.58562005", "0.5701546", "0.56810045", "0.5548014", "0.5539023", "0.55353886", "0.5526278", "0.542206", "0.5331017", "0.53227496", "0.52899", "0.52594376", "0.5210343", "0.51944864", "0.5171095", "0.5137055", "0.5128407", "0.51121646", "0.51102066"...
0.0
-1
Sets the checks if is applied.
public void setIsApplied(byte isApplied) { this.isApplied = isApplied; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "private void setOneAllChecks() {\r\n\r\n checkI...
[ "0.70411915", "0.6950264", "0.65789485", "0.6295645", "0.6132407", "0.5860665", "0.5845246", "0.5779514", "0.5744828", "0.57069856", "0.56882936", "0.56793076", "0.56793076", "0.5657131", "0.564688", "0.5565398", "0.55611974", "0.5555925", "0.5473267", "0.5416285", "0.5394567...
0.0
-1
Convert digest to a string
public static String hexaToString(byte[] digest ){ StringBuffer hexString = new StringBuffer(); for (int i = 0; i < digest.length; i++) { if ((0xff & digest[i]) < 0x10) { hexString.append("0" + Integer.toHexString((0xFF & digest[i]))); } else { hexString.append(Integer.toHexString(0xFF & digest[i])); } } return hexString.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String toHex(byte[] digest) {\n\t\tchar[] result = new char[digest.length * 2];\n\t\tint pos = 0;\n\t\tfor (int i = 0; i < digest.length; i++) {\n\t\t\tresult[pos++] = hexChar((digest[i] & 0xf0) >> 4);\n\t\t\tresult[pos++] = hexChar(digest[i] & 0x0f);\n\t\t}\n\t\treturn new String(result);\n\t}", ...
[ "0.7387616", "0.7244603", "0.7013799", "0.6491666", "0.6445094", "0.6304273", "0.62285197", "0.6197127", "0.61900073", "0.6157211", "0.6105304", "0.6079689", "0.6049014", "0.60340893", "0.6026807", "0.5961171", "0.5959042", "0.5944704", "0.5850548", "0.5849156", "0.5840418", ...
0.6790146
3
Tests that the default constructor uses the main thread
public void testDefaultsToMainThread() throws Exception { Executor executor = new LooperExecutor(); final CountDownLatch latch = new CountDownLatch(1); executor.execute(new Runnable() { @Override public void run() { assertEquals("running on ui thread", Looper.getMainLooper(), Looper.myLooper()); latch.countDown(); } }); latch.await(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "private ThreadUtil() {\n \n }", "private ThreadUtil() {\n }", "public MainThread(...
[ "0.7824828", "0.7111063", "0.7108115", "0.6969245", "0.68882966", "0.6643634", "0.6599732", "0.64192617", "0.6388743", "0.63704705", "0.6369849", "0.63182557", "0.61973494", "0.61730003", "0.6170615", "0.61587644", "0.61391085", "0.6132745", "0.6128945", "0.6114561", "0.61034...
0.66857255
5
Tests that the executor uses the supplied thread
public void testRunsOnCorrectLooper() throws Exception { final HandlerThread newThread = new HandlerThread("looper executor test thread"); newThread.start(); final Looper newLooper = newThread.getLooper(); Executor executor = new LooperExecutor(newLooper); final CountDownLatch latch = new CountDownLatch(1); executor.execute(new Runnable() { @Override public void run() { assertEquals("running on with expected looper", newLooper, Looper.myLooper()); assertEquals("running on expected thread", newThread, Thread.currentThread()); latch.countDown(); } }); latch.await(); newLooper.quit(); newThread.join(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDefaultsToMainThread() throws Exception {\n\n Executor executor = new LooperExecutor();\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on u...
[ "0.6329623", "0.6198241", "0.6167527", "0.610818", "0.6023319", "0.59038264", "0.5843259", "0.5791283", "0.573987", "0.5691991", "0.56259745", "0.5570248", "0.55337375", "0.5505549", "0.5494817", "0.54878736", "0.5486735", "0.54783016", "0.5457432", "0.54541254", "0.5448761",...
0.57017934
9
getRelativeTimeAgo("Mon Apr 01 21:16:23 +0000 2014");
public String getRelativeTimeAgo() { String twitterFormat = "EEE MMM dd HH:mm:ss ZZZZZ yyyy"; SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH); sf.setLenient(true); String relativeDate = ""; try { long dateMillis = sf.parse(created_at).getTime(); relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis, System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString(); } catch (ParseException e) { e.printStackTrace(); } return relativeDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String timeToAgo(Long timestamp){\n\n\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Log.d(TAG, \"timeToAgo:TimeZone :\"+TimeZone.getTimeZone(\"GMT\"));\n long time = cal.getTimeInMillis();\n Log.d(TAG, \"timeToAgo: time with cal : \"+time);\n lon...
[ "0.709705", "0.70759714", "0.70660406", "0.6969545", "0.66484404", "0.6290158", "0.61730886", "0.59771997", "0.5974261", "0.5890958", "0.58659256", "0.5863089", "0.5847458", "0.583133", "0.5827957", "0.58075374", "0.5807465", "0.5789574", "0.57724696", "0.57526404", "0.57272"...
0.81090057
0
The main function of the assignment
public static void main(String[] args) { EvolutionaryAlgorithm alg= new EvolutionaryAlgorithm(2,10,0.03); // alg.runAlgorithm(); // run the system }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tassignmentOperations();\n\t\t \n\t}", "private void assignment() {\n\n\t\t\t}", "public static void main(String[] args) {\n System.out.println(\"*****************************Assignment 1 ********************************\");\n Assignment1 assignment1 =...
[ "0.7502336", "0.7439252", "0.68295056", "0.66625905", "0.6437392", "0.6203292", "0.61825943", "0.6165241", "0.6110006", "0.6086569", "0.60856074", "0.6072373", "0.6042401", "0.603142", "0.6022496", "0.59897065", "0.59579164", "0.5945937", "0.59423935", "0.5890649", "0.5882263...
0.0
-1
Method that checks if a string is a numeric character
public boolean isNum() { try { int d = Integer.parseInt(numeric); } catch(NumberFormatException nfe) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n...
[ "0.7920341", "0.78430736", "0.7827761", "0.7800473", "0.779336", "0.7764758", "0.7753675", "0.7752626", "0.7699976", "0.76880217", "0.76728207", "0.7665167", "0.7662645", "0.7659837", "0.7657539", "0.7627016", "0.76140654", "0.76098216", "0.7598105", "0.7593033", "0.75882685"...
0.7562788
24
Remplace le score actuel par un nouveau score.
public void setScore(String s, int i){ this.nom = (s.equals("") ? "Anonyme" : s); this.temps = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newScore()\n {\n score.clear();\n }", "public void effacerScore() {\r\n\t\tthis.meilleursScores = new MeilleursScores();\r\n\t\tthis.notifyObservateur();\r\n\t}", "public ScoreReduction (Score score)\r\n {\r\n this.score = score;\r\n\r\n for (TreeNode pn : score.getPag...
[ "0.7796174", "0.75685734", "0.71432734", "0.7070254", "0.69770503", "0.69129676", "0.688983", "0.68383926", "0.6824029", "0.68204874", "0.677521", "0.6755942", "0.67399484", "0.67387736", "0.67295057", "0.6695155", "0.6678543", "0.66604835", "0.66568655", "0.66529596", "0.665...
0.0
-1
method for building a galaxy from json.
private static ArrayList<Galaxy> createGalaxies() { ArrayList<Galaxy> galaxies = new ArrayList<>(); try { String bareJSON = new String(Files.readAllBytes(Paths.get("Galaxies.json"))); JSONArray jarray = new JSONArray(bareJSON); for(int i = 0; i<jarray.length(); i++) { JSONObject JSONgalaxy = jarray.getJSONObject(i); //System.out.println("Galaxyname = " + JSONgalaxy.getString("galaxy").charAt(0)); Galaxy galaxy = new Galaxy(JSONgalaxy.getString("galaxy").charAt(0)); galaxies.add(galaxy); JSONArray stars = JSONgalaxy.getJSONArray("stars"); for (int y = 0; y<stars.length(); y++) { int number = y+1; char colour = stars.getJSONObject(y).getString("colour").charAt(0); galaxy.addStar(new Star(colour, number, galaxy)); } setStarNeighbours(galaxy, stars); } setGalaxyNeighbours(galaxies, jarray); } catch (FileNotFoundException fnf) { System.out.println("File not found"); } catch (IOException ieo) { System.out.println("Could not read file."); } return galaxies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDefaultGalaxy(){\n milkyWay.setGalaxyColonies(37579321);\n milkyWay.setGalaxyPopulation(1967387132);\n milkyWay.setGalaxyFleets(237);\n milkyWay.setGalaxyStarships(34769);\n }", "protected abstract JSONObject build();", "public native Object parse( Object json,...
[ "0.59461826", "0.5847575", "0.58230066", "0.56619817", "0.5476822", "0.5469774", "0.54504895", "0.54004353", "0.53947484", "0.53731525", "0.535509", "0.53076404", "0.5306257", "0.53029716", "0.5298567", "0.5282667", "0.5264242", "0.52641815", "0.5246649", "0.52371716", "0.521...
0.70561147
0
sets the neighboring stars for a star.
private static void setStarNeighbours(Galaxy galaxy, JSONArray stars) { for (int y = 0; y<stars.length(); y++) { JSONArray neighbours = stars.getJSONObject(y).getJSONArray("neighbour-stars"); //add internal neighbours for(int i = 0; i<neighbours.length(); i++){ int star = (int) neighbours.get(i); galaxy.getStar(y+1).addNeighbour(galaxy.getStar(star)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setStarArray(int i, stars.StarType star);", "private void resetStars()\r\n\t{\r\n\t\tfor(Star s : stars)\r\n\t\t{\r\n\t\t\ts.visited = false;\r\n\t\t}\r\n\t}", "void setStarList(stars.StarListDocument.StarList starList);", "public void setStars(float stars) {\n this.stars = stars;\n }", "pub...
[ "0.6721577", "0.670421", "0.6346511", "0.6153161", "0.60655", "0.60640055", "0.6048692", "0.602014", "0.5907079", "0.5835531", "0.5830902", "0.5818525", "0.57980853", "0.5774662", "0.56984466", "0.5688131", "0.5578588", "0.5506014", "0.5457685", "0.54402715", "0.54199284", ...
0.77649015
0
sets the neighboring galaxys for the galaxys
private static void setGalaxyNeighbours(ArrayList<Galaxy> galaxies, JSONArray jsongalaxies) { for(int i = 0; i<jsongalaxies.length(); i++) { JSONArray neighbours = jsongalaxies.getJSONObject(i).getJSONArray("neighbours"); // System.out.println("galaxy " + galaxies.get(i).getName() + " has neighbours: "); for(int y = 0; y<neighbours.length(); y++) { char galaxyname = neighbours.get(y).toString().charAt(0); //System.out.println(galaxyname); for(Galaxy galaxy : galaxies) { if(galaxy.getName() == galaxyname) { galaxies.get(i).addNeighbour(galaxy); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setStarNeighbours(Galaxy galaxy, JSONArray stars) {\n for (int y = 0; y<stars.length(); y++) {\n JSONArray neighbours = stars.getJSONObject(y).getJSONArray(\"neighbour-stars\");\n //add internal neighbours\n for(int i = 0; i<neighbours.length(); i++){\n ...
[ "0.68435144", "0.63938195", "0.6231035", "0.6119927", "0.59280574", "0.5823151", "0.5575939", "0.54617023", "0.5447666", "0.54400074", "0.540131", "0.5372064", "0.5348576", "0.5324323", "0.53066534", "0.5302049", "0.5298211", "0.5289312", "0.5283192", "0.528103", "0.52531147"...
0.6833014
1
GET methods ================================================ Returns a list of posts
@GET("posts/") Call<List<Post>>getPosts();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<BlogPost> getPosts();", "List<Post> getAllPost() throws Exception;", "List<PostInfo> getPostList();", "@GetMapping(\"posts\")\n\tpublic List<Post> index() {\n\t\treturn postSvc.index();\n\t}", "@GetMapping(\"\")\n public ResponseEntity <List<Post>>listAllPosts() {\n return ResponseEnt...
[ "0.81384134", "0.77754045", "0.7638738", "0.75138336", "0.7501145", "0.73493576", "0.73476064", "0.73136616", "0.7157542", "0.7154151", "0.6980441", "0.69569707", "0.6908683", "0.68967426", "0.687939", "0.68427074", "0.6825932", "0.68121636", "0.6809343", "0.6739789", "0.6728...
0.7719024
2
POST methods ================================================ Basic POST
@POST Call<Post> createPost(@Body Post post);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String post();", "@Override\n public String getMethod() {\n return \"POST\";\n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "@Override\n\tpro...
[ "0.7856803", "0.7700932", "0.7559018", "0.72759175", "0.70020604", "0.6989988", "0.69002354", "0.6808437", "0.67582816", "0.6557847", "0.65530735", "0.65382934", "0.6530142", "0.6513861", "0.64469534", "0.64387745", "0.6424896", "0.6393885", "0.6335328", "0.6321531", "0.63156...
0.6346571
18
In case of URL formatted data passing
@FormUrlEncoded @POST("posts/") Call<Post> createPostUrlFormatted( @Field("userId") Integer id, @Field("title") String title, @Field("body") String body );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toURLParam();", "@Override\n\tpublic void GetDataUrl(final String data) {\n\t\tSystem.out.println(data);\n\n\t\tParseText(data);\n\t}", "public interface Parametralizable {\n\n /**\n * Gets reprezentation of the contents as the URL parameters.\n * @return reprezentation of the conte...
[ "0.6477287", "0.63463247", "0.6127911", "0.6018187", "0.5792613", "0.57668865", "0.56222975", "0.56196696", "0.55312395", "0.5486742", "0.545762", "0.5439595", "0.5434002", "0.54309595", "0.5393333", "0.53324836", "0.5279511", "0.52466553", "0.52433956", "0.5231797", "0.52306...
0.0
-1
PUT, PATCH, DELETE methods are similar ================================================ For DELETE, it will be Void, else the model will take place
@DELETE("posts/{id}/") Call<Void> delete(@Path("id") int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "public boolean delete(ModelObject obj);", "@DELETE\n\tResponse delete();", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "@Override\n protect...
[ "0.64759076", "0.63698506", "0.63698506", "0.6342286", "0.6322752", "0.6287501", "0.618331", "0.618331", "0.60984755", "0.60620165", "0.60620165", "0.60461336", "0.6012934", "0.59807926", "0.5967528", "0.59665734", "0.59432447", "0.59364754", "0.5926159", "0.58857083", "0.586...
0.0
-1
When a hero has all of the items that a RecipeItem requires, those items are being removed from his inventory, along with the recipe, and a CommonItem is put on their place, with the stats of the RecipeItem. As if the items have combined with the recipe in order to create a stronger item.
private void checkRecipes() { for (Recipe recipe : this.recipeItems.values()) { List<String> requiredItems = new ArrayList<>(recipe.getRequiredItems()); for (Item item : this.commonItems.values()) { requiredItems.remove(item.getName()); } if (requiredItems.isEmpty()) { this.combineRecipe(recipe); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// ...
[ "0.6182081", "0.61607295", "0.6104097", "0.60561544", "0.60248125", "0.6005581", "0.5967221", "0.59596723", "0.5880104", "0.58681864", "0.5868015", "0.586101", "0.5856442", "0.58523554", "0.5826132", "0.57914305", "0.5774331", "0.57703143", "0.57611823", "0.5760632", "0.57530...
0.67699033
0
print numbers from 1 to 100
public static void main(String[] args) { for(int a=100; a>=1; a--) { System.out.println(a); } //print numbers from 100 to 1 for(int b=1; b<=100; b++) { System.out.println(b); } //print odd numbers from 1 to 20(2 ways) for(int c=1; c<=20; c+=2) { System.out.println(c); } //print even numbers from 20 to 1(2ways) for(int d=20; d>=1; d-=2) { System.out.println(d); } //print even numbers between 20 and 50(2 ways) for(int e=20; e<=50; e+=2) { System.out.println(e); } //print odd numbers between 20 and 50(2way) for(int f=20; f<=50; f++) { if(f%2==0) { System.out.println(f); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}", "public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100) {\n\t\t\tSystem.out.print(a+\" \");\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\...
[ "0.7531", "0.74497193", "0.73898023", "0.7350551", "0.7264705", "0.7262896", "0.72511935", "0.7237796", "0.7181977", "0.71728307", "0.71310955", "0.7039859", "0.6817602", "0.6783804", "0.6764485", "0.67592525", "0.67566794", "0.6732504", "0.6707767", "0.670001", "0.6691088", ...
0.6779265
14
Interface for an activation function of a neural network. Implement this and pass into the constructor of a neural network to use.
public interface ActivationFunction { /** * The activation function itself. E.g. The sigmoid function * @param z - The weighted sum of a neuron * @return The activation of a neuron */ public double activation(double z); /** * The derivative of the activation function. * @param z - The weighted sum of a neuron * @return The derivative of this activation function at z */ public double activationDerivative(double z); /** * The code of this activation function.<br> * Each activation function has a unique code for it to be identified. * This value is used when saving and loading neural networks; it is saved in the file. * The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading. * For custom activation functions not included in the list, loading a network causes the activation function * of that particular network to be set to <em>null</em>, and thus it <b>must</b> be set later <b>manually</b> * through the setActivationFunction() method. * @return The code of this activation function */ public byte getCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double activation(double z);", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double...
[ "0.703874", "0.68283474", "0.6541622", "0.640841", "0.64042", "0.6390921", "0.6381515", "0.63656706", "0.621176", "0.6108022", "0.6061912", "0.6029803", "0.59967214", "0.58929384", "0.5878844", "0.5858828", "0.5826583", "0.57591665", "0.57099706", "0.56995785", "0.5679207", ...
0.8300915
0
The activation function itself. E.g. The sigmoid function
public double activation(double z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double)1/temp;\n return result;\n }", "public double getActivation() {\r\n\t\tif (activation_count > 0) return activation;\r\n\t\telse return 0.0;\r\n\t}", ...
[ "0.7888368", "0.7348921", "0.73253316", "0.7295438", "0.6901293", "0.6888109", "0.65776515", "0.6469891", "0.64680606", "0.6467183", "0.6463888", "0.6429828", "0.6334023", "0.6317584", "0.6269084", "0.6230395", "0.6111526", "0.6089284", "0.6068213", "0.59801275", "0.5816871",...
0.7772561
1
The derivative of the activation function.
public double activationDerivative(double z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}", "public double derivative(double input) {\n\t\treturn (1 - Math.pow(Math.tanh(input), 2));\n\t}", "public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }", "p...
[ "0.8091666", "0.7141857", "0.6747418", "0.67116606", "0.64763194", "0.6474654", "0.64429516", "0.6369258", "0.63112295", "0.62944967", "0.60834104", "0.60120803", "0.59694093", "0.5920116", "0.5872528", "0.5842627", "0.5704055", "0.56417036", "0.56221104", "0.56139493", "0.56...
0.82514143
0
The code of this activation function. Each activation function has a unique code for it to be identified. This value is used when saving and loading neural networks; it is saved in the file. The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading. For custom activation functions not included in the list, loading a network causes the activation function of that particular network to be set to null, and thus it must be set later manually through the setActivationFunction() method.
public byte getCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ActivationFunction {\n\t/**\n\t * The activation function itself. E.g. The sigmoid function\n\t * @param z - The weighted sum of a neuron\n\t * @return The activation of a neuron\n\t */\n\tpublic double activation(double z);\n\t/**\n\t * The derivative of the activation function.\n\t * @param z - ...
[ "0.7874624", "0.64406633", "0.5895952", "0.5580009", "0.5553183", "0.55044603", "0.54552925", "0.54397726", "0.54397726", "0.5410049", "0.54065174", "0.54065174", "0.54065174", "0.54065174", "0.54065174", "0.5355209", "0.53391653", "0.5329119", "0.5329119", "0.53179836", "0.5...
0.5275272
23
Interface for neural network builder
public interface NetworkBuilder { /** * Set neural net layers * @param layers an array with the width and depth of each layer * @return NetworkBuilder instance */ public abstract NetworkBuilder withLayers(int[] layers); /** * Set the DataSet * @param train - training set * @param test - test set * @return NetworkBuilder instance */ public abstract NetworkBuilder withDataSet(DataSet train, DataSet test); /** * Set the ActivationFunction * @param activationFunction * @return NetworkBuilder instance */ public abstract NetworkBuilder withActivationFunction(ActivationFunction activationFunction); /** * Set the ErrorMeasure * @param errorMeasure * @return NetworkBuilder instance */ public abstract NetworkBuilder withErrorMeasure(ErrorMeasure errorMeasure); /** * Train the network * @return the trained network for testing */ public abstract FeedForwardNetwork train(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's h...
[ "0.6991875", "0.69307864", "0.6907988", "0.6863679", "0.67886055", "0.6729601", "0.67237115", "0.66890717", "0.66724557", "0.661029", "0.65668344", "0.6555398", "0.6460973", "0.6407616", "0.6406701", "0.63950074", "0.6374544", "0.6328552", "0.6299661", "0.62494147", "0.616495...
0.81524354
0
Set neural net layers
public abstract NetworkBuilder withLayers(int[] layers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MultiLayerNetwork alexnetModel(Integer numLabels) {\n\n double nonZeroBias = 1;\n double dropOut = 0.5;\n\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .weightInit(WeightInit.DISTRIBUTION)\n .dis...
[ "0.6656685", "0.65688574", "0.64980674", "0.63397205", "0.63051295", "0.6219697", "0.620754", "0.6129296", "0.6084068", "0.6010066", "0.60015947", "0.5997156", "0.59563935", "0.588572", "0.5877819", "0.58089346", "0.5780631", "0.57670563", "0.57668483", "0.5759975", "0.575304...
0.6822673
0
=========================================================== Constructors =========================================================== =========================================================== Getter & Setter ===========================================================
public static void setAnimationInterval(final double pAnimationInterval) { MoinRenderer.sAnimationInterval = (long) (pAnimationInterval * MoinRenderer.NANOSECONDSPERSECOND); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n void init() {\n }", "@Override\n public...
[ "0.79039913", "0.7099349", "0.70333666", "0.68820447", "0.68523604", "0.6841289", "0.6835635", "0.6830615", "0.6788705", "0.6781195", "0.67745984", "0.6760455", "0.6743112", "0.6743112", "0.6743112", "0.6720078", "0.6703861", "0.66745126", "0.6673958", "0.6668449", "0.6664658...
0.0
-1
=========================================================== Methods for/from SuperClass/Interfaces ===========================================================
@Override public void onSurfaceCreated(final GL10 pGL10, final EGLConfig pEGLConfig) { Moin2dJni.init(this.mScreenWidth, this.mScreenHeight); this.mLastTickInNanoSeconds = System.nanoTime(); if(mlogic != null) { mlogic.onCreate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@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\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "...
[ "0.66493845", "0.6629024", "0.6452968", "0.642971", "0.63373286", "0.63248324", "0.63248324", "0.62520915", "0.62315", "0.6216611", "0.61964023", "0.61958927", "0.6175072", "0.6166632", "0.61429137", "0.61355686", "0.6113214", "0.61115307", "0.61108357", "0.6107379", "0.60699...
0.0
-1
/ FPS controlling algorithm is not accurate, and it will slow down FPS on some devices. So comment FPS controlling code. / final long nowInNanoSeconds = System.nanoTime(); final long interval = nowInNanoSeconds this.mLastTickInNanoSeconds; should render a frame when onDrawFrame() is called or there is a "ghost"
@Override public void onDrawFrame(final GL10 gl) { Moin2dJni.nativeDraw(); /* // fps controlling if (interval < Cocos2dxRenderer.sAnimationInterval) { try { // because we render it before, so we should sleep twice time interval Thread.sleep((Cocos2dxRenderer.sAnimationInterval - interval) / Cocos2dxRenderer.NANOSECONDSPERMICROSECOND); } catch (final Exception e) { } } this.mLastTickInNanoSeconds = nowInNanoSeconds; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fps(Graphics2D g2d) {\n\n long currentRender = System.currentTimeMillis();\n if (lastRender > 0) {\n fpsHistory.add(1000.0f / (currentRender - lastRender));\n if (fpsHistory.size() > 100) {\n fpsHistory.remove(0); // remove oldest\n }\n ...
[ "0.72165734", "0.71212775", "0.7035692", "0.69097406", "0.68871236", "0.6873649", "0.68729496", "0.6840542", "0.68374854", "0.6821388", "0.6792013", "0.67894316", "0.67747027", "0.6761797", "0.67582595", "0.67519426", "0.67501", "0.6720039", "0.6699521", "0.6694306", "0.66709...
0.7697646
0
LocalDateTime localDateTime = LocalDateTime.now(); String localDateTime = "20171130"; Student s1 = new Student("male",23);
private String parseStringtoInt(String welcome,Student s1){ String time = TimeUitl.getTime(s1); String slogan = welcome + time; return slogan; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User(){\n registerDate = new LocalDateTime();\n }", "public TimeStamp(){\n\t\tdateTime = LocalDateTime.now();\n\t}", "public static void main(String[] args) {\n LocalDate date = LocalDate.of(1986, 02, 12);\n LocalTime time = LocalTime.of(12, 30);\n LocalDateTime localDateT...
[ "0.69980645", "0.68768114", "0.61888045", "0.61148727", "0.6071131", "0.6062476", "0.6035145", "0.59523106", "0.5943975", "0.5894834", "0.58561796", "0.5830455", "0.5802333", "0.57865447", "0.5753998", "0.57410765", "0.57021004", "0.5700922", "0.5692029", "0.5691002", "0.5670...
0.0
-1
Created by hzllb on 2018/11/18.
public interface ItemService { //创建商品 ItemModel createItem(ItemModel itemModel) throws BusinessException; //商品列表浏览 List<ItemModel> listItem(); //商品详情浏览 ItemModel getItemById(Integer id); //验证item及其promo 缓存模型 ItemModel getItemByIdInCache(Integer id); //库存扣减 boolean decreaseStock(Integer itemId, Integer amount) throws BusinessException; //商品销量增加 void increaseSales(Integer itemId, Integer amount) throws BusinessException; //异步更新库存 boolean ansyDecreaseStock(Integer itemId, Integer amount); //库存回滚 boolean increaseStock(Integer itemId, Integer amount) throws BusinessException; //初始化库存流水 String initStockLog(Integer itemId,Integer amount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.61576635", "0.6073874", "0.58615977", "0.5843263", "0.58164984", "0.58164984", "0.5809927", "0.57655454", "0.5763037", "0.57575005", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57371575", "0.5728783", "0.57158756", "0.5700782", "0...
0.0
-1
Constructs a new Paper object.
public Paper(String name, Author author, String data) { this.name = name; this.author = author; this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Paper() {\r\n }", "public Paper()\r\n\t{\r\n\t\tsuper(0,\"\", \"\");\r\n\t}", "public Paper(double _height, double _width)\n {\n // initialise instance variables\n height = _height;\n width = _width;\n }", "public PaperManager() {\n\t\tthis.papers = new UndirectedGraph<Pa...
[ "0.8024061", "0.738135", "0.73257357", "0.66506165", "0.63740027", "0.6343583", "0.61811453", "0.6178215", "0.6049529", "0.59721047", "0.57465154", "0.5722991", "0.57122546", "0.5660681", "0.5599058", "0.5582257", "0.55797577", "0.5558105", "0.5499423", "0.5429449", "0.540049...
0.5497664
19
Gets the Author of this Paper.
public Author getAuthor() { return this.author; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public IUser getAuthor() {\n\t\treturn message.getAuthor();\n\t}", "public IPer...
[ "0.76490366", "0.7599008", "0.7486576", "0.74718434", "0.7418611", "0.74169946", "0.74066865", "0.74028367", "0.7366398", "0.721014", "0.71818155", "0.71754324", "0.7173475", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099...
0.7836103
0
Gets the paper data of this Paper.
public String getData() { return this.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PData getData() {\n\t\treturn data;\n\t}", "@Override\n\tpublic java.lang.String getPaperValue() {\n\t\treturn _scienceAppPaper.getPaperValue();\n\t}", "public Object data() {\n return this.data;\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public Object getData(){\n\...
[ "0.737376", "0.6685799", "0.6599989", "0.65874135", "0.65841025", "0.6566836", "0.6544592", "0.65190506", "0.64906585", "0.64906585", "0.64741355", "0.6416299", "0.64150846", "0.6403593", "0.63661593", "0.63660425", "0.63530046", "0.634215", "0.634215", "0.634215", "0.634215"...
0.6451662
11
Gets the paper reviewed state.
public boolean getReviewed() { return this.reviewed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public Integer getRptstate() {\n return rptstate;\n }", "public String getMyReviewed() {\n return myReviewed;\n }", "public String getReview(){\n\t\treturn this.review;\n\t}", "public String getState() {\n\t\...
[ "0.7293301", "0.6676641", "0.66729826", "0.6514811", "0.6286874", "0.6284974", "0.62784", "0.61215454", "0.61168927", "0.6107845", "0.60703236", "0.60681343", "0.60343057", "0.59598374", "0.5891109", "0.58824784", "0.5871207", "0.5864205", "0.5840691", "0.5818876", "0.5813546...
0.73552376
0
Sets the Paper's reviewed state.
public void setReviewedState(boolean new_state) { this.reviewed = new_state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReview(final Review review);", "public void setMyReviewed(String myReviewed) {\n this.myReviewed = myReviewed;\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public void setStatus(Review review) {\n\t\tReview old=getById(review.getId());\n\...
[ "0.6631197", "0.65714896", "0.6440996", "0.644018", "0.63510954", "0.61637354", "0.6033385", "0.57590187", "0.5644696", "0.5642256", "0.5628952", "0.5625121", "0.5625083", "0.5558206", "0.54589087", "0.54224503", "0.540364", "0.53908783", "0.5385986", "0.5383015", "0.53762436...
0.75987035
0
Gets the unique id for this Paper.
public int getID() { return this.data.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getPaperId() {\n\t\treturn _paper.getPaperId();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _paper.getPrimaryKey();\n\t}", "@Override\n\tpublic java.lang.String getUuid() {\n\t\treturn _paper.getUuid();\n\t}", "@NonNull\n public final synchronized String getId()...
[ "0.7616921", "0.70498526", "0.69064295", "0.6798469", "0.6736007", "0.6731334", "0.67163587", "0.65980065", "0.6597458", "0.65956163", "0.65805614", "0.6563504", "0.6563504", "0.656127", "0.6557357", "0.6551552", "0.65406424", "0.6531756", "0.6526688", "0.6494517", "0.6469144...
0.0
-1
Created by zhy on 15/6/19.
public interface OnLoginListener { void loginSuccess ( User user ); void loginFailed (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6058316", "0.5984293", "0.5921491", "0.5918009", "0.582021", "0.582021", "0.57767266", "0.57675314", "0.57478774", "0.57387745", "0.57368124", "0.57355887", "0.5734018", "0.5714725", "0.5712438", "0.5712438", "0.5712438", "0.5712438", "0.5712438", "0.57100487", "0.5709215"...
0.0
-1
Determine whether the header (namespaces, metadata if part of the header) should be visited
default boolean visitHeader() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHeader();", "default boolean hasHeader() {\n return true;\n }", "boolean isSetHeader();", "public boolean isHeaderParsed();", "boolean isHeader(int position);", "boolean containsHeader(String name);", "public boolean isHeader() {\n\t \treturn this == HEADER;\n\t }", "public...
[ "0.77855617", "0.7196913", "0.70423865", "0.70185107", "0.69353485", "0.693492", "0.683787", "0.6835593", "0.6785251", "0.6711263", "0.6711263", "0.6711263", "0.66394657", "0.6609179", "0.65142447", "0.6423725", "0.6358522", "0.61899257", "0.6161261", "0.6155725", "0.6131932"...
0.7185421
2
Determine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited
default boolean visitContent() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "default boolean visitElementContent(Ma...
[ "0.6146256", "0.55440784", "0.5483715", "0.54618317", "0.5401735", "0.525554", "0.5235267", "0.5234724", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0....
0.53952163
5
Finish the visitation pass.
default boolean visitEnd() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void finish() {\n }", "void endVisit(Group group);", "public void visitEnd()\n\t{\n\t}", "public void finish() {\n\n\t}", "public void finish() { \n\t\t\n\t}", "protected void finish() {\n }", "public void finish() {}", "protected void finishExecution() {\r\n\r\n\t}", "public ...
[ "0.73306817", "0.7155794", "0.714167", "0.71378523", "0.7134606", "0.7073065", "0.70672905", "0.6970125", "0.68982667", "0.6892663", "0.68330413", "0.68330413", "0.68330413", "0.67312676", "0.6706383", "0.668997", "0.6680053", "0.66370094", "0.66239053", "0.66206706", "0.6616...
0.63020504
89
Determine whether the element content (comment, subelements) should be visited. This is also a notification about all available dst names having been passed on.
default boolean visitElementContent(MappedElementKind targetKind) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default boolean visitContent() {\n\t\treturn true;\n\t}", "public static boolean hasElements() {\n return content.size() > 0;\n }", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasC...
[ "0.5736521", "0.5516844", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.53333515", "0.5299941", "0.52420795", "0.5202346", "0.5195159", "0.51663095", "0.51339954", "0.5101588", "0.504494", "0.5026084", "0.50231445", "0.4991717",...
0.61530423
0
Comment for the specified element (last contentvisited or any parent).
void visitComment(MappedElementKind targetKind, String comment);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\...
[ "0.70662683", "0.69239056", "0.6371688", "0.6214308", "0.6190447", "0.61866915", "0.6062385", "0.6033326", "0.59354675", "0.593011", "0.59150773", "0.5867666", "0.5854095", "0.58349776", "0.58260494", "0.5782425", "0.57817405", "0.5765742", "0.57643527", "0.57472515", "0.5712...
0.59082615
11
Converts an "t1.c1 = t2.c2" expression into two (input, field) pairs.
private static int[][] grab(List<RelNode> leaves, RexNode rex) { switch (rex.getKind()) { case EQUALS: break; default: throw new AssertionError("only equi-join allowed"); } final List<RexNode> operands = ((RexCall) rex).getOperands(); return new int[][] { inputField(leaves, operands.get(0)), inputField(leaves, operands.get(1))}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostri...
[ "0.5342464", "0.5240359", "0.52112454", "0.5150345", "0.5100042", "0.50636476", "0.49451566", "0.49143812", "0.488724", "0.4883435", "0.48440585", "0.48210636", "0.4785069", "0.47655246", "0.4751292", "0.47408468", "0.4734599", "0.47284812", "0.4718011", "0.4714339", "0.47101...
0.0
-1
Converts an expression into an (input, field) pair.
private static int[] inputField(List<RelNode> leaves, RexNode rex) { if (!(rex instanceof RexInputRef)) { throw new RuntimeException("only equi-join of columns allowed: " + rex); } RexInputRef ref = (RexInputRef) rex; int start = 0; for (int i = 0; i < leaves.size(); i++) { final RelNode leaf = leaves.get(i); final int end = start + leaf.getRowType().getFieldCount(); if (ref.getIndex() < end) { return new int[] {i, ref.getIndex() - start}; } start = end; } throw new AssertionError("input not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MemberExpression field(Expression expression, String fieldName) { throw Extensions.todo(); }", "public static MemberExpression field(Expression expression, Field field) { throw Extensions.todo(); }", "private static Expression retrieveParseExpression(String expression) {\n return StaticJav...
[ "0.5662094", "0.56369483", "0.5527183", "0.5516667", "0.547292", "0.5463401", "0.54598814", "0.53793037", "0.5358582", "0.5281493", "0.52644324", "0.5259598", "0.5259598", "0.52481294", "0.52296615", "0.52296615", "0.52296615", "0.52296615", "0.5209905", "0.5171552", "0.51266...
0.0
-1
Split a matrix by grouping rows with the same value in a given column.
private void splitByColumn() throws IOException { List<Integer> columns = mWindow.getSelectedColumns(); if (columns == null || columns.size() == 0) { ModernMessageDialog.createDialog(mWindow, "You must select a column to split on.", MessageDialogType.WARNING); return; } SplitDialog dialog = new SplitDialog(mWindow); dialog.setVisible(true); if (dialog.getStatus() == ModernDialogStatus.CANCEL) { return; } boolean openMatrices = dialog.getLoad(); boolean createZip = dialog.getCreateZip(); DataFrame current = mWindow.getCurrentMatrix(); ListMultiMap<String, Integer> idMap = ArrayListMultiMap.create(); int c = columns.get(0); // first the list of ids for (int i = 0; i < current.getRows(); ++i) { idMap.get(current.getText(i, c)).add(i); } // Clean up the ids List<String> ids = CollectionUtils.sort(idMap.keySet()); List<String> cleanedIds = Stream.of(ids).map(new Function<String, String>() { @Override public String apply(String item) { return item.toLowerCase().replaceAll("\\.[a-z]+$", "").replaceAll("[^a-z0-9\\_\\-]", "_").replaceAll("_+", "_"); } }).toList(); List<DataFrame> matrices = new ArrayList<DataFrame>(ids.size()); for (String id : ids) { System.err.println("split id " + id); matrices.add(DataFrame.createAnnotatableMatrixFromRows(current, idMap.get(id))); } splitByGroup(cleanedIds, matrices, openMatrices, createZip); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static @NotNull Matrix splitMatrix(@NotNull Matrix matrix,\n int indexRowFrom, int indexRowTo, int indexColFrom, int indexColTo) {\n\n assert indexRowTo > indexRowFrom;\n assert indexColTo > indexColFrom;\n\n final int rows = indexRowTo - i...
[ "0.5021803", "0.4976001", "0.4837299", "0.46690604", "0.46469375", "0.45581582", "0.45378008", "0.44916245", "0.4395195", "0.43893847", "0.43386814", "0.4338329", "0.43360776", "0.43144444", "0.4283819", "0.42656896", "0.42640093", "0.42579865", "0.42407697", "0.4240057", "0....
0.5541246
0
get size params to calculate animations
@Override public void onGlobalLayout() { list_h = list.getHeight(); fab_y = fab.getY(); // define new animations and pass them into the AutoHideHelper Animator animShow = ObjectAnimator.ofFloat(null, "y", fab_y); animShow.setDuration(200); animShow.setInterpolator(new AccelerateInterpolator()); Animator animHide = ObjectAnimator.ofFloat(null, "y", list_h); animHide.setDuration(200); animHide.setInterpolator(new DecelerateInterpolator()); hideHelper.setShowAnimation(animShow); hideHelper.setHideAnimation(animHide); // remove listener fab.getViewTreeObserver().removeOnGlobalLayoutListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void settings() { size(1200, 800); }", "private String svgSizes(String id) {\n StringBuilder toReturn = new StringBuilder();\n String w;\n String h;\n for (AAction a : model.getSizes(id)) {\n if (model.currentShape(0, id).isRectangle()) {\n w = \"width\";\n h = \"height\";\...
[ "0.6225943", "0.604488", "0.6043537", "0.6043537", "0.6020519", "0.5995025", "0.5875241", "0.5845033", "0.57979834", "0.5795435", "0.57647496", "0.573004", "0.5695681", "0.56947094", "0.5673805", "0.56651384", "0.56562454", "0.56550384", "0.5631789", "0.56234246", "0.558996",...
0.0
-1
Reader for Germplasm lists
public interface GermplasmListReader { public static final String LABEL_LIST_ID = "LIST ID"; public static final String LABEL_LIST_NAME = "LIST NAME"; public static final String LABEL_LIST_DATE = "LIST DATE"; public static final String LABEL_LIST_TYPE = "LIST TYPE"; public static final String LABEL_LIST_TITLE = "LIST TITLE"; public static final String HEADER_GID = "GID"; public static final String HEADER_ENTRY_CD = "ENTRY CD"; public static final String HEADER_ENTRY_CODE = "ENTRY CODE"; public static final String HEADER_DESIGNATION = "DESIG"; public static final String HEADER_CROSS = "CROSS"; public static final String HEADER_SOURCE = "SOURCE"; public static final String HEADER_UNIQUE_ID = "UNIQUE ID"; public static final String HEADER_ENTRY_ID = "ENTRY"; // Assume that entry values starts at 7 (8) public static final int ROW_HEADER_INDEX = 7; public static final int COLUMN_GID = 0; public static final int COLUMN_ENTRY_CODE = 1; public static final int COLUMN_DESIGNATION = 2; public static final int COLUMN_CROSS = 3; public static final int COLUMN_SOURCE = 4; public static final int COLUMN_UNIQUE_ID = 5; public static final int COLUMN_ENTRY_ID = 6; public static final int MAX_ROW = 2000; /** * Get Germplasm info from a excel file according to Germplasm template * @param fileName The file name including full path FullName * @return GermplasmList object with all entries */ public GermplasmList getGermPlasmList(String fileName) throws Exception; public boolean isValidTemplate(String fileName) throws Exception; public boolean isValidCrossScript(String fileName) throws Exception; /** * Get Germplasm info from database according to Germplasm list id * @param listid ID for germplasm list * @return GermplasmList object with all entries */ public GermplasmList getGermPlasmListFromDB(Integer listid); /** * Assign sheet number where Germplasm list is containted * * @param sheetNumber */ public void setSheetNumberForGermplasm(Integer sheetNumber); /** * Assign sheet namn where Germplasm list is containted * * @param sheetNumber */ public void setSheetNameForGermplasm(String sheetName); /** * Assign the list of factors header to read excel template * @param factorHeader */ public void setEntryFactors(List<Factor> entryFactors); /** * Is it a germplasm template * @param isGermplasmTemplate */ public void setIsGermplasmTemplate(boolean isGermplasmTemplate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> readList();", "List<T> read();", "public GermplasmList getGermPlasmList(String fileName) throws Exception;", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux...
[ "0.66583455", "0.65756303", "0.6527426", "0.5990799", "0.59230685", "0.59197253", "0.5903963", "0.59027934", "0.58139116", "0.58077633", "0.58063895", "0.57904696", "0.5749051", "0.5722426", "0.5693453", "0.5691369", "0.56467056", "0.56281066", "0.56262916", "0.56232756", "0....
0.66452557
1
Get Germplasm info from a excel file according to Germplasm template
public GermplasmList getGermPlasmList(String fileName) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Excel getExcelInst();", "static Multimap<String, String> readELSXFile(String excelFileLoc, String sheetName) throws Exception {\n logger.info(\"Start executing readELSXFile method !!!\");\n\n Multimap<String, String> returnMap = ArrayListMultimap.create();\n Multimap<String, String> tags_to_...
[ "0.6127885", "0.59209156", "0.5904709", "0.58538055", "0.5834612", "0.5833018", "0.5725948", "0.5724045", "0.5694941", "0.5686313", "0.56795615", "0.56730205", "0.56600696", "0.5648181", "0.5588552", "0.5564787", "0.5523887", "0.5516797", "0.5514377", "0.54930353", "0.5444445...
0.0
-1
Get Germplasm info from database according to Germplasm list id
public GermplasmList getGermPlasmListFromDB(Integer listid);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Sale> saleListGenre() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT * FROM disquera.sale \\n\"\n + \"join disquera.g...
[ "0.61095184", "0.59021235", "0.58953816", "0.58236605", "0.5779459", "0.5778944", "0.57786393", "0.5766475", "0.57361656", "0.573091", "0.57068145", "0.57014954", "0.5694239", "0.56928134", "0.5688169", "0.565708", "0.56545043", "0.56514496", "0.5633581", "0.5630816", "0.5617...
0.75408316
0
Assign sheet number where Germplasm list is containted
public void setSheetNumberForGermplasm(Integer sheetNumber);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSheetNumber(int number){\n this.sheetNumber = number;\n }", "public int getSheetNumber(){\n return sheetNumber;\n }", "public void setSheetId(long value) {\r\n this.sheetId = value;\r\n }", "public int getSheetIndex() {\r\n return sheetIndex;\r\n }", "...
[ "0.7073443", "0.6706119", "0.6385697", "0.6078202", "0.58790773", "0.5877302", "0.57841885", "0.56655097", "0.5652945", "0.5621458", "0.56052643", "0.5542779", "0.5450374", "0.54325575", "0.54051465", "0.53669107", "0.53512603", "0.53362536", "0.53142077", "0.5309092", "0.530...
0.733486
0
Assign sheet namn where Germplasm list is containted
public void setSheetNameForGermplasm(String sheetName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSheetName(String name){\n this.sheetName = name;\n }", "public String getSheetName(){\n return sheetName;\n }", "public void setSheetName(int arg0, String arg1) {\n\n\t}", "public final String getName() {\n/* 231 */ return \"sheet-collate\";\n/* */ }", "public v...
[ "0.6726639", "0.65566355", "0.6527555", "0.64096755", "0.63714445", "0.62591374", "0.61728394", "0.5854983", "0.57582694", "0.57491475", "0.57428116", "0.56130344", "0.5533135", "0.55329657", "0.5424447", "0.54069597", "0.5405722", "0.5396781", "0.5310514", "0.5276774", "0.52...
0.7169205
0
Assign the list of factors header to read excel template
public void setEntryFactors(List<Factor> entryFactors);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHead...
[ "0.6173942", "0.5981934", "0.5768856", "0.5722734", "0.5552441", "0.5493278", "0.5451995", "0.5412468", "0.5399277", "0.5398931", "0.5397255", "0.53193605", "0.53169024", "0.527349", "0.5266053", "0.5248021", "0.52448463", "0.5189992", "0.51825464", "0.5178861", "0.5149107", ...
0.0
-1
Is it a germplasm template
public void setIsGermplasmTemplate(boolean isGermplasmTemplate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isHtmlbyTemplate() {\n\t\treturn singleItem || headless?false:freeMarkerSupport.isHtmlbyTemplate();\r\n\t}", "boolean isTemplated() {\n\t\treturn this.templated;\n\t}", "String getTemplate();", "public boolean isTemplate(String subExpression) {\n Element e = getElement(subE...
[ "0.6304535", "0.6301546", "0.6248855", "0.6045767", "0.59951645", "0.5961915", "0.5948687", "0.5878984", "0.5792951", "0.57757235", "0.56659955", "0.56192595", "0.5616903", "0.55231756", "0.5453474", "0.5444506", "0.5407501", "0.53910875", "0.5390175", "0.5369909", "0.5367206...
0.63120586
0
Complete the kangaroo function below.
static String kangaroo(int x1, int v1, int x2, int v2) { int x=x1-x2; int v=v2-v1; if(v!=0){ if(x%v==0 && x/v>0){ return "YES"; }else {return "NO";} }else {return "NO";} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "public void func_70295_k_() {}", "public void baocun() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void gored() {\n\t\t\n\t}", "void k...
[ "0.74133706", "0.647431", "0.64230096", "0.64198864", "0.63757664", "0.6355993", "0.6324395", "0.6320213", "0.6292712", "0.6283856", "0.6211568", "0.6182621", "0.615528", "0.6152702", "0.6141806", "0.61357254", "0.61106503", "0.6106032", "0.6098019", "0.6070022", "0.6056645",...
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.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { textUsuario = new javax.swing.JTextField(); textContraseña = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); textNombre = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); textDocumento = new javax.swing.JTextField(); textApellido = new javax.swing.JTextField(); textTelefono = new javax.swing.JTextField(); textDireccion = new javax.swing.JTextField(); botonActualizar = new javax.swing.JButton(); botonCancelar = new javax.swing.JButton(); labelIdUsuario = new javax.swing.JLabel(); textoIdUsuairo = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("Usuario"); jLabel2.setText("Contraseña"); jLabel3.setText("Nombre"); textNombre.setToolTipText(""); jLabel4.setText("Apellido"); jLabel5.setText("Documento"); jLabel6.setText("Teléfono"); jLabel7.setText("Dirección"); botonActualizar.setText("Actualizar"); botonActualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonActualizarActionPerformed(evt); } }); botonCancelar.setText("Cancelar"); botonCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonCancelarActionPerformed(evt); } }); labelIdUsuario.setText("ID Usuario:"); textoIdUsuairo.setText("idUsuario"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(botonActualizar) .addGap(69, 69, 69) .addComponent(botonCancelar)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(textDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addGap(30, 30, 30) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(textNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE) .addComponent(textUsuario))) .addComponent(jLabel7) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(labelIdUsuario) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(textoIdUsuairo))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel6)) .addComponent(jLabel4)) .addGap(27, 27, 27) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(textApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(textDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(30, 30, 30)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(labelIdUsuario) .addComponent(textoIdUsuairo)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(textUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2) .addComponent(textContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(textNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(textApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(textDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(20, 20, 20) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(textDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(16, 16, 16) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(botonCancelar) .addComponent(botonActualizar)) .addGap(26, 26, 26)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458...
0.0
-1
//GENEND:initComponents Obtengo todos los datos del usuario que voy a actualizar.
private void cargarDatosUsuario() { this.textUsuario.setText(this.usuarioCargado.getUsuario()); this.textContraseña.setText(this.usuarioCargado.getContraseña()); this.textNombre.setText(this.usuarioCargado.getNombre()); this.textApellido.setText(this.usuarioCargado.getApellido()); this.textDocumento.setText(String.valueOf(this.usuarioCargado.getDocumento())); this.textTelefono.setText(String.valueOf(this.usuarioCargado.getTelefono())); this.textDireccion.setText(this.usuarioCargado.getDireccion()); this.textoIdUsuairo.setText(String.valueOf(this.usuarioCargado.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.ge...
[ "0.70116836", "0.6957342", "0.6772427", "0.66910064", "0.6531136", "0.6484197", "0.644355", "0.6373713", "0.6350969", "0.6343146", "0.63175684", "0.6272253", "0.62685287", "0.6253413", "0.62367594", "0.6233613", "0.6205267", "0.61982846", "0.6192211", "0.616495", "0.6164046",...
0.6661292
4
GENFIRST:event_botonActualizarActionPerformed Creo varialbes para llevar estado de errores.
private void botonActualizarActionPerformed(java.awt.event.ActionEvent evt) { boolean errorFormatoDocumento = false; boolean errorFormatoTelefono = false; String usuario = this.textUsuario.getText(); String contraseña = this.textContraseña.getText(); String nombre = this.textNombre.getText(); String apellido = this.textApellido.getText(); String direccion = this.textDireccion.getText(); int documento = 0; int telefono = 0; // Controlo que el documento sea un número if (controladorUsuarios.esNumero(this.textDocumento.getText())) { errorFormatoDocumento = false; documento = Integer.valueOf(this.textDocumento.getText()); } else { // Si no es número, tiro error errorFormatoDocumento = true; JOptionPane.showMessageDialog(this, "Documento debe ser un número.", "Error", JOptionPane.ERROR_MESSAGE); } // Controlo que el teléfono sea un número if (controladorUsuarios.esNumero(this.textTelefono.getText())) { errorFormatoTelefono = false; telefono = Integer.valueOf(this.textTelefono.getText()); } else { // si no es número, tiro error errorFormatoDocumento = true; JOptionPane.showMessageDialog(this, "Teléfono debe ser un número.", "Error", JOptionPane.ERROR_MESSAGE); } String sentenciaInsertarUsuario = "UPDATE usuarios\n" + "SET usuario = '" + usuario + "', contraseña = '" + contraseña + "', nombre = '" + nombre + "', apellido = '" + apellido + "', documento = '" + documento + "', telefono = '" + telefono + "', direccion = '" + direccion + "'\n" + "WHERE id_usuario = '" + this.usuarioCargado.getId() + "';"; try { // debo verificar si el usuario ya existe antes de mandar crearlo if (controladorUsuarios.usuarioYaExiste(this.usuarioCargado.getId(), usuario)) { JOptionPane.showMessageDialog(this, "Ese usuario ya existe. Pongale otro nombre de usuario.", "Error", JOptionPane.ERROR_MESSAGE); } else if (!errorFormatoDocumento && !errorFormatoTelefono) { // Si no hay errores, envío la sentencia a la base de datos. adminPostgres.enviarSentencia(sentenciaInsertarUsuario); pantallaAnterior.construirTabla(); this.dispose(); } } catch (SQLException ex) { Logger.getLogger(FormularioNuevoUsuario.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "private void mesC...
[ "0.696223", "0.6659851", "0.6638756", "0.6569956", "0.65046155", "0.6435047", "0.6369183", "0.6366841", "0.63481677", "0.6340824", "0.63194907", "0.627995", "0.6242143", "0.6208002", "0.61755115", "0.6156271", "0.6126778", "0.6116038", "0.6077673", "0.6063746", "0.604709", ...
0.66059434
3
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_list_urls, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7249201", "0.7204109", "0.7197405", "0.71792436", "0.7109801", "0.7041446", "0.7040234", "0.70145714", "0.7011273", "0.6983118", "0.6946729", "0.6940447", "0.6936383", "0.6920103", "0.6920103", "0.6893587", "0.6885479", "0.6877562", "0.6877041", "0.6864375", "0.6864375", ...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.restaurar) { new ListaSorteiosTask(this).execute(); } 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.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653"...
0.0
-1
TODO Autogenerated method stub
@Override public boolean deleteProductData(int id) { return dao.deleteProductData(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean addProduct(Products productInfoBean) { return dao.addProduct(productInfoBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateRecord(Products productInfoBean) { return dao.updateRecord(productInfoBean); }
{ "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 List<Products> getAllProduct() { return dao.getAllProduct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by MrLiu on 2017/12/26.
public interface IStudyFragmentView { void listSuccess(List<StudyList.DataBean> beanList); void listFail(String message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.59736484", "0.5899775", "0.57395744", "0.57383895", "0.56666446", "0.56666446", "0.564459", "0.5619413", "0.5609207", "0.5608743", "0.56052387", "0.55634785", "0.55417126", "0.5541367", "0.5541046", "0.55273193", "0.5511979", "0.55103475", "0.55087185", "0.55066204", "0.55...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which, boolean isChecked) { if (isChecked) { Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Function Interface represents a function which takes in one argument and produces a result. This functional interface takes in 2 generics, namely: T: denotes the type of the input argument R: denotes the return type of the function The lambda expression assigned to an object of Function type is used to define it's apply() which eventually applies the given function on the argument. example of apply()
public static void main(String[] args) { Function<Integer, Double> half = a -> a / 2.0; System.out.println(half.apply(10)); //example of andThen() half = half.andThen(a -> 3 * a); System.out.println(half.apply(10)); //example of compose() //This returns a composed function wherein the parameterized function //will be executed first and the nthe first one. If evaluation of either //function throws an error, it is relayed to the caller of the composed function }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Function<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n R apply(T t);\n}", "public interface Function<IN, OUT> {\n\n /**\n * Compute the result of applying the functio...
[ "0.7945935", "0.77067435", "0.7446042", "0.7398165", "0.73485035", "0.70602906", "0.6988727", "0.69675386", "0.69396436", "0.69051844", "0.68436366", "0.68271774", "0.6797917", "0.6797917", "0.67904395", "0.678776", "0.67576385", "0.6741971", "0.6683386", "0.6646583", "0.6607...
0.0
-1
Draws the screen and all the components in it.
@Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { this.drawDefaultBackground(); super.drawScreen(mouseX, mouseY, partialTicks); this.renderHoveredToolTip(mouseX, mouseY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the ...
[ "0.7989369", "0.77308077", "0.75254714", "0.74864423", "0.748064", "0.74355334", "0.7434093", "0.742148", "0.7397979", "0.7381389", "0.73742825", "0.73723125", "0.7342041", "0.73172706", "0.7283561", "0.7282096", "0.726338", "0.7250468", "0.7232651", "0.72291136", "0.7206995"...
0.0
-1
Draw the foreground layer for the GuiContainer (everything in front of the items)
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { this.fontRenderer.drawString(this.toolboxInv.getDisplayName().getUnformattedText(), 8, 6, 4210752); this.fontRenderer.drawString(this.playerInv.getDisplayName().getUnformattedText(), 8, this.ySize - 96 + 2, 4210752); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n String s = this.tileEntity.hasCustomInventoryName() ? this.tileEntity.getInventoryName() : I18n.format(this.tileEntity.getInventoryN...
[ "0.78946555", "0.7522634", "0.7519581", "0.74741834", "0.744235", "0.72891134", "0.72759205", "0.7201048", "0.70480764", "0.6993155", "0.69546014", "0.6951155", "0.68817866", "0.6853076", "0.6837132", "0.6795002", "0.675637", "0.67407787", "0.6705569", "0.66921294", "0.659357...
0.6676825
20
Draws the background layer of this container (behind the items).
@Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(CHEST_GUI_TEXTURE); int i = (this.width - this.xSize) / 2; int j = (this.height - this.ySize) / 2; this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.inventoryRows * 18 + 17); this.drawTexturedModalRect(i, j + this.inventoryRows * 18 + 17, 0, 126, this.xSize, 96); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n\t\tsuper.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);\n\n\t\tGlStateManager.color(1, 1, 1,1 );\n\t\tthis.mc.getTextureManager().bindTexture(getTexture());\n\t\tthis.drawTexturedModalRect(xBase, yBase, 0...
[ "0.70760053", "0.6907204", "0.6863131", "0.681797", "0.6784848", "0.6740102", "0.6689071", "0.65808916", "0.65722144", "0.65214145", "0.6494457", "0.64857453", "0.6463672", "0.64457226", "0.641351", "0.6389641", "0.63649315", "0.6307549", "0.6303136", "0.62846476", "0.6252107...
0.7115377
0
Creates a new instance of CAccountElement
public CAccountElement() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Account createAccount(byte[] address) {\n return new Account(address);\n }", "Account() { }", "public Account() {\n this(DSL.name(\"account\"), null);\n }", "public Account() {\r\n\t\tthis(\"unknown@billsplit.com\", \"Account\");\r\n\t}", "private Account createAccount8() {\n ...
[ "0.6714577", "0.67064875", "0.6523191", "0.6519937", "0.6485862", "0.62989086", "0.6292924", "0.62901753", "0.6268224", "0.623985", "0.6230604", "0.621999", "0.62090915", "0.62090915", "0.6204228", "0.6181392", "0.61732644", "0.6169511", "0.61415476", "0.61110544", "0.60967",...
0.7871365
0
Getter for property key.
public String getKey() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String getPropKey() {\n return propKey;\n }", "public String propKey() {\n return propKey;\n }", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "public ...
[ "0.8043425", "0.7748214", "0.7633747", "0.7581007", "0.7581007", "0.7581007", "0.7377497", "0.7312816", "0.72935414", "0.7279241", "0.7273526", "0.7258101", "0.7253103", "0.7154231", "0.71540076", "0.709679", "0.70721334", "0.70721334", "0.70721334", "0.70721334", "0.70721334...
0.670288
81
Setter for property key.
public void setKey(String key) { this.key = key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public void setProperty(String key, Object value);", "public void setPropKey(String propKey) {\n this.propKey = propKey;\n }", "public void setProperty( String key, Object value );", "public DrillBuilder setPropertyKey...
[ "0.7154949", "0.70806235", "0.70298225", "0.7009142", "0.70086116", "0.6973843", "0.6969732", "0.69335926", "0.691615", "0.691615", "0.68891454", "0.6887481", "0.6876102", "0.68660414", "0.6792621", "0.6792621", "0.6792621", "0.6773853", "0.67637014", "0.6761238", "0.6756795"...
0.6783584
17
Getter for property name.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPropertyName();", "PropertyName getName();", "public String getPropertyName();", "public String get(String propertyName);", "public String getProperty(String name);", "public String getPropertyName()\n {\n return propertyName;\n }", "public String getPropertyName() {\n return t...
[ "0.83975804", "0.8175196", "0.8058347", "0.7687427", "0.76464766", "0.76324207", "0.7582717", "0.75726", "0.7568745", "0.75610274", "0.7534665", "0.75312537", "0.7521377", "0.74124044", "0.73422915", "0.73317814", "0.7303248", "0.72567415", "0.72500825", "0.72500825", "0.7250...
0.0
-1
Setter for property name.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setNameProperty(String nameProperty) {\n\t\tif(nameProperty == null) throw new IllegalArgumentException(\"A field name must be specified\");\n\t\tthis.nameProperty = nameProperty;\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProp...
[ "0.77700365", "0.75406563", "0.74024355", "0.733989", "0.7224554", "0.7101123", "0.7097367", "0.70846015", "0.70728725", "0.7068073", "0.70389825", "0.70276797", "0.70276797", "0.70273113", "0.7017126", "0.69862634", "0.69371015", "0.69371015", "0.69371015", "0.69264525", "0....
0.0
-1
Getter for property description.
public String getDescription() { return this.description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "@gw.internal.gosu...
[ "0.8753798", "0.84291893", "0.8415797", "0.8058795", "0.80583334", "0.796787", "0.7961962", "0.7961962", "0.7961962", "0.7961962", "0.79477066", "0.79477066", "0.7945373", "0.7945373", "0.7945373", "0.7939554", "0.7939554", "0.7939554", "0.7939554", "0.7939554", "0.79377055",...
0.7858476
56
Setter for property description.
public void setDescription(String description) { this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescripti...
[ "0.79256314", "0.78992784", "0.7842296", "0.7829855", "0.7752329", "0.76633346", "0.7629595", "0.762323", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.7553511", "0.7553192", "0.7547453", "0.7547453", "0.75313807", "0.75313807", "0.753...
0.0
-1
Getter for property type.
public String getType() { return this.type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TLPropertyType getType() {\n return type;\n }", "public StringProperty typeProperty() {\n return type.getHint().textProperty();\n }", "public ObjectProperty<ShapeType> typeProperty() {\n\t\t\treturn type;\n\t\t}", "public int getPropertyType() {\n\t\treturn 0;\n\t}", "@Override\r...
[ "0.79245716", "0.76278484", "0.7387444", "0.7384841", "0.7127371", "0.706518", "0.70114225", "0.69758046", "0.6904032", "0.68359303", "0.68200564", "0.67851603", "0.67733693", "0.6709352", "0.67076546", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.66865...
0.6546441
89
Setter for property type.
public void setType(String type) { this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public void setType(TLPropertyType type) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.TYPE_ASSIGNMENT_MODIFIED, this )\n .setOldValue( this.type ).setNewValue( type ).buildEvent();\n\n ...
[ "0.7674971", "0.73130023", "0.7300281", "0.71576065", "0.70419896", "0.69894356", "0.6987219", "0.69150114", "0.6904489", "0.68734527", "0.6851081", "0.68343616", "0.68301207", "0.68174815", "0.6811225", "0.6810804", "0.6810215", "0.6807292", "0.6799306", "0.67936534", "0.677...
0.6596969
86
Getter for property sign.
public String getSign() { return this.sign; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSign() {\n return sign;\n }", "public Sign getSign() {\n return sign;\n }", "String getSign();", "public java.lang.String sign() {\n\n return java.lang.String.valueOf(this.getValue().charAt(0));\n }", "@Override\n\tpublic String representation() {\n\t\treturn ...
[ "0.7740639", "0.7739496", "0.7490588", "0.68731016", "0.68407744", "0.65540504", "0.6513902", "0.65108067", "0.6470595", "0.6388444", "0.6354616", "0.63152736", "0.6262882", "0.61656505", "0.61056405", "0.61041874", "0.6087757", "0.6063886", "0.60119504", "0.6002156", "0.5994...
0.7679558
2
Setter for property sign.
public void setSign(String sign) { this.sign = sign; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSign() {\n\n return this.sign;\n }", "public String getSign() {\n return sign;\n }", "public void setSign(String sign) {\n this.sign = sign == null ? null : sign.trim();\n }", "public String setSign() {\r\n\r\n\t\tif (getOperand().length() == Config.MAX_SIZE) {\...
[ "0.71301454", "0.7091477", "0.6949226", "0.6861053", "0.67993677", "0.6745887", "0.6737833", "0.63640916", "0.63544655", "0.6293428", "0.61633646", "0.60913485", "0.5891036", "0.5683867", "0.5657928", "0.5596855", "0.55747604", "0.5513077", "0.5440672", "0.5436575", "0.541925...
0.7399933
0
Getter for property document.
public boolean isDocument() { return this.document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property getProperty();", "Property getProperty();", "public String getProperty();", "java.lang.String getProperty();", "public Document getDocument() {\n return doc;\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public Document getDocument() {\n return _d...
[ "0.7087519", "0.7087519", "0.6968964", "0.68718415", "0.67814827", "0.6775251", "0.6775251", "0.6775251", "0.6761134", "0.6743374", "0.6727674", "0.67221546", "0.67221546", "0.6717721", "0.66685003", "0.6664514", "0.66368014", "0.6626245", "0.66217333", "0.66090244", "0.65954...
0.0
-1
Setter for property document.
public void setDocument(boolean document) { this.document = document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocument(Document value) {\n document = value;\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}", "public void setProperty(String name,Object value);", "public void setP...
[ "0.6944908", "0.68117625", "0.6754174", "0.6565918", "0.64824486", "0.6480244", "0.63896024", "0.63851255", "0.63794166", "0.6326527", "0.63212764", "0.62264854", "0.62264854", "0.6156548", "0.6154337", "0.6133917", "0.6100296", "0.6073402", "0.6072405", "0.6048715", "0.60232...
0.5418326
81
Getter for property summary.
public boolean isSummary() { return this.summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "java.lang.String getSummary();", "public String getSummary() {\r\n return summary;\r\n }", "public String getSummary() {\n return summary;\n }", "public String getSummary();", "@JsonProperty(\"summary\")...
[ "0.77382576", "0.76643693", "0.7585386", "0.75531805", "0.75466394", "0.74948823", "0.74897677", "0.74897677", "0.74504685", "0.72656655", "0.7071243", "0.6946949", "0.69151133", "0.68460596", "0.67845434", "0.6657506", "0.6653005", "0.6652903", "0.6624739", "0.6568897", "0.6...
0.6165241
51
Setter for property summary.
public void setSummary(boolean summary) { this.summary = summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSummary(java.lang.String summary);", "public void setSummary(String summary) {\n this.summary = summary;\n }", "public void setSummary(java.lang.String summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = n...
[ "0.7993323", "0.7661637", "0.7628542", "0.7586893", "0.756125", "0.7499414", "0.7375483", "0.7336111", "0.727671", "0.72623646", "0.71921957", "0.7150211", "0.7120257", "0.7088684", "0.7088684", "0.6949635", "0.6913894", "0.68962467", "0.68189657", "0.68139565", "0.6714697", ...
0.7096383
13
Getter for property defaultAccount.
public String getDefaultAccount() { return this.defaultAccount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "public static Account defaultAccount() {\n return Account.fromHexString(\n \"0xe05d9e08a18cf5573a92d030342c3b45395cd952e02346ba78e16421ee9dad88\");\n }", "public java.lang.String getDefaultAccountAndContactA...
[ "0.82509863", "0.75938064", "0.7123111", "0.68171656", "0.6570032", "0.6570032", "0.65248656", "0.65203786", "0.6505914", "0.6500486", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.64731866...
0.8830221
0