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
start Spring application context to get Spring beans
public static void main(String[] args) { try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class)) { StudentDao studentDao = ctx.getBean(StudentDao.class); Student student = new Student("Lea", "lea@mail"); studentDao.saveStudent(student); System.out.println(student + " saved"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().ge...
[ "0.6934633", "0.6625967", "0.6573517", "0.64313036", "0.6376689", "0.6334133", "0.6318622", "0.63101757", "0.630705", "0.62916327", "0.62374884", "0.6154356", "0.61519665", "0.613117", "0.612155", "0.61003155", "0.60717994", "0.6060621", "0.6059178", "0.6020233", "0.6016349",...
0.0
-1
Created by pk on 6/25/2015.
public interface PrimaryBankService { @GET("/user/bank") void getPrimaryBankDetail(Callback<List<BankDetail>> callback); @POST("/user/bank") void createPrimaryBankDetail(@Body List<BankDetail> bankDetail, Callback<List<BankDetail>> callback); @POST("/user/netBankingperfios") void uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse, Callback<PerfiosTransactionResponse> callback); @POST("/user/netBankingperfios") PerfiosTransactionResponse uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse); //@PUT("/user/bank") //void updatePrimaryBankDetail(@Body BankDetail bankDetail, Callback<BankDetail> callback); public static class PerfiosTransactionResponse{ private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } } public static class BankDetail{ @SerializedName(value = "name") private String bankName; @SerializedName(value = "account_no") private String accountNumber; private boolean isPrimary = false; private boolean userStatementPresent = false; public boolean isUserStatementPresent() { return userStatementPresent; } public void setUserStatementPresent(boolean userStatementPresent) { this.userStatementPresent = userStatementPresent; } public String getBankName() { return bankName; } public void setBankName(String bankName) { this.bankName = bankName; } public String getAccountNumber() { return accountNumber; } public String getAccountNumberLast4Digits() { if(accountNumber!= null && accountNumber.length()>4) { return accountNumber.substring(accountNumber.length()-4); } return accountNumber; } public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } public boolean isPrimary() { return isPrimary; } public void setIsPrimary(boolean isPrimary) { this.isPrimary = isPrimary; } @Override public boolean equals(Object obj) { if(obj != null && obj instanceof BankDetail) { BankDetail second = (BankDetail)obj; return this.bankName.equals(second.getBankName()) && this.getAccountNumberLast4Digits().equals(second.getAccountNumberLast4Digits()); } return false; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t...
[ "0.5965331", "0.59023786", "0.58667403", "0.5862105", "0.58352697", "0.57915306", "0.5768916", "0.575801", "0.5744109", "0.5735181", "0.57345945", "0.57345945", "0.5708316", "0.5705422", "0.5685065", "0.56337094", "0.5618871", "0.5587906", "0.55406225", "0.553835", "0.5521341...
0.0
-1
Test of getEntityManager method, of class DaftarPengguna.
@Test public void testGetEntityManager() { System.out.println("getEntityManager"); DaftarPengguna instance = new DaftarPengguna(); EntityManager expResult = null; EntityManager result = instance.getEntityManager(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Test(groups = {\"Entity Manager access\"})\n public void testEntityManager00() throws Exception {\n super.testEntityManager00();\n }", "static EntityManager getEntityManager(){\n return ENTITY_MANAGER_FACTORY.createEntityManager();\n }", "abstract E getEntityManager();", ...
[ "0.75082976", "0.7470054", "0.7427566", "0.7417883", "0.7395659", "0.71346724", "0.7121002", "0.70463103", "0.70449996", "0.70432085", "0.7038272", "0.7038272", "0.6949046", "0.6919966", "0.68546575", "0.6706053", "0.6691688", "0.6691623", "0.66688466", "0.66356254", "0.66241...
0.8375987
0
Test of check method, of class DaftarPengguna.
@Test public void testCheck() { System.out.println("check"); String email = ""; String password = ""; DaftarPengguna instance = new DaftarPengguna(); boolean expResult = false; boolean result = instance.check(email, password); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void check();", "void check();", "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "boolean checkVerification();", "void checkValid();", "void check() throws YangException;", "@Test\n public void testCheckId() {\n System.out.println(\"checkId\");\n ...
[ "0.72860336", "0.72860336", "0.717165", "0.7024172", "0.6817995", "0.67498904", "0.6733168", "0.67255133", "0.67255133", "0.671507", "0.66148496", "0.64939344", "0.6462127", "0.64602935", "0.63966835", "0.6395255", "0.63736147", "0.6349854", "0.6345546", "0.6318983", "0.63081...
0.776967
0
Test of checkId method, of class DaftarPengguna.
@Test public void testCheckId() { System.out.println("checkId"); Long id = null; DaftarPengguna instance = new DaftarPengguna(); boolean expResult = false; boolean result = instance.checkId(id); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetId() {\r\n\t\tassertEquals(1, breaku1.getId());\r\n\t\tassertEquals(2, externu1.getId());\r\n\t\tassertEquals(3, meetingu1.getId());\r\n\t\tassertEquals(4, teachu1.getId());\r\n\t}", "public abstract boolean isValidID(long ID);", "public void test_getId() {\n assertEquals(\...
[ "0.72414446", "0.71386844", "0.7014833", "0.69559234", "0.69442225", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.6924869", "0.69246054", "0.69246054", "0.69246054", "0.69246054", "0.69246054", "0.69246054", "0.692...
0.80387396
0
Test of checkEmail method, of class DaftarPengguna.
@Test public void testCheckEmail() { System.out.println("checkEmail"); String email = ""; DaftarPengguna instance = new DaftarPengguna(); boolean expResult = false; boolean result = instance.checkEmail(email); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateEmails(\"abc.xyz@bl.com\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Adde...
[ "0.8003629", "0.7602659", "0.7466549", "0.7461784", "0.73674697", "0.73608124", "0.7351599", "0.72470516", "0.7186244", "0.7186244", "0.7154207", "0.71531713", "0.71531713", "0.71531713", "0.71531713", "0.71531713", "0.7133865", "0.7119303", "0.70912015", "0.70812213", "0.708...
0.80714595
0
Test of getPengguna method, of class DaftarPengguna.
@Test public void testGetPengguna() { System.out.println("getPengguna"); String email = ""; String password = ""; DaftarPengguna instance = new DaftarPengguna(); Pengguna expResult = null; Pengguna result = instance.getPengguna(email, password); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFindPengguna() {\n System.out.println(\"findPengguna\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n Pengguna expResult = null;\n Pengguna result = instance.findPengguna(id);\n assertEquals(expResult, result);\n /...
[ "0.7354943", "0.72192585", "0.7051877", "0.6490479", "0.6262923", "0.6095349", "0.60694176", "0.60105455", "0.5889058", "0.58180326", "0.5804662", "0.5777771", "0.57128906", "0.5702114", "0.5694434", "0.5667144", "0.56517357", "0.5648709", "0.5634263", "0.559794", "0.55899596...
0.794127
0
Test of findPengguna method, of class DaftarPengguna.
@Test public void testFindPengguna() { System.out.println("findPengguna"); Long id = null; DaftarPengguna instance = new DaftarPengguna(); Pengguna expResult = null; Pengguna result = instance.findPengguna(id); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetPengguna() {\n System.out.println(\"getPengguna\");\n String email = \"\";\n String password = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n Pengguna expResult = null;\n Pengguna result = instance.getPengguna(email, password);\n ...
[ "0.6739627", "0.6228521", "0.6126883", "0.61093163", "0.60827696", "0.6071257", "0.593561", "0.5930823", "0.58517915", "0.58167917", "0.5770966", "0.57577384", "0.57008886", "0.5643012", "0.5603206", "0.5587149", "0.55550224", "0.5536269", "0.5470902", "0.54379225", "0.543541...
0.7835701
0
Test of getPenggunas method, of class DaftarPengguna.
@Test public void testGetPenggunas_Long() { System.out.println("getPenggunas"); Long id = null; DaftarPengguna instance = new DaftarPengguna(); List expResult = null; List result = instance.getPenggunas(id); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetPenggunas_0args() {\n System.out.println(\"getPenggunas\");\n DaftarPengguna instance = new DaftarPengguna();\n List expResult = null;\n List result = instance.getPenggunas();\n assertEquals(expResult, result);\n // TODO review the generated t...
[ "0.75115424", "0.7233977", "0.65107286", "0.5935509", "0.5834023", "0.5805562", "0.5779429", "0.57169497", "0.5662601", "0.55961025", "0.559516", "0.55741835", "0.55473995", "0.5531899", "0.5513477", "0.5505774", "0.54967356", "0.5466267", "0.5462762", "0.5430873", "0.5414324...
0.7017544
2
Test of getPenggunas method, of class DaftarPengguna.
@Test public void testGetPenggunas_0args() { System.out.println("getPenggunas"); DaftarPengguna instance = new DaftarPengguna(); List expResult = null; List result = instance.getPenggunas(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetPengguna() {\n System.out.println(\"getPengguna\");\n String email = \"\";\n String password = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n Pengguna expResult = null;\n Pengguna result = instance.getPengguna(email, password);\n ...
[ "0.7233977", "0.7017544", "0.65107286", "0.5935509", "0.5834023", "0.5805562", "0.5779429", "0.57169497", "0.5662601", "0.55961025", "0.559516", "0.55741835", "0.55473995", "0.5531899", "0.5513477", "0.5505774", "0.54967356", "0.5466267", "0.5462762", "0.5430873", "0.54143244...
0.75115424
0
Test of editPengguna method, of class DaftarPengguna.
@Test public void testEditPengguna() { System.out.println("editPengguna"); Pengguna pengguna = null; DaftarPengguna instance = new DaftarPengguna(); instance.editPengguna(pengguna); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }", "@Test \n\tpublic void edit() \n\t{\n\t\tasser...
[ "0.7044515", "0.6944533", "0.6757589", "0.6497529", "0.64767814", "0.63975424", "0.63477105", "0.63364255", "0.6270184", "0.6231205", "0.6206143", "0.62016565", "0.61892956", "0.61871606", "0.612854", "0.6120933", "0.6100746", "0.6094631", "0.6075439", "0.6069722", "0.6048165...
0.81246537
0
Test of addPengguna method, of class DaftarPengguna.
@Test public void testAddPengguna() { System.out.println("addPengguna"); Pengguna pengguna = null; DaftarPengguna instance = new DaftarPengguna(); instance.addPengguna(pengguna); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetPengguna() {\n System.out.println(\"getPengguna\");\n String email = \"\";\n String password = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n Pengguna expResult = null;\n Pengguna result = instance.getPengguna(email, password);\n ...
[ "0.66165525", "0.6595527", "0.65768206", "0.6399632", "0.6148594", "0.61375827", "0.61108774", "0.6102696", "0.60954756", "0.6074089", "0.6054397", "0.6030176", "0.5985823", "0.5978737", "0.59345865", "0.5934429", "0.59281677", "0.59126204", "0.5896571", "0.58679587", "0.5830...
0.8105543
0
Test of deletePengguna method, of class DaftarPengguna.
@Test public void testDeletePengguna() throws Exception { System.out.println("deletePengguna"); Long id = null; DaftarPengguna instance = new DaftarPengguna(); instance.deletePengguna(id); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "@Test\n\tpublic void testD...
[ "0.719666", "0.7133315", "0.70919687", "0.70537066", "0.70302373", "0.70205796", "0.6992391", "0.6991858", "0.6991858", "0.69591314", "0.6913932", "0.6900341", "0.68933743", "0.6879102", "0.6854431", "0.68416953", "0.6837936", "0.6835973", "0.6831597", "0.6815615", "0.6814517...
0.86849326
0
Test of getEmf method, of class DaftarPengguna.
@Test public void testGetEmf() { System.out.println("getEmf"); DaftarPengguna instance = new DaftarPengguna(); EntityManagerFactory expResult = null; EntityManagerFactory result = instance.getEmf(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSetEmf() {\n System.out.println(\"setEmf\");\n EntityManagerFactory emf = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.setEmf(emf);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The t...
[ "0.71849954", "0.6425404", "0.62561244", "0.5945379", "0.5873055", "0.5782694", "0.57302076", "0.5728542", "0.571466", "0.5681438", "0.56336665", "0.560025", "0.55976284", "0.5594236", "0.55698806", "0.55484706", "0.554726", "0.55444294", "0.5525482", "0.551599", "0.549394", ...
0.7723506
0
Test of setEmf method, of class DaftarPengguna.
@Test public void testSetEmf() { System.out.println("setEmf"); EntityManagerFactory emf = null; DaftarPengguna instance = new DaftarPengguna(); instance.setEmf(emf); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetEmf() {\n System.out.println(\"getEmf\");\n DaftarPengguna instance = new DaftarPengguna();\n EntityManagerFactory expResult = null;\n EntityManagerFactory result = instance.getEmf();\n assertEquals(expResult, result);\n // TODO review the gen...
[ "0.679647", "0.67537713", "0.59006715", "0.57941693", "0.57667935", "0.57325256", "0.5719332", "0.57092446", "0.56765103", "0.5629511", "0.5601785", "0.5588214", "0.55761445", "0.5573869", "0.5572257", "0.5568385", "0.5561497", "0.5550231", "0.55071926", "0.5501349", "0.54654...
0.7991061
0
final Request request = Requests.get(0);
@Override public void onBindViewHolder(ViewHolder holder, int position) { holder.mCountOfCompleted.setText(Requests.get(position).num_donator+""+" / "+Requests.get(position).numofuser); holder.mBloodType.setText(Requests.get(position).bloodtype); holder.mDate.setText(Requests.get(position).getTime()); holder.mLocation.setText(Requests.get(position).location); holder.mName.setText(Requests.get(position).user_name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Requests getRequests() {\n return requests;\n }", "void getRequests();", "TransmissionProtocol.Request getRequest(int index);", "public static Request getRequest() {\n return request;\n }", "List<SdkHttpRequest> getRequests();", "java.util.List<TransmissionProtocol.Request> \n ...
[ "0.7192788", "0.70103234", "0.67605907", "0.673053", "0.6672421", "0.66449267", "0.66003186", "0.656826", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0.65436137", "0...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String driver = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/"; String dbname = "source_mantra_db"; String username = "root"; String password = "ClaraPark728!"; Connection conn = null; //this gets the driver and registers it{ try { try { Class.forName(driver).newInstance(); conn = DriverManager.getConnection(url + dbname,username,password); Statement statement = conn.createStatement(); ResultSet resultSet =statement.executeQuery("select * from books"); int i = 0; String t=null; String a=null; float p = 0.0f;Date d=null; while(resultSet.next()){ i = resultSet.getInt("bookId"); t = resultSet.getString("title"); a = resultSet.getString("author"); p = resultSet.getFloat("price"); d = resultSet.getDate("datePub"); System.out.println(i + "\t" +t+"\t"+a+"\t"+p+"\t"+d); } }finally{ conn.close(); } } catch (InstantiationException | IllegalAccessException | ClassNotFoundException | SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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 We ought to be able to ask the decryptCipher (independently of it's current state!)
public int getPlaintextLimit(int ciphertextLimit) { return ciphertextLimit - macSize - record_iv_length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String decrypt(String cipherText);", "@Test\r\n public void testDecrypt()\r\n {\r\n System.out.println(\"decrypt\");\r\n String input = \"0fqylTncsgycZJQ+J5pS7v6/fj8M/fz4bavB/SnIBOQ=\";\r\n KeyMaker km = new KeyMaker();\r\n SecretKeySpec sks = new SecretKeySpec(km.makeKey...
[ "0.684754", "0.6815654", "0.669008", "0.6670842", "0.6600068", "0.6591014", "0.65567124", "0.6535944", "0.6532504", "0.6476651", "0.64586586", "0.63901454", "0.63699955", "0.63524896", "0.63283485", "0.6321718", "0.6302555", "0.6294426", "0.6260063", "0.62452555", "0.6242449"...
0.0
-1
/ additional_data = seq_num + TLSCompressed.type + TLSCompressed.version + TLSCompressed.length
protected byte[] getAdditionalData(long seqNo, short type, int len) throws IOException { byte[] additional_data = new byte[13]; TlsUtils.writeUint64(seqNo, additional_data, 0); TlsUtils.writeUint8(type, additional_data, 8); TlsUtils.writeVersion(context.getServerVersion(), additional_data, 9); TlsUtils.writeUint16(len, additional_data, 11); return additional_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String a(long l10, String string2, long l11, byte[] byArray, String string3) {\n Object object;\n Object object2;\n JSONObject jSONObject;\n long l12;\n Object object3;\n int n10;\n Object object4;\n block17: {\n block16: {\n ...
[ "0.59902513", "0.5371083", "0.5198322", "0.50963616", "0.5082797", "0.5062489", "0.5058886", "0.49972162", "0.4948425", "0.49391416", "0.4896833", "0.48947078", "0.4848132", "0.4816842", "0.47632554", "0.47571766", "0.47391832", "0.47161233", "0.47112903", "0.47065446", "0.46...
0.6170328
0
Calcula la edad a patir de la fecha de nacimiento
public static int getYears(Date fechaNacimiento) { Calendar fechaActual = Calendar.getInstance(); int hoyDia = fechaActual.get(Calendar.DAY_OF_YEAR); Calendar nacimiento = Calendar.getInstance(); nacimiento.setTime(fechaNacimiento); int nacimientoDia = nacimiento.get(Calendar.DAY_OF_YEAR); // Todavía no ha cumplido los años if (nacimientoDia - hoyDia < 0) return fechaActual.get(Calendar.YEAR) - nacimiento.get(Calendar.YEAR) - 1; else // Ya ha cumplido los años return fechaActual.get(Calendar.YEAR) - nacimiento.get(Calendar.YEAR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getFechaNacimiento();", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha cam...
[ "0.69143224", "0.6763469", "0.67155784", "0.6637194", "0.6610289", "0.6570841", "0.64390504", "0.6346667", "0.62876797", "0.62790406", "0.62644595", "0.6213208", "0.61929137", "0.61846936", "0.6179393", "0.6158357", "0.6152355", "0.61473453", "0.61092055", "0.60985565", "0.60...
0.0
-1
Validate Email with regular expression
public static boolean validate(String mobileNo) { // if(mobileNo.length() > 10) // mobileNo = mobileNo.substring(mobileNo.length()-10); pattern = Pattern.compile(MOBILE_PATTERN); matcher = pattern.matcher(mobileNo); return matcher.matches(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean isValid(String email) {\r\n\t\t String regex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\r\n\t\t return email.matches(regex);\r\n\t}", "private boolean isEmailValid(String email) {\n return email.matches(\"^[a-zA-Z]{5,12}$\");\r\n }", "private boolea...
[ "0.78645706", "0.7812508", "0.77753085", "0.7740057", "0.7733386", "0.76476276", "0.7627885", "0.7594782", "0.7555", "0.755271", "0.7548012", "0.7542181", "0.7514232", "0.7514232", "0.7514232", "0.7514232", "0.75125796", "0.7486368", "0.74819565", "0.7480735", "0.74544996", ...
0.0
-1
Checks for Null String object
public static boolean isNotNull(String txt){ return txt!=null && txt.trim().length()>0 ? true: false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "public void testCheckNull() {\n Util.checkNull(...
[ "0.74294907", "0.73421806", "0.7314156", "0.7313515", "0.7226197", "0.7197037", "0.711619", "0.70788395", "0.7073044", "0.6992757", "0.6988361", "0.69581854", "0.6948729", "0.69486505", "0.6892827", "0.6872995", "0.68274486", "0.68274486", "0.67947394", "0.6781013", "0.676244...
0.6580874
29
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_contacts, container, false); ButterKnife.bind(this, v); ContactListViewModel contactListViewModel = ViewModelProviders.of(this).get(ContactListViewModel.class); contactListViewModel.init(); LiveData<PagedList<Contact>> contactsLiveData = contactListViewModel.getContactList(); contactsLiveData.observe(this, new Observer<PagedList<Contact>>() { @Override public void onChanged(@Nullable PagedList<Contact> contacts) { contactListView.setData(contacts); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
LocalDate birthday = LocalDate.of(1990, 7, 4); Driver driver = new Driver("Mockracer", "Mocky", "McMockerson", birthday); when(repository.save(any(Driver.class))).thenReturn(driver);
@BeforeEach void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void whenReviewCreationSuccessful() throws Exception{\n //Arrange\n ReviewMapping first= new ReviewMapping(new Long(1),new Long(2),\"good\",5);\n ReviewMapping second= new ReviewMapping(3L,new Long(1),new Long(1),\"good\",3);\n Mockito.when(reviewRepository.save(ArgumentMat...
[ "0.6948652", "0.6931089", "0.674649", "0.65543544", "0.6498405", "0.6388848", "0.6325636", "0.62512356", "0.6240059", "0.6227262", "0.6218286", "0.6190416", "0.61755913", "0.6162933", "0.6145497", "0.6144438", "0.6143271", "0.6122524", "0.611935", "0.6099873", "0.6098675", ...
0.0
-1
LOGGER.debug(" Before doFilter ");
@Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { servletResponse.setContentType("application/json"); servletResponse.setCharacterEncoding("UTF-8"); servletRequest.setCharacterEncoding("UTF-8"); PrintWriter out = servletResponse.getWriter(); try { if (servletRequest instanceof HttpServletRequest) { String requestURL = ((HttpServletRequest) servletRequest).getRequestURL().toString(); String queryString = ((HttpServletRequest) servletRequest).getQueryString(); queryString = URLDecoder.decode(StringUtils.trimToEmpty(queryString), "UTF-8"); LOGGER.info("doFilter:==>" + requestURL + "?" + queryString); } String remoteHost = servletRequest.getRemoteHost(); String remoteAddr = servletRequest.getRemoteAddr(); LOGGER.info("remoteHost=" + remoteHost + ", remoteAddr=" + remoteAddr); // Validate the token: String token = servletRequest.getParameter(RootAPI.API_KEY); LOGGER.info("token=" + token); if (!this.checkToken(token)) { LOGGER.error("Invalide token=" + token); String jsonStr = ApiResponse.unauthorizedError().toString(); out.print(jsonStr); } else { filterChain.doFilter(servletRequest, servletResponse); } } catch (Exception e) { LOGGER.error(e.getMessage()); out.print(ApiResponse.unknownError().toString()); } // LOGGER.debug(" ******* After doFilter ******* "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean doFilter() { return false; }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Test\n public void filter() {\n\n }", "public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg...
[ "0.7378022", "0.72136986", "0.72136986", "0.71811783", "0.7176347", "0.7100789", "0.7059128", "0.69718915", "0.690441", "0.6852082", "0.68502325", "0.68293655", "0.6799727", "0.67928463", "0.6789542", "0.6776163", "0.6767179", "0.6752591", "0.66966164", "0.66620344", "0.66525...
0.0
-1
TODO Autogenerated method stub
@Transactional(readOnly = true) @Override public List<Map<String, Object>> getList(Map<String, Object> params) { DataManager dataManager = new DataManager(entityManager); dataManager.add("SELECT A.*,B.ENABLE FROM USER_PROFILE A LEFT JOIN USERS B ON A.USERNAME=B.USERNAME WHERE 1=1"); for(String index : params.keySet()) { if(!StringUtils.isBlank(String.valueOf(params.get(index)))) { if(!index.equals("role")) { dataManager.add("AND A."+index.toUpperCase()+" = :"+index+" ",params.get(index)); } } } dataManager.add(" ORDER BY A.USERNAME"); List<Map<String, Object>> result = (List<Map<String, Object>>) dataManager.getResult(); for( Map<String, Object> index : result) { DataManager subDataManager = new DataManager(entityManager); subDataManager.add("SELECT * FROM ROLES WHERE USERNAME = :username",index.get("USERNAME")); subDataManager.add("AND ROLE = :role",params.get("role")); List<Map<String, Object>> subResult = (List<Map<String, Object>>) subDataManager.getResult(); String roles=""; for( Map<String, Object> subIndex : subResult) { if(roles.length()>0) { roles+=","; } roles+=subIndex.get("ROLE"); } index.put("ROLE", roles); } return result; }
{ "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
@Transactional(rollbackFor = Exception.class) @Override public void delete(String username) throws Exception { try { userProfileRepository.delete(username); rolesRepository.delete(username); }catch(Exception ex) { throw new Exception("刪除失敗!",ex); } }
{ "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
@Transactional(rollbackFor = Exception.class) @Override public void update(UserRegisterForm userRegisterForm) throws Exception { try { UserProfile userProfile = new UserProfile(); userProfile.setUsername(userRegisterForm.getUsername()); userProfile.setName(userRegisterForm.getName()); userProfile.setImage(userRegisterForm.getImage()); userProfileRepository.save(userProfile); List<Roles> rolesList = new ArrayList<Roles>(); for (String index : userRegisterForm.getRoles()) { RolesPk id = new RolesPk(); id.setUsername(userRegisterForm.getUsername()); id.setRole(index); Roles roles = new Roles(); roles.setId(id); rolesList.add(roles); } rolesRepository.deleteUsernameAndExcludeRole(userRegisterForm.getUsername(), userRegisterForm.getRoles()); rolesRepository.saveAll(rolesList); }catch(Exception ex) { throw new Exception("更新失敗!",ex); } }
{ "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
@Transactional(readOnly = true) @Override public String getImage() { UserProfile userProfile = userProfileRepository.getOne(UserProfileUtils.getUsername()); return userProfile.getImage(); }
{ "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
Add a book in the database
public static void addBook(Book book) throws HibernateException{ session=sessionFactory.openSession(); session.beginTransaction(); //Insert detail of the book to the database session.save(book); session.getTransaction().commit(); session.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Book addBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}", "private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fir...
[ "0.80073285", "0.79212177", "0.76343095", "0.761304", "0.75121146", "0.75117874", "0.74317884", "0.74057305", "0.7394905", "0.73484874", "0.7336845", "0.73074424", "0.7265185", "0.7210624", "0.71984506", "0.7163489", "0.7146822", "0.71194255", "0.7098487", "0.7080618", "0.706...
0.73114675
11
Update book details in the database
public static void updateBook(Book book) throws HibernateException{ session=sessionFactory.openSession(); session.beginTransaction(); //Update detail of the book to the database session.update(book); session.getTransaction().commit(); session.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updatebook(BookDto book) {\n\t\tsqlSession.update(ns + \"updatebook\", book);\r\n\t}", "@Override\r\n\tpublic Book updateBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}", "public boolean updateBook(Books books){\n String sql=\"update Book set book_name=?,book_publish_date=...
[ "0.7948341", "0.78137153", "0.74429184", "0.7294027", "0.7291182", "0.7250176", "0.71991456", "0.7165953", "0.71649754", "0.71588796", "0.71588796", "0.7154547", "0.7133399", "0.6998072", "0.69619066", "0.6948859", "0.69483066", "0.69303274", "0.69174373", "0.69107294", "0.68...
0.76561886
2
Delete a book in the database
public static int deleteBook(String itemCode) throws HibernateException{ session=sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_deleteBook").setString("itemCode", itemCode); //Execute the query which delete the detail of the book from the database int res=query.executeUpdate(); //check whether transaction is correctly done session.getTransaction().commit(); session.close(); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(Book book){\n try{\n String query = \"DELETE FROM testdb.book WHERE id=\" + book.getId();\n DbConnection.update(query);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "private void deleteBook() {\n readViews();\...
[ "0.8734464", "0.82536477", "0.8222673", "0.81083935", "0.8057556", "0.7940556", "0.7906853", "0.7868474", "0.78365934", "0.75477463", "0.7539604", "0.7514458", "0.74791616", "0.73876387", "0.72588205", "0.7148784", "0.7147462", "0.71078235", "0.7088878", "0.7079534", "0.70771...
0.6751043
36
Load Selected book details to the table in settings according to given item code
public static List<Book> searchBookByItemCode(String itemCode) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByItemCode").setString("itemCode", itemCode); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\t private void loadbookinfo(ActionEvent event) {\n\t \tclearbookcache();\n\t \t\n\t \tString id = bookidinput.getText();\n\t \tString qu = \"SELECT * FROM BOOK_LMS WHERE id = '\" + id + \"'\";\n\t ResultSet rs = dbhandler.execQuery(qu);\n\t Boolean flag = false;\n\t \n\t ...
[ "0.6280886", "0.6252284", "0.60281795", "0.5967595", "0.59351707", "0.58864284", "0.5870026", "0.5826714", "0.5793319", "0.57350826", "0.5720798", "0.56778103", "0.560316", "0.55738014", "0.553065", "0.55258167", "0.5509866", "0.5464111", "0.54635626", "0.54155385", "0.541368...
0.5237584
43
Load Selected book details to the table in settings according to given name
public static List<Book> searchEBookByName(String name) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByName").setString("name", name); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\t private void loadbookinfo(ActionEvent event) {\n\t \tclearbookcache();\n\t \t\n\t \tString id = bookidinput.getText();\n\t \tString qu = \"SELECT * FROM BOOK_LMS WHERE id = '\" + id + \"'\";\n\t ResultSet rs = dbhandler.execQuery(qu);\n\t Boolean flag = false;\n\t \n\t ...
[ "0.6580219", "0.63185734", "0.61762077", "0.61567575", "0.6124185", "0.5980637", "0.5956666", "0.5927356", "0.5885177", "0.5836319", "0.5799591", "0.56240016", "0.5591992", "0.5571187", "0.55270386", "0.55108774", "0.5504855", "0.5504326", "0.5480758", "0.54743177", "0.544914...
0.0
-1
Load Selected book details to the table in settings according to given seller
public static List<Book> searchBookByNameOfSeller(String nameOfSeller) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByNameOfTheSeller").setString("nameOfTheSeller", nameOfSeller); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateUI(BookEntry book) {\n // Return if the task is null\n if (book == null) {\n return;\n }\n // Use the variable book to populate the UI\n mNameEditText.setText(book.getBook_name());\n mQuantityTextView.setText(Integer.toString(book.getQuantit...
[ "0.63099504", "0.6077196", "0.6064007", "0.6039541", "0.5994568", "0.59734684", "0.5722914", "0.5698503", "0.56841576", "0.5661361", "0.5571297", "0.5561962", "0.55132294", "0.55132294", "0.5487453", "0.5471832", "0.54662436", "0.5463797", "0.54568005", "0.5453437", "0.541658...
0.5027273
84
Load Selected book details to the table in settings according to given name and location
public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByNameAndLocation").setString("name", name).setString("location", location); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadBookInformation(String rawPage, Document doc, Book book) {\n BookDetailParser parser = new BookDetailParser();\n SwBook swBook = parser.parseDetailPage(rawPage);\n book.setContributors(swBook.getContributors());\n book.setCover_url(coverUrlParser.parse(doc));\n b...
[ "0.6374507", "0.6370758", "0.61679125", "0.6123859", "0.5894817", "0.58756983", "0.5868508", "0.5771436", "0.57102466", "0.5657854", "0.56442523", "0.55158406", "0.54994863", "0.54942495", "0.5466813", "0.5369261", "0.53651613", "0.53591186", "0.5344246", "0.53066957", "0.529...
0.5172313
37
Load Selected book details to the table in settings according to given name and seller
public static List<Book> searchBookByNameAndNameOfTheSeller(String name,String nameOfTheSeller) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByNameAndNameOfTheSeller").setString("name", name).setString("nameOfTheSeller", nameOfTheSeller); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateUI(BookEntry book) {\n // Return if the task is null\n if (book == null) {\n return;\n }\n // Use the variable book to populate the UI\n mNameEditText.setText(book.getBook_name());\n mQuantityTextView.setText(Integer.toString(book.getQuantit...
[ "0.62704134", "0.6232881", "0.61099684", "0.5971852", "0.5954181", "0.59527594", "0.58763874", "0.5812997", "0.5806655", "0.57921743", "0.5685579", "0.56556207", "0.5507066", "0.55052084", "0.5486312", "0.5485447", "0.54673195", "0.54580325", "0.5454372", "0.54121894", "0.538...
0.53034246
29
Load Selected book details to the table in settings according to given category
public static List<Book> searchBookByCategory(String category) throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query = session.getNamedQuery("INVENTORY_searchBookByCategory").setString("category", category); List<Book> resultList = query.list(); session.getTransaction().commit(); session.close(); return resultList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n ...
[ "0.6991753", "0.6119679", "0.5862582", "0.58372223", "0.57754886", "0.57677925", "0.57220584", "0.5659288", "0.5650861", "0.55645007", "0.5460104", "0.54401505", "0.5431858", "0.5421353", "0.54158556", "0.5405614", "0.53968596", "0.53831786", "0.5364006", "0.53472567", "0.533...
0.54170483
14
Load Book details to the table in settings according to requirement
public static List<Book> getBookDetails_1() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getAllBookList_1"); List<Book> bookList=query.list(); session.getTransaction().commit(); session.close(); return bookList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\t private void loadbookinfo(ActionEvent event) {\n\t \tclearbookcache();\n\t \t\n\t \tString id = bookidinput.getText();\n\t \tString qu = \"SELECT * FROM BOOK_LMS WHERE id = '\" + id + \"'\";\n\t ResultSet rs = dbhandler.execQuery(qu);\n\t Boolean flag = false;\n\t \n\t ...
[ "0.6776885", "0.6586385", "0.6556439", "0.64884394", "0.63168925", "0.6106728", "0.6031598", "0.59153605", "0.5906647", "0.5861638", "0.5852295", "0.5762441", "0.5760744", "0.571398", "0.5711297", "0.5701571", "0.5689648", "0.56773704", "0.56235707", "0.5619944", "0.5603306",...
0.0
-1
Load Book details to the table in settings according to requirement
public static List<Book> getBookDetails_2() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getAllBookList_2"); List<Book> bookList=query.list(); session.getTransaction().commit(); session.close(); return bookList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\t private void loadbookinfo(ActionEvent event) {\n\t \tclearbookcache();\n\t \t\n\t \tString id = bookidinput.getText();\n\t \tString qu = \"SELECT * FROM BOOK_LMS WHERE id = '\" + id + \"'\";\n\t ResultSet rs = dbhandler.execQuery(qu);\n\t Boolean flag = false;\n\t \n\t ...
[ "0.6776885", "0.6586385", "0.6556439", "0.64884394", "0.63168925", "0.6106728", "0.6031598", "0.59153605", "0.5906647", "0.5861638", "0.5852295", "0.5762441", "0.5760744", "0.571398", "0.5711297", "0.5701571", "0.5689648", "0.56773704", "0.56235707", "0.5619944", "0.5603306",...
0.0
-1
Load all Book names in the database
public static List<Book> getBookName() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getBookName"); List<Book> bookNameList=query.list(); session.getTransaction().commit(); session.close(); return bookNameList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadBook() {\n List<Book> books = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n Book book = new Book(\"Book-\" + i, \"Test book \" + i);\n books.add(book);\n }\n this.setBooks(books);\n }", "public void loadBooks(){\n\t\tSystem.out.println(\...
[ "0.7045303", "0.6428399", "0.63954043", "0.6232838", "0.6219205", "0.61774343", "0.61663747", "0.61458397", "0.6108368", "0.6076879", "0.6066756", "0.6061381", "0.6048748", "0.6046782", "0.6039218", "0.60023236", "0.60007113", "0.6000123", "0.59825885", "0.5963586", "0.595266...
0.5856635
30
Load all Location in the database
public static List<Book> getBookLocation() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getBookLocation"); List<Book> bookLocationList=query.list(); session.getTransaction().commit(); session.close(); return bookLocationList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_CO...
[ "0.7295438", "0.7276036", "0.70990264", "0.68784434", "0.6672069", "0.65698785", "0.65655994", "0.6522241", "0.65214425", "0.650537", "0.64238787", "0.6411869", "0.6360155", "0.63438606", "0.6323273", "0.6258246", "0.6242126", "0.6226269", "0.59845036", "0.5982402", "0.597418...
0.0
-1
Load all sellers in the database
public static List<Book> getBookSellers() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getBookSellers"); List<Book> bookLocationList=query.list(); session.getTransaction().commit(); session.close(); return bookLocationList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"\", method = RequestMethod.GET)\n public ArrayList<Seller> getAllSeller()\n {\n return DatabaseSeller.getSellerDatabase();\n }", "List<Seller> findAll();", "@Override\n\tpublic List<Seller> findAll() {\n\t\tStatement st = null;\n\t\tResultSet rst = null;\n\t\ttry {\n\t...
[ "0.71309006", "0.71032023", "0.70531374", "0.64319605", "0.61324155", "0.60800827", "0.59647906", "0.5918441", "0.58993524", "0.58646643", "0.5840635", "0.58080566", "0.57833636", "0.57833636", "0.5729565", "0.5728963", "0.57111925", "0.57067263", "0.5696532", "0.56928366", "...
0.0
-1
Load all categories in the database
public static List<Book> getBookCategory() throws HibernateException{ session = sessionFactory.openSession(); session.beginTransaction(); Query query=session.getNamedQuery("INVENTORY_getBookCategory"); List<Book> bookLocationList=query.list(); session.getTransaction().commit(); session.close(); return bookLocationList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "List<Category> getAllCategories() throws DataBaseException;", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t...
[ "0.78566766", "0.7706488", "0.7430425", "0.7402686", "0.7152647", "0.7063937", "0.70247793", "0.6968725", "0.6930432", "0.68895495", "0.68744534", "0.68569565", "0.68360025", "0.67949724", "0.6789528", "0.67861474", "0.677567", "0.67707133", "0.672303", "0.6719461", "0.670133...
0.0
-1
A method to execute a select statement
public ResultSet executeQueryStatement(String statement) throws SQLException { Statement sqlStmt = connection.createStatement(); // execute the statement and check whether there is a result return sqlStmt.executeQuery(statement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "Object executeSelectQuery(String sql) { ret...
[ "0.7999116", "0.7702022", "0.70752984", "0.69729936", "0.6904955", "0.6859031", "0.68477046", "0.6798035", "0.67209816", "0.6698755", "0.6612133", "0.65817255", "0.6574168", "0.65733236", "0.6563921", "0.6528611", "0.6516817", "0.6511023", "0.6460498", "0.6459221", "0.6446382...
0.59698653
68
A method to execute nonselect statements
public int executeUpdateStatement(String statement) throws SQLException { Statement sqlStmt = connection.createStatement(); // execute the statement and check whether there is a result return sqlStmt.executeUpdate(statement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "protected void execute() {\n \t// literally still do nothing\n }", "public void prepar...
[ "0.7372238", "0.65890557", "0.6479932", "0.61343664", "0.60780215", "0.5930501", "0.5906747", "0.5858352", "0.5822731", "0.58158046", "0.5806758", "0.58042836", "0.57766974", "0.57326245", "0.5706799", "0.5706429", "0.5706429", "0.5706429", "0.5706429", "0.5706429", "0.570642...
0.0
-1
displays the map in the web
public String display(PlayMap aPlayMap) { String tmpOutput = ""; Field tmpField; tmpOutput = "<div class=\"map\" id=\"map\" style=\"width:" + aPlayMap.getXDimension() * 34.75 + "px; "; tmpOutput += "height:" + aPlayMap.getYDimension() * 34.75 + "px;\">\n"; // loop for row for (int i = 0; i < aPlayMap.getYDimension(); i++) { // loop for column for (int j = 0; j < aPlayMap.getXDimension(); j++) { tmpField = aPlayMap.getField(j, i); tmpOutput += "<div id=\"" + j + "/" + i + "\" "; try { tmpOutput += "class=\"field " + Ground.getGroundLabeling(tmpField.getGround()) + "\" "; } catch (UnknownFieldGroundException e) { e.printStackTrace(); } Placeable tmpSetter = tmpField.getSetter(); String tmpColor = new String ("#000000"); String tmpPlacable = new String ("item"); if (tmpSetter != null) { if (tmpSetter instanceof Figure) { tmpColor = new String(); switch (tmpField.getSetter().getId()) { case 'A': tmpColor = "#ff0000"; break; case 'B': tmpColor = "#0000ff"; break; } tmpPlacable = "figure"; } tmpOutput += "onClick=\"checkUserAction(this);\" "; tmpOutput += "onMouseOver=\"hoverOn(this);\" onMouseOut=\"hoverOff(this);\" status=\"placed\" filled=\"" + tmpPlacable + "\" placablecolor=\"" + tmpColor + "\" >"; String tmpImage = tmpSetter.getImage(); tmpOutput += "<img src=\"resources/pictures/" + tmpImage + "\">"; } else { tmpOutput += "onClick=\"checkUserAction(this);\" "; tmpOutput += "onMouseOver=\"hoverOn(this);\" onMouseOut=\"hoverOff(this);\" status=\"empty\" filled=\"no\" placablecolor=\"#000000\" >"; } tmpOutput += "</div>\n"; } } tmpOutput += "</div>\n"; return tmpOutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData !...
[ "0.8077027", "0.746933", "0.744402", "0.7390419", "0.72112226", "0.70857185", "0.6976239", "0.68863785", "0.6745129", "0.67113835", "0.66855866", "0.66792923", "0.6659477", "0.6629925", "0.66244394", "0.6594103", "0.6559589", "0.6534003", "0.65057486", "0.6474565", "0.6420150...
0.6554205
17
Resets the "selected" attribute of any parent Entity controllers.
public void resetParents() { idDepartamentoController.setSelected(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetParents() {\n businessentityController.setSelected(null);\n }", "public void resetParents() {\n oferenteController.setSelected(null);\n expedienteprocesoController.setSelected(null);\n }", "public void resetParents() {\n idEmpleadoController.setSelected(null);...
[ "0.76650393", "0.7534451", "0.74119014", "0.73539287", "0.7280383", "0.72471625", "0.7238065", "0.7148984", "0.71272284", "0.7003519", "0.69074196", "0.6807132", "0.5925203", "0.5890661", "0.5857201", "0.5826842", "0.57976145", "0.5762226", "0.56932205", "0.56463844", "0.5639...
0.7206758
7
Set the "is[ChildCollection]Empty" property for OneToMany fields.
@Override protected void setChildrenEmptyFlags() { this.setIsRutaCollectionEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNotEmpty(){\n this.empty = false;\n }", "@Override\n\tpublic void setEmpty() {\n\t\t\n\t}", "@Override\n protected void setChildrenEmptyFlags() {\n this.setIsMenuRolListEmpty();\n }", "QueryElement addEmpty(String collectionProperty);", "@PrePersist\r\n @PreUpdate\r\n...
[ "0.6611867", "0.6449874", "0.60206395", "0.59109646", "0.57900196", "0.5786118", "0.57683486", "0.5768071", "0.57230675", "0.57108927", "0.56910056", "0.5689972", "0.5688117", "0.5683676", "0.56434673", "0.56409943", "0.5631573", "0.56118006", "0.56118006", "0.55895495", "0.5...
0.6717869
0
Sets the "items" attribute with a collection of Ruta entities that are retrieved from Municipio and returns the navigation outcome.
public String navigateRutaCollection() { Municipio selected = this.getSelected(); if (selected != null) { MunicipioFacade ejbFacade = (MunicipioFacade) this.getFacade(); Collection<Ruta> selectedRutaCollection = ejbFacade.findRutaCollection(selected); FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("Ruta_items", selectedRutaCollection); } return "/app/ruta/index"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItems(Item items) {\n this.items = items;\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public Item getItems() {\n return items;\n }", "public void setItems(String items)\n {\n _items = items;\n }", "public void setItems(...
[ "0.58096325", "0.571871", "0.5540447", "0.55087334", "0.5431392", "0.54220146", "0.53367174", "0.53268087", "0.53109485", "0.5262806", "0.5262806", "0.5238667", "0.523375", "0.5217553", "0.5160338", "0.51597786", "0.51522756", "0.5056322", "0.5042294", "0.50356925", "0.499309...
0.63785505
0
Sets the "selected" attribute of the Departamento controller in order to display its data in its View dialog.
public void prepareIdDepartamento(ActionEvent event) { Municipio selected = this.getSelected(); if (selected != null && idDepartamentoController.getSelected() == null) { idDepartamentoController.setSelected(selected.getIdDepartamento()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedItem( final T selectedEntity ) {\n this.selectedEntity = selectedEntity;\n }", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "public void setSelected(boolean selected) {\n this.selected = selected;\n }", "public void ...
[ "0.6594509", "0.65038455", "0.6420879", "0.6287912", "0.6275238", "0.62596536", "0.6255511", "0.62253386", "0.62216276", "0.6190974", "0.61825824", "0.6181962", "0.6170598", "0.61602724", "0.6143771", "0.61122173", "0.6085376", "0.5944129", "0.59078145", "0.58664626", "0.5820...
0.67047447
0
Suite of the whole set of tests.
public static Test suite() { TestSuite suite = new TestSuite("All hypertree Tests"); suite.addTest(TestHTModel.suite()); suite.addTest(TestHTCoord.suite()); return suite; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}", "public static Test suite() {\n\t\treturn new AllTests();\n\t}", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n\n\n suite.addTestSuite(EntityNotFoundExceptionTest.class);\n suite.addTes...
[ "0.82971126", "0.78900397", "0.7530529", "0.7496658", "0.74136525", "0.7400592", "0.73991066", "0.7371765", "0.7348839", "0.7332846", "0.7324961", "0.7324736", "0.7314256", "0.72957706", "0.7288881", "0.7273237", "0.72606945", "0.7258696", "0.7249223", "0.7211835", "0.7211771...
0.724843
19
Calls performance interpretation and analysis. It launches a wizard that will eventually call the evaluation procedure (external tool).
public void run(IAction action) { if (selection == null || selection.isEmpty()) { return; } boolean saveNoConfirm = BuildAction.isSaveAllSet(); boolean savedOk = PerformanceRFPlugin.getDefault().getWorkbench() .saveAllEditors(!saveNoConfirm); if (!savedOk) { return; } /* check that all the files have the same extension */ String fileExtension = null; for (Iterator it = selection.iterator(); it.hasNext();) { IFile file = (IFile) it.next(); if (fileExtension == null) { fileExtension = file.getFileExtension(); } else if (!file.getFileExtension().equals(fileExtension)) { MessageDialog.openError(null, "Performance Analysis", "All the selected files must be of the same kind in order to perform batch analysis"); return; } } /* default to "no translation needed" if file is already ICM */ ITransformToIcm designToIcmTranslator = null; if (!fileExtension.equals("icm")) { // first check that there's a designToIcm translator for the selected kind of file List<DesignInputExtension> availableDesignInputs = PerformanceRFPlugin.getDefault() .getAvailableDesignInputs(); for (Iterator<DesignInputExtension> it = availableDesignInputs.iterator(); it.hasNext();) { DesignInputExtension designInput = it.next(); if (designInput.getFileExtension().equals(fileExtension)) { designToIcmTranslator = designInput.getTransformToIcmObject(); break; } } if (designToIcmTranslator == null) { String msg = Messages.getString("noDesignToIcmObject");//$NON-NLS-1$ MessageDialog.openError(null, "Performance Analysis", msg); return; } } IWorkbenchWindow wbw = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); // nothing should be written to the console until after the wizard is created. // this is because creating the wizard will create the translation to ICM, which // in the case of CCL, will potentially clear the console if the appropriate // user preference is set. Wizard wizard = (selection.size() > 1) ? new BatchPerfAnalysisWizard(selection, designToIcmTranslator) : new PerfAnalysisWizard((IFile) selection.getFirstElement(), designToIcmTranslator); WizardDialog dialog = new WizardDialog(wbw.getShell(), wizard); dialog.open(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }", "public static void run() {\n testAlgorithmOptimality()...
[ "0.6009834", "0.59355694", "0.5933933", "0.5752558", "0.5668712", "0.5622393", "0.55479956", "0.55134743", "0.54724514", "0.5458775", "0.5427581", "0.53575885", "0.53532803", "0.5348194", "0.53459936", "0.53453416", "0.5334951", "0.5320842", "0.53183603", "0.5311886", "0.5302...
0.5215913
26
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootView = inflater.inflate(R.layout.fragment_home, container, false); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ access modifiers changed from: protected
public String readUtf16String(ByteBuffer byteBuffer) { try { return new String(NIOUtils.toArray(byteBuffer), "utf-16"); } catch (UnsupportedEncodingException unused) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { try { no = Integer.parseInt(index.getText()); max = Double.parseDouble(threshold.getText()); getData(no, max); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } dpanel.repaint(); }
{ "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
Utility to retrieve a view displaying a single permission. This provides the old UI layout for permissions; it is only here for the device admin settings to continue to use.
public static View getPermissionItemView(Context context, CharSequence grpName, CharSequence description, boolean dangerous) { LayoutInflater inflater = (LayoutInflater)context.getSystemService( Context.LAYOUT_INFLATER_SERVICE); Drawable icon = context.getDrawable(dangerous ? R.drawable.ic_bullet_key_permission : R.drawable.ic_text_dot); return getPermissionItemViewOld(context, inflater, grpName, description, dangerous, icon); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getLayoutId() {\n return R.layout.activity_permission;\n }", "String getPermission();", "abstract public void getPermission();", "public Permission getPermission() {\n return permission;\n }", "public String getPermission()\r\n {\r\n return permission...
[ "0.6640611", "0.613677", "0.6057739", "0.596555", "0.5930721", "0.58285445", "0.5784083", "0.5753086", "0.5750457", "0.5750457", "0.5683477", "0.565173", "0.5591399", "0.5549618", "0.5506153", "0.5502605", "0.547272", "0.54684234", "0.54681385", "0.5459781", "0.5447416", "0...
0.5965785
3
Retorna la ruta del archivo .xls de esilo de vida.
public String getRutaEstilo() { return rutaEstilo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String selectExcelFile (){\n\t\t\tfinal JFileChooser fc = new JFileChooser();\r\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\t\r\n\t\t\t//In response to a button click:\r\n\t\t\tint folderTarget = fc.showDialog(fc, \"Select Ecxel File\");\r\n\t\t\t\r\n\t\t\tString path =\"\";\r\n\...
[ "0.62969166", "0.6039299", "0.5994781", "0.590787", "0.58887875", "0.58523196", "0.5776759", "0.56569624", "0.5571349", "0.5546789", "0.5508456", "0.5505386", "0.5395932", "0.53776497", "0.5351138", "0.5331877", "0.53311443", "0.52739763", "0.5229806", "0.5183065", "0.5171295...
0.0
-1
Cambia la ruta del archvo .xls de estilo de vida.
public void setRutaEstilo(String rutaEstilo) { this.rutaEstilo = rutaEstilo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gerarArquivoExcel() {\n\t\tFile currDir = getPastaParaSalvarArquivo();\n\t\tString path = currDir.getAbsolutePath();\n\t\t// Adiciona ao nome da pasta o nome do arquivo que desejamos utilizar\n\t\tString fileLocation = path.substring(0, path.length()) + \"/relatorio.xls\";\n\t\t\n\t\t// mosta o caminh...
[ "0.68498826", "0.6325387", "0.61913884", "0.6004878", "0.58654", "0.5818627", "0.58176714", "0.5742719", "0.57207495", "0.56764597", "0.56563896", "0.56293344", "0.5610383", "0.55703795", "0.55551124", "0.55549544", "0.55393165", "0.55235946", "0.54567415", "0.54347605", "0.5...
0.0
-1
Creates a CSV file from an existing .xls file.
public void echoAsCSV(String path) { try { excel2csv.echoAsCSV(path); } catch (Exception e) { e.printStackTrace(); JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CSV createCSV();", "void writeExcel(File newFile) throws Exception;", "public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}", "public ValidationInfo createCsv() {\n LocaleModule lm = LocaleManager.getInstance().getModule(LocaleModuleResource.Main);\n\n ValidationInfo vi = ...
[ "0.6314278", "0.61188906", "0.59262586", "0.5886206", "0.5866505", "0.58076406", "0.578237", "0.5744841", "0.5631995", "0.5533357", "0.5526156", "0.55125016", "0.54739714", "0.53779495", "0.5342013", "0.53415155", "0.5333642", "0.5331727", "0.530804", "0.52852464", "0.5275489...
0.5205087
29
Crea un archivo en word con el reporte generado.
public void crearReporte() { JFileChooser chooser = new JFileChooser("reporte.doc"); chooser.addChoosableFileFilter(new FileFilter() { @Override public String getDescription() { return "*.doc"; } @Override public boolean accept(File f) { if (f.isDirectory()) { return false; } String s = f.getName(); return s.endsWith(".doc"); } }); int res = chooser.showSaveDialog(this); if(res == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); @SuppressWarnings("unused") Java2Word word = new Java2Word(this, file); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "protected void generarReporte(String fileNameOut){\n LinkedList datos...
[ "0.6455374", "0.62996936", "0.61234385", "0.6055205", "0.58897364", "0.58721733", "0.58425546", "0.5825953", "0.5739604", "0.5683702", "0.5683092", "0.56711453", "0.5668986", "0.56474996", "0.5630607", "0.56267405", "0.5619436", "0.5606576", "0.56049246", "0.55910534", "0.558...
0.7965329
0
Created by kerimc on 23.05.2017.
public interface MovieRepository extends MongoRepository<Movie, String> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\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\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n...
[ "0.59097016", "0.57285655", "0.57277936", "0.5635474", "0.5635474", "0.5618113", "0.55863255", "0.55747837", "0.551148", "0.55110353", "0.5490617", "0.5488304", "0.5481071", "0.54807013", "0.54771256", "0.54748505", "0.5467344", "0.5459799", "0.54528075", "0.5449432", "0.5435...
0.0
-1
Creates the recipe for getting chainmail boots
private void createRecipe(Plugin plugin) { NamespacedKey nk = new NamespacedKey(plugin, "AC_CHAINMAIL_BOOTS_A"); ShapedRecipe recipe = new ShapedRecipe(nk, new ItemStack(Material.CHAINMAIL_BOOTS, 1)); recipe.shape("C C", "C C", " "); recipe.setIngredient('C', Material.CHAIN); Bukkit.addRecipe(recipe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void buildBootstrap() {\n String command = \"-prod -mac -o2 rom -strip:d j2me imp\";\n if (includeDebugger) {\n command += \" debugger\";\n }\n command += \" -- translator\";\n builder(command);\n }", "private ClientBootstrap createPeerBootStrap() {\n\n ...
[ "0.61963016", "0.583467", "0.537734", "0.5152054", "0.5108931", "0.50150174", "0.49725056", "0.4897565", "0.48948953", "0.48818815", "0.48189726", "0.48044756", "0.47922066", "0.4788862", "0.473023", "0.46889946", "0.46884736", "0.46500716", "0.464736", "0.46458146", "0.46352...
0.5324539
3
TODO Autogenerated method stub
public static void main(String[] args) { int little = 0; int zero = 1; int one = 0; int big = 0; int total = 0; for (int i = 0; i<12;i++){ big += one; one = zero; zero = big; } total = big+one+zero; little = zero+one; // System.out.println(zero); // System.out.println(one); System.out.println(little); System.out.println(big); System.out.println(total); }
{ "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
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.bbva.mzic.sendmoneymovements.facade.v01.dto
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DTOFactory() {\r\n \t}", "public static Factory factory() {\n return ext_accdt::new;\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public static Factory factory() {\n return ext_dbf::new;\n }", "DTMCFactory getDTMCFactory();", ...
[ "0.68009305", "0.6140619", "0.6004398", "0.6004398", "0.6004398", "0.5990481", "0.5976223", "0.59636223", "0.59258544", "0.58992904", "0.58829737", "0.58713967", "0.5869426", "0.58608925", "0.5859021", "0.58196557", "0.5798423", "0.57809556", "0.57629853", "0.57529527", "0.57...
0.0
-1
Update the player stats by processing the attributes of the provided message
public synchronized static void updatePlayerStats(Message message) { String profileId = message.getHeader().getProfileId(); PlayerStats playerStats = playerStatsMap.getOrDefault(profileId, new PlayerStats(profileId)); playerStats.logInteractionDate(message.getHeader().getServerDate()); if (message.getHeader().getEventType().equals("context.stop.MATCH")) playerStats.incrementNumOfMatchesPlayed(); if (message.getHeader().getEventType().equals("custom.RoundWin")) playerStats.incrementNumOfRoundWins(); if (message.getHeader().getEventType().equals("custom.player.MatchWin")) playerStats.incrementNumOfMatchWins(); playerStatsMap.put(profileId, playerStats); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Response updatePlayerStats(String jsonMessage);", "void onUpdate(Message message);", "public abstract void update(Message message);", "public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner....
[ "0.71247184", "0.62506074", "0.61119837", "0.60652083", "0.5967826", "0.59249306", "0.59007263", "0.58830905", "0.58470625", "0.57969904", "0.57377625", "0.5681893", "0.5663838", "0.5645453", "0.5624583", "0.56079876", "0.5599012", "0.5593807", "0.55520535", "0.5533755", "0.5...
0.7104052
1
Setea todos los valores excepto putoA y puntoB
public void setValues(RutaParams params){ this.costo = params.costo; this.tiempoVuelo = params.tiempoVuelo; this.piloto =encriptar(params.piloto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "void setPosiblesValores(int[] valores);", "private void setValoresDoAluno(String[] nomes, int[]notas, int[]conceitos)\n\t{\n\t\tif( nomes.length > 0 && nota...
[ "0.6087289", "0.5963612", "0.58709973", "0.58558095", "0.5647372", "0.5636565", "0.5605473", "0.55280316", "0.55067056", "0.54396105", "0.54326856", "0.5415851", "0.54080373", "0.53799313", "0.5378942", "0.53734475", "0.5347046", "0.53334326", "0.5329599", "0.53265786", "0.53...
0.5488474
9
/ Computes the AGI for the user. Takes in the String entries from the W2 Income, Interest Income, and UI/Alaska Dividends Income fields, converts them to BigDecimals, adds them, and rounds them up to the nearest dollar. Then converts them back to a string and passes it to the AGI TextField in the main program. That AGI TextField is then called in subsequent methods.
public String returnAGI(String w2income, String interestIncome, String UIAndAlaskaIncome){ BigDecimal w2inc = new BigDecimal(w2income); BigDecimal intInc = new BigDecimal(interestIncome); BigDecimal UIAndAlaskaInc = new BigDecimal(UIAndAlaskaIncome); BigDecimal totalIncome = w2inc.add(intInc.add(UIAndAlaskaInc)); totalIncome = totalIncome.setScale(0, RoundingMode.HALF_UP); return totalIncome.toPlainString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String computeTaxableIncome(String AGIField, String exemptionEntry){\n int totalAGI = Integer.parseInt(AGIField);\n int totalDeduction = Integer.parseInt(exemptionEntry);\n String taxInc;\n \n if((totalAGI - totalDeduction) > 0){\n taxInc = Integer.toString(tota...
[ "0.6291878", "0.5922975", "0.58646256", "0.58168125", "0.57927614", "0.57594395", "0.56858534", "0.55096996", "0.54948545", "0.5468101", "0.54662865", "0.54259455", "0.5395109", "0.5372015", "0.5346718", "0.528735", "0.52852416", "0.526476", "0.5244044", "0.5226618", "0.52153...
0.69664574
0
/ Computes the user's taxable income by taking the AGI of the user from the AGI field and the total deduction amount from the exemptionAmountEntry field, subtracting the exemption amount from the AGI, and returning the result as a string, which will be placed in the taxableIncome TextField.
public String computeTaxableIncome(String AGIField, String exemptionEntry){ int totalAGI = Integer.parseInt(AGIField); int totalDeduction = Integer.parseInt(exemptionEntry); String taxInc; if((totalAGI - totalDeduction) > 0){ taxInc = Integer.toString(totalAGI - totalDeduction); } else { taxInc = Integer.toString(0); } return taxInc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicInco...
[ "0.6298944", "0.5830608", "0.57712275", "0.56278604", "0.5545341", "0.5544181", "0.54969764", "0.5444604", "0.5394714", "0.53600484", "0.5348911", "0.53457683", "0.5343903", "0.53027076", "0.528146", "0.5270856", "0.5268674", "0.52486026", "0.52322793", "0.5224331", "0.522117...
0.8372615
0
/ Computes user's total payments and credits by taking the withholdings entered by the user and the calculated EIC as strings. Converts them to BigDecimals for rounding purposes, adds them together, and returns the sum as a string to the totalPaymentsAndCreditsField.
public String calcTotalPaymentsAndCredits(String withholding, String EIC){ BigDecimal withHoldings = new BigDecimal(withholding); BigDecimal calculatedEIC = new BigDecimal(EIC); BigDecimal totalPaymentsAndCredits = withHoldings.add(calculatedEIC); totalPaymentsAndCredits = totalPaymentsAndCredits.setScale(0, RoundingMode.HALF_UP); return totalPaymentsAndCredits.toPlainString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void calculateReceivableByUIComponent() throws Exception{\t\t\n\t\tdouble receivableAmt = ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue();\t\n\t\tdouble receiveAmt = chkPayall.isSelected()?ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue()\n\t\t\t\t:ConvertUtil.convertCTextToNumber(txtReceip...
[ "0.5837125", "0.5815607", "0.57370085", "0.57100046", "0.5609428", "0.5603803", "0.5537133", "0.5453616", "0.53906715", "0.53546107", "0.5345832", "0.53452337", "0.53066134", "0.5302656", "0.5301789", "0.5242933", "0.5217284", "0.5209975", "0.52033484", "0.52033484", "0.51984...
0.800371
0
/store and return values for Pin, User Id and Balance
public void StoreData(DataStore ds) { ((DataStore2)ds).setPin(); System.out.println("Account 2:The set PIN is " + ((DataStore2)ds).getPin() ); ((DataStore2)ds).setUid(); System.out.println("Account 2:The set User ID is " + ((DataStore2)ds).getUid() ); ((DataStore2)ds).setBalance(); System.out.println("Account 2:The Balance is " + ((DataStore2)ds).getBalance() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "public String getBalanceInfo(String request,String user);", "private int getOrIni...
[ "0.5998756", "0.57673943", "0.5725607", "0.56967235", "0.5641954", "0.5608339", "0.5580005", "0.5558105", "0.55420804", "0.54818994", "0.5466331", "0.5465188", "0.5465188", "0.5458388", "0.5456114", "0.5456114", "0.54501873", "0.54336816", "0.54325527", "0.5413618", "0.540851...
0.5102506
45
A radio button was selected, so update the index.
public void handleEvent(final Event event) { if (button.getSelection() && button.equals(event.widget)) { _index = Integer.parseInt(button.getData().toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goToSelectedQuestion(int questionindex){\n radioGroup.setEnabled(true);\n saveAnswer();\n mQuestionIndex = questionindex;\n unSelectRadioButtons();\n updateQuestion();\n\n loadRadioButtonSelection();\n\n\n }", "public void radioButtonChenged() {\n ...
[ "0.65963167", "0.63820124", "0.622459", "0.6210517", "0.6201149", "0.6107021", "0.60312843", "0.6026558", "0.60005283", "0.5996725", "0.5992636", "0.59898376", "0.596909", "0.5953486", "0.59186184", "0.5912168", "0.58728415", "0.5857753", "0.5855339", "0.5845827", "0.5827152"...
0.0
-1
Created by al on 13.08.16.
@PerListFragment @Component(modules={FragmentListModule.class}, dependencies = {AppComponent.class}) public interface ListFragmentComponent { void inject(ListFragment fragment); }
{ "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\n...
[ "0.5802845", "0.57955176", "0.5682294", "0.5609961", "0.5607497", "0.5607497", "0.55505157", "0.5537575", "0.553539", "0.55353886", "0.552886", "0.55130416", "0.5506695", "0.5505629", "0.5504156", "0.5496037", "0.5482984", "0.54745686", "0.54745686", "0.54745686", "0.54745686...
0.0
-1
Takes a chunk of text (anything from a single String representing an entire document to pasted in text, to simply a seemingly single sentence) and breaks it up into seperate sentences where necessary. It does this by: Finding the "true" end of sentence Not splitting up at EOS characters in quotes Checking for sentences ending in a quoted sentence Ignoring abbreviations as ends of sentences Ignoring ellipses as ends of sentences
public ArrayList<String> makeSentences(String text) { /* * Quick check so we're not trying to split up an empty * String. This only happens right before the user types * at the end of a document and we don't have anything to * split, so return. */ if (text.equals("")) { ArrayList<String> sents = new ArrayList<String>(); sents.add(""); return sents; } /** * Because the eosTracker isn't initialized until the TaggedDocument is, * it won't be ready until near the end of DocumentProcessor, in which * case we want to set it to the correct */ this.eosTracker = main.editorDriver.taggedDoc.eosTracker; this.editorDriver = main.editorDriver; ArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES); ArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES); boolean mergeNext = false; boolean mergeWithLast = false; boolean forceNoMerge = false; int currentStart = 1; int currentStop = 0; String temp; /** * replace unicode format characters that will ruin the regular * expressions (because non-printable characters in the document still * take up indices, but you won't know they're there untill you * "arrow" though the document and have to hit the same arrow twice to * move past a certain point. Note that we must use "Cf" rather than * "C". If we use "C" or "Cc" (which includes control characters), we * remove our newline characters and this screws up the document. "Cf" * is "other, format". "Cc" is "other, control". Using "C" will match * both of them. */ text = text.replaceAll("\u201C","\""); text = text.replaceAll("\u201D","\""); text = text.replaceAll("\\p{Cf}",""); int lenText = text.length(); int index = 0; int buffer = editorDriver.sentIndices[0]; String safeString = ""; Matcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text); //================ SEARCHING FOR ABBREVIATIONS ================ while (index < lenText-1 && abbreviationFinder.find(index)) { index = abbreviationFinder.start(); try { int abbrevLength = index; while (text.charAt(abbrevLength) != ' ') { abbrevLength--; } if (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) { eosTracker.setIgnore(index+buffer, true); } } catch (Exception e) {} index++; } Matcher sent = EOS_chars.matcher(text); boolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker. /* * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if * an EOS exists in "text" that would normally be an EOS character and is not set to be ignored. */ index = 0; if (foundEOS) { try { while (index < lenText-1 && sent.find(index)) { index = sent.start(); if (!eosTracker.sentenceEndAtIndex(index+buffer)) { foundEOS = false; } else { foundEOS = true; break; } index++; } } catch (IllegalStateException e) {} } //We need to reset the Matcher for the code below sent = EOS_chars.matcher(text); sent.find(currentStart); Matcher sentEnd; Matcher citationFinder; boolean hasCitation = false; int charNum = 0; int lenTemp = 0; int lastQuoteAt = 0; int lastParenAt = 0; boolean foundQuote = false; boolean foundParentheses = false; boolean isSentence; boolean foundAtLeastOneEOS = foundEOS; /** * Needed otherwise when the user has text like below: * This is my sentence one. This is "My sentence?" two. This is the last sentence. * and they begin to delete the EOS character as such: * This is my sentence one. This is "My sentence?" two This is the last sentence. * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen. */ String trimmedText = text.trim(); int trimmedTextLength = trimmedText.length(); //We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored boolean EOSAtSentenceEnd = true; if (trimmedTextLength != 0) { EOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1); } else { EOSAtSentenceEnd = false; } //Needed so that if we are deleting abbreviations like "Ph.D." this is not triggered. if (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1)) EOSAtSentenceEnd = true; while (foundEOS == true) { currentStop = sent.end(); //We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character try { while (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) { sent.find(currentStop+1); currentStop = sent.end(); } } catch (Exception e) {} temp = text.substring(currentStart-1,currentStop); lenTemp = temp.length(); lastQuoteAt = 0; lastParenAt = 0; foundQuote = false; foundParentheses = false; for(charNum = 0; charNum < lenTemp; charNum++){ if (temp.charAt(charNum) == '\"') { lastQuoteAt = charNum; if (foundQuote == true) foundQuote = false; else foundQuote = true; } if (temp.charAt(charNum) == '(') { lastParenAt = charNum; if (foundParentheses) foundParentheses = false; else foundParentheses = true; } } if (foundQuote == true && ((temp.indexOf("\"",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote. if ((currentStop = text.indexOf("\"",currentStart +lastQuoteAt+1)) == -1) { currentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text. } else{ currentStop +=1; mergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.) } } safeString = text.substring(currentStart-1,currentStop); if (foundParentheses && ((temp.indexOf(")", lastParenAt+1)) == -1)) { if ((currentStop = text.indexOf(")", currentStart + lastParenAt + 1)) == -1) currentStop = text.length(); else { currentStop += 1; mergeNext = true; } } safeString = text.substring(currentStart-1,currentStop); if (foundQuote) { sentEnd = SENTENCE_QUOTE.matcher(text); isSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).) if (isSentence == true) { // If it seems that the text looks like this: He said, "Hello." Then she said, "Hi." // Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, "Hello.") currentStop = text.indexOf("\"",sentEnd.start())+1; safeString = text.substring(currentStart-1,currentStop); forceNoMerge = true; mergeNext = false; } } if (foundParentheses) { sentEnd = SENTENCE_PARENTHESES.matcher(text); isSentence = sentEnd.find(currentStop-2); if (isSentence == true) { currentStop = text.indexOf(")", sentEnd.start()) + 1; safeString = text.substring(currentStart-1, currentStop); forceNoMerge = true; mergeNext = false; } } // now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing) // The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc.. citationFinder = CITATION.matcher(text.substring(currentStop)); hasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).) if (hasCitation == true) { // If it seems that the text looks like this: He said, "Hello." Then she said, "Hi." // Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, "Hello.") currentStop = text.indexOf(")",citationFinder.start()+currentStop)+1; safeString = text.substring(currentStart-1,currentStop); mergeNext = false; } if (mergeWithLast) { mergeWithLast=false; String prev=sents.remove(sents.size()-1); safeString=prev+safeString; } if (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through mergeNext=false; mergeWithLast=true; } else { forceNoMerge = false; finalSents.add(safeString); } sents.add(safeString); //// xxx xxx xxx return the safeString_subbedEOS too!!!! if (currentStart < 0 || currentStop < 0) { Logger.logln(NAME+"Something went really wrong making sentence tokens.", LogOut.STDERR); ErrorHandler.fatalProcessingError(null); } currentStart = currentStop+1; if (currentStart >= lenText) { foundEOS = false; continue; } foundEOS = sent.find(currentStart); } if (!foundAtLeastOneEOS || !EOSAtSentenceEnd) { ArrayList<String> wrapper = new ArrayList<String>(1); wrapper.add(text); return wrapper; } return finalSents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static ArrayList<String> split_sentences(String inputText){\n ArrayList<String> sentences = new ArrayList<>();\n Pattern p = Pattern.compile(\"[^.!?\\\\s][^.!?]*(?:[.!?](?!['\\\"]?\\\\s|$)[^.!?]*)*[.!?]?['\\\"]?(?=\\\\s|$)\", Pattern.MULTILINE | Pattern.COMMENTS);\n Matcher match = p.matcher(i...
[ "0.7004307", "0.68297416", "0.63618267", "0.6243614", "0.60550916", "0.6033613", "0.60321283", "0.5949673", "0.5874586", "0.5808802", "0.5771706", "0.5769263", "0.57160354", "0.56863713", "0.56329197", "0.55792093", "0.54541314", "0.5437523", "0.53625983", "0.53468645", "0.53...
0.7405917
0
This is really ugly
protected static String[] parseVideoUrl(String url) { Pattern youtubePattern1 = Pattern.compile("youtube\\.com\\/watch\\?v=([^&#]+)"); Pattern youtubePattern2 = Pattern.compile("youtu\\.be\\/([^&#]+)"); Pattern youtubePlaylist = Pattern.compile("youtube\\.com\\/playlist\\?list=([^&#]+)"); Pattern twitchPattern = Pattern.compile("twitch\\.tv\\/([^&#]+)"); Pattern justintvPattern = Pattern.compile("justin\\.tv\\/([^&#]+)"); Pattern livestreamPattern = Pattern.compile("livestream\\.com\\/([^&#]+)"); Pattern ustreamPattern = Pattern.compile("ustream\\.tv\\/([^&#]+)"); Pattern vimeoPattern = Pattern.compile("vimeo\\.com\\/([^&#]+)"); Pattern dailymotionPattern = Pattern.compile("dailymotion\\.com\\/video\\/([^&#]+)"); Pattern soundcloudPattern = Pattern.compile("soundcloud\\.com\\/([^&#]+)"); Pattern googlePattern = Pattern.compile("docs\\.google\\.com\\/file\\/d\\/(.*?)\\/edit"); Matcher matcher1 = youtubePattern1.matcher(url); Matcher matcher2 = youtubePattern2.matcher(url); Matcher matcher3 = youtubePlaylist.matcher(url); Matcher matcher4 = twitchPattern.matcher(url); Matcher matcher5 = justintvPattern.matcher(url); Matcher matcher6 = livestreamPattern.matcher(url); Matcher matcher7 = ustreamPattern.matcher(url); Matcher matcher8 = vimeoPattern.matcher(url); Matcher matcher9 = dailymotionPattern.matcher(url); Matcher matcher10 = soundcloudPattern.matcher(url); Matcher matcher11 = googlePattern.matcher(url); if (matcher1.find()) { return new String[]{matcher1.group(1), "yt"}; } if (matcher2.find()) { return new String[]{matcher2.group(1), "yt"}; } if (matcher3.find()) { return new String[]{matcher3.group(1), "yp"}; } if (matcher4.find()) { return new String[]{matcher4.group(1), "tw"}; } if (matcher5.find()) { return new String[]{matcher5.group(1), "jt"}; } if (matcher6.find()) { return new String[]{matcher6.group(1), "li"}; } if (matcher7.find()) { return new String[]{matcher7.group(1), "us"}; } if (matcher8.find()) { return new String[]{matcher8.group(1), "vm"}; } if (matcher9.find()) { return new String[]{matcher9.group(1), "dm"}; } if (matcher10.find()) { return new String[]{url, "sc"}; } if (matcher11.find()) { return new String[]{matcher11.group(1), "gd"}; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Overr...
[ "0.5382889", "0.5262014", "0.5227632", "0.5162291", "0.5135646", "0.5109942", "0.5101215", "0.5011547", "0.49778506", "0.4936246", "0.49050707", "0.4853225", "0.4852657", "0.4848148", "0.48410192", "0.4832602", "0.48306772", "0.48288628", "0.4827722", "0.48105535", "0.4810216...
0.0
-1
User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called.
public RayTracerCallbackHandler(Object clientData){ this.clientData = clientData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public WebserviceCallbackHandler(){\n this.clientData = null;\n }", "public UrbrWSServiceCallbackHandler(){\r\n this.clientData = null;\r\n }", "public ApplicationManagementServiceCallbackHandler(){\n this.clientData = null;...
[ "0.64292276", "0.6402391", "0.61146843", "0.60995615", "0.59913343", "0.59607553", "0.5958446", "0.59455246", "0.5889394", "0.58486867", "0.58273274", "0.5750216", "0.5735833", "0.5727095", "0.57231694", "0.57205844", "0.57126135", "0.5691236", "0.56634736", "0.56272954", "0....
0.0
-1
Please use this constructor if you don't want to set any clientData
public RayTracerCallbackHandler(){ this.clientData = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cliente() {\n\t\tsuper();\n\t}", "public ClientInformation(){\n clientList = new ArrayList<>();\n\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "private CorrelationClient() { }"...
[ "0.7273642", "0.72230405", "0.71211845", "0.71121013", "0.6987381", "0.6964745", "0.6948085", "0.68527573", "0.68126756", "0.67549497", "0.6686136", "0.66799", "0.6659861", "0.6639855", "0.6608235", "0.66023725", "0.6601425", "0.6587107", "0.65786386", "0.65716743", "0.655852...
0.0
-1
Get the client data
public Object getClientData() { return clientData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\r\n return clientData;\r\n }", "public Object getClientData() {\n return clientData;\n }", "public Objec...
[ "0.8409291", "0.8409291", "0.8409291", "0.8323055", "0.8323055", "0.8323055", "0.8323055", "0.82401776", "0.81847", "0.74992526", "0.69628304", "0.680502", "0.6677934", "0.6615067", "0.6538602", "0.6524495", "0.64575994", "0.6441616", "0.64179564", "0.63876045", "0.6369232", ...
0.8388037
8
auto generated Axis2 call back method for rayTrace method override this method for handling normal response from rayTrace operation
public void receiveResultrayTrace( RayTracerStub.RayTraceResponse result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "public void receiveResultrayTraceSubView(\n RayTracerStub.RayTraceSubViewResponse result\n ) {\n }", "public Vector traceRay(Ray ray, int bounces) {\n\t\t\n\t\t/* Termin...
[ "0.6768748", "0.6768748", "0.6006229", "0.58522946", "0.58147174", "0.575117", "0.57207", "0.5666516", "0.5552347", "0.55440307", "0.5534694", "0.55295306", "0.54879904", "0.54250836", "0.5416138", "0.53858334", "0.5377938", "0.53305924", "0.5326726", "0.5315205", "0.5264699"...
0.69158053
0
auto generated Axis2 call back method for rayTraceMovie method override this method for handling normal response from rayTraceMovie operation
public void receiveResultrayTraceMovie( RayTracerStub.RayTraceMovieResponse result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receiveResultrayTrace(\n RayTracerStub.RayTraceResponse result\n ) {\n }", "public void receiveResultrayTraceSubView(\n RayTracerStub.RayTraceSubViewResponse result\n ) {\n }", "public abstract C...
[ "0.657397", "0.6374284", "0.60090065", "0.60090065", "0.5636395", "0.55194926", "0.551844", "0.5190078", "0.50868344", "0.5074053", "0.50509787", "0.50130016", "0.4961065", "0.4961065", "0.4945387", "0.49415958", "0.4917736", "0.4908078", "0.48699692", "0.48415065", "0.483317...
0.75527686
0
auto generated Axis2 call back method for rayTraceSubView method override this method for handling normal response from rayTraceSubView operation
public void receiveResultrayTraceSubView( RayTracerStub.RayTraceSubViewResponse result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receiveResultrayTrace(\n RayTracerStub.RayTraceResponse result\n ) {\n }", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "public void receiveResultrayTraceMovie(\n RayTracerStub.RayTra...
[ "0.62519026", "0.6129533", "0.6129533", "0.57166415", "0.53052247", "0.52972287", "0.529293", "0.5275088", "0.5265227", "0.5229808", "0.51599306", "0.510521", "0.5088969", "0.5085803", "0.50813305", "0.5075629", "0.5066811", "0.5053373", "0.5019075", "0.499725", "0.4959767", ...
0.7819805
0
auto generated Axis2 call back method for rayTraceURL method override this method for handling normal response from rayTraceURL operation
public void receiveResultrayTraceURL( RayTracerStub.RayTraceURLResponse result ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void receiveResultrayTrace(\n RayTracerStub.RayTraceResponse result\n ) {\n }", "public void receiveResultrayTraceSubView(\n RayTracerStub.RayTraceSubViewResponse result\n ) {\n }", "public void recei...
[ "0.688146", "0.60656744", "0.58866656", "0.5627237", "0.5627237", "0.55880964", "0.5580267", "0.54999274", "0.54999274", "0.534245", "0.5332546", "0.53002435", "0.5291126", "0.52802175", "0.5274226", "0.52725065", "0.52651215", "0.525288", "0.52325636", "0.52254844", "0.52157...
0.7059088
0
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); AccountService accountService = (AccountService) context.getBean("accountService"); accountService.searchAccount();
public static void main(String[] args) { System.out.println(MyEnum.monday.getKey()); System.out.println(MyEnum.monday.getValue()); BigDecimal bigDecimal = new BigDecimal("123456.789123"); bigDecimal.setScale(4,BigDecimal.ROUND_HALF_DOWN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void findOne(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(1);\n System.out.println(account);\n }",...
[ "0.77242184", "0.66126096", "0.65661067", "0.64903075", "0.6415929", "0.6349454", "0.6321963", "0.6283058", "0.62365025", "0.6110777", "0.60046756", "0.59631443", "0.5959265", "0.59239906", "0.591333", "0.58957446", "0.5895182", "0.5857788", "0.5852039", "0.5827998", "0.58035...
0.0
-1
Instantiates a new default append parameter.
public ProducerAppendParameter(InputStream inputPdf, InputStream attachmentFile, OutputStream resultingPdf, String zugferdVersion, String zugferdConformanceLevel) { super(inputPdf, attachmentFile, resultingPdf, zugferdVersion, zugferdConformanceLevel); producer = "Konik Library"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public E addDefault();", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public com.guidewire.datamodel.ParamDocument.Param addNewParam()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire...
[ "0.56282306", "0.54842514", "0.54555726", "0.53928185", "0.5382512", "0.52964056", "0.52459353", "0.5237682", "0.5174934", "0.50876576", "0.50057364", "0.5003997", "0.50014937", "0.4974904", "0.49725246", "0.49430534", "0.4931795", "0.4903377", "0.48968342", "0.48718315", "0....
0.0
-1
Instantiates a new default append parameter.
public ProducerAppendParameter(InputStream inputPdf, InputStream attachmentFile, OutputStream resultingPdf, String zugferdVersion, String zugferdConformanceLevel, String producer) { super(inputPdf, attachmentFile, resultingPdf, zugferdVersion, zugferdConformanceLevel); this.producer = producer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public E addDefault();", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public com.guidewire.datamodel.ParamDocument.Param addNewParam()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire...
[ "0.56282306", "0.54842514", "0.54555726", "0.53928185", "0.5382512", "0.52964056", "0.52459353", "0.5237682", "0.5174934", "0.50876576", "0.50057364", "0.5003997", "0.50014937", "0.4974904", "0.49725246", "0.49430534", "0.4931795", "0.4903377", "0.48968342", "0.48718315", "0....
0.0
-1
Button event that activates Login()
public void Login(ActionEvent event) throws Exception{ Login(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void LoginButton() {\n\t\t\r\n\t}", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentica...
[ "0.8264278", "0.7934491", "0.7910657", "0.78912693", "0.7890201", "0.7844155", "0.7650849", "0.7634178", "0.7630178", "0.7628485", "0.75800735", "0.75416946", "0.7529391", "0.7515971", "0.75091505", "0.74754024", "0.74605197", "0.73888814", "0.73877597", "0.73771024", "0.7333...
0.77250856
6
Actually Check user Creditentials if so opens main menu.
public void Login()throws Exception{ if(eMailField.getText().equals("user") && PasswordField.getText().equals("pass")){ displayMainMenu(); } else{ System.out.println("Username or Password Does not match"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDi...
[ "0.67152655", "0.6297396", "0.627611", "0.6265728", "0.62299865", "0.6213686", "0.61854005", "0.61835814", "0.60828334", "0.60822153", "0.60401106", "0.6005966", "0.6004286", "0.59995383", "0.59798986", "0.59654367", "0.5905148", "0.59023345", "0.5893202", "0.5872969", "0.587...
0.0
-1
Button event for Create profile Page
public void mmCreateClick(ActionEvent event) throws Exception{ displayCreateProfile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProfileCreateData() {\r\n\r\n }", "public void onClick(View view) {\n if(validate_info()){\n create_user();\n user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n submit_profil...
[ "0.6938106", "0.69138426", "0.6880143", "0.66926306", "0.6573327", "0.64258295", "0.6357285", "0.6251822", "0.6248885", "0.62478405", "0.62439626", "0.6240286", "0.6213868", "0.62030494", "0.61899006", "0.6181487", "0.6179964", "0.6173527", "0.6169948", "0.6125026", "0.606892...
0.75713485
0
Displays Create Profile Page
public void displayCreateProfile() throws Exception{ System.out.println("Username And Login Match"); currentStage.hide(); Stage primaryStage = new Stage(); System.out.println("Step 1"); Parent root = FXMLLoader.load(getClass().getResource("view/CreateProfile.fxml")); System.out.println("step 2"); primaryStage.setTitle("Main Menu"); System.out.println("Step 3"); primaryStage.setScene(new Scene(root, 600, 900)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/profile\", method = RequestMethod.GET)\n\tpublic String create(Model model) {\n\t\tmodel.addAttribute(\"profile\", new Profile());\n\t\treturn \"create\";\n\t}", "public CreateProfile() {\n initComponents();\n }", "@RequestMapping(\"/signup\")\n public String signupPage()...
[ "0.7659158", "0.7069179", "0.68992907", "0.68240565", "0.6668788", "0.6655493", "0.6616808", "0.6509348", "0.6499985", "0.6426939", "0.63792795", "0.6372881", "0.6291955", "0.62554353", "0.62492496", "0.6218099", "0.6110896", "0.6106233", "0.61041933", "0.6064063", "0.603121"...
0.5753457
44
Button Click Event for Edit Profile Button
public void mmEditClick(ActionEvent event) throws Exception{ displayEditProfile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on ca...
[ "0.79937446", "0.75828886", "0.7523918", "0.750002", "0.7464146", "0.72323287", "0.68849653", "0.6869256", "0.6788999", "0.6747457", "0.6682173", "0.66460633", "0.6600574", "0.6543046", "0.65113556", "0.6468568", "0.6460372", "0.6452631", "0.6438042", "0.64376545", "0.6430287...
0.79157114
1
Displays Edit Profile Page
public void displayEditProfile() throws Exception{ System.out.println("Username And Login Match"); currentStage.hide(); Stage primaryStage = new Stage(); System.out.println("Step 1"); Parent root = FXMLLoader.load(getClass().getResource("view/EditProfile.fxml")); System.out.println("step 2"); primaryStage.setTitle("Edit Profile"); System.out.println("Step 3"); primaryStage.setScene(new Scene(root, 600, 900)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"S...
[ "0.8270031", "0.7965229", "0.79234904", "0.76511425", "0.74334943", "0.71983594", "0.7162056", "0.70192707", "0.69591856", "0.6929046", "0.6915364", "0.6878458", "0.6852421", "0.67684793", "0.6747677", "0.67057973", "0.6697023", "0.66346276", "0.66334015", "0.6615053", "0.656...
0.58463305
74
Button Click Event for Edit Profile Button
public void mmAddFriendSearchClick(ActionEvent event) throws Exception{ displayAddFriendSearch(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on ca...
[ "0.79937446", "0.79157114", "0.75828886", "0.7523918", "0.750002", "0.7464146", "0.72323287", "0.68849653", "0.6869256", "0.6788999", "0.6747457", "0.6682173", "0.66460633", "0.6600574", "0.6543046", "0.65113556", "0.6468568", "0.6460372", "0.6452631", "0.6438042", "0.6437654...
0.0
-1
Displays Edit Profile Page
public void displayAddFriendSearch() throws Exception{ System.out.println("Username And Login Match"); currentStage.hide(); Stage primaryStage = new Stage(); System.out.println("Step 1"); Parent root = FXMLLoader.load(getClass().getResource("view/AddFriend.fxml")); System.out.println("step 2"); primaryStage.setTitle("Add Friend Search"); System.out.println("Step 3"); primaryStage.setScene(new Scene(root, 600, 400)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"S...
[ "0.8270031", "0.7965229", "0.79234904", "0.76511425", "0.74334943", "0.71983594", "0.7162056", "0.70192707", "0.69591856", "0.6929046", "0.6915364", "0.6878458", "0.6852421", "0.67684793", "0.6747677", "0.67057973", "0.6697023", "0.66346276", "0.66334015", "0.6615053", "0.656...
0.0
-1
Button Click Event for Edit Profile Button
public void friendSearchClick(ActionEvent event) throws Exception{ displayAddFriendresults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on ca...
[ "0.79937446", "0.79157114", "0.75828886", "0.7523918", "0.750002", "0.7464146", "0.72323287", "0.68849653", "0.6869256", "0.6788999", "0.6747457", "0.6682173", "0.66460633", "0.6600574", "0.6543046", "0.65113556", "0.6468568", "0.6460372", "0.6452631", "0.6438042", "0.6437654...
0.0
-1
Displays Edit Profile Page
public void displayAddFriendresults() throws Exception{ System.out.println("Username And Login Match"); currentStage.hide(); Stage primaryStage = new Stage(); System.out.println("Step 1"); Parent root = FXMLLoader.load(getClass().getResource("view/SearchResults.fxml")); System.out.println("step 2"); primaryStage.setTitle("Friend Search Results"); System.out.println("Step 3"); primaryStage.setScene(new Scene(root, 600, 400)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"S...
[ "0.8270031", "0.7965229", "0.79234904", "0.76511425", "0.74334943", "0.71983594", "0.7162056", "0.70192707", "0.69591856", "0.6929046", "0.6915364", "0.6878458", "0.6852421", "0.67684793", "0.6747677", "0.67057973", "0.6697023", "0.66346276", "0.66334015", "0.6615053", "0.656...
0.0
-1
Button Click Event for Edit Profile Button
public void mmAddFriendClick(ActionEvent event) throws Exception{ displayManageFriendsGroups(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on ca...
[ "0.79937446", "0.79157114", "0.75828886", "0.7523918", "0.750002", "0.7464146", "0.72323287", "0.68849653", "0.6869256", "0.6788999", "0.6747457", "0.6682173", "0.66460633", "0.6600574", "0.6543046", "0.65113556", "0.6468568", "0.6460372", "0.6452631", "0.6438042", "0.6437654...
0.0
-1
Displays Edit Profile Page
public void displayManageFriendsGroups() throws Exception{ System.out.println("Username And Login Match"); currentStage.hide(); Stage primaryStage = new Stage(); System.out.println("Step 1"); Parent root = FXMLLoader.load(getClass().getResource("view/ManageFriendsGroups.fxml")); System.out.println("step 2"); primaryStage.setTitle("Manage Friends and Groups"); System.out.println("Step 3"); primaryStage.setScene(new Scene(root, 600, 400)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"S...
[ "0.8270031", "0.7965229", "0.79234904", "0.76511425", "0.74334943", "0.71983594", "0.7162056", "0.70192707", "0.69591856", "0.6929046", "0.6915364", "0.6878458", "0.6852421", "0.67684793", "0.6747677", "0.67057973", "0.6697023", "0.66346276", "0.66334015", "0.6615053", "0.656...
0.0
-1
Saves Data from Edit Profile Page
public void saveProfileEditData() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editTheirProfile() {\n\t\t\n\t}", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edit...
[ "0.7732041", "0.7571258", "0.7460043", "0.7207561", "0.7198759", "0.71493804", "0.7146714", "0.71357113", "0.71345586", "0.69578826", "0.6915382", "0.68721074", "0.6826205", "0.6754667", "0.67385525", "0.66586477", "0.66480005", "0.65858114", "0.6547052", "0.6506699", "0.6505...
0.87036973
0
Saves Data from Create Profile Page
public void saveProfileCreateData() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProfileEditData() {\r\n\r\n }", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n ...
[ "0.77352834", "0.7581732", "0.7224493", "0.68888825", "0.6762849", "0.6726855", "0.6704674", "0.66201735", "0.65882474", "0.6585841", "0.65558606", "0.65188426", "0.6458898", "0.64131045", "0.6410765", "0.63908684", "0.63645667", "0.6325455", "0.63164306", "0.63096917", "0.63...
0.829513
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.weights, 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.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014...
0.0
-1