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
Extracts a zip entry (file entry)
private void extractFile(ZipInputStream zipIn, String filePath) throws IOException { BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath)); byte[] bytesIn = new byte[BUFFER_SIZE]; int read = 0; while ((read = zipIn.read(bytesIn)) != -1) { bos.write(bytesIn, 0, read); } bos.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void getFile(ZipEntry e) throws IOException {\n String zipName = e.getName();\n switch (mode) {\n case EXTRACT:\n if (zipName.startsWith(\"/\")) {\n if (!warnedMkDir)\n System.out.println(\"Ignoring absolute paths\");\n ...
[ "0.7078598", "0.70112234", "0.6994448", "0.6914263", "0.6707111", "0.659892", "0.6585546", "0.65308636", "0.64202315", "0.62269086", "0.6163962", "0.6142273", "0.6141167", "0.61393833", "0.6108375", "0.6081487", "0.60337436", "0.5978708", "0.5939652", "0.5923512", "0.59217584...
0.5979555
18
Analyze the neural network.
public void analyze(final File inputFile, final boolean headers, final CSVFormat format) { setInputFilename(inputFile); setExpectInputHeaders(headers); setInputFormat(format); setAnalyzed(true); performBasicCounts(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void neuralNet(Mat test) {\n\t\tCvANN_MLP nnet = new CvANN_MLP();\n\t\t//Loading a saved Neural Network\n\t\tnnet.load(\"/Users/SidRama/Desktop/NeuralNetwork.xml\");\n\t\tSystem.out.println(\"Running test...\");\n\t\t//Loading a test\n\t\t//Actually, loading a scanned sample for detection. I'm loading 10 samples\n...
[ "0.6152972", "0.58965063", "0.58915913", "0.586031", "0.5782278", "0.5683433", "0.56821847", "0.56759906", "0.5671004", "0.56037015", "0.56025404", "0.55623233", "0.55328333", "0.5515896", "0.5497192", "0.5480225", "0.54765373", "0.5456425", "0.544601", "0.54277694", "0.54194...
0.0
-1
Get the next row from the underlying CSV file.
private LoadedRow getNextRow(final ReadCSV csv) { if( csv.next() ) { return new LoadedRow(csv); } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Row nextRow() {\n\t\tRow row = (nextRow == null) ? getStarts().next() : nextRow;\n\n\t\ttry {\n\t\t\tnextRow = getStarts().next();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tnextRow = null;\n\t\t}\n\n\t\treturn row;\n\t}", "public TableGenRow nextRow() {\n try {\n if(DBMacros.next(rs)) {\n ...
[ "0.6614184", "0.64808726", "0.6455211", "0.63743335", "0.6296901", "0.6224801", "0.61611515", "0.6146663", "0.61317354", "0.5966645", "0.5889778", "0.5827909", "0.58053166", "0.58050317", "0.57973486", "0.5771827", "0.57577306", "0.57415813", "0.5740189", "0.5730511", "0.5723...
0.75922704
0
Process, and generate the output file.
public void process(final File outputFile) { validateAnalyzed(); final ReadCSV csv = new ReadCSV(getInputFilename().toString(), isExpectInputHeaders(), getFormat()); LoadedRow row; final PrintWriter tw = prepareOutputFile(outputFile); resetStatus(); while ((row = getNextRow(csv)) != null) { writeRow(tw, row); updateStatus(false); } reportDone(false); tw.close(); csv.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateOutputFile(String inputFile) {\n\n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.distinct\");\n\n\n try (PrintWriter out = new PrintWriter(new BufferedWriter(\n new FileWriter(outputFile...
[ "0.66971266", "0.66200435", "0.6478979", "0.64528996", "0.641784", "0.6282915", "0.6183453", "0.6164376", "0.6162294", "0.61456686", "0.6137098", "0.6126409", "0.6078226", "0.6057566", "0.60381395", "0.59539473", "0.5935772", "0.592658", "0.5905711", "0.59047955", "0.5869029"...
0.0
-1
TODO Autogenerated method stub
@SuppressLint("NewApi") @Override public void onCreate() { super.onCreate(); InputStream is = getResources().openRawResource(R.drawable.ic_launcher); Bitmap mBitmap = BitmapFactory.decodeStream(is); System.out.println("btm" + mBitmap.getByteCount()); setBm(mBitmap); // 初始化全局变量 userId = ""; UserName = ""; levelId = ""; DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder() // .showImageForEmptyUri(R.drawable.ic_launcher) // .showImageOnFail(R.drawable.ic_launcher) // .cacheInMemory(true) // .cacheOnDisk(true) // .build();// ImageLoaderConfiguration config = new ImageLoaderConfiguration// .Builder(getApplicationContext())// .defaultDisplayImageOptions(defaultOptions)// .discCacheSize(50 * 1024 * 1024)// .discCacheFileCount(10)// 缓存一百张图片 .writeDebugLogs()// .build();// ImageLoader.getInstance().init(config); }
{ "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
public List<YuserVO> getAllUsers() { List<YuserVO> list = null; try { list = userDao.getAllUsers(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); System.out.println("get users failed .................................."); return null; } return list; }
{ "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
import org.springframework.security.access.prepost.PreAuthorize; This class represent interface for Customer Service which has methods for work with the customer
public interface CustomerService { public void createCustomer(CustomerDto customerDto); //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public CustomerDto getCustomer(Long id) throws DataAccessException; //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public void updateCustomer(CustomerDto customer) throws DataAccessException; //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public void removeCustomer(CustomerDto customer) throws DataAccessException; //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public Collection<CustomerDto> findAllCustomer() throws DataAccessException; //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public Collection<CustomerDto> searchCustomer(String name) throws DataAccessException; //@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')") public CustomerDto findByUsername(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TestService {\n// @PreAuthorize(\"hasAuthority('test')\")\n String test();\n}", "public interface CustomerService {\n List<Customer> findPubsea();\n\n List<Customer> findCustomer();\n\n void update(Customer customer);\n\n /**\n * 公海客户认领\n * @param customerId\n * @pa...
[ "0.735772", "0.7123625", "0.7040657", "0.69688296", "0.68456954", "0.6469075", "0.6448839", "0.6382765", "0.6356079", "0.63033867", "0.6290185", "0.62773055", "0.6195901", "0.6168865", "0.6159041", "0.6149349", "0.6133041", "0.6129722", "0.61108834", "0.6084998", "0.60778266"...
0.80560166
0
Footer Work Order Related links verification
@Step("Verifying workOrderItemizedCostsTab is available bottom of the new work order page under related links") public boolean isworkOrderItemizedCostsTabAvalable() { SeleniumWait.hold(GlobalVariables.ShortSleep); pageActions.scrollthePage(workOrderItemizedCostsTab); SeleniumWait.hold(GlobalVariables.ShortSleep); functions.highlighElement(driver, workOrderItemizedCostsTab); return workOrderItemizedCostsTab.isDisplayed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verifyHhsLink() {\n dhhsFooterLink.assertState().enabled();\n dhhsFooterLink.assertContains().text(\"Department of Health & Human Services\");\n }", "public void checkOtherFooterLinks(String linkText,String url,String finder,String pageText){\n\t\tWebElement labelLink = driver.findEl...
[ "0.6331636", "0.6156345", "0.6062937", "0.5994808", "0.59431547", "0.5856762", "0.57480335", "0.56913334", "0.56001437", "0.5579339", "0.5569789", "0.53567773", "0.5291064", "0.52560323", "0.520875", "0.51972115", "0.512077", "0.5115576", "0.5060619", "0.5043789", "0.50312877...
0.50759465
18
End on Footer work order related links verification
@Step("Creating a new Clinical Purchase Requisitions for a Work Order") public void verifyCreatingNewPurchaseRequistion() throws Exception { SeleniumWait.hold(GlobalVariables.ShortSleep); pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab); new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab)); functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab); pageActions.clickAt(ClinicalPurchaseRequisitionsTab, "Clicking on purchase requistions tab"); pageActions.clickAt(clinicalPurchaseReqNewButton, "Clicking on purchase requistions New buttton"); String randomExternalPO_Number = "Test"+Functions.getTimeStamp(); pageActions.type(externalPO_Number, randomExternalPO_Number, "Entered Clicnical PO Number"); clinicalPurchaseShortDescription.sendKeys("Automation externalPO_Numbner desc"); pageActions.clickAt(clinicalPurchaseSubmitButton, "Clicking on SubmitButton"); pageActions.clickAt(saveAndGoButton, "Clicked on save and go button"); searchExternalPONumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnEmailLink2InFooter() {\n\t\t_normalWait(2000);\n\t\twaitAndClick(emailLink2InFooter);\n\t }", "public void clickOnEmailLink1InFooter() {\n\t By element =By.xpath(\"//a[text()='CE at VIN' ]\");\n\t scrollIntoView(element);\n\t _normalWait(3000);\n\t waitAndClick(emailLink1InF...
[ "0.687693", "0.66906166", "0.6634557", "0.64528763", "0.64329875", "0.6369239", "0.63027245", "0.6209729", "0.6191631", "0.61893755", "0.6030664", "0.5848141", "0.5803966", "0.57743734", "0.5767878", "0.5616608", "0.56119287", "0.5551155", "0.55394423", "0.54660076", "0.54640...
0.0
-1
FAMA Actions Added by Sree for FAMA_WorkOrder Validations
@Step("Work Order Type Search Lookup") public boolean lookupWorkOrderTypeSearch(String searchText) { boolean flag = false; pageActions.clickAt(workOrderTypeLookup, "Clicking on Work Order Type Look Up Search"); try { SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); new WebDriverWait(driver, 20) .until(ExpectedConditions.elementToBeClickable(searchInTypeGrid)); pageActions.typeAndPressEnterKey(searchInTypeGrid, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 20).until(ExpectedConditions .elementToBeClickable(By.xpath("//a[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//a[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int customizeValidActions (String docStatus, Object processing, \r\n String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index) {\r\n\r\n\t\t// If status = Drafted, add \"Prepare\" in the list\r\n\t\tif (docStatus.equals(DocumentEngine.STATUS_Drafted)\r\n\...
[ "0.5798365", "0.5422197", "0.5357165", "0.53105277", "0.52157825", "0.52153635", "0.5194111", "0.51909995", "0.5176722", "0.5156158", "0.5107881", "0.5097157", "0.50722134", "0.5056986", "0.5043395", "0.50378925", "0.49957475", "0.49843714", "0.49835008", "0.49829587", "0.497...
0.0
-1
Added by Sree for FAMA_WorkOrder Validations
@Step("Work Order Sub State Search Lookup") public boolean lookupWorkOrderSubStateSearch(String searchText) { boolean flag = false; pageActions.clickAt(workOrderSubStateLookup, "Clicking on Work Order Sub State Look Up Search"); try { SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); pageActions.typeAndPressEnterKey(searchInSubStateGrid, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 20).until(ExpectedConditions .elementToBeClickable(By.xpath("//a[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//a[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { e.printStackTrace(); logger.error(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add...
[ "0.6082353", "0.5989668", "0.584525", "0.5838115", "0.57758176", "0.57437015", "0.57437015", "0.57437015", "0.57437015", "0.56312174", "0.5579085", "0.5534684", "0.5523479", "0.5403266", "0.54006845", "0.53977257", "0.5363438", "0.53537506", "0.53040737", "0.5275749", "0.5275...
0.0
-1
Added by Sree for CAMA_WorkOrder Validations
@Step("Work Order Issue Category Search Lookup") public boolean lookupWorkOrderIssueCategorySearch(String searchText) { boolean flag = false; pageActions.clickAt(issueCategtoryLookup, "Clicking on issue Categtory Look Up Search"); try { SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); pageActions.typeAndPressEnterKey(searchInTypeIssueCategoryGrid, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 30).until(ExpectedConditions .elementToBeClickable(By.xpath("//a[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//a[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { System.out.println(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add...
[ "0.6172178", "0.5811972", "0.5809823", "0.5749837", "0.5715768", "0.5715768", "0.5715768", "0.5715768", "0.56982815", "0.56545603", "0.5567173", "0.55597794", "0.5555669", "0.5470135", "0.54650795", "0.54501", "0.5379451", "0.5338728", "0.53264177", "0.53210115", "0.5267514",...
0.0
-1
Added by Sree for CAMA_WorkOrder Validations
@Step("Work Order ServiceActivity Search Lookup") public boolean lookupWorkOrderServiceActivitySearch(String searchText) { boolean flag = false; try { pageActions.clickAt(assignToMeBtn, "Clicking on Assign to me button"); pageActions.clickAt(itemizedCostsButton, "Clicking on Itemized Cost Button"); new WebDriverWait(driver, 45) .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(itemizedFrame)); logger.info("Switched to ItemizedCost Frame successfully"); new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(itemizedSubmitButton)); pageActions.selectDropDown(itemize_CostType, "Local Job Code"); pageActions.clickAt(localJobCodeLookup, "Clicking on Local Job Code Look Up Search"); SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.selectDropDown(wrkOrdLookupSearchBy, "Short Description"); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); pageActions.typeAndPressEnterKey(shortDescriptionSearch, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 30).until(ExpectedConditions .elementToBeClickable(By.xpath("//td[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//td[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add...
[ "0.6172178", "0.5811972", "0.5809823", "0.5749837", "0.5715768", "0.5715768", "0.5715768", "0.5715768", "0.56982815", "0.56545603", "0.5567173", "0.55597794", "0.5555669", "0.5470135", "0.54650795", "0.54501", "0.5379451", "0.5338728", "0.53264177", "0.53210115", "0.5267514",...
0.0
-1
Added by Sree for FAMA_WorkOrder Validations
@Step("Work Order Problem Cause Search Lookup") public boolean lookupWorkOrderProblemCauseSearch(String searchText) { boolean flag = false; pageActions.clickAt(resolutionTab, "Clicking on Resolution Tab"); pageActions.clickAt(problemCauseLookup, "Clicking on Problem Cause Look Up Search"); try { SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); pageActions.typeAndPressEnterKey(searchInProblemCauseGrid, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 30).until(ExpectedConditions .elementToBeClickable(By.xpath("//a[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//a[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add...
[ "0.608205", "0.5989706", "0.58452654", "0.58376896", "0.5776212", "0.5742818", "0.5742818", "0.5742818", "0.5742818", "0.56296456", "0.55784744", "0.5533182", "0.5523899", "0.540253", "0.5399447", "0.5398108", "0.5364106", "0.53533185", "0.5302385", "0.5273195", "0.5273195", ...
0.0
-1
Added by Sree for FAMA_WorkOrder Validations
@Step("Work Order Resolution Code Search Lookup") public boolean lookupWorkOrderResolutionCodeSearch(String searchText) { boolean flag = false; pageActions.clickAt(resolutionTab, "Clicking on Resolution Tab"); pageActions.clickAt(resolutionCodeLookup, "Clicking on Resolution Code Look Up Search"); try { SeleniumWait.hold(GlobalVariables.ShortSleep); functions.switchToWindow(driver, 1); pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText, "Searching in the lookUp Window"); pageActions.typeAndPressEnterKey(searchInResolutionCodesGrid, searchText, "Searching in the lookUp Window Grid"); new WebDriverWait(driver, 40).until(ExpectedConditions .elementToBeClickable(By.xpath("//a[contains(text(),'" + searchText + "')]"))); flag = driver.findElement(By.xpath("//a[contains(text(),'" + searchText + "')]")).isDisplayed(); } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } finally { functions.switchToWindow(driver, 0); } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add...
[ "0.6082353", "0.5989668", "0.584525", "0.5838115", "0.57758176", "0.57437015", "0.57437015", "0.57437015", "0.57437015", "0.56312174", "0.5579085", "0.5534684", "0.5523479", "0.5403266", "0.54006845", "0.53977257", "0.5363438", "0.53537506", "0.53040737", "0.5275749", "0.5275...
0.0
-1
/ Complete the function below. Base url:
static String[] getMovieTitles(String substr) throws IOException { String[] arr = new String[10]; StringBuilder result = new StringBuilder(); URL url = null; url = new URL("https://jsonmock.hackerrank.com/api/movies/search/?Title=" + substr); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = rd.readLine()) != null) { result.append(line); } rd.close(); System.out.println(result); return arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getBaseURL();", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(T...
[ "0.768767", "0.7615133", "0.73163056", "0.7139679", "0.7138285", "0.7110992", "0.70333946", "0.70290333", "0.70171696", "0.6999891", "0.69924045", "0.69897264", "0.6985824", "0.69336766", "0.6892577", "0.68906605", "0.68441397", "0.68294007", "0.6828467", "0.6828467", "0.6828...
0.0
-1
The main method. This is the method that will execute when you start your program.
public static void main(String[] args) { /* Write a program that asks the user to enter the name of his or her favorite city. Use a String variable to store the input. The program should display the following: The number of characters in the city name The name of the city in all uppercase letters The name of the city in all lowercase letters The first character in the name of the city */ String city; Scanner scanner = new Scanner(System.in); System.out.println("What is your favorite city?"); city = scanner.nextLine(); String upper = city.toUpperCase(); String lower = city.toLowerCase(); char letter = city.charAt(2); int stringSize = city.length(); System.out.println(city + " has " + stringSize + " letters."); System.out.println(city.toUpperCase()); System.out.println(city.toLowerCase()); System.out.println(city.charAt(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n \n }", "public static void main() {\n }", "public static void main(){\n\t}", "public void main(){\n }", "public static void main (String []args){\n }", "public Main() {\n \n \n }", "public Main() ...
[ "0.84577745", "0.84057605", "0.8403477", "0.82832456", "0.7982294", "0.7825251", "0.77579004", "0.7747057", "0.7688711", "0.7644841", "0.76172864", "0.76032174", "0.75915986", "0.75915986", "0.75860566", "0.7568837", "0.7566326", "0.75525665", "0.75525665", "0.75395393", "0.7...
0.0
-1
Encolar es lo mismo que insertar un nodo al final
public void enqueue(Node newNode) { if (isEmpty()) //si la cola está vacia el nuevo nodo será la cabeza head = newNode; else { Node temp = head; while(temp.next != null) //recorre hasta que el apuntador de un nodo sea null y ahí se agrega el nuevo nodo temp = temp.next; temp.next = newNode; //inserta al final } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como ...
[ "0.7066604", "0.68876505", "0.68648225", "0.6837861", "0.6695006", "0.6687498", "0.6670182", "0.65811276", "0.65268844", "0.6472381", "0.6460938", "0.64272124", "0.6363425", "0.63576114", "0.63453007", "0.63401026", "0.63263655", "0.6296546", "0.62919337", "0.62760425", "0.61...
0.0
-1
Prueba del ejercicio del torneo de los magos
public static void main(String[] args) throws IOException { WizardTournament student = new WizardTournament(); //se crea la fila student BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner sc = new Scanner(System.in); int q = sc.nextInt(); //lectura de número de instrucciones for (int i = 0; i < q; i++) //se hace un ciclo for que itere hasta el número de instrucciones indicado { String instruction = br.readLine(); String[] data = instruction.split(" "); //se divide la instrucción por cada espacio que se deje en la cadena de caracteres con el metodo split() switch(data[0]) //el primer caracter dice cual es la instrucción { case "E": //si es "E" encola un nuevo nodo con los datos que también son tomados de la cadena Node st = new Node(Integer.parseInt(data[1]), Integer.parseInt(data[2])); //el segundo y tercer caracter serán los dos parámetros del nodo (escuela y número) student.enqueue(st); break; case "D": //si es "D" simplemente se llama a la función que desencola y se imprimen los datos que arroje System.out.println(student.dequeue()); break; default: break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void limpiarDatos() {\n\t\t\n\t}", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n ...
[ "0.6539077", "0.64784336", "0.64778423", "0.6408134", "0.63723314", "0.63721186", "0.62757", "0.62528014", "0.617521", "0.616046", "0.61352056", "0.6098693", "0.60654086", "0.6059135", "0.6021108", "0.60053927", "0.6000114", "0.5997557", "0.59761643", "0.597422", "0.59593475"...
0.0
-1
Act do whatever the Restart3 wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public Restart3() { getImage().scale(200,80); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "public void act() {\n\t}", "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\...
[ "0.63543624", "0.6284087", "0.6203993", "0.61110485", "0.611004", "0.6107441", "0.6058874", "0.6032225", "0.6031186", "0.6004362", "0.6001977", "0.59835815", "0.59819025", "0.5976856", "0.5958054", "0.59448373", "0.59448373", "0.5941649", "0.59306145", "0.5916866", "0.5900466...
0.0
-1
/ Get the orders
public ArrayList getOrdersIS(String orderDate) { ArrayList temp = new ArrayList(); String query = "select count (productname), prd.productname Product, prd.price, ( prd.price * count (productname)) Total, fare_instrument_id from bcwtorder o," + " bcwtorderdetails od,bcwtbreezecardproduct bcp,bcwtproduct prd where o.orderid=od.orderid and o.ordertype='IS' and trunc(o.transactiondate) = trunc(to_date('" + orderDate + "','DD-MM-YYYY'))and od.orderdetailsid = bcp.orderdetailsid and prd.productid = bcp.productid group by prd.productname, prd.price, fare_instrument_id "; try { Connection conn = getConnection(); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery(query); // System.out.println("Count Product Price Total"); while (rs.next()) { BcwtOrderJobDTO bcwtOrderJobDTO = new BcwtOrderJobDTO(); // System.out.println(rs.getString(1)+" "+ // rs.getString(2)+" "+ rs.getString(3)+" "+rs.getString(4)); bcwtOrderJobDTO.setProductName(rs.getString(2)); bcwtOrderJobDTO.setCount(rs.getInt(1)); bcwtOrderJobDTO.setTotal(rs.getDouble(4)); bcwtOrderJobDTO.setFare_instrument_id(rs.getString(5)); // bcwtOrderJobDTO.setLineType("S"); temp.add(bcwtOrderJobDTO); } st.close(); rs.close(); conn.close(); } catch (Exception e) { BcwtsLogger.error("Class:BatchGLJobDAO Method: getOrdersIS" + Util.getFormattedStackTrace(e)); } finally { } return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getOrders();", "List<OrderDto> getOrders();", "public ArrayList<Order> getOrders() {\n\n\t\tArrayList<Order> order = new ArrayList<Order>();\n\n\t\tOrder or = null;\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM restodb.order\";\n\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepar...
[ "0.8350867", "0.7737334", "0.77336085", "0.7711757", "0.76589614", "0.76589614", "0.76476294", "0.761249", "0.7593649", "0.7566871", "0.7517186", "0.7485939", "0.7477317", "0.74333847", "0.7432244", "0.7431785", "0.74233127", "0.7415125", "0.7380392", "0.7359279", "0.73338485...
0.0
-1
At the end of scroll event, snap to the closest indicator
@Override public void onHorScrollEnd(SnappingHSV v, int l) { snap(l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void scrollEnd() {\n ScrollView scrollView = (ScrollView)mScrollLayout;\n if(Utils.isCornerBottom(mCurrentCorner)){\n scrollView.fullScroll(View.FOCUS_UP);\n }\n else{\n scrollView.fullScroll(View.FOCUS_DOWN);\n }\n }", "private...
[ "0.7010655", "0.67371285", "0.63305086", "0.63156766", "0.6287494", "0.6177379", "0.6140026", "0.611569", "0.6023644", "0.6005369", "0.59717745", "0.5940397", "0.5931821", "0.5930722", "0.5918823", "0.5893021", "0.5891957", "0.58518887", "0.58518887", "0.58518887", "0.5851888...
0.68997425
1
These limits define the threshold after which a snap has to occur When the user has scrolled past half of an interval, the HSV will snap to the immediately next indicator When the user has scrolled back past half of an interval, the HSV will snap to the immediately previous indicator
private void initSnapLimits() { int halfInterval = quarterHolderWidth / 2; snapLimit0 = halfInterval; snapLimit1 = lowerLimit1 + halfInterval; snapLimit2 = lowerLimit2 + halfInterval; snapLimit3 = lowerLimit3 + halfInterval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\ti...
[ "0.6043255", "0.5998843", "0.58830863", "0.56460893", "0.5642379", "0.5636071", "0.56094664", "0.54881734", "0.54158056", "0.53852755", "0.53632635", "0.53392965", "0.5319025", "0.5301981", "0.5295463", "0.5270928", "0.5261861", "0.52588475", "0.52478117", "0.52387416", "0.52...
0.6315318
0
These limits define the intervals of each snap. The HSV snaps at multiples of (totalWidth/4) Within these intervals, the visibilites of certain textviews are switched.
private void initLimits() { lowerLimit1 = quarterHolderWidth; lowerLimit2 = (2 * quarterHolderWidth); lowerLimit3 = (3 * quarterHolderWidth); lowerLimit4 = holderWidth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initSnapLimits() {\n int halfInterval = quarterHolderWidth / 2;\n snapLimit0 = halfInterval;\n snapLimit1 = lowerLimit1 + halfInterval;\n snapLimit2 = lowerLimit2 + halfInterval;\n snapLimit3 = lowerLimit3 + halfInterval;\n }", "private void snap(int l) {\n ...
[ "0.6914385", "0.59072894", "0.5346172", "0.5293445", "0.5234234", "0.51377857", "0.50569636", "0.5050849", "0.5044557", "0.5015996", "0.49573895", "0.4951995", "0.4909032", "0.49069443", "0.48983827", "0.48516372", "0.4839254", "0.48306414", "0.48087865", "0.48044562", "0.479...
0.57652944
2
Snap basically translates to a smooth scroll operation
private void snap(int l) { if (l < lowerLimit1) { if (l > snapLimit0) { hsv.smoothScrollTo((quarterHolderWidth), 0); } else { hsv.smoothScrollTo(0, 0); } } else if (l >= lowerLimit1 && l < lowerLimit2) { if (l > snapLimit1) { hsv.smoothScrollTo((2 * quarterHolderWidth), 0); } else { hsv.smoothScrollTo((quarterHolderWidth), 0); } } else if (l >= lowerLimit2 && l < lowerLimit3) { if (l > snapLimit2) { hsv.smoothScrollTo((3 * quarterHolderWidth), 0); } else { hsv.smoothScrollTo((2 * quarterHolderWidth), 0); } } else if (l >= lowerLimit3 && l < lowerLimit4) { if (l > snapLimit3) { hsv.smoothScrollTo(holderWidth, 0); } else { hsv.smoothScrollTo((3 * quarterHolderWidth), 0); } } else if (l >= lowerLimit4) { hsv.smoothScrollTo(holderWidth, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void snapToPage() {\n View findSnapView = this.mPagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int[] calculateDistanceToFinalSnap = this.mPagerSnapHelper.calculateDistanceToFinalSnap(this.mLayoutManager, findSnapView);\n if (calculateDi...
[ "0.6987257", "0.62069905", "0.6157029", "0.6075787", "0.5981665", "0.5974083", "0.5947151", "0.59434474", "0.5871136", "0.5766791", "0.5728425", "0.5682976", "0.56179833", "0.5616503", "0.5564226", "0.5557499", "0.55521476", "0.5541267", "0.5514282", "0.5514282", "0.5514282",...
0.653299
1
String test = " +321"; String test = " 321"; String test = " 321rrr"; String test = " 321rrr";
public static void main(String[] args){ String test = " +3 21"; int value = atoi(test); System.out.println("Conversion result is: " + value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testPlus() {\r\n\t\tString ans;\r\n\t\tString expected = \"115590435626074\";\r\n\t\tNumberStrings tester = new NumberStrings();\r\n\t\tString number1 = \"115555222112553\";\r\n\t\tString number2 = \"35213513521\";\r\n\t\tans = tester.plus(number1, number2);\r\n\t\tAssert.assertEquals(expect...
[ "0.7013742", "0.65631884", "0.614982", "0.60738957", "0.6062679", "0.59950244", "0.5950725", "0.59112644", "0.5908419", "0.5878509", "0.58760524", "0.586268", "0.58262557", "0.58230275", "0.5811378", "0.5798563", "0.57932574", "0.5787935", "0.57732403", "0.5740616", "0.573420...
0.5341113
51
Created by suresh on 1/10/17.
public interface UserLogService { public void logActivity(UserLog userLog); public List<UserLog> getAllUserLog(String username); public List<UserLog> getAllFilteredUserLog(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protect...
[ "0.58639765", "0.5856529", "0.5783849", "0.5782539", "0.5777851", "0.57436705", "0.56677616", "0.5665335", "0.5665335", "0.56336695", "0.5629504", "0.56168693", "0.5598917", "0.55955696", "0.5589561", "0.5585328", "0.55794954", "0.5557832", "0.5557832", "0.5557832", "0.555783...
0.0
-1
variables objetos in y out para
public static void main(String[] args) throws java.io.IOException { int opc; boolean noSalir = true; do { mostrarMenu(); opc = leerOpcion(); noSalir = ejecutarAccion(opc); } while (noSalir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Input getObjetivo();", "@Override\n protected void inputObjects() {\n alpha1 = Utils.computeRandomNumber(Modulus, sp);\n alpha2 = Utils.computeRandomNumber(Modulus, sp);\n gamma = Utils.computeRandomNumber(Modulus, sp);\n gammaTilde = Utils.computeRandomNumber(Modulus, sp);\n\n ...
[ "0.61116207", "0.59088725", "0.58748543", "0.5621619", "0.56042945", "0.551197", "0.5466571", "0.54427034", "0.53631264", "0.5358653", "0.5281059", "0.5240262", "0.52349746", "0.5229443", "0.52196586", "0.5209119", "0.5201514", "0.51933426", "0.51794714", "0.51596403", "0.514...
0.0
-1
Creates an host status that holds : a unique identifier of the host all addresses on all network for this host the actual CPU load the actual free memory amount the actual battery level the actual number of running threads the actual number of running BCs the actual number of connectors the actual number of connectors whose input comes from network the actual number of connectors whose output goes to network the actual network input trafic due to PF activity the actual network output trafic due to PF activity the actual network input trafic due to application activity the actual network output trafic due to application activity These informations are collected from the context manager when creating the object.
public HostStatus() { addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES); hostID = addressesChecker.getHostIdentifier(); hostAddresses = addressesChecker.getAllAddresses(); contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER); cpuLoad = contextManager.getCpuLoad(); memoryLoad = contextManager.getMemoryLoad(); batteryLevel = contextManager.getBatteryLevel(); numberOfThreads = contextManager.getNumberOfThreads(); networkPFInputTraffic = contextManager.getPFInputTrafic(); networkPFOutputTraffic = contextManager.getPFOutputTrafic(); networkApplicationInputTraffic = contextManager.getApplicationInputTrafic(); networkApplicationOutputTraffic = contextManager.getApplicationOutputTrafic(); ContainersManager gestionnaireDeConteneurs = (ContainersManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTAINERS_MANAGER); numberOfBCs = gestionnaireDeConteneurs.getComposants().getComponentsNumber(); numberOfConnectors = gestionnaireDeConteneurs.getConnecteurs().getConnectorsNumber(); numberOfConnectorsNetworkInputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkInputConnectorsNumber(); numberOfConnectorsNetworkOutputs = gestionnaireDeConteneurs.getConnecteurs().getNetworkOutputConnectorsNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HostStatus(byte[] content) {\n addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES);\n contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER);\n ByteArrayInputStream bis = n...
[ "0.73413414", "0.599376", "0.5953862", "0.5740712", "0.57390463", "0.5563494", "0.55493146", "0.5499888", "0.54209244", "0.53714246", "0.5367015", "0.52415305", "0.5230115", "0.51985306", "0.51645774", "0.5159197", "0.5137018", "0.51369494", "0.5111475", "0.5090835", "0.50833...
0.8392699
0
Creates an host status from a serialized one. Used when received by network.
public HostStatus(byte[] content) { addressesChecker = (AddressesChecker)ServicesRegisterManager.platformWaitForService(Parameters.NETWORK_ADDRESSES); contextManager = (ContextManager)ServicesRegisterManager.platformWaitForService(Parameters.CONTEXT_MANAGER); ByteArrayInputStream bis = new ByteArrayInputStream(content); try { ObjectInputStream ois = new ObjectInputStream(bis); hostID = (String)ois.readObject(); int taille = ((Integer)ois.readObject()).intValue(); hostAddresses = new Vector<NetworkAddress>(); for (int i=0; i<taille; i++) hostAddresses.addElement(new NetworkAddress((String)ois.readObject())); cpuLoad = ((Integer)ois.readObject()).intValue(); memoryLoad = ((Integer)ois.readObject()).intValue(); batteryLevel = ((Integer)ois.readObject()).intValue(); numberOfThreads = ((Integer)ois.readObject()).intValue(); numberOfBCs = ((Integer)ois.readObject()).intValue(); numberOfConnectors = ((Integer)ois.readObject()).intValue(); numberOfConnectorsNetworkInputs = ((Integer)ois.readObject()).intValue(); numberOfConnectorsNetworkOutputs = ((Integer)ois.readObject()).intValue(); networkPFInputTraffic = ((Integer)ois.readObject()).intValue(); networkPFOutputTraffic = ((Integer)ois.readObject()).intValue(); networkApplicationInputTraffic = ((Integer)ois.readObject()).intValue(); networkApplicationOutputTraffic = ((Integer)ois.readObject()).intValue(); } catch (IOException ioe) { System.err.println("Error converting a received host state : IOError"); } catch (ClassNotFoundException ioe) { System.err.println("Error converting a received host state : class not found"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Status parse(byte[] bytes) {\n Version version = Version.parse(bytes);\n\n // there is bug in firmware 5.* which can return incorrect value\n // workaround to have some generated version to pass version checks\n if (version.major < 1) {\n version = new Version(5...
[ "0.56734544", "0.51564014", "0.50564975", "0.502631", "0.5012993", "0.49902275", "0.4908724", "0.48880586", "0.4887863", "0.47984803", "0.47981873", "0.47655126", "0.47273305", "0.47035193", "0.46826604", "0.4656131", "0.46487534", "0.46367168", "0.46193466", "0.46125713", "0...
0.6710426
0
Returns the host's unique identifier
public String getHostID() { return hostID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getLocalHostId() {\r\n\t\treturn localHostId;\r\n\t}", "public String getHostId() {\n\t\treturn (hid);\n\t}", "public static synchronized String getUID() throws UnknownHostException, SocketException {\r\n \r\n // Initialized MAC address if necessary.\r\n if (!initialized) {...
[ "0.77841353", "0.7558611", "0.7523733", "0.74189264", "0.7415929", "0.73576987", "0.72438693", "0.7226242", "0.71585", "0.70292485", "0.69904244", "0.69572186", "0.68782973", "0.68704134", "0.6827167", "0.6798272", "0.6738796", "0.67346287", "0.6721604", "0.66524357", "0.6592...
0.73462605
6
Returns all the addresses of this host on all available networks
public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = Ne...
[ "0.7356812", "0.7044649", "0.6927201", "0.6920758", "0.68795776", "0.6730012", "0.6601193", "0.6580623", "0.6567708", "0.6550834", "0.65496415", "0.65494245", "0.651736", "0.65083456", "0.64785033", "0.64245313", "0.6372873", "0.6350122", "0.6318122", "0.622705", "0.62072027"...
0.74038386
0
Returns all the addresses of this host on a specified network
public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }", "@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterface...
[ "0.7008166", "0.64789414", "0.64493394", "0.6209296", "0.6161666", "0.615221", "0.6072473", "0.60406893", "0.6000412", "0.60000896", "0.59688026", "0.5891036", "0.587932", "0.58509594", "0.58084303", "0.58068895", "0.5766061", "0.5766061", "0.57622045", "0.57203615", "0.57031...
0.69536936
1
Returns the CPU load (in %)
public int getCpuLoad() { return cpuLoad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double evaluateLoad() {\n double result = 0;\n result += cpuLoad;\n if (freeSystemMem < 1024 * 100) result += 80;\n if (freeSystemMem < 1024 * 20) result += 100;\n if (diskUsage>50)result+=10;\n if (diskUsage>80)result+=40;\n if (d...
[ "0.79193264", "0.76608366", "0.75526583", "0.754639", "0.75154686", "0.7430997", "0.7277823", "0.71079993", "0.70941603", "0.6929105", "0.69061565", "0.6902699", "0.6890905", "0.6890766", "0.6849172", "0.6833247", "0.68178236", "0.68147165", "0.6801457", "0.67814523", "0.6776...
0.82010573
0
Returns the amount of free memory (in %)
public int getMemoryLoad() { return memoryLoad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float getMemoryUsage() {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tlong allocatedMemory = runtime.totalMemory();\n\t\tlong freeMemory = runtime.freeMemory();\n\t\treturn (allocatedMemory - freeMemory);\n\t}", "long memoryUsed();", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInB...
[ "0.8048641", "0.78851587", "0.7856651", "0.7856651", "0.78171974", "0.76096356", "0.75008214", "0.7494639", "0.7393027", "0.7313224", "0.7313224", "0.7310424", "0.7263118", "0.7251767", "0.7248182", "0.72332704", "0.7204394", "0.7204394", "0.7150426", "0.7125124", "0.7118253"...
0.0
-1
Returns the battery level
public int getBatteryLevel() { return batteryLevel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float batteryLevel() {\n return 1;\n }", "public static int getBatteryLevel() {\n if (utilitiesDll == null) {\n return -1;\n }\n return utilitiesDll.RecupererBatterie();\n }", "public int getBatteryLevel() {\n\t\treturn batteryLevel;\n\t}", "public Long get...
[ "0.87383777", "0.8613718", "0.8543019", "0.84173", "0.8314802", "0.8073175", "0.8001247", "0.7902827", "0.77839184", "0.7653131", "0.7634986", "0.7566652", "0.7422578", "0.74045575", "0.73618555", "0.7237935", "0.72081596", "0.7188792", "0.7171408", "0.71584857", "0.71537226"...
0.8772302
0
Returns the number of running threads
public int getNumberOfThreads() { return numberOfThreads; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumOfThreads() {\n return numOfThreads;\n }", "public int getNumThreads() {\n return numThreads;\n }", "public static int getThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getThreadCount();\r\n\t}", "public int getThreadCount() {\n\t\treturn this.threadCalls.size();\n\t}", "...
[ "0.85227066", "0.8393362", "0.8385865", "0.8168293", "0.8033545", "0.79842377", "0.7961761", "0.75887114", "0.757066", "0.7538935", "0.75206053", "0.74999183", "0.7425437", "0.7416481", "0.74035895", "0.7357763", "0.73509854", "0.7249933", "0.7249041", "0.7232341", "0.7187279...
0.81118596
4
Returns the number of installed BCs
public int getNumberOfBCs() { return numberOfBCs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getInstalledModuleVersionsCount();", "java.math.BigInteger getNumberOfInstallments();", "int getNumberOfCavalry();", "public int getAvailNumComps(){\n return this.mFarm.getAvailNumComps();\n }", "public int getNumComps(){\n return this.mFarm.getNumComps();\n }", "public int getNBC...
[ "0.70147383", "0.6952208", "0.67526615", "0.63968664", "0.6370829", "0.62021106", "0.6191972", "0.6166413", "0.6047155", "0.6047155", "0.60460615", "0.6022368", "0.600105", "0.5982108", "0.5936966", "0.5932818", "0.5904025", "0.5902108", "0.58948743", "0.5853398", "0.5842661"...
0.7459551
0
Returns the number of installed connectors
public int getNumberOfConnectors() { return numberOfConnectors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getConnectorCount();", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "int getConnectionCount();", "int getInstalledModuleVersionsCount();", "public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRec...
[ "0.83856994", "0.7218128", "0.71898204", "0.71462345", "0.70354956", "0.6990852", "0.6851599", "0.6827449", "0.6676476", "0.66327286", "0.65888435", "0.6551053", "0.6484362", "0.6481478", "0.6432893", "0.6421415", "0.63958275", "0.63580304", "0.6324006", "0.6323619", "0.63029...
0.7823866
1
Returns the number of installed connectors having their input comming from network
public int getNumberOfConnectorsNetworkInputs() { return numberOfConnectorsNetworkInputs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getConnectorCount();", "public int getNumberOfConnectors() { return numberOfConnectors; }", "public int getNumberOfConnectorsNetworkOutputs() { return numberOfConnectorsNetworkOutputs; }", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodes...
[ "0.7854973", "0.72611725", "0.69543225", "0.69345295", "0.68795377", "0.6840583", "0.68193245", "0.6707503", "0.6697698", "0.66734874", "0.6668751", "0.65817523", "0.6521312", "0.6391512", "0.6383437", "0.6362161", "0.63463163", "0.63438386", "0.6331777", "0.6311431", "0.6307...
0.77922195
1
Returns the number of installed connectors having their output going to network
public int getNumberOfConnectorsNetworkOutputs() { return numberOfConnectorsNetworkOutputs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getConnectorCount();", "public int getNumberOfConnectors() { return numberOfConnectors; }", "public int getNumberOfConnectorsNetworkInputs() { return numberOfConnectorsNetworkInputs; }", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "int getConnectionsCount();", "public int numof...
[ "0.7898634", "0.7402519", "0.7390915", "0.7157779", "0.69313794", "0.6892414", "0.6880721", "0.6839748", "0.6837141", "0.6805425", "0.67325014", "0.67136496", "0.667202", "0.6644877", "0.66289186", "0.6586253", "0.65423524", "0.6541649", "0.6502526", "0.6498137", "0.6442543",...
0.7576413
1
Returns the network input trafic due to the platform
public int getNetworkPFInputTraffic() { return networkPFInputTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNetworkApplicationInputTraffic() { return networkApplicationInputTraffic; }", "public native int getNetworkIO();", "private String getTelephonyNetworkType() {\n assert NETWORK_TYPES[14].compareTo(\"EHRPD\") == 0;\n\n int networkType = telephonyManager.getNetworkType();\n if (networkType ...
[ "0.58565766", "0.56230277", "0.55792934", "0.5565565", "0.5527872", "0.5425091", "0.5392533", "0.537285", "0.5318718", "0.5293971", "0.5288915", "0.5239578", "0.5238248", "0.5218674", "0.52105653", "0.5202405", "0.51417094", "0.5101129", "0.5088839", "0.50838315", "0.5066717"...
0.5979617
0
Returns the network output trafic due to the platform
public int getNetworkPFOutputTraffic() { return networkPFOutputTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOs();", "public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p...
[ "0.6149792", "0.60693735", "0.606936", "0.59686023", "0.5962041", "0.58884263", "0.5764382", "0.5759846", "0.57501125", "0.5746671", "0.5718126", "0.5711441", "0.5699007", "0.56805885", "0.5671213", "0.56599545", "0.56496364", "0.5589051", "0.55497694", "0.554567", "0.5539475...
0.6194946
0
Returns the network input trafic due to the application
public int getNetworkApplicationInputTraffic() { return networkApplicationInputTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNetworkPFInputTraffic() { return networkPFInputTraffic; }", "public int getNetworkApplicationOutputTraffic() { return networkApplicationOutputTraffic; }", "CineScopesTransmitter getCineScopesTransmitter();", "public int getNetworkPFOutputTraffic() { return networkPFOutputTraffic; }", "int get...
[ "0.61450255", "0.5594096", "0.54715276", "0.54424524", "0.5250344", "0.5243804", "0.51037836", "0.5047043", "0.50465435", "0.50331014", "0.50114274", "0.5005931", "0.4977259", "0.49733487", "0.4952173", "0.49160767", "0.49090028", "0.48823595", "0.48769024", "0.48676693", "0....
0.65143156
0
Returns the network output trafic due to the application
public int getNetworkApplicationOutputTraffic() { return networkApplicationOutputTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNetworkPFOutputTraffic() { return networkPFOutputTraffic; }", "public int getNetworkApplicationInputTraffic() { return networkApplicationInputTraffic; }", "public String getOutputValue() {\n// System.out.println(\"geting output value from connection\");\n// System.out.println(\"out:...
[ "0.6547286", "0.6174258", "0.58586246", "0.58320576", "0.55975425", "0.55694795", "0.54919446", "0.5484625", "0.5482961", "0.5475933", "0.5470207", "0.5454258", "0.5395827", "0.5395827", "0.5345971", "0.5344578", "0.5323651", "0.5309126", "0.5300664", "0.52991414", "0.5298003...
0.68551433
0
Serialize the object in a byte array
public byte[] toByteArray() { byte[] retour; ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { ObjectOutputStream oos = new ObjectOutputStream(bos); oos.writeObject(new String(hostID)); oos.writeObject(new Integer(hostAddresses.size())); for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress())); oos.writeObject(new Integer(cpuLoad)); oos.writeObject(new Integer(memoryLoad)); oos.writeObject(new Integer(batteryLevel)); oos.writeObject(new Integer(numberOfThreads)); oos.writeObject(new Integer(numberOfBCs)); oos.writeObject(new Integer(numberOfConnectors)); oos.writeObject(new Integer(numberOfConnectorsNetworkInputs)); oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs)); oos.writeObject(new Integer(networkPFInputTraffic)); oos.writeObject(new Integer(networkPFOutputTraffic)); oos.writeObject(new Integer(networkApplicationInputTraffic)); oos.writeObject(new Integer(networkApplicationOutputTraffic)); retour = bos.toByteArray(); } catch (IOException ioe) { System.err.println("Error converting a host status to byte array"); retour = null; } return retour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] serialize();", "byte[] serialize(Serializable object);", "@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }", "private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream ...
[ "0.82420874", "0.810231", "0.7828289", "0.76656795", "0.7264432", "0.7197131", "0.7167523", "0.7156303", "0.7142653", "0.7108619", "0.7081588", "0.70330834", "0.702908", "0.7000246", "0.6992593", "0.6991373", "0.6934534", "0.68588704", "0.6850493", "0.6849822", "0.6849822", ...
0.61354357
74
Converts the object into a readable form.
public String toMessage() { String mem = "Mem: "+memoryLoad+"%"; String cpu = " CPU: "+cpuLoad+"%"; String bat = " Bat: "+batteryLevel+"%"; String threads = "Threads: "+numberOfThreads; String nbCM = "BCs: "+numberOfBCs; String nbConn = "Connectors: "+numberOfConnectors; String emiss = "Sent PF:appli "+networkPFOutputTraffic+":"+networkApplicationInputTraffic+" KB/s"; String rec = "Rcvd PF:appli "+networkPFInputTraffic+":"+networkApplicationInputTraffic+" KB/s"; return mem+"|"+cpu+"|"+threads+"|"+bat+"|"+nbCM+"|"+nbConn+"|"+emiss+"|"+rec; // recuperation de l'etat de l'hote }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\t...
[ "0.67734617", "0.67290354", "0.66504973", "0.65969634", "0.65402025", "0.65186554", "0.6516472", "0.6514108", "0.64552194", "0.6385698", "0.6385698", "0.63548666", "0.63476443", "0.6322554", "0.6320285", "0.62652546", "0.62574685", "0.62567747", "0.6255954", "0.6250755", "0.6...
0.0
-1
For test pupose only: dumps the content of the object on console.
public void dump() { System.out.println("ID : "+hostID); for (int i=0; i<hostAddresses.size(); i++) System.out.println(" - addresse : "+hostAddresses.elementAt(i).getNormalizedAddress()); System.out.println("CPU : "+cpuLoad); System.out.println("Memoire : "+memoryLoad); System.out.println("Batterie : "+batteryLevel); System.out.println("Threads : "+numberOfThreads); System.out.println("CMs : "+numberOfBCs); System.out.println("connecteurs : "+numberOfConnectors); System.out.println("connecteurs entree reseau : "+numberOfConnectorsNetworkInputs); System.out.println("connecteurs sortie reseau : "+numberOfConnectorsNetworkOutputs); System.out.println("Traffic PF entree : "+networkPFInputTraffic); System.out.println("Traffic PF sortie : "+networkPFOutputTraffic); System.out.println("Traffic application entree : "+networkApplicationInputTraffic); System.out.println("Traffic application sortie : "+networkApplicationOutputTraffic); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dump()\n {\n System.out.println(toString());\n }", "public void dump();", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "public void print(){\r\n System.out.println(toString());\r\n }", "String objectWrite();", "public void dump ()\n {\n StringBuilde...
[ "0.7120027", "0.6835201", "0.6592974", "0.6373457", "0.6311538", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.63087434", "0.6306218", "0.6252613", "0.6237231", "0.6201328", "0.61829567", "0.61765724", "0.61...
0.0
-1
Usually you will want to override this if you are subclassing. Otherwise a filter of a filter is created, which works but is not ideal.
public Node cloneNode () { return new VcsGroupFileNode(shadowObject, originalNode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public Filter getFilter() { return null; }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "public Filter () {\n\t\tsuper();\n\t}", "@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomF...
[ "0.77441484", "0.7675449", "0.75491863", "0.7534288", "0.74040383", "0.7403239", "0.7308031", "0.726099", "0.7240026", "0.7240026", "0.7149629", "0.7094329", "0.6987841", "0.6960887", "0.6960887", "0.6958256", "0.69400454", "0.692864", "0.6905622", "0.68923736", "0.6874496", ...
0.0
-1
Created by: Ysw on 2020/3/31.
@ApplicationScope @Component(modules = {AppModule.class}) public interface AppComponent { void inject(MyApplication application); Application application(); Gson gson(); OkHttpClient okHttpClient(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}...
[ "0.59094507", "0.5890175", "0.55371183", "0.5528321", "0.5486411", "0.54630315", "0.54615307", "0.5442854", "0.5442854", "0.54216874", "0.53867424", "0.532047", "0.532047", "0.532047", "0.532047", "0.532047", "0.532047", "0.53192", "0.5309558", "0.5306094", "0.52952254", "0...
0.0
-1
EFFECTS: create an observer with assigned node
public Observer(Node<?> node) { observedNode = node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addObserver(Node node){\n\t\tif(null == observerNodes)\n\t\t\tobserverNodes = new ArrayList<Node>();\n\t\tobserverNodes.add(node);\n\t}", "void addObserver(EntityObserver observer);", "public void registerObs(Node obs){\r\n this.listeners.add(obs);\r\n }", "public void notify(Node nod...
[ "0.6776365", "0.6277488", "0.6145815", "0.61331207", "0.6060072", "0.6060072", "0.5943731", "0.5831006", "0.5790379", "0.5757947", "0.5747369", "0.5600821", "0.5591177", "0.5556749", "0.5514235", "0.550783", "0.5486743", "0.54389375", "0.5429559", "0.5426215", "0.54235774", ...
0.7342285
0
EFFECTS: assigns a given node to the observer
public void teleport(Node<?> node) { observedNode = node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Observer(Node<?> node) {\n observedNode = node;\n }", "public void addObserver(Node node){\n\t\tif(null == observerNodes)\n\t\t\tobserverNodes = new ArrayList<Node>();\n\t\tobserverNodes.add(node);\n\t}", "private void setNode(Node node) {\n holderPane.getChildren().clear();\n h...
[ "0.6460934", "0.61746323", "0.5929927", "0.58929515", "0.56503737", "0.55871713", "0.5558405", "0.54914904", "0.54660416", "0.54586446", "0.5425249", "0.540181", "0.5316655", "0.53152156", "0.53073776", "0.5250928", "0.52265173", "0.52042425", "0.5184932", "0.5184932", "0.512...
0.56994873
4
EFFECTS: move observer in the given direction
public void move(Direction direction) { observedNode = observedNode.getNode(direction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move(String direction) {\n \n }", "public void setDirectionMove(double direction);", "public void move(String direction);", "public void move(int delta);", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), targ...
[ "0.715437", "0.70073676", "0.69092256", "0.68178445", "0.67876935", "0.6749041", "0.67465097", "0.6738116", "0.6614961", "0.66042286", "0.6561507", "0.65577745", "0.64928", "0.6465998", "0.6461061", "0.6456574", "0.6452844", "0.64229405", "0.64221925", "0.6412181", "0.6407479...
0.0
-1
EFFECTS: produce the node associated with the observer
public Node<?> getNode() { return observedNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node generateView() {\n Text text = new Text(\"Click to\\nextinguish!\");\n text.setFont(Font.font(Font.getDefault().getFamily(), FontWeight.BOLD, Font.getDefault().getSize()));\n text.setTextAlignment(TextAlignment.CENTER);\n text.setPickOnBounds(false);\n text.setMouseT...
[ "0.572903", "0.56557685", "0.56241375", "0.5597415", "0.55636185", "0.5510107", "0.5474392", "0.5460893", "0.5258011", "0.51312035", "0.5085211", "0.5023705", "0.50230664", "0.5021193", "0.49543083", "0.49499416", "0.4945761", "0.49360317", "0.48968127", "0.4866088", "0.48652...
0.0
-1
Testing involves forming a particular TimeExpression like everyFifthMonday and the input 300418 includes method is very important to work for all cases as every time expression will depends on it to get the correct recurrence =========== Comprehensive Testing for includes ============== =============================================================
@Test public void includes_300418_everyFifthMonday_true() { assertTrue(everyFifthMonday.includes(testDate300418)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void monthly_firstMonday_recursEveryFirstMonday() {\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfApril));\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfMarch));\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfJan2018));\n assertFalse(fir...
[ "0.57520294", "0.5692039", "0.5566512", "0.5489768", "0.542658", "0.5381071", "0.52963674", "0.52949035", "0.5213679", "0.5187773", "0.51566726", "0.51387274", "0.5116045", "0.5091686", "0.50865555", "0.5080175", "0.50754577", "0.5050713", "0.5039847", "0.5035566", "0.5032498...
0.73222727
0
=========== Testing nextDeadlineOccurrence(DateTime) ======== ============================================================= Another very important method to test is nextDeadlineOccurrence we need to ensure that the DateTime returned is the correct and accurate representation of the next occurrence given the particular recurrence rule Testing methods are named in this format nextDeadlineOccurrence_In_OUTCOME where next occurrence will be after DATE Testing various conditions like next occurrence is next year, next month, same month, different weeks etc
@Test public void nextDeadlineOccurrence_firstMondayOfMarchInEveryFirstMonday_firstMondayOfApril() { assertTrue(everyFirstMonday.nextOccurrence(firstMondayOfMarch).equals(firstMondayOfApril)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int meetRecentDeadline(LocalDate startdate, LocalDate deadlineDate, String repetition){\n\n LocalDate today = LocalDate.now();\n\n if(deadlineDate.isEqual(today)){\n return MEET_FINAL_DEADLINE;\n }\n switch (repetition){\n case \"{Daily}\":\n ...
[ "0.7019095", "0.595312", "0.586193", "0.58144546", "0.5748469", "0.5691299", "0.5637796", "0.5631819", "0.54963714", "0.5459745", "0.54488575", "0.54277533", "0.5313732", "0.5293078", "0.52612615", "0.5226283", "0.5225227", "0.5164663", "0.5157672", "0.515677", "0.51378906", ...
0.6006412
1
=========== Testing various recurrence constructs =========== ============================================================= Recurrence constructs are shortcuts to give us TimeExpression that recurs according to common recurring rules like weekly, or the whole week To test this, we will use include to verify that the date falls within the recurrence week tests
@Test public void week_firstMondayOfMarchInFirstWeek_true() { assertTrue(firstWeek.includes(firstMondayOfMarch)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEven...
[ "0.6426669", "0.636173", "0.618434", "0.6123555", "0.60786164", "0.59847295", "0.59546846", "0.5936049", "0.58307695", "0.5827489", "0.5818384", "0.58032334", "0.5775885", "0.57712346", "0.5751471", "0.5748363", "0.5685364", "0.5655399", "0.56421405", "0.56160736", "0.5599268...
0.5835601
8
monthly tests In particular, recur a given date every month
@Test public void monthly_firstMonday_recursEveryFirstMonday() { assertTrue(firstMondayEveryMonth.includes(firstMondayOfApril)); assertTrue(firstMondayEveryMonth.includes(firstMondayOfMarch)); assertTrue(firstMondayEveryMonth.includes(firstMondayOfJan2018)); assertFalse(firstMondayEveryMonth.includes(firstTuesdayOfMarch)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void monthlyProcess();", "@Test\n public void month() throws Exception {\n Date thisDate = dateFormat.parse(\"08/14/2006\");\n Month august06 = Month.create(thisDate);\n testThePeriod(august06, thisDate, \"08/01/2006 00:00:00.000\",\n \"08/31/2006 23:59:59.9...
[ "0.684938", "0.6766217", "0.65047765", "0.6406627", "0.60789865", "0.60427403", "0.60137504", "0.5950121", "0.5917326", "0.59045726", "0.5848023", "0.58316904", "0.58020586", "0.57809865", "0.5772907", "0.5769595", "0.57559144", "0.57506454", "0.5748778", "0.56880873", "0.568...
0.61345524
4
The service interface to initialize basic data.
public interface SetupService { /** * postSetup */ public void postSetup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initService() {\r\n\t}", "public void initData() {\n }", "public void initData() {\n }", "protected @Override\r\n abstract void initData();", "public void service_INIT(){\n }", "public InitialData(){}", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constrai...
[ "0.73653865", "0.71064395", "0.71064395", "0.705615", "0.70535064", "0.7007855", "0.6952752", "0.6941828", "0.69363016", "0.69328946", "0.692524", "0.6887408", "0.686672", "0.68616265", "0.6854985", "0.6854938", "0.68496174", "0.6808773", "0.6772878", "0.6772878", "0.6772878"...
0.0
-1
First call the image database
private void onUpdate(FrameTime frameTime) { Frame frame = arFragment.getArSceneView().getArFrame(); Collection<AugmentedImage> images = frame.getUpdatedTrackables(AugmentedImage.class); //Iterate through the image database for (AugmentedImage image : images) { // Check if scanned image existed in the image database if (image.getTrackingMethod() == AugmentedImage.TrackingMethod.FULL_TRACKING) { //Set the scene RelativeLayout gallery = findViewById(R.id.gallery); ArFragment arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.arFragment); String name = image.getName(); //check which image was scanned switch (name) { case "argon.png": //Set string string = "argon.sfb"; //Set the text that appears to the student text=getString(R.string.argon2); //call the 3D object callAR(); break; case "bromine.png": string = "bariumatom.sfb"; text=getString(R.string.bromine2); callAR(); break; case "calcium.png": string = "calcium.sfb"; text=getString(R.string.calcium2); callAR(); break; case "chlorine.png": string = "chlorineatom.sfb"; text=getString(R.string.chlorine2); callAR(); break; case "fluorine.png": string = "fluorineatom.sfb"; text=getString(R.string.fluorine2); callAR(); break; case "helium.png": string = "heliumatom.sfb"; text=getString(R.string.helium2); callAR(); break; case "hydrogen.png": string = "hydrogen.sfb"; text=getString(R.string.hydrogen2); callAR(); break; case "lithium.png": string = "Lithiumatom.sfb"; text=getString(R.string.lithium2); callAR(); break; case "magnesium.png": string = "magnesiumatomm.sfb"; text=getString(R.string.magnesium2); callAR(); break; case "neon.png": string = "neonn.sfb"; text=getString(R.string.neon2); callAR(); break; case "sodium.png": string = "sodium.sfb"; text=getString(R.string.sodium2); callAR(); break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getImagesFromDatabase() {\n try {\n mCursor = mDbAccess.getPuzzleImages();\n\n if (mCursor.moveToNext()) {\n for (int i = 0; i < mCursor.getCount(); i++) {\n String imagetitle = mCursor.getString(mCursor.getColumnIndex(\"imagetitle\"));\n ...
[ "0.646612", "0.6396148", "0.63054675", "0.629549", "0.62421674", "0.61493933", "0.6130893", "0.60768574", "0.60649234", "0.60340005", "0.5981344", "0.58984125", "0.5855414", "0.58423066", "0.58380336", "0.5835873", "0.58236796", "0.58091813", "0.57913893", "0.5759513", "0.575...
0.0
-1
Choose database to load
public void loadDB(Session session, Config config){ InputStream dbStream = getResources().openRawResource(R.raw.mycard); try{ //Load the database AugmentedImageDatabase aid= AugmentedImageDatabase.deserialize(session,dbStream); config.setAugmentedImageDatabase(aid); } catch (IOException e){ e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}", "String getDatabase();", "public String getDatabase();", "public void setDatabase(String db) {\n\t\tthis.database = db;\n\t}", "private void ...
[ "0.6860596", "0.6639851", "0.6638046", "0.6541752", "0.64359534", "0.64080197", "0.6360632", "0.6322517", "0.6255947", "0.6229402", "0.61524767", "0.61509323", "0.61342615", "0.61277527", "0.6114677", "0.6114677", "0.6114677", "0.6114677", "0.6099814", "0.606272", "0.6041319"...
0.5400539
99
TODO Autogenerated method stub
public static void main(String[] args) { Bank b = new Bank(); Random r = new Random(); for(int i = 0; i < 29; i++) { b.addAccount(new Account(i*100000, r.nextInt(1000000)*r.nextDouble(),Integer.toString(i))); } System.out.println(b); System.out.println(b.addAccount(new Account(1500l, r.nextInt(1000000)*r.nextDouble(), "100"))); System.out.println(b.removeAccount(1500l)); System.out.println(b.deposit(1500l, 1000d)); System.out.println(b.deposit(0l, 1000d)); System.out.println(b.withdraw(0l, 1000000000000000000d)); }
{ "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
Go dev une matrice ici
public static void displayMatrix(char[][] M, int size){ for (int i = 0 ; i < size ; i++){ for (int j=0 ; j< size ; j++){ System.out.print(M[i][j]); } System.out.println (); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n ...
[ "0.6335586", "0.63232666", "0.6303219", "0.62705857", "0.6215206", "0.6211681", "0.61959803", "0.6184608", "0.61511385", "0.6048244", "0.60211474", "0.5978254", "0.5954478", "0.59465235", "0.58866453", "0.5886306", "0.58739305", "0.5863459", "0.5828473", "0.58161134", "0.5788...
0.0
-1
List findByAjax() throws Exception;
List<Category> findAll(Integer page,Integer pageSize)throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> findAll() throws Exception;", "List<T> findAll() ;", "@RequestMapping(value = \"/qnaListAjax.re\", produces=\"application/json; charset=UTF-8\")\r\n\t@ResponseBody\r\n\tpublic List<QnaVO> qnaListAjax() {\r\n\t\tList<QnaVO> qnaList = qnaService.getList();\r\n\t\t\r\n\t\treturn qnaList;\r\n\t}", "List<...
[ "0.66604686", "0.6364852", "0.6278939", "0.62462556", "0.6226473", "0.6226473", "0.6226473", "0.6096151", "0.6065404", "0.6030323", "0.60064965", "0.60064965", "0.60064965", "0.5881497", "0.58785516", "0.5869021", "0.5857086", "0.5855378", "0.58462894", "0.58395374", "0.58309...
0.0
-1
Check if Bluetooth is on, if not on, ask user to turn on Bluetooth
public void checkBluetooth(BluetoothAdapter bluetoothAdapter){ if(bluetoothAdapter == null || !bluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bl...
[ "0.8112096", "0.810729", "0.8064293", "0.79949915", "0.7973884", "0.7972865", "0.7929642", "0.7801942", "0.7779713", "0.7608804", "0.7498791", "0.7482983", "0.7364973", "0.73201406", "0.7261627", "0.721494", "0.7186101", "0.71327007", "0.7115138", "0.7091272", "0.70904803", ...
0.6852266
27
Lists all paired devices and stores them in an arrayList and find Quantifen
public void listDevices(final BluetoothAdapter bluetoothAdapter){ Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices(); ArrayList pairedDeviceList = new ArrayList(); String address = null; if (pairedDevices.size() > 0) { int i = 0; // There are paired devices. Get the name and address of each paired device. for (BluetoothDevice device : pairedDevices) { String deviceName = device.getName().trim(); String deviceHardwareAddress = device.getAddress(); // MAC address if (deviceName.equals(DEVICE_NAME)){ address = device.getAddress().trim(); System.out.println(address +"\n"); } pairedDeviceList.add("Device Name: " + deviceName + " Device MAC Address: " + deviceHardwareAddress); } System.out.println(pairedDeviceList.get(0) + "\n"); final String finalAddress = address; AsyncTask.execute(new Runnable(){ @Override public void run(){ bluetoothDevice = bluetoothAdapter.getRemoteDevice(finalAddress); BLEDevice = new BluetoothLeService(bluetoothDevice, quantifenUUID); BLEDevice.connect(BluetoothActivity.this, testUUID); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getPairedDevices() {\n\t\tdevicesArray = btAdapter.getBondedDevices();\n\t\tif(devicesArray.size()>0){\n\t\t\tfor(BluetoothDevice device:devicesArray){\n\t\t\t\tpairedDevices.add(device.getName());\n\t\t\t}\n\t\t}\n\t}", "public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter =...
[ "0.71459967", "0.714147", "0.6929439", "0.68282014", "0.6749507", "0.66351277", "0.66307336", "0.65003693", "0.64742744", "0.6471162", "0.64577913", "0.6433517", "0.63492984", "0.6285113", "0.6238125", "0.6215961", "0.6171266", "0.6164136", "0.6137096", "0.611454", "0.607951"...
0.681693
4
get method for the features name
@Override public String getName() { return EDIT_FULFILLMENT_FEATURE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFeature();", "String getFeature();", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "protected abstract String getFeatureName(Map<String, Object> data);", "public String feature() {\n return feature;\n }", "public String getFeature() {\r\n return...
[ "0.7634441", "0.7634441", "0.74646044", "0.7120791", "0.6934874", "0.6744947", "0.6726089", "0.6660892", "0.6660892", "0.65117234", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.64618236", "0.6...
0.0
-1
builds and sets the string of the referenced roles label of the fulfillment connection
private void setDecoratorTextForFulfilledRoles(Text decoratorText, List<Shape> newReferencedRoles) { String newLabelText = ""; for(int i=0; i<newReferencedRoles.size(); i++) { if(i == 0) newLabelText = newLabelText + newReferencedRoles.get(i).getName(); else newLabelText = newLabelText + ", " + newReferencedRoles.get(i).getName(); } decoratorText.setValue(newLabelText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setRole(String roles);", "public String getRolelabel() {\n return rolelabel;\n }", "String roleName();", "String computeRole();", "String getRoleName();", "@Override\n public String toString(){\n return role;\n }", "public void setRole(java.lang.String value) {\n this.rol...
[ "0.60252506", "0.5996099", "0.57616955", "0.56784385", "0.55935794", "0.555367", "0.55426985", "0.5488327", "0.54615897", "0.54442054", "0.54442054", "0.5393215", "0.53824013", "0.5348051", "0.5305829", "0.53055555", "0.5299801", "0.52380747", "0.5209069", "0.5197544", "0.519...
0.6335025
0
Function: getMoves(p, board) Description: Prints out a list of possible moves, number of moves, and unique pieces that can be moved
public static void getMoves(Player p, GameSquare[][] board) { // keep track of the number of possible moves // and number of unique pieces you could move int moveCount = 0; int uniquePieceCount = 0; ArrayList<GameSquare> playerSpotsWithPieces = p.places; ArrayList<GameSquare> validMoves; // for each square with a piece on it // find out where you can move that piece for (GameSquare currentSquare : playerSpotsWithPieces) { validMoves = new ArrayList<GameSquare>(); // grab all valid moves from validMoves.addAll(currentSquare.getValidMoves(board)); if (validMoves.size() > 0) uniquePieceCount++; for (GameSquare move : validMoves) { System.out.printf("%s at <%d:%d> can move to <%d:%d>\n", currentSquare.pieceType(), currentSquare.x, currentSquare.y, move.x, move.y); moveCount++; } } // print the number of possible moves and number of unique pieces that // can be moved System.out.printf("%d legal moves (%d unique pieces) for %s player", moveCount, uniquePieceCount, p.color.toString().toLowerCase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public List<Move> getPossibleMoves();", "@Override\n public ArrayList<xMCTSStringGameState> getPossibleMoves(xMCTSStringGameState gameState)\n {\n\t ArrayList<xMCTSStringGameState> posMoves = new ArrayList<xMCTSStringGameState>();\n\t if (gameStatus(gameState) == xMCTSGame.status.ONGOING) ...
[ "0.712128", "0.7081315", "0.69815296", "0.69639003", "0.6856884", "0.6827827", "0.67855096", "0.67702955", "0.67201805", "0.671738", "0.67082673", "0.6623544", "0.65978646", "0.65460753", "0.65420216", "0.65314853", "0.6524626", "0.6505381", "0.6497257", "0.64908075", "0.6461...
0.8180479
0
Failure message: Tu codigo no pasa los test
@Test public void test01() { EjercicioR755 ejercici1 = new EjercicioR755(); ArrayList<Integer> origen = new ArrayList<>(Arrays.asList(5, 8, 2, 1, 9, 7, 4)); String resultadoEsperado = "9, 8, 7, 5, 4, 2, 1"; assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen)); origen = new ArrayList<>(Arrays.asList(10, 4, 5, 4, 3, 9, 1)); resultadoEsperado = "10, 9, 5, 4, 4, 3, 1"; assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen)); origen = new ArrayList<>(Arrays.asList(6, 4, 5, 4, 3, 9, 10)); resultadoEsperado = "10, 9, 6, 5, 4, 4, 3"; assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen)); origen = new ArrayList<>(); resultadoEsperado = ""; assertEquals(resultadoEsperado, ejercici1.devolverEnOrden(origen)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }", "@Test\n public void accuseSuccesTest() throws Exception {\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Override\n\tpublic void onTestFailure(ITestResult arg0) {\n\n...
[ "0.74837", "0.7385488", "0.7299872", "0.72353137", "0.7213389", "0.7201812", "0.71479046", "0.70681137", "0.70611846", "0.7059955", "0.70414275", "0.69926643", "0.6985269", "0.69812196", "0.6965121", "0.6910476", "0.68670154", "0.68642527", "0.6843469", "0.68389326", "0.68350...
0.0
-1
private static Logger log = Logger.getLogger(FixBasketOrder.class);
@Override protected void doPostProcessRequest(SSRequest ssRequest, SSResponse ssResponse) throws Exception { String orderNo = ssRequest.getFromData(APP_CONSTANT.BASKET_ORDER_NO); ViewPendingOrderRequest viewReq = new ViewPendingOrderRequest(); viewReq.setOrderNo(orderNo); ViewPendingOrderResponse viewRes = viewReq.doOperations(); ssResponse.addToData(APP_CONSTANT.SYMBOLS,viewRes.getSymbolArr()); ssResponse.addToData(APP_CONSTANT.NET_PRICE,SamcoHelper.getIndianCurrencyFormat(viewRes.getNetPrice())); ssResponse.addToData(APP_CONSTANT.ESTIMATED_TAX,SamcoHelper.getIndianCurrencyFormat(viewRes.getEstimatedTax())); ssResponse.addToData(APP_CONSTANT.TOTAL_PRICE,SamcoHelper.getIndianCurrencyFormat(viewRes.getTotalPrice())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void logs() {\n \n }", "@Override\n public void log()\n {\n }", "private Log() {\r\n\t}", "void log();", "private void logToFile() {\n }", "private void logika_rozpocznij(){\n\t}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is...
[ "0.6859064", "0.67180306", "0.6628034", "0.63988864", "0.62884986", "0.6272908", "0.6258488", "0.62496716", "0.624501", "0.6236162", "0.61988467", "0.61792445", "0.61785203", "0.6129475", "0.6094655", "0.6094655", "0.6094655", "0.6067112", "0.5986394", "0.5974116", "0.5971358...
0.0
-1
Tests the query returns one row and it is the expected row.
@Test public void testQuery() { DataSetArgument lArgs = new DataSetArgument(); lArgs.add( "aMsgId", "100" ); QuerySet lQs = QuerySetFactory.getInstance() .executeQuery( "com.mxi.mx.integration.query.process.LookupQueueId", lArgs ); Assert.assertEquals( "Row Count", 1, lQs.getRowCount() ); lQs.next(); Assert.assertEquals( "Queue Id", 1000, lQs.getInt( "queue_id" ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void selectStatementSuccessful() throws SQLException {\n assertNotNull(testConnection.selectStatement(con, \"SELECT * FROM Employees;\"));\n assertNull(testConnection.selectStatement(con, \"SELECT * FROM Emp;\"));\n\n //Test if RS is empty\n assertTrue(testConnection.s...
[ "0.69905347", "0.6720724", "0.66083837", "0.6428959", "0.64216036", "0.63876975", "0.6352452", "0.6344756", "0.6295666", "0.6287717", "0.61599845", "0.6112098", "0.61073595", "0.6069982", "0.60682416", "0.6051715", "0.60383236", "0.60239094", "0.60203457", "0.60194963", "0.60...
0.0
-1
Called to have the fragment instantiate its user interface view. Permission for storage access is handled here
public View onCreateView( @NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) { visitsViewModel = new ViewModelProvider(this).get(VisitsViewModel.class); binding = FragmentVisitsBinding.inflate(inflater, container, false); binding.setLifecycleOwner(this); binding.setPlaceholder(visitsViewModel); return binding.getRoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_permissions, container, false);\n\n userInterfaceManager = new UserInterfaceManager((MainActivity) getActivity());\n userInt...
[ "0.71535224", "0.66668147", "0.6510829", "0.64747435", "0.6447779", "0.6356783", "0.63402426", "0.6312064", "0.6308422", "0.62858164", "0.62828463", "0.62819356", "0.62554896", "0.6247593", "0.62397444", "0.62391376", "0.6231264", "0.6230416", "0.6212322", "0.619977", "0.6177...
0.0
-1
Called when the fragment is created or resumed
@Override public void onResume() { super.onResume(); visitsViewModel.setPlaceholderText(permissionHelper.hasStoragePermission()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onFragmentResume() {\n\t}", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (mHasLoad) {\n return;\...
[ "0.7823194", "0.76055443", "0.74677503", "0.742843", "0.72032034", "0.7154846", "0.714523", "0.7125935", "0.7125213", "0.7020682", "0.70027703", "0.69918746", "0.69785", "0.69730777", "0.6959616", "0.695501", "0.6915644", "0.6884179", "0.68756306", "0.68673265", "0.6861208", ...
0.0
-1
Helper function to initialise recyclerView. Observes visits list of ViewModel
private void initRecyclerView() { visitsViewModel.setPlaceholderText(true); RecyclerView mRecyclerView = binding.gridRecyclerView; mRecyclerView.setHasFixedSize(true); mRecyclerView.setLayoutManager(new LinearLayoutManager(activity)); visitsAdapter = new VisitsAdapter(); mRecyclerView.setAdapter(visitsAdapter); visitsViewModel.visits.observe(getViewLifecycleOwner(), this::resetRecycler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }", "private void setUpRecyclerView() {\n\n ...
[ "0.7384091", "0.72138596", "0.6958676", "0.6914409", "0.69084674", "0.6891337", "0.6887431", "0.6828072", "0.68208486", "0.6812006", "0.67759913", "0.6728399", "0.67055106", "0.66816163", "0.6663269", "0.6632637", "0.6627487", "0.6608658", "0.66056263", "0.660499", "0.6591862...
0.8092108
0
Helper function to reset recyclerView when data set changes
private void resetRecycler(List<Visit> visits) { if (visits == null || visits.isEmpty()) { visitsViewModel.setPlaceholderText(false); } else { // Parses values into adapters and update view visitsViewModel.setPlaceholderText(true); visitsAdapter.setItems(visits); visitsAdapter.notifyDataSetChanged(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshData(){\n Log.d(LOG_TAG, \"refreshData()\");\n mRVAdapter.setData(null);\n loadData();\n }", "public void reset() {\n resetData();\n postInvalidate();\n }", "private void resetSearchAheadList() {\n if (!searchResultsData.isEmpty()) {\n ...
[ "0.73949456", "0.72601706", "0.71563923", "0.7146958", "0.71088994", "0.7014831", "0.69677854", "0.69647694", "0.68882614", "0.6880958", "0.68638873", "0.68316185", "0.6809466", "0.6804851", "0.6743168", "0.67395574", "0.66556996", "0.66421515", "0.66383916", "0.66323394", "0...
0.7134217
4
Initialize the contents of the Fragment host's standard options menu.
@Override public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); menu.findItem(R.id.visits_filter).setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OptionsMenu() {\n\t\tsuper(OPTIONS_WINDOW_TITLE);\n\t\tQ = new Quoridor();\n\t\tinitialize();\n\t\tsetVisible(true);\n\t}", "private void initOption() {\r\n\t\tthis.option = new JMenu(\"Options\");\r\n\t\tthis.add(option);\r\n\t\tthis.initNewGame();\r\n\t\tthis.initNewServer();\r\n\t\tthis.initNewConnect(...
[ "0.6901492", "0.68371814", "0.68045956", "0.6683212", "0.66733444", "0.65421844", "0.6481829", "0.64811116", "0.6454301", "0.64427567", "0.6440254", "0.64362264", "0.64084363", "0.63865846", "0.63809013", "0.63474107", "0.6276796", "0.62666607", "0.62550116", "0.6235994", "0....
0.0
-1
This hook is called whenever an item in options menu is selected.
@Override public boolean onOptionsItemSelected(@NonNull MenuItem item) { if (permissionHelper.hasStoragePermission()) { int itemId = item.getItemId(); switch (itemId) { case R.id.visits_desc: case R.id.visits_asc: switchSortMode(itemId); break; } } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\n\tpublic boolean onMenuItemSelected(int feature...
[ "0.7935515", "0.7935515", "0.7602975", "0.74672234", "0.7314827", "0.7233132", "0.7168254", "0.71298045", "0.6979352", "0.6874195", "0.6810292", "0.6785048", "0.6759614", "0.6754393", "0.6704609", "0.66840595", "0.66701466", "0.66625226", "0.665514", "0.66378754", "0.6619445"...
0.0
-1
Switch sorting mode and call resetGrid() to reload recyclerView
private void switchSortMode(int type) { if (visitsViewModel.visits.getValue() == null) { return; } if (visitsViewModel.isSortByAsc(type)) { resetRecycler(Lists.reverse(visitsViewModel.visits.getValue())); } else { resetRecycler(visitsViewModel.visits.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resortAndReselectTreeGrid() {\n resortAndReselectTreeGrid(null);\n }", "public void resetSortModel()\r\n {\r\n oldSortColumnProperty = sortColumnProperty;\r\n oldAscending = ascending;\r\n }", "private void updateFilteringAndSorting() {\n log.debug(\"update filtering o...
[ "0.6943668", "0.66899693", "0.65649027", "0.64598167", "0.63544154", "0.61651546", "0.6144362", "0.61108583", "0.60598594", "0.5990185", "0.59592426", "0.5953057", "0.5909202", "0.58973294", "0.5841226", "0.5824605", "0.5814568", "0.5801243", "0.5775468", "0.57724607", "0.572...
0.7109318
0
this is a stochastic dataset and will have different values for different runs
@BeforeAll public static void oneTimeSetUp() { numberOfTrees = 100; sampleSize = 256; dimensions = 3; randomSeed = 123; parallelExecutionForest = RandomCutForest.builder() .numberOfTrees(numberOfTrees) .sampleSize(sampleSize) .dimensions(dimensions) .randomSeed(randomSeed) .centerOfMassEnabled(true) .storeSequenceIndexesEnabled(true) .build(); singleThreadedForest = RandomCutForest.builder() .numberOfTrees(numberOfTrees) .sampleSize(sampleSize) .dimensions(dimensions) .randomSeed(randomSeed) .centerOfMassEnabled(true) .storeSequenceIndexesEnabled(true) .parallelExecutionEnabled(false) .build(); dataSize = 10_000; baseMu = 0.0; baseSigma = 1.0; anomalyMu = 5.0; anomalySigma = 1.5; transitionToAnomalyProbability = 0.01; transitionToBaseProbability = 0.4; NormalMixtureTestData generator = new NormalMixtureTestData(baseMu, baseSigma, anomalyMu, anomalySigma, transitionToAnomalyProbability, transitionToBaseProbability); double[][] data = generator.generateTestData(dataSize, dimensions); for (int i = 0; i < dataSize; i++) { parallelExecutionForest.update(data[i]); singleThreadedForest.update(data[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeStochastic() {\n \n double sum = 0.0;\n \n for(T row : getFirstDimension()) {\n \n // sum all values\n for(T col : getMatches(row)) {\n \n if(get(row, col)!=null) {\n sum += get(row, col);\...
[ "0.66844386", "0.6073349", "0.5880572", "0.5770321", "0.5697738", "0.5673319", "0.5669624", "0.5658246", "0.5653254", "0.5629684", "0.5620778", "0.55947274", "0.5546362", "0.5528427", "0.55256647", "0.5508164", "0.55011946", "0.5482044", "0.5468786", "0.54628533", "0.5451521"...
0.0
-1
displacement scoring (multiplied by the normalizer log_2(treesize)) on the fly !! as introduced in Robust Random Cut Forest Based Anomaly Detection in Streams
public static double getDisplacementScore(DynamicScoringRandomCutForest forest, double[] point) { return forest.getDynamicScore(point, 0, (x, y) -> 1.0, (x, y) -> y, (x, y) -> 1.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testShadowBuffer(){\n numberOfTrees = 100;\n sampleSize = 256;\n dimensions = 3;\n randomSeed = 123;\n\n RandomCutForest newForest = RandomCutForest.builder()\n .numberOfTrees(numberOfTrees)\n .sampleSize(sampleSize)\n ...
[ "0.5838288", "0.5539122", "0.51553375", "0.50520384", "0.50450015", "0.5037495", "0.5024312", "0.50149477", "0.49937126", "0.49619433", "0.49523285", "0.49467942", "0.49264467", "0.49226472", "0.49124348", "0.48843122", "0.48714164", "0.48680237", "0.48664078", "0.48568475", ...
0.61330235
0
Expected height (multiplied by the normalizer log_2(treesize) ) scoring on the fly !! seen function is (x,y) > x+log(Y)/log(2) which depth + duplicity converted to depth unseen function is (x,y) > x which is depth damp function is (x,y) > 1 which is no dampening note that this is NOT anything like the expected height in Isolation Forest/Random Forest algorithms, because here the Expected height takes into account the contrafactual that "what would have happened had the point been available during the construction of the forest"
public static double getHeightScore(DynamicScoringRandomCutForest forest,double[] point){ return forest.getDynamicScore(point,0,(x,y)->1.0*(x+Math.log(y)),(x,y)->1.0*x,(x,y)->1.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void genNeighStateProbability() {\n double[] metrics = new double[STATES.length * STATES.length];\n double sum = 0;\n Random rand = new Random();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length...
[ "0.5918216", "0.58938503", "0.58624524", "0.58329535", "0.5798822", "0.5646408", "0.5584972", "0.5573945", "0.54840565", "0.54423213", "0.5425735", "0.54190886", "0.5418536", "0.5387043", "0.5364652", "0.53553814", "0.53502387", "0.53479505", "0.5331219", "0.53241396", "0.531...
0.61736625
0
/ the changes to score and attribution should be in sync
@ParameterizedTest @ArgumentsSource(TestForestProvider.class) public void testSideEffectsB(RandomCutForest forest){ DiVector initial=forest.getAnomalyAttribution(new double[] {0.0, 0.0 ,0.0}); NormalMixtureTestData generator2=new NormalMixtureTestData(baseMu, baseSigma, anomalyMu, anomalySigma, transitionToAnomalyProbability, transitionToBaseProbability); double[][] newData = generator2.generateTestData(dataSize, dimensions); for (int i = 0; i < dataSize; i++) { forest.getAnomalyAttribution(newData[i]); } double newScore=forest.getAnomalyScore(new double[] {0.0,0.0,0.0}); DiVector newVector = forest.getAnomalyAttribution(new double[] {0.0, 0.0 ,0.0}); assertEquals(initial.getHighLowSum(),newVector.getHighLowSum(),10E-10); assertEquals(initial.getHighLowSum(),newScore,1E-10); assertArrayEquals(initial.high,newVector.high,1E-10); assertArrayEquals(initial.low,newVector.low,1E-10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }", "@Override\n\tpublic void update() {\n\t\tif(isSaveScore()){\n\t\t\tsaveScore();\n\t\t\tmanager.reconstruct();\n\t\t}\n\t\tmanager.move();\n\t}", "public void update()\n {\n scorecard.up...
[ "0.68427896", "0.68086237", "0.6757078", "0.67482865", "0.67145616", "0.664994", "0.66360277", "0.6593758", "0.65400624", "0.65049326", "0.6500756", "0.64844805", "0.6468742", "0.6430865", "0.6427336", "0.6368261", "0.6341186", "0.6289616", "0.6286392", "0.62731946", "0.62571...
0.0
-1
/ This method checks that the scores and attributions are consistent
@ParameterizedTest @ArgumentsSource(TestForestProvider.class) public void testGetAnomalyAttribution(RandomCutForest forest) { double [] point = {0.0,0.0,0.0}; DiVector seenResult = forest.getAnomalyAttribution(point); double seenScore = forest.getAnomalyScore(point); assertTrue(seenResult.getHighLowSum(0) < 0.5); assertTrue(seenResult.getHighLowSum(1) < 0.5); assertTrue(seenResult.getHighLowSum(2) < 0.5); assertTrue(seenScore < 1.0); assertEquals(seenScore, seenResult.getHighLowSum(), 1E-10); DiVector likelyResult = forest.getApproximateAnomalyAttribution(point); double score=forest.getApproximateAnomalyScore(point); assertTrue(likelyResult.getHighLowSum(0) < 0.5); assertTrue(likelyResult.getHighLowSum(1) < 0.5); assertTrue(likelyResult.getHighLowSum(2) < 0.5); assertEquals(score, likelyResult.getHighLowSum(), 0.1); assertEquals(seenResult.getHighLowSum(), likelyResult.getHighLowSum(), 0.1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + ...
[ "0.6540579", "0.6070742", "0.59861577", "0.59780204", "0.5828707", "0.5812298", "0.5759692", "0.5741627", "0.5736247", "0.5724416", "0.56816953", "0.5679708", "0.5658158", "0.5642073", "0.5641935", "0.56247187", "0.561343", "0.55645704", "0.55313224", "0.5519382", "0.55105466...
0.0
-1
We will test the attribution over random runs. Narrow tests can fail we will keep track of the aggregate number of narrow tests and test for large characterization that would be misleading in failure.
@ParameterizedTest @ArgumentsSource(TestForestProvider.class) public void testMultipleAttributions(RandomCutForest forest) { int hardPass=0; int causal=0; double [] point ={6.0,0.0,0.0}; DiVector result = forest.getAnomalyAttribution(point); assertTrue(result.low[0] < 0.2); if (result.getHighLowSum(1) < 0.5) ++hardPass; if (result.getHighLowSum(2) < 0.5) ++hardPass; assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0); assertTrue(result.high[0] > forest.getAnomalyScore(point)/3); if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal; // the last line states that first coordinate was high and was a majority contributor to the score // the previous test states that the contribution is twice the average of the 12 possible contributors. // these tests all subparts of the score at once point=new double [] {-6.0,0.0,0.0}; result = forest.getAnomalyAttribution(point); assertTrue(result.getHighLowSum()>1.0); assertTrue(result.high[0] < 0.5); if (result.getHighLowSum(1) < 0.5) ++hardPass; if (result.getHighLowSum(2) < 0.5) ++hardPass; assertTrue(result.low[0] > forest.getAnomalyScore(point)/3); if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal; point=new double [] {0.0,6.0,0.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); if (result.getHighLowSum(0) < 0.5) ++hardPass; if (result.getHighLowSum(2) < 0.5) ++hardPass; assertTrue(result.low[1] < 0.5); assertTrue(result.high[1] > forest.getAnomalyScore(point)/3); if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal; point=new double [] {0.0,-6.0,0.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); if (result.getHighLowSum(0) < 0.5) ++hardPass; if (result.getHighLowSum(2) < 0.5) ++hardPass; assertTrue(result.high[1] < 0.5); assertTrue(result.low[1] > forest.getAnomalyScore(point)/3); if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal; point=new double [] {0.0,0.0,6.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); if (result.getHighLowSum(0) < 0.5) ++hardPass; if (result.getHighLowSum(1) < 0.5) ++hardPass; assertTrue(result.low[2] < 0.5); assertTrue(result.high[2] > forest.getAnomalyScore(point)/3); if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal; point=new double [] {0.0,0.0,-6.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); if (result.getHighLowSum(0) < 0.5) ++hardPass; if (result.getHighLowSum(1) < 0.5) ++hardPass; assertTrue(result.high[2] < 0.5); assertTrue(result.low[2] > forest.getAnomalyScore(point)/3); if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal; assertTrue(causal>=5); // maximum is 6; there can be skew in one direction point=new double [] {-3.0,0.0,0.0}; result = forest.getAnomalyAttribution(point); assertTrue(result.high[0] < 0.5); if (result.getHighLowSum(1) < 0.5) ++hardPass; if (result.getHighLowSum(2) < 0.5) ++hardPass; assertTrue(result.low[0] > forest.getAnomalyScore(point)/3); /* For multiple causes, the relationship of scores only hold for larger * distances. */ point=new double [] {-3.0,6.0,0.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); if (result.low[0] > 0.5) ++hardPass; assertTrue(result.high[0] < 0.5); assertTrue(result.low[1] < 0.5); assertTrue(result.high[1] > 0.5); if (result.high[1]>0.9) ++hardPass; assertTrue(result.getHighLowSum(2)< 0.5); assertTrue(result.high[1]+result.low[0]> 0.8*forest.getAnomalyScore(point)); point=new double [] {6.0,-3.0,0.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); assertTrue(result.low[0] < 0.5); assertTrue(result.high[0] > 0.5); if (result.high[0]>0.9) ++hardPass; if (result.low[1] > 0.5) ++hardPass; assertTrue(result.high[1] < 0.5); assertTrue(result.getHighLowSum(2) < 0.5); assertTrue(result.high[0]+result.low[1]> 0.8*forest.getAnomalyScore(point)); point=new double [] {20.0,-10.0,0.0}; assertTrue(result.getHighLowSum()>1.0); result = forest.getAnomalyAttribution(point); assertTrue(result.high[0]+result.low[1]> 0.8*forest.getAnomalyScore(point)); if (result.high[0]>1.8*result.low[1]) ++hardPass; if (result.low[1]>result.high[0]/2.2) ++hardPass; assertTrue(hardPass>=15); //maximum is 20 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void check_distribution() {\n\t\t// todo\n UnicodeSet alphabet = LocaleData.getExemplarSet(ULocale.FRENCH, LocaleData.ES_STANDARD);\n Transition transition = new Transition(1.0f/(float)(alphabet.size()), ULocale.FRENCH);\n Set<Character> observed = new HashSet<>();\n Tra...
[ "0.6481866", "0.63422275", "0.63067", "0.62967825", "0.6103376", "0.60501385", "0.60124123", "0.6011093", "0.6006271", "0.6005845", "0.5981165", "0.59714735", "0.5945189", "0.59370816", "0.5923503", "0.5883306", "0.5876394", "0.58696795", "0.5868654", "0.5860618", "0.5850012"...
0.6502375
0
This test checks that the attribution DOES NOT change as a ratio as more copies of the points are added. The shadowbox in
@Test public void testShadowBuffer(){ numberOfTrees = 100; sampleSize = 256; dimensions = 3; randomSeed = 123; RandomCutForest newForest = RandomCutForest.builder() .numberOfTrees(numberOfTrees) .sampleSize(sampleSize) .dimensions(dimensions) .randomSeed(randomSeed) .centerOfMassEnabled(true) .storeSequenceIndexesEnabled(true) .build(); dataSize = 10_000; baseMu = 0.0; baseSigma = 1.0; anomalyMu = 5.0; anomalySigma = 1.5; transitionToAnomalyProbability = 0.01; transitionToBaseProbability = 0.4; NormalMixtureTestData generator = new NormalMixtureTestData(baseMu, baseSigma, anomalyMu, anomalySigma, transitionToAnomalyProbability, transitionToBaseProbability); double[][] data = generator.generateTestData(dataSize, dimensions); for (int i = 0; i < dataSize; i++) { newForest.update(data[i]); } double [] point = new double [] {-8.0,-8.0,0.0}; DiVector result=newForest.getAnomalyAttribution(point); double score=newForest.getAnomalyScore(point); assertEquals(score,result.getHighLowSum(),1E-10); assertTrue(score>2); assertTrue(result.getHighLowSum(2)<0.2); // the third dimension has little influence in classification // this is going to add {8,8,0} into the forest // but not enough to cause large scale changes // note the probability of a tree seeing a change is // 256/10_000 for (int i = 0; i < 5; i++) { newForest.update(point); } DiVector newResult=newForest.getAnomalyAttribution(point); double newScore=newForest.getAnomalyScore(point); assertEquals(newScore,newResult.getHighLowSum(),1E-10); assertTrue(newScore<score); for(int j=0;j<3;j++){ // relationship holds at larger values if (result.high[j]>0.2) { assertEquals(score * newResult.high[j], newScore * result.high[j], 0.1*score); } else { assertTrue(newResult.high[j]<0.2); } if (result.low[j]>0.2) { assertEquals(score * newResult.low[j], newScore * result.low[j], 0.1*score); } else { assertTrue(newResult.low[j]<0.2); } } // this will make the point an inlier for (int i = 0; i < 5000; i++) { newForest.update(point); } DiVector finalResult=newForest.getAnomalyAttribution(point); double finalScore=newForest.getAnomalyScore(point); assertTrue(finalScore<1); assertEquals(finalScore,finalResult.getHighLowSum(),1E-10); for(int j=0;j<3;j++){ // relationship holds at larger values if (finalResult.high[j]>0.2) { assertEquals(score * finalResult.high[j], finalScore * result.high[j], 0.1*score); } else { assertTrue(newResult.high[j]<0.2); } if (finalResult.low[j]>0.2) { assertEquals(score * finalResult.low[j], finalScore * result.low[j], 0.1*score); } else { assertTrue(finalResult.low[j]<0.2); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAttribution() throws Exception {\n Document doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n assertXpathEvaluatesTo(\"0\", \"count(//wms:Attribution)\", doc);\n // Add attribution to one of the layers\n LayerInfo points = getC...
[ "0.6404923", "0.5798873", "0.56872815", "0.5633646", "0.56016356", "0.54941016", "0.5494056", "0.5425536", "0.5414804", "0.54135257", "0.54094183", "0.53817916", "0.5374331", "0.5353711", "0.5331787", "0.5331616", "0.53284526", "0.5308963", "0.5300421", "0.5299867", "0.529680...
0.512913
33
Same as the car but for the truck
@Test public void TruckTest(){ Size trucksize =new Size(190,450); Truck truck = new Truck("ABC123",trucksize); Assert.assertEquals("Should be ABC123","ABC123",truck.getLicense_plate()); Assert.assertEquals("should be trucksize",trucksize,truck.getSize_truck()); Assert.assertEquals("Should be ABC123","ABC123",truck.licensePlate()); Assert.assertEquals("Should be Truck","Truck",truck.type()); Assert.assertEquals("Should be 0",0,truck.vehicleCharacteristic().size()); Assert.assertEquals("Should be Truck","Truck",truck.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public tT CAR()\r\n\t{\r\n\t\treturn car;\r\n\t}", "public Truck()\r\n {\r\n super.setVehIs(VEHICLE_IS);\r\n // this.showMenu();\r\n }", "public Vector<Trucks> getTrucks() {\n\t\tVector<Trucks> v = new Vector<Trucks>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs...
[ "0.6397334", "0.61733145", "0.6165576", "0.61471087", "0.61357105", "0.6103322", "0.60626876", "0.60225993", "0.60216486", "0.6000816", "0.6000816", "0.6000816", "0.6000816", "0.6000816", "0.6000816", "0.5994466", "0.59775007", "0.59727937", "0.59722567", "0.59722567", "0.597...
0.6321592
1
check the inputed age is greater than 18.
@Override public void onDismiss(DialogInterface $dialog) { // TODO Auto-generated method stub DataPickerDialog dialog = (DataPickerDialog) $dialog ; age = dialog.getAge() ; if(age == -1){ return; } String inputage = String.valueOf(age); DataUtils.savePreference(Const.INPUT_AGE, inputage); // gotoReadyPage(); // test facebook skip onLoginFacebook(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean validateAge(String age) {\n return true;\n\n }", "public boolean checkAge(int age) throws UnderAgeException {\n\n\t\ttry {\n\t\t\tif (age >= 18) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tthrow new UnderAgeException(\"Under age -- Not Eligible\");\n\t\t\t}\n\t\t} catch (Und...
[ "0.7624391", "0.7556771", "0.7460355", "0.71494013", "0.69408274", "0.69316775", "0.68881303", "0.68219703", "0.6817644", "0.6700407", "0.6599225", "0.65534353", "0.6524906", "0.64821833", "0.63922197", "0.6332703", "0.6317677", "0.63100475", "0.6291874", "0.6224145", "0.6214...
0.0
-1
init the report content.
protected void initPreference(){ DataUtils.savePreference(Const.REPORT, ""); DataUtils.savePreference(Const.TRY_MATCH_PERSON,""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}", "public Report() {\n\t\tsuper();\n\t}", "private void startReport() {\r\n // initialize the HtmlReporter\r\n htmlRe...
[ "0.68785316", "0.6842399", "0.68221706", "0.6779544", "0.6779292", "0.6779292", "0.6779292", "0.66988397", "0.6619236", "0.6550137", "0.64559484", "0.6395395", "0.63905245", "0.63474715", "0.6312056", "0.63028544", "0.6272427", "0.62709934", "0.61969066", "0.61961764", "0.616...
0.0
-1
/ handle the result
public void onCompleted(GraphResponse response) { if (response.getError() != null) { // get personal information }else { //////////////////////////////////////////////////////////// ////////////////// all facebook users/////////////////////// try { JSONObject json = response.getJSONObject(); if (json.has("data")) { JSONArray userphotos = json.getJSONArray("data"); } else { } } catch (JSONException e) { Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } } istagglefriend = 1; if(isfriend == 1 && islogin == 1){ gotoReadyPage(); } //////////////////////////////////////////////////////////// }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "V result() throws Exception;", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.frame...
[ "0.7434394", "0.7027236", "0.69296587", "0.6923013", "0.6922484", "0.6922484", "0.6922335", "0.6922335", "0.6914829", "0.69076806", "0.6666409", "0.66593117", "0.6611505", "0.66006327", "0.6542706", "0.6489988", "0.6488402", "0.6486885", "0.64657557", "0.644808", "0.6445717",...
0.0
-1
example get facebook friend list.
protected void getfriendlist(){ String myfacebookid = DataUtils.getPreference(Const.FACEBOOKID,""); new GraphRequest( token, //"/" + myfacebookid + "/taggable_friends", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends "/me/friends", null, HttpMethod.GET, new GraphRequest.Callback() { public void onCompleted(GraphResponse response) { /* handle the result *///////////////////////////////////////////////////////////////////// if (response.getError() != null) { // get personal information }else { try { JSONArray rawPhotosData = response.getJSONObject().getJSONArray("data"); JSONArray useappfriend = new JSONArray(); for (int j = 0; j < rawPhotosData.length(); j++) { //save whatever data you want from the result JSONObject photo = new JSONObject(); photo.put("id", ((JSONObject) rawPhotosData.get(j)).get("id")); photo.put("name", ((JSONObject) rawPhotosData.get(j)).get("name")); useappfriend.put(photo); } String struseappfriend = useappfriend.toString().trim(); DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend); } catch (JSONException e) { e.printStackTrace(); } } isfriend = 1; if(istagglefriend == 1 && islogin == 1){ gotoReadyPage(); } // //////////////////////////////////////////////////////////////////////////////////////////// // // // GraphResponse rep = response; // new GraphRequest( // token, // //"/" + myfacebookid + "/taggable_friends", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends // "/me/friendlists", // null, // HttpMethod.GET, // new GraphRequest.Callback() { // public void onCompleted(GraphResponse response) { // /* handle the result */ // GraphResponse rep = response; // // //////////////////////////////////////////////////////////// // ////////////////// all facebook users/////////////////////// // // try { // JSONObject json = response.getJSONObject(); // // if(json.has("data")){ // JSONArray rawPhotosData =json.getJSONArray("data"); // JSONArray facebookfriend = new JSONArray(); // for(int j=0; j<rawPhotosData.length();j++){ // //save whatever data you want from the result // JSONObject photo = new JSONObject(); // photo.put("id", ((JSONObject)rawPhotosData.get(j)).get("id")); // photo.put("name",((JSONObject)rawPhotosData.get(j)).get("name")); // photo.put("icon", ((JSONObject)rawPhotosData.get(j)).get("picture")); // facebookfriend.put(photo); // } // String strfacebookfriend = facebookfriend.toString().trim(); // DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend); // // }else{ // // } // } catch (JSONException e) { // Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show(); // e.printStackTrace(); // } // // // goto setting scrreen. // Intent intent = new Intent(MainActivity.this,ReadyActivity.class); // startActivity(intent); // overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left); // // // finish(); // //////////////////////////////////////////////////////////// // } // } // ).executeAsync(); } } ).executeAsync(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> \n getFriendListList();", "UserFriendsEntry getUserFriendsList(Integer user_id);", "public static ArrayList<Friend> getFriends(String accessToken) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();...
[ "0.71213335", "0.7061025", "0.7002315", "0.6963462", "0.694573", "0.69097596", "0.6813613", "0.67118835", "0.66200686", "0.66046387", "0.6587015", "0.65628463", "0.6544463", "0.652887", "0.64838964", "0.6458198", "0.64316803", "0.64188933", "0.6325316", "0.6320161", "0.624681...
0.7591248
0
/ handle the result //////////////////////////////////////////////////////////////////
public void onCompleted(GraphResponse response) {/ if (response.getError() != null) { // get personal information }else { try { JSONArray rawPhotosData = response.getJSONObject().getJSONArray("data"); JSONArray useappfriend = new JSONArray(); for (int j = 0; j < rawPhotosData.length(); j++) { //save whatever data you want from the result JSONObject photo = new JSONObject(); photo.put("id", ((JSONObject) rawPhotosData.get(j)).get("id")); photo.put("name", ((JSONObject) rawPhotosData.get(j)).get("name")); useappfriend.put(photo); } String struseappfriend = useappfriend.toString().trim(); DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend); } catch (JSONException e) { e.printStackTrace(); } } isfriend = 1; if(istagglefriend == 1 && islogin == 1){ gotoReadyPage(); } // //////////////////////////////////////////////////////////////////////////////////////////// // // // GraphResponse rep = response; // new GraphRequest( // token, // //"/" + myfacebookid + "/taggable_friends", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends // "/me/friendlists", // null, // HttpMethod.GET, // new GraphRequest.Callback() { // public void onCompleted(GraphResponse response) { // /* handle the result */ // GraphResponse rep = response; // // //////////////////////////////////////////////////////////// // ////////////////// all facebook users/////////////////////// // // try { // JSONObject json = response.getJSONObject(); // // if(json.has("data")){ // JSONArray rawPhotosData =json.getJSONArray("data"); // JSONArray facebookfriend = new JSONArray(); // for(int j=0; j<rawPhotosData.length();j++){ // //save whatever data you want from the result // JSONObject photo = new JSONObject(); // photo.put("id", ((JSONObject)rawPhotosData.get(j)).get("id")); // photo.put("name",((JSONObject)rawPhotosData.get(j)).get("name")); // photo.put("icon", ((JSONObject)rawPhotosData.get(j)).get("picture")); // facebookfriend.put(photo); // } // String strfacebookfriend = facebookfriend.toString().trim(); // DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend); // // }else{ // // } // } catch (JSONException e) { // Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show(); // e.printStackTrace(); // } // // // goto setting scrreen. // Intent intent = new Intent(MainActivity.this,ReadyActivity.class); // startActivity(intent); // overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left); // // // finish(); // //////////////////////////////////////////////////////////// // } // } // ).executeAsync(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "protected void handleResult(String result) {}", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com...
[ "0.75379556", "0.6986497", "0.6963589", "0.6962956", "0.6962956", "0.6962948", "0.6962948", "0.6931081", "0.67682827", "0.67419845", "0.663528", "0.65710354", "0.6527879", "0.652634", "0.6510057", "0.65018815", "0.64577085", "0.64378333", "0.64022917", "0.6399088", "0.6381241...
0.0
-1
/ handle the result
public void onCompleted(GraphResponse response) { if (response.getError() != null) { // get personal information }else { //////////////////////////////////////////////////////////// ////////////////// all facebook users/////////////////////// try { JSONObject json = response.getJSONObject(); if (json.has("data")) { JSONArray rawPhotosData = json.getJSONArray("data"); JSONArray facebookfriend = new JSONArray(); for (int j = 0; j < rawPhotosData.length(); j++) { //save whatever data you want from the result JSONObject photo = new JSONObject(); photo.put("id", ((JSONObject) rawPhotosData.get(j)).get("id")); photo.put("name", ((JSONObject) rawPhotosData.get(j)).get("name")); // photo.put("icon", ((JSONObject) rawPhotosData.get(j)).get("picture")); facebookfriend.put(photo); } String strfacebookfriend = facebookfriend.toString().trim(); DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend); } else { } } catch (JSONException e) { Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show(); e.printStackTrace(); } } istagglefriend = 1; if(isfriend == 1 && islogin == 1){ gotoReadyPage(); } //////////////////////////////////////////////////////////// }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "V result() throws Exception;", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.frame...
[ "0.7434394", "0.7027236", "0.69296587", "0.6923013", "0.6922484", "0.6922484", "0.6922335", "0.6922335", "0.6914829", "0.69076806", "0.6666409", "0.66593117", "0.6611505", "0.66006327", "0.6542706", "0.6489988", "0.6488402", "0.6486885", "0.64657557", "0.644808", "0.6445717",...
0.0
-1
DataUtils.savePreference(Const.FACEBOOKID, "333379007041276");//user.optString(Const.FACEBOOKID,"")); DataUtils.savePreference(Const.NAME, "jimmy");
protected void gotoReadyPage(){ Intent intent = new Intent(MainActivity.this,ReadyActivity.class); startActivity(intent); overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left); // finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void savePreference(SignUpResponse response);", "public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String us...
[ "0.6559825", "0.65100276", "0.6460541", "0.6406634", "0.63663983", "0.6346984", "0.63243663", "0.6322277", "0.6298874", "0.6277045", "0.621638", "0.62155706", "0.61414105", "0.6124814", "0.60932934", "0.6070041", "0.6018628", "0.6001531", "0.59978014", "0.59657884", "0.595629...
0.0
-1
convert string from 00:00:00.000 to milliseconds
public static long strToMillis(String time) { long result = 0; try { Pattern p = Pattern .compile("([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(\\.([0-9]{1,3}))?"); Matcher m = p.matcher(time.trim()); m.find(); result += Long.parseLong(m.group(1)) * 3600000 + Long.parseLong(m.group(2)) * 60000 + Long.parseLong(m.group(3)) * 1000; if (m.group(5) != null) result += Long.parseLong(m.group(5)); } catch (Exception e) { // don't complain, just return 0 return 0; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long toMillisecond(long value) { return value; }", "long toMillisecond(long timelineValue);", "public String convertTimeMillisecondsAsLongToDurationNoLeadZero(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = Stri...
[ "0.66002077", "0.64637125", "0.62316364", "0.62308705", "0.6208643", "0.6151783", "0.61414766", "0.59793854", "0.5965244", "0.5921383", "0.59127945", "0.5899821", "0.5899519", "0.58969307", "0.589354", "0.5849532", "0.5849439", "0.5811988", "0.57760835", "0.5770838", "0.57298...
0.69472283
0
convert milliseconds to 00:00:00.000
public static String millisToStr(long time) { long ms = time; long h = ms / 3600000; ms = ms % 3600000; long m = ms / 60000; ms = ms % 60000; long s = ms / 1000; ms = ms % 1000; return String.format("%02d:%02d:%02d.%03d", h, m, s, ms); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long toMillisecond(long value) { return value; }", "public String convertTimeMillisecondsAsLongToDurationNoLeadZero(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MI...
[ "0.66329354", "0.66195965", "0.63217515", "0.6201934", "0.6119061", "0.60753673", "0.6033955", "0.6032715", "0.6025976", "0.60174286", "0.5939747", "0.5892223", "0.58670276", "0.5785353", "0.5770293", "0.57045025", "0.570017", "0.570017", "0.560945", "0.5604471", "0.5600246",...
0.561958
18
start stop button action
public void actionPerformed(ActionEvent e) { if (time.isEditable()) return; if (running) { running = false; try { timerThread.join(); } catch (InterruptedException ie) { } lapTime = timeLeft; time.setText(millisToStr(timeLeft)); } else { startTime = System.currentTimeMillis(); running = true; timerThread = new Thread(this); timerThread.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopPressed() {\n // display\n TextLCD.print(STOP);\n // reset\n reset();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmainFrame.mainToolBar.jtb_stop.doClick();\n\t\t\t}", "StopAction createStopAction();", "@FXML\n void stopEvent(...
[ "0.7728133", "0.73288983", "0.72913784", "0.7271549", "0.7229344", "0.7171868", "0.7169314", "0.71434796", "0.70838237", "0.70815635", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102", "0.7081102"...
0.0
-1
stop the timer and clean up the thread.
public void stopTimer() { running = false; try { if (timerThread != null && timerThread.isAlive()) { timerThread.join(); } } catch (Exception ie) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stop() {\n timer.cancel();\n timer = null;\n }", "public void stop() {timer.stop();}", "public void stop() {\n timer.stop();\n }", "public void stopTimer() {\n\t\trunFlag = false;\n\t\tses.shutdown();\n\t\tSystem.err.println(\"TIMER SHUTDOWN\");\n\t\tinstance = null;\n...
[ "0.82544893", "0.808742", "0.8029743", "0.7930352", "0.79180235", "0.79111344", "0.788208", "0.78701854", "0.7855086", "0.7846029", "0.7778548", "0.77748823", "0.77594423", "0.77203757", "0.76679885", "0.7615894", "0.7592404", "0.7558458", "0.7501785", "0.7481217", "0.7468999...
0.7828739
10
play a given sound file.
private void playSound(String sound) { try { BufferedInputStream soundFileStream = new BufferedInputStream(this .getClass().getResourceAsStream(sound)); AudioInputStream audioInputStream = AudioSystem .getAudioInputStream(soundFileStream); AudioFormat audioFormat = audioInputStream.getFormat(); DataLine.Info dataLineInfo = new DataLine.Info(Clip.class, audioFormat); Clip clip = (Clip) AudioSystem.getLine(dataLineInfo); clip.open(audioInputStream); clip.start(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playSound(File soundFile);", "public void playSound(String filename) {\r\n\t\tif (debugLevel > 1)\r\n\t\t\tSystem.out.println(\" ... play audio file: \" + filename);\r\n\t\ttry {\r\n\t\t\tFile file = new File(filename);\r\n\t\t\tAudioInputStream in = AudioSystem.getAudioInputStream(file);\r\n\t\t\t...
[ "0.84983176", "0.81842524", "0.7926637", "0.79215574", "0.7832313", "0.7724546", "0.77152276", "0.7684623", "0.7679744", "0.7669892", "0.7584209", "0.7564635", "0.7505249", "0.7503754", "0.75019294", "0.7493207", "0.7453705", "0.7443407", "0.7440682", "0.7432626", "0.7371179"...
0.7510124
12
Check if a field is present
public boolean isDepositOptionPaymentBlnVisible() { return this.driverUtil.checkElementPresent(By.xpath(labelDepositOptionPaymentYesXPath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasField1();", "boolean hasField0();", "boolean hasField4();", "boolean hasField3();", "boolean hasField2();", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\...
[ "0.78914416", "0.7783209", "0.77237904", "0.7687812", "0.7613048", "0.7560455", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", "0.72634363", ...
0.0
-1