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
Asks user to enter a wish list item or 'exit' to exit the loop returns the string entered loop should exit when the string 'exit' is returned
public static String getWishItem() { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String ans = ""; try { while (ans.length() == 0) { System.out.println("Enter wish-list item (enter exit to end): "); ans = br.readLine(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String answer;\n do {\n answer = getWishItem();\n if (!answer.equals(\"exit\")) {\n System.out.println(\"You said: \" + answer);\n }\n } while (!answer.equals(\"exit\"));\n }", "private static void ...
[ "0.75027126", "0.67445964", "0.6506321", "0.6314774", "0.6308314", "0.6243527", "0.62370014", "0.6142764", "0.6108833", "0.6086353", "0.60607016", "0.60474485", "0.60420305", "0.6018225", "0.60016036", "0.5983785", "0.59734595", "0.5960711", "0.59378785", "0.5915682", "0.5901...
0.7409028
1
END getWishItem Check for WISH_LIST table
public static boolean wwdChk4Table(Connection conTst) throws SQLException { boolean chk = true; boolean doCreate = false; try { Statement s = conTst.createStatement(); s.execute("update WISH_LIST set ENTRY_DATE = CURRENT_TIMESTAMP, WISH_ITEM = 'TEST ENTRY' where 1=3"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and ...
[ "0.6341666", "0.6182396", "0.6110047", "0.6085874", "0.6028318", "0.6027981", "0.5928752", "0.5925798", "0.58754516", "0.58022356", "0.57909125", "0.57486093", "0.57188356", "0.55925727", "0.55521375", "0.5507195", "0.5480927", "0.543423", "0.54298466", "0.54253894", "0.53777...
0.47478604
75
This method allows standalone testing of the getWishItem method
public static void main(String[] args) { String answer; do { answer = getWishItem(); if (!answer.equals("exit")) { System.out.println("You said: " + answer); } } while (!answer.equals("exit")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WishlistItem getWishlistItem(String wishID){\n\n //Get a document reference to the item\n DocumentReference docRef = fStore.collection(\"user_profiles\").document(fUser.getUid()).collection(\"wishlist\").document(wishID);\n\n //Get snapshot of document and change into Wishlist item and ...
[ "0.64984953", "0.62802005", "0.62059045", "0.6190024", "0.6155987", "0.6141248", "0.6103726", "0.6072867", "0.601739", "0.59835535", "0.59484893", "0.5930296", "0.5923202", "0.5831531", "0.5829479", "0.5828591", "0.57604617", "0.5749815", "0.571664", "0.5697553", "0.5692136",...
0.5260436
70
Takes the PageId of the first page in the file and opens (and pins) it
public DataFileIterator(PageId dataPageId) { this.dataPageId = dataPageId; this.dataPage = getDataPage(dataPageId); this.dataPageIterator = new DataPageIterator(dataPage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String...
[ "0.5777342", "0.57580125", "0.5702303", "0.5548621", "0.55462", "0.5522236", "0.5506211", "0.5491404", "0.5444395", "0.54435253", "0.53696334", "0.53431493", "0.52999645", "0.5278279", "0.52615464", "0.5249636", "0.52309316", "0.52267945", "0.5211929", "0.520702", "0.5202635"...
0.0
-1
Returns a pinned data page (used to support schema/indexes)
protected abstract DataPage getDataPage(PageId pageId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ResultSet getPinnedPost(int count){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from pinnedposts where postid = ?\");\n pst.setInt(1, count);\n result = pst.executeQuery();\...
[ "0.56411386", "0.54325354", "0.53973675", "0.53025925", "0.52398235", "0.52116466", "0.52116466", "0.5156739", "0.51359355", "0.5120952", "0.5108731", "0.5085934", "0.5075164", "0.50733113", "0.5050621", "0.5039327", "0.50329465", "0.5024988", "0.49814212", "0.49762696", "0.4...
0.5234535
5
Close the iterator (and unpin any pages pinned by it)
@Override public void close() { dataPageIterator = null; DBComponent.BUFFER_MANAGER().unpin(dataPageId, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closescan() {\n if(heapFile == null){\n\t\t return;\n\t\t}\n\t\ttry {\n\t\t\tSystemDefs.JavabaseBM.unpinPage(heapFile.getFirstPageID(), true);\n\t\t} catch (ReplacerException | PageUnpinnedException | HashEntryNotFoundException | InvalidFrameNumberException e) {\n\t\t\t// TODO Auto-generated ...
[ "0.7440614", "0.6782989", "0.6753139", "0.6431652", "0.6308458", "0.60945326", "0.60921437", "0.59677434", "0.58288825", "0.57906264", "0.5790619", "0.5779145", "0.57343316", "0.5730717", "0.55449617", "0.5509304", "0.55000466", "0.54988307", "0.54892236", "0.54631275", "0.54...
0.73753434
1
Checks where there is another record in the file Requires checking not only current page, but the following page in case there are also records on there
@Override public boolean hasNext() { if(dataPageIterator.hasNext()) { return true; } while(dataPage.getNextPageId().isValid()) { PageId next = dataPage.getNextPageId(); DBComponent.BUFFER_MANAGER().unpin(dataPageId, false); dataPage = getDataPa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String...
[ "0.5764809", "0.5726448", "0.5630668", "0.5549219", "0.5480373", "0.5478784", "0.54418945", "0.5341173", "0.5321576", "0.5321576", "0.53097653", "0.52978265", "0.52485645", "0.5212746", "0.515693", "0.51308435", "0.5118494", "0.5069612", "0.50593036", "0.50563776", "0.5052326...
0.4681366
97
when user finally says yes
@Override public void onClick(DialogInterface dialog, int which) { ActivityCompat.requestPermissions(Userhome.this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, MY_PER...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean saidYes(boolean onQuit) {\r\n\r\n System.out.print(\" (Y/N) \");\r\n \r\n\t\tchar responce = Keyboard.readChar();\r\n responce = Character.toLowerCase(responce);\r\n\r\n\t\tswitch (responce) {\r\n case 'y':\r\n return true;\r\n\r\n case 'q':\...
[ "0.76024103", "0.7133711", "0.6945735", "0.68475205", "0.68308103", "0.6815306", "0.67540896", "0.6708682", "0.66870904", "0.6657828", "0.6657828", "0.66335785", "0.66328806", "0.6626739", "0.6610859", "0.6608088", "0.65711784", "0.6564973", "0.6540623", "0.6504569", "0.64916...
0.0
-1
Creates new DBMaker and sets file to load data from.
public static DBMaker openFile(String file){ DBMaker m = new DBMaker(); m.location = file; return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileDatabase(String filename) throws IOException {\n\t\tdatabase = new File(filename);\n\t\tread();\n\t}", "void setup( File storeDir, Consumer<GraphDatabaseService> create );", "public void setUp(final String database) throws IOException {\n\n\t\t// create the database\n\t\ttmpDir = new File(System.get...
[ "0.5992809", "0.59275514", "0.58413374", "0.5797129", "0.57880634", "0.5771205", "0.5698381", "0.5680192", "0.5671732", "0.5645995", "0.5621454", "0.5617425", "0.5598529", "0.5595075", "0.55943495", "0.5574998", "0.554717", "0.5535396", "0.5526561", "0.5490951", "0.54843944",...
0.6906628
0
Creates new DBMaker which uses in memory store. Data will be lost after JVM exits.
public static DBMaker openMemory(){ return new DBMaker(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}", "private void useMem...
[ "0.6384417", "0.618867", "0.6159047", "0.61077285", "0.58927935", "0.5801987", "0.56621665", "0.5612549", "0.5605093", "0.5561927", "0.55383277", "0.5526117", "0.5525933", "0.54972845", "0.54890037", "0.54289037", "0.53947246", "0.53930646", "0.5337442", "0.53174794", "0.5311...
0.81505585
0
Open store in zip file
public static DBMaker openZip(String zip) { DBMaker m = new DBMaker(); m.location = "$$ZIP$$://"+zip; return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new...
[ "0.62299377", "0.613889", "0.5776632", "0.5764166", "0.5739446", "0.56802255", "0.5659062", "0.55531496", "0.5518987", "0.55044687", "0.5388613", "0.5377732", "0.53496605", "0.53390324", "0.5317966", "0.5298362", "0.52798676", "0.52766514", "0.5254705", "0.52410567", "0.52410...
0.65696764
0
Use WeakReference for cache. This cache does not improve performance much, but prevents JDBM from creating multiple instances of the same object.
public DBMaker enableWeakCache() { cacheType = DBCacheRef.WEAK; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void weakReference_holdingRealObj()\n {\n int counter=0;\n //====NOTE=====>>> RSN how weak reference is created\n WeakReference<ReferenceExample> ex = new WeakReference<ReferenceExample>(new ReferenceExample(\"WeakRef2\"));\n System.out.println(\"Wea...
[ "0.667997", "0.64616823", "0.61669207", "0.6035118", "0.59061474", "0.5899084", "0.58239263", "0.5823454", "0.5786921", "0.5783652", "0.5725111", "0.56101286", "0.5606533", "0.5596532", "0.55868715", "0.5527785", "0.5525558", "0.5500135", "0.5490305", "0.5485493", "0.54833513...
0.7261924
0
Use SoftReference for cache. This cache greatly improves performance if you have enoguth memory. Instances in cache are Garbage Collected when memory gets low
public DBMaker enableSoftCache() { cacheType = DBCacheRef.SOFT; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void softReference()\n {\n \t //====NOTE=====>>> RSN how SoftReference is created\n SoftReference<ReferenceExample> ex = new SoftReference<ReferenceExample>(new ReferenceExample(\"SoftRef\"));\n //====NOTE=====>>> RSN SUPER IMP : Note how to get hold of real object, by...
[ "0.74745435", "0.6511191", "0.6149938", "0.6123664", "0.60958093", "0.60401785", "0.5987226", "0.5951307", "0.5857669", "0.5847902", "0.58254135", "0.5780874", "0.5765748", "0.57292116", "0.57188237", "0.57119", "0.57024425", "0.5699602", "0.5636937", "0.5602083", "0.55866235...
0.6471858
2
Use hard reference for cache. This greatly improves performance if there is enought memory Hard cache has smaller memory overhead then Soft or Weak, because reference objects and queue does not have to be maintained
public DBMaker enableHardCache() { cacheType = DBCacheRef.HARD; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void softReference()\n {\n \t //====NOTE=====>>> RSN how SoftReference is created\n SoftReference<ReferenceExample> ex = new SoftReference<ReferenceExample>(new ReferenceExample(\"SoftRef\"));\n //====NOTE=====>>> RSN SUPER IMP : Note how to get hold of real object, by...
[ "0.6646191", "0.64151156", "0.6176589", "0.601656", "0.5930526", "0.590998", "0.5862223", "0.58234227", "0.5816732", "0.5804828", "0.5740394", "0.57255584", "0.57170343", "0.5708053", "0.5704255", "0.5697495", "0.5623212", "0.5610037", "0.5590645", "0.55472004", "0.5541278", ...
0.5660185
16
Use 'Most Recently Used' cache with limited size. Oldest instances are released from cache when new instances are fetched. This cache is not cleared by GC. Is good for systems with limited memory. Default size for MRU cache is 2048 records.
public DBMaker enableMRUCache() { cacheType = DBCacheRef.MRU; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMaximumCacheSize();", "@Override\n\tpublic long getMaxCacheSize() {\n\t\treturn 0;\n\t}", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "publi...
[ "0.69857126", "0.65598714", "0.64174527", "0.6341071", "0.6266546", "0.6266519", "0.6221079", "0.6213516", "0.62029964", "0.61805415", "0.6141712", "0.6010809", "0.6007501", "0.6004175", "0.5934493", "0.5930339", "0.5893871", "0.58192", "0.57928383", "0.5783145", "0.5752455",...
0.0
-1
Sets 'Most Recently Used' cache size. This cache is activated by default with size 2048
public DBMaker setMRUCacheSize(int cacheSize) { if (cacheSize < 0) throw new IllegalArgumentException("Cache size is smaller than zero"); cacheType = DBCacheRef.MRU; mruCacheSize = cacheSize; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMaximumCacheSize();", "void setMaximumCacheSize(int maximumCacheSize);", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "int getCurrentCacheSize();", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "@Override\n\tpublic long getMaxCache...
[ "0.6983676", "0.69711214", "0.6918087", "0.68673074", "0.68024176", "0.6784984", "0.6748296", "0.67199284", "0.66199315", "0.65822506", "0.65655154", "0.6479937", "0.6459019", "0.6450713", "0.645004", "0.64473987", "0.64178795", "0.63810366", "0.6298464", "0.6295448", "0.6290...
0.5461569
73
If reference (soft,weak or hard) cache is enabled, GC may not release references fast enough (or not at all in case of hard cache). So JDBM periodically checks amount of free heap memory. If free memory is less than 25% or 10MB, JDBM completely clears its reference cache to prevent possible memory issues. Calling this ...
public DBMaker disableCacheAutoClear(){ this.autoClearRefCacheOnLowMem = false; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dereferenceCache() {\n this.cache = null;\n }", "private void collectGarbageInCache() {\n CacheReference r;\n while ((r = (CacheReference)queue.poll()) != null) {\n fontCache.remove(r.getKey());\n }\n }", "public void clearMemoryCache() {\r\n cach...
[ "0.64679193", "0.63506347", "0.6308516", "0.6280784", "0.6196306", "0.611624", "0.6111431", "0.6019586", "0.59510505", "0.59369624", "0.59336144", "0.5925581", "0.58987635", "0.5892558", "0.58860713", "0.58620644", "0.5857737", "0.5857181", "0.58368057", "0.5817661", "0.58154...
0.71292096
0
Enabled storage encryption using AES cipher. JDBM supports both 128 bit and 256 bit encryption if JRE provides it. There are some restrictions on AES 256 bit and not all JREs have it by default. Storage can not be read (decrypted), unless the key is provided next time it is opened
public DBMaker enableEncryption(String password, boolean useAES256Bit) { this.password = password; this.useAES256Bit = useAES256Bit; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setEncryptMode();", "public interface AES {\n\n public String encrypt(String strToEncrypt);\n\n public String decrypt(String strToDecrypt);\n\n public String getSecretKeyWord();\n}", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption...
[ "0.68068737", "0.65517354", "0.6305566", "0.627381", "0.62704116", "0.62434244", "0.6195912", "0.6186775", "0.61206496", "0.6120485", "0.6117563", "0.6098873", "0.6075747", "0.6065732", "0.60442805", "0.6029299", "0.59965116", "0.59837866", "0.5958202", "0.59400463", "0.59371...
0.56206906
34
Make DB readonly. Update/delete/insert operation will throw 'UnsupportedOperationException'
public DBMaker readonly() { readonly = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void setReadOnly(boolean readOnly) throws SQLException {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic boolean isReadOnly() throws SQLException {\n\t\t\treturn false;\r\n\t\t}", "public void makeReadOnly();", "@Override\n\tpublic boolean isReadOnly(int arg0) throws SQLException {\n\t\tr...
[ "0.7045036", "0.6929336", "0.6774389", "0.6591233", "0.6555147", "0.6280158", "0.6280158", "0.62588304", "0.6171624", "0.60684294", "0.60681164", "0.60627717", "0.6061785", "0.6061785", "0.6061785", "0.6058702", "0.599281", "0.59817487", "0.5948456", "0.59096617", "0.59077114...
0.700454
1
Option to disable transaction (to increase performance at the cost of potential data loss). Transactions are enabled by default Switches off transactioning for the record manager. This means that a) a transaction log is not kept, and b) writes aren't synch'ed after every update. Writes are cached in memory and then flu...
public DBMaker disableTransactions() { this.disableTransactions = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readOnlyTransaction();", "public void forceCommitTx()\n{\n}", "public static void habilitarTransaccionManual() {\n try {\n con.setAutoCommit(false);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public boolean flushTransactions() {\n ...
[ "0.63408667", "0.6154189", "0.5969539", "0.59606445", "0.57764834", "0.5721003", "0.5671558", "0.56568277", "0.5645877", "0.56449854", "0.563615", "0.56168884", "0.5607703", "0.55911005", "0.5588136", "0.55685765", "0.5523156", "0.5518974", "0.5513943", "0.5508033", "0.547672...
0.67580837
0
Disable file system based locking (for file systems that do not support it). Locking is not supported by many remote or distributed file systems; such as Lustre and NFS. Attempts to perform locks will result in an IOException with the message "Function not implemented". Disabling locking will avoid this issue, though o...
public DBMaker disableLocking(){ this.lockingDisabled = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void j_lock() {\r\n\t\tdo {\r\n\t\t\tLOCK_FILES_DIR.mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tRandomAccessFile raf = new RandomAccessFile(GLOBAL_LOCK_FILE,\r\n\t\t\t\t\t\t\"rw\");\r\n\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\tFileLock lock = channel.lock();\r\n\t\t\t\tglobalFileChannel = c...
[ "0.6541661", "0.6196719", "0.6183245", "0.61479574", "0.60764235", "0.6004458", "0.5930042", "0.5896829", "0.5821429", "0.5729966", "0.5726551", "0.57108235", "0.5706896", "0.56568426", "0.56506324", "0.56349754", "0.5627543", "0.5627543", "0.5620061", "0.5581524", "0.557129"...
0.6060633
5
By default JDBM uses mapped memory buffers to read from files. But this may behave strangely on some platforms. Safe alternative is to use old RandomAccessFile rather then mapped ByteBuffer. There is typically slower (pages needs to be copyed into memory on every write).
public DBMaker useRandomAccessFile(){ this.useRandomAccessFile = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readMMap(File file) throws IOException {\n FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n MappedByteBuffer mmap = channel.map(FileChannel.MapMode.READ_WRITE, N, N);\n //mmap.load();\n byte[] buf = new byte[CHUNK];\n long t = System.na...
[ "0.68131316", "0.67597365", "0.61883295", "0.6107332", "0.58441", "0.5805852", "0.5790389", "0.5761977", "0.57456464", "0.57455415", "0.57272536", "0.56830287", "0.56830287", "0.5630288", "0.56196654", "0.56121653", "0.5591148", "0.5523556", "0.54910284", "0.54829866", "0.546...
0.61548483
3
Registers shutdown hook and close database on JVM exit, if it was not already closed;
public DBMaker closeOnExit(){ this.closeOnJVMExit = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerShutdownHook()\n {\n Runtime.getRuntime().addShutdownHook( new Thread()\n {\n @Override\n public void run()\n {\n db.shutdown();\n }\n } );\n }", "private static void registerShutdownHook() {\r\n\t\t// Regi...
[ "0.8558148", "0.79835147", "0.6940691", "0.69270235", "0.69109225", "0.68961394", "0.6888925", "0.68097335", "0.68097335", "0.67938083", "0.67867404", "0.67838514", "0.67423004", "0.67347455", "0.66612405", "0.64694595", "0.64554185", "0.6407655", "0.6336502", "0.6218989", "0...
0.63681054
18
Delete all storage files after DB is closed
public DBMaker deleteFilesAfterClose(){ this.deleteFilesAfterCloseFlag = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepat...
[ "0.7665029", "0.7347183", "0.7148541", "0.71239436", "0.7077312", "0.7055355", "0.6986481", "0.69210047", "0.6904678", "0.6858898", "0.685612", "0.68504816", "0.68461645", "0.68318695", "0.68308926", "0.67885715", "0.67851466", "0.67744076", "0.67737263", "0.67690015", "0.675...
0.72080946
2
TODO Autogenerated method stub
@Override public List<User> list(Map<String, Object> map) throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO complex numbers are not supported for evaluation right now, this way of handling the variables my be wrong
@Override public Set<String> visit(CComplexCastExpression exp) { BigInteger val = VariableClassificationBuilder.getNumber(exp.getOperand()); if (val == null) { return exp.getOperand().accept(this); } else { values.add(val); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test19() throws Throwable {\n Complex complex0 = new Complex((-138.659), 0.0);\n Complex complex1 = complex0.exp();\n String string0 = complex0.toString();\n Complex complex2 = complex1.subtract(complex0);\n Complex complex3 = complex0.multiply(complex1);\n Comp...
[ "0.65885645", "0.63122445", "0.61396796", "0.6126941", "0.6119156", "0.6080461", "0.60679924", "0.60483295", "0.59452283", "0.59376025", "0.5937427", "0.59250194", "0.5908746", "0.58966166", "0.58855414", "0.5856321", "0.57417023", "0.5727066", "0.5709669", "0.57087356", "0.5...
0.0
-1
TODO Autogenerated method stub
@Override public List<Employee> getdetails() { return empdao.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Employee change(Employee employee) { return empdao.save(employee); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void delete(Integer id) { empdao.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void post(Employee employee) { empdao.save(employee); }
{ "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
Check if there is a path from source to target in residue graph.
private boolean bfs(final int[][] resGraph, final int source, final int target, final int[] parent) { // Create a visited array and mark all vertices as not visited final boolean[] visited = new boolean[V]; // Create a queue, enqueue source vertex // and mark source vertex as visited final Deque<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n...
[ "0.72465396", "0.6725751", "0.6413185", "0.6413185", "0.63802314", "0.63609666", "0.63095045", "0.624663", "0.6183136", "0.61791474", "0.61570734", "0.61380273", "0.61361706", "0.6131212", "0.60619634", "0.6045781", "0.6033171", "0.60265815", "0.5999771", "0.5975449", "0.5975...
0.0
-1
Let us create a graph shown in the above example
private void run() { final int[][] graph = new int[][] { {0, 16, 13, 0, 0, 0}, {0, 0, 10, 12, 0, 0}, {0, 4, 0, 0, 14, 0}, {0, 0, 9, 0, 0, 20}, {0, 0, 0, 7, 0, 4}, {0, 0, 0, 0, 0, 0} }; System.out.println(String.format("The maximum possible flow is %d", fordFulkerson(grap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildGraph(){\n\t}", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "v...
[ "0.6721384", "0.66846174", "0.6575894", "0.6547535", "0.64883864", "0.63837075", "0.63166493", "0.6289375", "0.6277189", "0.62512344", "0.6231175", "0.6171694", "0.61706364", "0.6165644", "0.6162644", "0.6157736", "0.61545616", "0.61460024", "0.6117888", "0.61129946", "0.6097...
0.0
-1
/Personel personel=new Personel(); personel.setAd("armut"); PersonelGorev personelGorev=new PersonelGorev(); personelGorev.setGorevAdi("amele"); personel.addGorev(personelGorev);
@RequestMapping(value = "/kaydet" , method = RequestMethod.POST) public Personel add(@RequestBody Personel p) { PersonelGorev personelGorev=new PersonelGorev(); personelService.personelKaydet(p); personelGorev.setPersonel(p); personelGorev.setGorevAdi("amele"); personelGore...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "void crearNuevaPersona(Persona persona);", "public static voi...
[ "0.67892337", "0.6247623", "0.6225296", "0.6191517", "0.61303693", "0.58930176", "0.58797014", "0.5854058", "0.58505327", "0.5836898", "0.5795101", "0.57177645", "0.5696961", "0.56789094", "0.56738424", "0.5666529", "0.566529", "0.5609813", "0.56065273", "0.56058526", "0.5597...
0.54645693
38
TODO Autogenerated method stub
public static void main(String[] args) { ObjectPassingDemo o=new ObjectPassingDemo(); Student s1=new Student(); //s1=o.accept(); o.display(o.accept()); }
{ "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
Encuentra el campo de busqueda.
private static Matcher<View> encontrarBusqueda() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (item instanceof EditText) { return true; } return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void limpiarCamposFormBusqueda() {\n\t}", "public String getTxtbusqueda() {\n return txtBusqueda.getText();\n }", "public FiltroMicrorregiao(String campoOrderBy) {\r\n this.campoOrderBy = campoOrderBy;\r\n }", "public String getNombreCompleto();", "@Override\n\tprotected BaseSear...
[ "0.6364563", "0.6301035", "0.6086783", "0.60193086", "0.59764177", "0.5854345", "0.5788854", "0.5706946", "0.56960744", "0.5691681", "0.5685877", "0.5677925", "0.5612165", "0.56019795", "0.5599687", "0.5587984", "0.55420893", "0.5504163", "0.5476979", "0.54371756", "0.5387365...
0.0
-1
Encuentra la lista y anota el numerod e elementos inicial.
private static Matcher<View> encontrarLista() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (item instanceof ListView) { ListView lista = (ListView) item; a1a5NumIni = lista.getAdap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,game...
[ "0.6586966", "0.65505517", "0.64740163", "0.6396253", "0.6384103", "0.63745815", "0.6329685", "0.63177496", "0.62308604", "0.6217421", "0.61537975", "0.6094524", "0.6088626", "0.6067009", "0.6056299", "0.60542303", "0.60440594", "0.60379183", "0.6037181", "0.6023473", "0.6004...
0.0
-1
Encuentra la lista y anota el numero de elementos final.
private static Matcher<View> encontrarListaFin() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (item instanceof ListView) { ListView lista = (ListView) item; a1a5NumFin = lista.getA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n def...
[ "0.66937864", "0.63128036", "0.63123834", "0.62066317", "0.62031746", "0.6162506", "0.6133357", "0.60867816", "0.6048441", "0.6046331", "0.6046083", "0.6036987", "0.5924782", "0.5915226", "0.5912308", "0.5908081", "0.5862005", "0.58489764", "0.58442646", "0.58292633", "0.5821...
0.0
-1
No he podido acceder a menu item del boton de actualizar, por tanto no lo puedo pulsar. Esta prueba se realizara de manera visual.
@Test public void a1a6() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetUpdating() {\n MenuItem m = mymenu.findItem(R.id.Actualizar);\n if(m.getActionView()!=null)\n {\n // Remove the animation.\n m.getActionView().clearAnimation();\n m.setActionView(null);\n }\n\n }", "public void refreshMenu() {\n\t\t...
[ "0.7130517", "0.6921063", "0.68079674", "0.67407733", "0.67020863", "0.66655684", "0.6649791", "0.6619973", "0.659055", "0.6571653", "0.65105087", "0.64956415", "0.6490582", "0.6479202", "0.6467193", "0.64332473", "0.64325863", "0.6417049", "0.6412101", "0.6409603", "0.640950...
0.0
-1
Ayuda a comrpobar si estamos en la list view.
private static Matcher<View> comprobarListView() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (((TextView) item).getText().equals("")) { return true; } return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getI...
[ "0.65740407", "0.6559408", "0.64704454", "0.64497524", "0.64468443", "0.6381172", "0.63435817", "0.6272416", "0.62323666", "0.62230486", "0.6214762", "0.6170442", "0.61471915", "0.61449945", "0.60991937", "0.60922", "0.6068751", "0.60500455", "0.6042757", "0.6036917", "0.6020...
0.0
-1
Comprueba que estamos en la lista de estimaciones.
private static Matcher<View> comprobarListEstimaciones() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (((TextView) item).getText().equals("")) { return true; } return f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Estado> estadosHijos(Estado estado){\r\n EstadoMancala estadom=(EstadoMancala)estado;\r\n Jugador jugadorEstado=estadom.jugadores()[estadom.jugadoractual];\r\n Movimiento[] movimientos=estadom.movimientos(jugadorEstado);\r\n List<Estado> estados=new ArrayList<Estado>();\r\n...
[ "0.6521707", "0.607164", "0.6027822", "0.59719056", "0.5880077", "0.580339", "0.57462776", "0.5738732", "0.57095474", "0.5683868", "0.565702", "0.56547934", "0.56310827", "0.56280863", "0.5626441", "0.5615927", "0.5596697", "0.55793965", "0.5575622", "0.55477774", "0.55064243...
0.0
-1
Comprueba que aparece el mensaje de sin resultados.
private static Matcher<View> comprobarSinResultados() { return new TypeSafeMatcher<View>() { @Override protected boolean matchesSafely(View item) { if (((TextView) item).getText().equals("Sin resultados")) { return true; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n ...
[ "0.6534828", "0.63461673", "0.6135942", "0.6116967", "0.61157596", "0.6070619", "0.60377586", "0.59795934", "0.59166306", "0.5911456", "0.5871475", "0.58626866", "0.58486897", "0.581019", "0.5704046", "0.5690792", "0.56561047", "0.56411064", "0.5628684", "0.56210214", "0.5589...
0.0
-1
Prefer framework property first
private static Object prop(Map<String, ?> config, BundleContext bundleContext, String name) { Object value = bundleContext.getProperty(name); if (value != null) { return value; } //Fallback to one from config return config.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPropertytrue();", "PropertyRealization createPropertyRealization();", "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "Property getProperty();", "Property getProperty();", "public Property getProperty() {\n\treturn commonproperty;\r\n}"...
[ "0.61926246", "0.61054134", "0.58701944", "0.58239704", "0.58239704", "0.57688946", "0.5715179", "0.5644807", "0.5626418", "0.5602559", "0.55954933", "0.55861264", "0.5554231", "0.5549736", "0.55317384", "0.5520911", "0.55174077", "0.55007035", "0.5478405", "0.54593086", "0.5...
0.0
-1
interface that contains default article cache api
public interface ArticlesCache { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Obje...
[ "0.7339257", "0.7318183", "0.7261124", "0.7209975", "0.7177294", "0.7168943", "0.7147231", "0.71108913", "0.7091811", "0.7023835", "0.69846225", "0.6969615", "0.6967251", "0.6961924", "0.6894066", "0.68520147", "0.67978746", "0.67083144", "0.6686659", "0.667335", "0.66408557"...
0.8539902
0
Install two bundles, one started, one stopped
@Test public void testBundleStatePreserved() throws Exception { { final Object listener = this.startObservingBundleEvents(); installer.updateResources(URL_SCHEME, getInstallableResource( getTestBundle(BUNDLE_BASE_NAME + "-testA-1.0.jar")), null); this.wai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BundleStart\n public void bundleStart() {\n System.out.println(\"In bundleStart()!\");\n System.setProperty(\"test.bundle.start\", \"Jeehaa!\");\n }", "public static void main(String[] argv) throws Exception\n {\n // Create a temporary bundle cache directory and\n // make...
[ "0.6508012", "0.60810244", "0.6050266", "0.60449445", "0.6024986", "0.5914209", "0.59113216", "0.59068847", "0.58132744", "0.5758931", "0.57086307", "0.57017136", "0.5694353", "0.56911105", "0.5676912", "0.5673389", "0.5667083", "0.5617103", "0.5601293", "0.55495673", "0.5542...
0.634376
1
Created by Cheng on 5/10/17.
public interface StepListener { public void step(long timeNs); }
{ "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}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{...
[ "0.617547", "0.61532956", "0.6134315", "0.60104334", "0.60104334", "0.59969246", "0.597651", "0.59531987", "0.5951396", "0.5931957", "0.5921396", "0.5901996", "0.59010035", "0.59010035", "0.59010035", "0.59010035", "0.59010035", "0.5882056", "0.5868226", "0.5840324", "0.58393...
0.0
-1
/ Inflating the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_companyframe, container, false); main_layout = rootView.findViewById(R.id.main_layout); mSectionsPagerAdapter = new SectionsPage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "private int setLayoutResId(){\n ...
[ "0.7234774", "0.72301126", "0.72191334", "0.72168314", "0.72072595", "0.7206831", "0.718199", "0.71405935", "0.71394384", "0.71353686", "0.71173143", "0.71070933", "0.7104116", "0.7086927", "0.7082149", "0.707466", "0.70736265", "0.70662487", "0.70530313", "0.7051977", "0.704...
0.0
-1
Intent userConfIntent = new Intent(this, UserConfirmation.class); startActivity(userConfIntent);
public void putSilentOn() { StartupService.mode.setRingerMode(AudioManager.RINGER_MODE_SILENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ConfirmToken() {\n Intent i = new Intent(RegisterMe.this, ConfirmToken.class);\n startActivity(i);\n}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, UserRegister.class);\n startActivity(intent);\n ...
[ "0.79535395", "0.7473089", "0.7329332", "0.7247275", "0.72206503", "0.7178824", "0.7176206", "0.716071", "0.71366227", "0.71291935", "0.7107936", "0.70654774", "0.7040127", "0.69883007", "0.6987488", "0.69705003", "0.6963955", "0.69591993", "0.69550985", "0.69464964", "0.6945...
0.0
-1
Constructor sets the name of the train station.
public Vertex(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStationName(String name){\r\n this.name = name;\r\n }", "public L04Station(String name) {\r\n if (findByName(name)==null) {\r\n setName(name);\r\n stationList.add(this);\r\n }\r\n }", "public Station(String name, float latitude, float longitude) {...
[ "0.7168098", "0.70863014", "0.68417054", "0.6739674", "0.67357665", "0.6589257", "0.65486926", "0.6524136", "0.6426396", "0.639208", "0.63870734", "0.63736266", "0.6339763", "0.63157755", "0.63098836", "0.6247479", "0.6212423", "0.62054", "0.619878", "0.61654574", "0.61654574...
0.0
-1
This method will return the name of the station.
public String getStationName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String get_station_name () {\n if (!this.on) {\n return null;\n }\n\n return this.stationName;\n }", "public String getName(){\r\n return this.station.getName();\r\n }", "public String getStation() {\n return stationName;\n }", "public String getF...
[ "0.8850161", "0.86335367", "0.8272181", "0.815487", "0.773892", "0.7733972", "0.7277089", "0.7217393", "0.7154666", "0.6969409", "0.69592315", "0.69472915", "0.69390744", "0.6832244", "0.6761766", "0.6758663", "0.67549884", "0.66874194", "0.66352326", "0.6514377", "0.6514268"...
0.7918736
4
This method will set a name of the station to a one that user decides to enter
public void setStationName(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFromStationName(String fromStationName);", "public void setToStationName(String toStationName);", "public void setStation(String station) {\n \tthis.station = station;\n }", "public void setFromStation(String fromStation);", "public void setStationName(org.apache.xmlbeans.XmlAnySimpleT...
[ "0.769144", "0.7498921", "0.7203713", "0.70921063", "0.70854896", "0.70549244", "0.69748634", "0.6858906", "0.68155015", "0.6804924", "0.678385", "0.6735147", "0.6609717", "0.6589371", "0.6566078", "0.6540053", "0.6540053", "0.6441451", "0.63838506", "0.63670075", "0.62892306...
0.79393333
0
Adds an Observer to the Observable's collection of Observers
void addObserver(Observer observer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void subscribe(Observer observer) {\n this.observers.add(observer);\n }", "@Override\n public void addObserver(IObserver observer) {\n observersList.add(observer);\n }", "@Override\r\n\tpublic void addObserver(IObserver obs){\r\n\t\tif(obs != null){\r\n\t\t\tobserve...
[ "0.8009756", "0.7950993", "0.79485065", "0.79483575", "0.794522", "0.781088", "0.7559721", "0.7511918", "0.7501919", "0.7484875", "0.7483734", "0.7465803", "0.7417971", "0.7382113", "0.73802423", "0.73771936", "0.7376263", "0.73542243", "0.73506045", "0.73215204", "0.7308499"...
0.7641963
6
Notifies all Observers in the observer collection of the observable.
void notifyObservers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\...
[ "0.81382924", "0.8099408", "0.8062105", "0.8039332", "0.801037", "0.7922709", "0.79159045", "0.7855757", "0.78417677", "0.77428734", "0.7719752", "0.7697923", "0.7547062", "0.7477541", "0.7417617", "0.7353266", "0.73211", "0.72673726", "0.7240314", "0.72320455", "0.7210926", ...
0.6979555
32
Formats options for past builds on another project to be presented to a user
public interface BuildOptionFormatter <B extends AbstractBuild> { /** * Produce an appropriately formatted string for a given build * * @param build * Build to represent as a string * @return * String representing the given build */ public String formatBuild(B bui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String formatBuild(AbstractBuild build) {\n Result result = build.getResult();\n \n return String.format(\n \"%s - %s (%s)\",\n build.getDisplayName(),\n (result != null ? result.toString() : \"NO RESULT\"),\n ...
[ "0.5944614", "0.5736452", "0.570286", "0.56773067", "0.55053073", "0.53740555", "0.5223136", "0.51807684", "0.5122156", "0.50624484", "0.50537354", "0.5013703", "0.49923652", "0.49817568", "0.49767742", "0.49738482", "0.49725345", "0.4966653", "0.4954408", "0.49192238", "0.49...
0.6833162
0
Produce an appropriately formatted string for a given build
public String formatBuild(B build);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String formatBuild(AbstractBuild build) {\n Result result = build.getResult();\n \n return String.format(\n \"%s - %s (%s)\",\n build.getDisplayName(),\n (result != null ? result.toString() : \"NO RESULT\"),\n ...
[ "0.7429225", "0.700958", "0.66184103", "0.63928235", "0.62122256", "0.6203641", "0.61751235", "0.61333984", "0.61333984", "0.6108449", "0.6069509", "0.60399306", "0.60177755", "0.59910476", "0.5962705", "0.5932085", "0.5816278", "0.5796664", "0.576095", "0.5738441", "0.570021...
0.75685567
0
Constructor creates a new instance of DefaultImpl
public DefaultImpl(final DateFormat dateFormat) { this.dateFormat = dateFormat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Default()\n {}", "defaultConstructor(){}", "public Implementor(){}", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "void DefaultConstructor(){}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public SgaexpedbultoImpl()\n {\n }", "public...
[ "0.7819427", "0.7376643", "0.71863174", "0.7115586", "0.70693374", "0.68769354", "0.6790318", "0.6773074", "0.67663294", "0.6725721", "0.6629592", "0.6621959", "0.65651476", "0.65603644", "0.65201086", "0.65103", "0.64894783", "0.6471715", "0.6464856", "0.64644825", "0.644984...
0.0
-1
Constructor creates a new instance of DefaultImpl assuming a default date format for presenting the build date as a string
public DefaultImpl() { this(DEFAULT_DATE_FORMAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ARXDate() {\r\n this(\"Default\");\r\n }", "public DefaultFormat() {\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = ...
[ "0.7138499", "0.6956357", "0.6684065", "0.6549181", "0.65248024", "0.6495021", "0.6445829", "0.6427211", "0.6366166", "0.62056166", "0.6133848", "0.6099102", "0.6092558", "0.60116917", "0.5983091", "0.5983091", "0.5982016", "0.5964294", "0.5935684", "0.5935684", "0.59334105",...
0.8220658
0
Produce an appropriately formatted string for a given build
@Override public String formatBuild(AbstractBuild build) { Result result = build.getResult(); return String.format( "%s - %s (%s)", build.getDisplayName(), (result != null ? result.toString() : "NO RESULT"), thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String formatBuild(B build);", "public String buildingString() {\r\n\t\twhichBuild = 1 - whichBuild;\r\n\t\tif (whichBuild == 1) {\r\n\r\n\t\t}\r\n\t\treturn \"420 400;10 10 140 60 60 60 10;140 10 240 60 180 60 10;240 10 400 60 320 60 20 ;10 90 120 180 40 90 15;120 90 280 180 160 90 10;280 90 400 180 340 ...
[ "0.7569534", "0.7009694", "0.6618356", "0.6392495", "0.62125516", "0.6204016", "0.6175272", "0.6134016", "0.6134016", "0.61077243", "0.6068521", "0.60408175", "0.6017451", "0.5989855", "0.59612584", "0.5932803", "0.5815899", "0.5796211", "0.5759685", "0.573757", "0.5700893", ...
0.7429634
1
Create a new plugin file dependency
public PluginFileDependency(String fileName, PackagingType packaging, Map<String, String> replacements) { this.fileName = fileName; this.packaging = packaging; this.replacements = replacements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dependency createDependency();", "Dependency createDependency();", "public DemoPluginFactory() {}", "private void create(String[] dependencies) throws ThinklabClientException {\r\n \t\tif (dependencies == null) {\r\n \t\t\tString dps = Configuration.getProperties().getProperty(\r\n \t\t\t\t\t\"default.projec...
[ "0.6486284", "0.6486284", "0.60078317", "0.58860254", "0.57461023", "0.5745296", "0.5691248", "0.56851417", "0.55998176", "0.557438", "0.5538379", "0.5520451", "0.5498937", "0.54916346", "0.54818666", "0.547332", "0.54627347", "0.54627347", "0.5439254", "0.53969175", "0.53518...
0.49649754
57
Creates an instance of the class that indicates the file is within tcMenu itself. Don't use for new plugins, prefer to package arduino code in the plugin or a new library.
public static PluginFileDependency fileInTcMenu(String file) { return new PluginFileDependency(file, PackagingType.WITHIN_TCMENU, Map.of()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Menu createFileMenu();", "private JMenu createFileMenu() {\n\t\tJMenu menu = new JMenu(\"File\"); \n\t\tmenu.add(createDetectiveNotes());\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}", "public JMenu createFileMenu(){\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmenu.add(createFileResetItem...
[ "0.69967836", "0.6643093", "0.6349522", "0.6306042", "0.6287752", "0.6250741", "0.62453", "0.6230557", "0.61215866", "0.61121243", "0.608201", "0.6059886", "0.6024571", "0.5995489", "0.5976756", "0.5941705", "0.59012455", "0.5831238", "0.58310753", "0.58131295", "0.57534164",...
0.6110478
10
Creates new form About
public AboutJDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public About() {\n initComponents();\n }", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n // TODO add your handling code here:\n // Show the About form\n About myAbout = new About(this, true);\n ...
[ "0.71170855", "0.6880036", "0.66540575", "0.6572912", "0.6543486", "0.6533567", "0.64527875", "0.6444262", "0.6406369", "0.6395071", "0.6315071", "0.631264", "0.62901694", "0.62806225", "0.6272213", "0.62612635", "0.6216437", "0.62163484", "0.620794", "0.6204042", "0.61842346...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lblTitle = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); txtGioiThieu = new javax.swing.JTextPane(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.694635...
0.0
-1
Log.d("MainFrameonResume",returnToClass+", "+this.getClass()); XiaomishuChat chat = XiaomishuChat.getInstance(MainFrameActivity.this); DialogRemindFloatWindow floatWindow = DialogRemindFloatWindow .getInstance(MainFrameActivity.this); if (chat.isExitMark()) floatWindow.show();
@Override protected void onResume() { if (returnToClass != null) { // Log.d("MainFrame------",returnToClass+", "+this.getClass()); if (returnToClass != this.getClass() && this.getClass() != IndexActivity.class) { // 没有回到目标页 finish(); } else { CommonObservable.getInstance().notifyObservers(Retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListen...
[ "0.64606583", "0.6272081", "0.62694126", "0.62208134", "0.6210712", "0.6205332", "0.6162374", "0.6090529", "0.6082988", "0.6076189", "0.6057437", "0.6026514", "0.60144466", "0.6009861", "0.5977632", "0.5976754", "0.59560925", "0.5950563", "0.59432465", "0.5930558", "0.5922447...
0.60942286
7
mBottomlayout = (RelativeLayout) findViewById(R.id.main_frame_llBottom);
protected View getBottomLayout() { return new View(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflat...
[ "0.6353733", "0.63251835", "0.6268152", "0.60323834", "0.60180354", "0.5985741", "0.59370685", "0.59346676", "0.5934559", "0.59182596", "0.58794826", "0.5878927", "0.58700746", "0.58392817", "0.57541233", "0.5716398", "0.5662366", "0.56435996", "0.5628971", "0.5628942", "0.56...
0.66059667
0
String uuid = typeTag == 3 ? getRecomRestaurantId() : getRestaurantId();
public void onClick(DialogInterface dialog, int which) { String uuid = ""; String weixinName = ""; Settings.shareTypeTag = typeTag; Settings.shareUuid = getWeiboUuid(); switch (typeTag) { case 1: // 1:分享餐厅 uuid = getRestaurantId(); weixinName = getWeixinName(); break; case 2: //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getUuid();", "String getUuid();", "java.lang.String getUUID();", "UUID getUUID();", "public UUID getUuid();", "UUID getCreatedUUID()\n {\n return conglomerateUUID;\n }", "public abstract UUID getId();", "public String gerarUID() {\n //String id1 = UUID.rando...
[ "0.58339447", "0.5766869", "0.57237357", "0.5592462", "0.55586755", "0.5543625", "0.5487664", "0.5463211", "0.5451904", "0.5438791", "0.54350924", "0.5360448", "0.5327935", "0.53212553", "0.5293038", "0.5288812", "0.5245821", "0.5245821", "0.5230815", "0.5173167", "0.51689655...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { if (dto.getTypeTag() == 1) { // 广告链接,使用内嵌的WebView打开 Bundle bd = new Bundle(); bd.putString(Settings.BUNDLE_KEY_WEB_URL, dto.getAdvUrl()); bd.putString(Settings.BUNDLE_KEY_WEB_TITLE, dto.getTitle()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int checkLogin(User user) { int msg=0; try{ User user2=uDao.loginUser(user.getUsername().toString()); String pwd=getEncodTool.decodeHexTest(user2.getPassword()); if(pwd.equals(user.getPassword())){ msg=1; }else{ msg=3; } }catch(NullPointerException e){ msg=2; } ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<User> getAllUser() { return uDao.getAllUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int insertUser(User user) { return uDao.insertUser(user); }
{ "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
/ returning a value higher than 0 is applied damage to the armor, even if the armor is not setup to take damage. TODO: does this even work???? Is this even needed?
@Override public <T extends LivingEntity> int damageItem(ItemStack stack, int amount, T entity, Consumer<T> onBroken) { // FIXME: this should probably factor in the damage value int enerConsum = (int) Math.round(stack.getCapability(ForgeCapabilities.ITEM_HANDLER) .filter(IModularIte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int giveDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "public int getDamage() {\n //TODO\n return 1;\n }", "public int getEquippedWeaponDamage() {\n return 0;\n }", "@Override\n public int damage(...
[ "0.78471583", "0.7672358", "0.7672358", "0.7672358", "0.7672358", "0.7672358", "0.75326234", "0.75224346", "0.7485001", "0.7354082", "0.7336275", "0.73083514", "0.72904086", "0.7288167", "0.7267651", "0.7249531", "0.72249466", "0.71926904", "0.71862435", "0.7184625", "0.71620...
0.67134666
64
PropertyModifier tags applied directly to armor will disable the ItemStack sensitive version
@Override public Multimap<Attribute, AttributeModifier> getAttributeModifiers(EquipmentSlot slot, ItemStack stack) { stack.removeTagKey("AttributeModifiers"); Multimap<Attribute, AttributeModifier> multimap = super.getAttributeModifiers(slot, stack); EquipmentSlot slotType = Mob.getEquipmen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean CanArmor() {\n return false;\n }", "private void setArmor() {\n\n if (VersionChecker.currentVersionIsUnder(12, 2)) return;\n if (!ConfigValues.mobCombatSettingsConfig.getBoolean(MobCombatSettingsConfig.ELITE_ARMOR)) return;\n\n eliteMob.getEquipment()....
[ "0.6853283", "0.6257589", "0.62360495", "0.6174988", "0.6065189", "0.596072", "0.59267175", "0.58617365", "0.5857618", "0.58437985", "0.5779236", "0.5733712", "0.57156485", "0.57124394", "0.5675008", "0.5673137", "0.5625814", "0.56066537", "0.55671346", "0.554911", "0.55047",...
0.71075594
0
use \" to escape a quote
@Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; if (label.equalsIgnoreCase("help")) { if (args.length == 0 || (args.length == 1 && args[0].equalsIgnoreCase("1"))) { player.sendMessage(ChatColor.RED + "Help 1 of 4 - Cub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String doubleQuote( String raw ) { return '\"' + raw + '\"'; }", "public void quote() {\n text.append(\"\\'\");\n }", "private static String escapeDoubleQuotes(String s) {\n\n if (s == null || s.length() == 0 || s.indexOf('\"') == -1) {\n return s;\n }\n\n Stri...
[ "0.7895119", "0.75350624", "0.7500952", "0.74941325", "0.74454194", "0.7399608", "0.7366164", "0.7356518", "0.73461145", "0.73352623", "0.7255688", "0.72351426", "0.7214085", "0.7184013", "0.7106001", "0.704824", "0.70253813", "0.7014061", "0.6968016", "0.6908258", "0.683098"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Monthly_Tax frmMain = new Monthly_Tax(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void save(Account userForm) { account.save(userForm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Account getBalance(String username) { return account.findByUsername(username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Account getAccountDetails(String username) { return account.findByUsername(username); }
{ "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
/ Weld is executed in Java SE environment: EJB beans are not supported. Boots Weld SE container.
public void startIt() { final Weld weld = new Weld(); try (WeldContainer container = weld.initialize()) { final WeldInstance<ResearchCDIBean> instance = container.select(ResearchCDIBean.class); final ResearchCDIBean researchCDIBean = instance.get(); /* * run in container */ researchCDI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EJBContainerProvider\n{\n /**\n * Called by the embeddable container bootstrap process to find a suitable embeddable container\n * implementation. An embeddable container provider may deem itself as appropriate for the\n * embeddable application if any of the following are true : The ja...
[ "0.67766565", "0.5876893", "0.5811369", "0.57601684", "0.57601684", "0.57601684", "0.57601684", "0.57601684", "0.57601684", "0.5701314", "0.568158", "0.5578727", "0.55355316", "0.55304396", "0.5510883", "0.55100256", "0.55032355", "0.55032355", "0.54655075", "0.54635596", "0....
0.5941382
1
Constructor without id specified.
public SchedulingRequest(LocalDateTime startTime, LocalDateTime endTime, LocalDateTime timeRequested, LocalDateTime timeCompleted, String name, Node room) { this(); this.startTime.set(startTime); this.endTime.set(endTime); this.timeRequested.set(tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "id() {}", "public Rol(Integer id)\r\n/* */ {\r\n/* 82 */ this.id = id;\r\n/* */ }", "id(int id) {}", "public Action(long id) {\n this(id, \"\");\n }", "public Bid() {}", "private Uniqueid() {\n\n }", "public Model(int id) {\n\t\tthis.id = id;\n\t}", "protected InputDocum...
[ "0.7120732", "0.7096585", "0.70650315", "0.70334655", "0.7020386", "0.696431", "0.6928347", "0.69177866", "0.69126093", "0.69105524", "0.68753135", "0.6850472", "0.68486655", "0.6792474", "0.67865956", "0.67521775", "0.672133", "0.671986", "0.6683554", "0.6678747", "0.6662032...
0.0
-1
Used to check if the meeting is during a certain time.
public boolean isDuring(LocalDateTime localDateTime) { return (localDateTime.isAfter(startTime.get()) || localDateTime.isEqual(startTime.get())) && (localDateTime.isBefore(endTime.get()) || localDateTime.isEqual(endTime.get())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\...
[ "0.7633144", "0.75596875", "0.72502124", "0.72502124", "0.70655936", "0.7045251", "0.7016495", "0.70011365", "0.69833523", "0.69231135", "0.67776", "0.66351515", "0.66031516", "0.6565095", "0.6558692", "0.65403026", "0.6539482", "0.6470218", "0.64554983", "0.6444532", "0.6410...
0.6000448
48
Used to check if the given time range is during this meeting.
public boolean isDuring(LocalDateTime startTime, LocalDateTime endTime) { if (this.endTime.get().isBefore(startTime) || this.endTime.get().isEqual(startTime)) { return false; } return !(endTime.isBefore(this.startTime.get()) || endTime.isEqual(this.startTime.get())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\...
[ "0.76115656", "0.73042876", "0.72127646", "0.7071862", "0.70579964", "0.6933029", "0.68510354", "0.6727862", "0.6680332", "0.6674234", "0.6638698", "0.6622798", "0.6603417", "0.6567153", "0.65662295", "0.65100735", "0.65100735", "0.6491283", "0.64783347", "0.6456823", "0.6454...
0.70769334
3
Use to check if this scheduling request would happen at the same time and place as the other scheduling request.
public boolean conflictsWith(SchedulingRequest schedulingRequest) { if (this.id.get() == schedulingRequest.id.get()) { return false; } if (!room.get().equals(schedulingRequest.room.get())) { return false; } return isDuring(schedulingRequest.startTime.get(), schedulingRequest.endTime.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasScheduling();", "boolean hasScheduling();", "public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < Sy...
[ "0.6280401", "0.6280401", "0.6048626", "0.60213256", "0.5994636", "0.5981766", "0.59534866", "0.5923013", "0.5877424", "0.5869794", "0.5852637", "0.58501303", "0.58113295", "0.580134", "0.5786356", "0.5776374", "0.57751924", "0.57413965", "0.56748945", "0.5668738", "0.5631288...
0.70358884
0
think the city is build up with cells,so normalize location to cell left top
private void normalizeLocation(Point location) { location.x = location.x / Environment.standardCellLength * Environment.standardCellLength; location.y = location.y / Environment.standardCellLength * Environment.standardCellLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new...
[ "0.63943624", "0.61976343", "0.61556554", "0.6079385", "0.60610443", "0.60451734", "0.6040683", "0.6024619", "0.5983415", "0.59744656", "0.59632736", "0.5958283", "0.5921708", "0.5910495", "0.58616954", "0.5860394", "0.57953316", "0.57794", "0.57749087", "0.57448137", "0.5726...
0.65246713
0
Check if the target position is available
private boolean checkSpaceAvailability(Point targetLocation, ICityFragment element) { //basic constraint:no other things here if (city.isAnythingHere(targetLocation, element.getBoundary().width, element.getBoundary().height, element)) { return false; } //crossroads:a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTargetPos();", "private boolean reachX(Position target) {\n return position.x == target.x;\n }", "public boolean targetPositionReached(){\n\t\t\n\t\tif(orientation==ORIENTATION.UP&&targetY>=lastY){\n\n\t\t\treturn true;\n\t\t}\n\t\telse if(orientation==ORIENTATION.DOWN&&targetY<=lastY){\n\...
[ "0.82571334", "0.73384213", "0.7308385", "0.70500726", "0.70500726", "0.70500726", "0.70500726", "0.69291496", "0.6854478", "0.67556137", "0.6690807", "0.6647216", "0.6580566", "0.65421206", "0.64802814", "0.647045", "0.64356315", "0.63679886", "0.6327715", "0.62979037", "0.6...
0.6114442
32
Would be used if you want to load properties from a property file into a Properties object. All the property pairs from the file would be added to the Properties object p. None of the previous contents of p would be deleted
public static void loadProperties(Properties p, String fileName)throws IOException { ClassLoader classLoader = ClassLoader.getSystemClassLoader(); URL f = classLoader.getResource(fileName); FileInputStream fr = new FileInputStream(new File(fileName)); p.load(fr); fr.close(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n ...
[ "0.75582886", "0.75085926", "0.7430082", "0.71912795", "0.71249956", "0.7089516", "0.6995388", "0.69756675", "0.694618", "0.6916416", "0.6870374", "0.6853421", "0.677646", "0.6771082", "0.675184", "0.6751199", "0.6740249", "0.67384005", "0.6707089", "0.6701299", "0.6680031", ...
0.67259794
18
Would erase all the contents of a property file.
public static void clearFileProperties(String fileName) throws IOException { saveProperties(new Properties(), fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void deleteSettingsFile() {\n File settingsFile = new File(propertyFileName);\n if (settingsFile.exists())\n settingsFile.delete();\n }", "PropertiesTask removeAllProperties();", "void clearProperty(String key);", "void clearProperty(String key);", "PropertiesTask ...
[ "0.6627952", "0.65832275", "0.65262216", "0.65262216", "0.64227283", "0.6383791", "0.6340499", "0.6177998", "0.6174559", "0.60630435", "0.5969167", "0.59341717", "0.5897507", "0.588419", "0.58836216", "0.5858214", "0.5833926", "0.58277494", "0.5824304", "0.5821739", "0.577158...
0.6997391
0
Takes the elements from inside the Properties object p and adds them to the existing elements in the property file
public static void addPropertiesToFile(String key, String value, String fileName) throws IOException { Properties p = new Properties(); loadProperties(p, fileName); p.setProperty(key, value); saveProperties(p, fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeProperties(java.util.Properties p) {\n }", "void writeProperties(java.util.Properties p) {\n\t\tp.setProperty(\"version\", \"1.0\");\n\t\t// TODO store your settings\n\t}", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your setting...
[ "0.6880143", "0.67810154", "0.67374593", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.673705", "0.6570922", "0.654284", "0.64950466", "0.63269746", "0.6193403", "0.60650903", "0.605376...
0.0
-1
Returns the properties of a property file as a map
public static Map<String, String> getPropertiesMap(String filename) throws IOException{ Map<String, String> map = new LinkedHashMap(); Properties p = new Properties(); loadProperties(p, filename); Set<String> keys = p.stringPropertyNames(); for (String k : keys) { map...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n ...
[ "0.75836337", "0.75001174", "0.74301094", "0.73988724", "0.73988724", "0.7384225", "0.7384225", "0.7324144", "0.72280663", "0.7215981", "0.719381", "0.71520007", "0.7114762", "0.6991302", "0.6944579", "0.69385916", "0.6926422", "0.69171804", "0.68980074", "0.6882008", "0.6876...
0.8042386
0
Turns the contents of a file into a String.
public static String readFileToString (File file) { try { final var END_OF_FILE = "\\z"; var input = new Scanner(file); input.useDelimiter(END_OF_FILE); var result = input.next(); input.close(); return result; } catch(IOExce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n...
[ "0.81649363", "0.7942663", "0.7878493", "0.7848509", "0.7803366", "0.7783371", "0.7744027", "0.76616734", "0.7628688", "0.76044035", "0.75504255", "0.7547817", "0.7545044", "0.7540476", "0.7540446", "0.75026613", "0.7491324", "0.7468561", "0.7452132", "0.74361193", "0.7429133...
0.76518756
8
private final JLabel lblLogin = DefaultComponentFactory.getInstance().createTitle("Login"); Launch the application.
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Login frame = new Login(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "public Login()\r\n\t{\r\n\t\t//Initialize the GUI\r\n\t\tthis.initializeGUI();\r\n\r\n\t\t//Setup the JFrame\r\n\t\tthis.setTitle(Application.NAME);\r\n\t\tthis.setSize(600, 400);\r\n\t\tthis.setResizable(fals...
[ "0.76068115", "0.724142", "0.7128546", "0.69874996", "0.6964607", "0.6951152", "0.6935439", "0.69159603", "0.6888516", "0.68814164", "0.6813086", "0.6787212", "0.67847854", "0.67814296", "0.67534566", "0.67347956", "0.6730136", "0.67231816", "0.66723883", "0.66387343", "0.663...
0.64815724
32
/ / BaseMVP.Presenter implementation / Ask the interactor to retrieve and load an image given by its relative path.
@Override public void loadImage(String path, ImageView imageView) { mInteractor.loadImage(path, imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void imageLoadSuccess(String path) {\n Intent mainIntent = new Intent(MainActivity.this, PresenterActivity.class);\n mainIntent.putExtra(\"path\", path);\n startActivity(mainIntent);\n }", "protected abstract Image loadImage();", "private BufferedImage loadImage(St...
[ "0.6674707", "0.6649671", "0.63480246", "0.63057935", "0.62621605", "0.62304837", "0.6167055", "0.61142284", "0.60457075", "0.6039944", "0.60002774", "0.59771943", "0.5966857", "0.59442943", "0.5897583", "0.58772147", "0.58750796", "0.5855861", "0.5777844", "0.5769722", "0.57...
0.68658465
0
end Cat not running
public boolean checkLionStatus() {//opening checkLionStatus method return isCatRunning; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"cat is running \");\n\t}", "public static void main(String[] args) {\n\t\tCat cat=new Cat(\"Kira\",8); \n\t\tSystem.out.println(cat); \n\t\tcat.getSound(); \n\t\tcat.eat(); \n\t\tcat.eat(\"wiskas\"); \n\t}", "private Cat() {\n\t\t\n\t}", "public void...
[ "0.6299843", "0.6258198", "0.62285787", "0.62217915", "0.6183413", "0.60704523", "0.60145736", "0.5856594", "0.557547", "0.5571758", "0.5562855", "0.55508983", "0.55331886", "0.5498765", "0.54915494", "0.54879606", "0.5484149", "0.5475964", "0.5475964", "0.54694057", "0.54470...
0.51767117
44
Obtenemos todos los mensajes
@GetMapping("/all") public List<Mensaje> getMensaje() { return mensajeServicio.getMessages(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n ...
[ "0.78721994", "0.64989257", "0.64302206", "0.63518524", "0.632565", "0.62671214", "0.6265713", "0.6265567", "0.62041086", "0.61908126", "0.618947", "0.6174437", "0.6169196", "0.6157636", "0.61535037", "0.61346215", "0.61346215", "0.6097025", "0.60943323", "0.60846025", "0.606...
0.63391626
4
Obtenemos un mensaje por su id
@GetMapping("/{id}") public Optional<Mensaje> getMensajeId(@PathVariable("id") Long mensajeId) { return mensajeServicio.getMessageById(mensajeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getMessage(String id) {\n\t\treturn \"success\";\n\t}", "private void muestraMensaje(int idMensaje) {\n final Snackbar snack=Snackbar.make(mLayout,idMensaje,Snackbar.LENGTH_LONG).\n setAction(R.string.texto_cerrar, v -> {\n // No necesitamos hac...
[ "0.75014067", "0.72745895", "0.7208333", "0.70468396", "0.6992176", "0.69318265", "0.69110626", "0.6864994", "0.6864994", "0.68407357", "0.6828931", "0.6744812", "0.6721464", "0.6721464", "0.67213136", "0.6709281", "0.66676384", "0.66493845", "0.66166806", "0.6594633", "0.658...
0.6744661
12
Creamos un nuevo mensaje
@PostMapping("/save") @ResponseStatus(code = HttpStatus.CREATED) public Mensaje saveMensaje(@RequestBody Mensaje mensaje) { return mensajeServicio.saveMessage(mensaje); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mensajeInformacion(String mensaje){\n\t\tAlertDialog.Builder builder =\n new AlertDialog.Builder(Postre.this);\n \n builder.setMessage(mensaje)\n .setTitle(\"Información\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n ...
[ "0.67255217", "0.67058766", "0.6652587", "0.66501784", "0.65143484", "0.64943117", "0.6485835", "0.64758015", "0.6440568", "0.64367443", "0.64289325", "0.6372883", "0.6334553", "0.63322157", "0.6298451", "0.628985", "0.62723464", "0.62549466", "0.6242478", "0.6233401", "0.618...
0.56306726
92
Actualizamos un mensaje existente
@PutMapping("/update") @ResponseStatus(code = HttpStatus.CREATED) public Mensaje updateMensaje(@RequestBody Mensaje mensaje) { return mensajeServicio.updateMessage(mensaje); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String persistSucceededMessage();", "protected abstract String persistFailedMessage();", "protected void succeed()\r\n {\r\n // inform user\r\n ((OwMainAppContext) getContext()).postMessage(getContext().localize(\"plug.owdocprops.OwFieldView.saved\", \"The changes have been ...
[ "0.6357013", "0.61840206", "0.61219054", "0.6084773", "0.59905046", "0.59574497", "0.5929995", "0.59066105", "0.59057736", "0.58200735", "0.58023065", "0.57756937", "0.5748062", "0.57426035", "0.572211", "0.57176054", "0.5693119", "0.5689139", "0.56614494", "0.565834", "0.565...
0.5396397
46
Borramos un mensaje a partir de su id
@DeleteMapping("/{id}") @ResponseStatus(code = HttpStatus.NO_CONTENT) public boolean deleteMensaje(@PathVariable("id") Long mensajeId){ return mensajeServicio.deleteMessage(mensajeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void muestraMensaje(int idMensaje) {\n final Snackbar snack=Snackbar.make(mLayout,idMensaje,Snackbar.LENGTH_LONG).\n setAction(R.string.texto_cerrar, v -> {\n // No necesitamos hacer nada, solo que se cierre\n });\n snack.show();\n }", "pu...
[ "0.6986298", "0.6977588", "0.68218946", "0.680293", "0.648255", "0.6472027", "0.6356309", "0.63383424", "0.6283122", "0.62413865", "0.62413865", "0.6236379", "0.6158925", "0.6139187", "0.61351264", "0.6095717", "0.6053936", "0.60439116", "0.60355836", "0.60156476", "0.6015647...
0.54725045
83
Get wanted page from searched result
public void getWantedPageFromPagination()throws Exception{ SearchPageFactory pageFactory = new SearchPageFactory(driver); List<WebElement> pageOrderList = pageFactory.searchPagePaginationList; WebElement wantedPageOrder = pageOrderList.get(1); clickElement(wantedPageOrder, Constant.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getPage();", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "int getPage();", "List<T> findPage(int pageNumber);", "public int getResultsPage()\r\n\t{\r\n\t\treturn this.resultsPage;\r\n\t}", "SearchResult findNext(SearchOptions searchOptions);",...
[ "0.6624878", "0.65529704", "0.652053", "0.64047766", "0.6296589", "0.62584627", "0.61883754", "0.6088649", "0.60687673", "0.6063399", "0.6062084", "0.60216784", "0.6018408", "0.6007661", "0.59923583", "0.5988326", "0.59790325", "0.59630454", "0.59546876", "0.58980197", "0.587...
0.61139274
7
Get wanted product header
public String getWantedProductHeader()throws Exception{ SearchPageFactory pageFactory = new SearchPageFactory(driver); String listedItemHeader = getElementText(pageFactory.listedItemHeader); return listedItemHeader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String clickWishListProductListAndGetProductHeader()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n clickElement(pageFactory.openWishlistProductList,Constant.explicitTime);\r\n String wishlistProductItemHeader = getElementText(pageFactory.wishLis...
[ "0.66572016", "0.64755374", "0.63536125", "0.6339354", "0.6289864", "0.6215223", "0.61753845", "0.61319625", "0.61271054", "0.606357", "0.60465163", "0.60325485", "0.60252655", "0.5968729", "0.5934125", "0.59335685", "0.59102535", "0.58833396", "0.58371466", "0.58337575", "0....
0.80237156
0
Get Breadcrump Text To Myaccount
public String getBreadcrumpMyAccountText()throws Exception{ SearchPageFactory pageFactory = new SearchPageFactory(driver); String accountBreadcrupmText = getElementText(pageFactory.breadcrumpMyaccount); return accountBreadcrupmText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAccount();", "@GET\n\t@Path(\"/getAll\")\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic String getPlainTextAccount() {\n\t\tString res = \"\";\n\t\tVector<Account> vs = MyAccountDAO.getAllAccounts();\n\t\tif (vs != null) {\n\t\t\tfor (int i = 0; i < vs.size(); i++) {\n\t\t\t\tres += vs.elementA...
[ "0.63659424", "0.61974037", "0.59688985", "0.59688985", "0.57325834", "0.57208854", "0.5706316", "0.5700249", "0.5663235", "0.5650548", "0.562438", "0.5550737", "0.5527706", "0.5516413", "0.5496931", "0.5468273", "0.54626346", "0.54626346", "0.5433796", "0.540748", "0.5393594...
0.77493626
0
Click WishList and Favorite Link
public String clickWishListAndGetFavoriteHeader() throws Exception{ SearchPageFactory pageFactory = new SearchPageFactory(driver); clickElement(pageFactory.leftMenuItem,Constant.explicitTime); String wishListHeader = getElementText(pageFactory.wishListHeader); return wishListHeader; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "public void clickFavoritesLink()\n\t{\n \telementUtils.performElementClick(wbFavoritesLink);\n\t}", "public synchronized void clickOnWishList(WebDriver driver) throws Exception {\n\n\t\tutils.isElementPre...
[ "0.8317801", "0.7250348", "0.71814", "0.6628624", "0.6574844", "0.6434708", "0.6301897", "0.6298008", "0.623862", "0.6166686", "0.6155005", "0.6148105", "0.61459297", "0.61273545", "0.61152995", "0.60972285", "0.60208714", "0.59913754", "0.59905016", "0.5982915", "0.59328157"...
0.6823617
3
Open wishlist product list
public String clickWishListProductListAndGetProductHeader()throws Exception{ SearchPageFactory pageFactory = new SearchPageFactory(driver); clickElement(pageFactory.openWishlistProductList,Constant.explicitTime); String wishlistProductItemHeader = getElementText(pageFactory.wishListRelatedIte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}", "private void getWishListInfo(final long productId) {\n User user = SettingsMy.getActiveUser();\n if (user != null) {\n // determine i...
[ "0.66773796", "0.6373073", "0.6343244", "0.6307045", "0.62190324", "0.618678", "0.617163", "0.6116867", "0.60797864", "0.60407865", "0.5990362", "0.596342", "0.5952715", "0.5951267", "0.5941513", "0.5873553", "0.5847656", "0.57806176", "0.57754606", "0.57680947", "0.5745977",...
0.66337645
1