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
Retrieve the Forward Label, if Present
public org.drip.state.identifier.ForwardLabel forwardLabel() { org.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel(); return null != floaterLabel && floaterLabel instanceof org.drip.state.identifier.ForwardLabel ? (org.drip.state.identifier.ForwardLabel) floaterLabel : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.drip.state.identifier.ForwardLabel forwardLabel()\n\t{\n\t\treturn _lslForward;\n\t}", "Label getLabel();", "Label getLabel();", "Label getLabel();", "default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }", "public String getForwar...
[ "0.7678048", "0.64264596", "0.64264596", "0.64264596", "0.6333999", "0.6321883", "0.6268819", "0.6268819", "0.6107798", "0.61059695", "0.6049356", "0.60335004", "0.6029269", "0.60101336", "0.599874", "0.599874", "0.5997783", "0.59862393", "0.59825826", "0.59825826", "0.598096...
0.78166515
0
Retrieve the OTC Fix Float Label, if Present
public org.drip.state.identifier.OTCFixFloatLabel otcFixFloatLabel() { org.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel(); return null != floaterLabel && floaterLabel instanceof org.drip.state.identifier.OTCFixFloatLabel ? (org.drip.state.identifier.OTCFixFloatLabel) floaterLabel : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static DecimalFormat determineLabelFormat(float val) {\n float absval = Math.abs(val);\n\n DecimalFormat rval = null;\n if (absval == 0) {\n rval = new DecimalFormat(\"0.#\");\n } else if (absval < 0.001 || absval > 1e7) {\n rval = new DecimalFormat(\"0.###...
[ "0.62034804", "0.6129242", "0.60501325", "0.5913735", "0.5891387", "0.5877262", "0.5795651", "0.57477736", "0.5708618", "0.5683645", "0.5658727", "0.5655863", "0.56417245", "0.55814356", "0.55814356", "0.5575542", "0.55645573", "0.55270755", "0.55164057", "0.55135816", "0.549...
0.78775287
0
Retrieve the Funding Label
public org.drip.state.identifier.FundingLabel fundingLabel() { return _lsPeriod.get (0).fundingLabel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.drip.state.identifier.FundingLabel fundingLabel()\n\t{\n\t\treturn _lslFunding;\n\t}", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public JLabel getLblFundaciones() {\r\n\t\treturn lblFundaciones;\r\n\t}", "String getLabel();", "String getLabel();", "public java.lang.String...
[ "0.754628", "0.7325803", "0.6864824", "0.6736176", "0.6736176", "0.6720462", "0.66839826", "0.66748214", "0.65512526", "0.65370566", "0.65370566", "0.65370566", "0.65370566", "0.65060973", "0.65060973", "0.65060973", "0.64391553", "0.6393706", "0.63823843", "0.6359553", "0.63...
0.7773978
0
Retrieve the FX Label
public org.drip.state.identifier.FXLabel fxLabel() { return _lsPeriod.get (0).fxLabel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public java.lang.String getLabel();", "public String getLabelText();", "java.lang.String getLabel();", "public S...
[ "0.7510083", "0.74692804", "0.7451905", "0.7429578", "0.7350037", "0.7350037", "0.7350037", "0.7350037", "0.7323705", "0.73128736", "0.73128736", "0.7250884", "0.7244965", "0.7228396", "0.7217888", "0.72103876", "0.7208645", "0.71929383", "0.71819675", "0.717678", "0.717678",...
0.76403743
0
Retrieve the Coupon Period List
public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod() { return _lsPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();", "hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index);", "public List<Period> getPeriods() throws PeriodNotFoundException;", "public List<CouponData> getExpiredCouponList() {\n LocalDateTime currentD...
[ "0.68862456", "0.6355341", "0.6323599", "0.6240389", "0.6123474", "0.608212", "0.6067371", "0.6031185", "0.6003095", "0.5980912", "0.591051", "0.59034914", "0.5888625", "0.584319", "0.5817953", "0.5807437", "0.58058256", "0.5800955", "0.5786275", "0.57850385", "0.57683027", ...
0.6117422
5
Retrieve the Period Instance enveloping the specified Date
public org.drip.analytics.cashflow.CompositePeriod containingPeriod ( final int iDate) { try { for (org.drip.analytics.cashflow.CompositePeriod cp : _lsPeriod) { if (cp.contains (iDate)) return cp; } } catch (java.lang.Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'date='+#p0\")\n public AccountingPeriod getByDate(Date date) {\n Map<String,Object> primaryKeys = new HashMap<String, Object>();\n primaryKeys.put(OLEPropertyConstants.UNIVERSITY_DATE, date);\n UniversityDate universityDate...
[ "0.6004383", "0.59803575", "0.59118485", "0.5829884", "0.58049774", "0.57996535", "0.5787663", "0.57724804", "0.57394236", "0.573721", "0.56998646", "0.5665379", "0.5659187", "0.5597854", "0.55706847", "0.5539156", "0.5386135", "0.5383041", "0.5380427", "0.5306178", "0.530462...
0.5689566
11
Retrieve the Initial Notional
public double initialNotional() { return _lsPeriod.get (0).baseNotional(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getNotional() {\n return _notional;\n }", "public long getInitial() {\n return m_Initial;\n }", "public Ndimensional getStartPoint();", "Pair<Integer, Integer> getInitialPosition();", "public BoundCodeDt<ImagingModalityEnum> getModalityFirstRep() {\n\t\tif (getModality().size() == 0) ...
[ "0.62292373", "0.59172", "0.58784544", "0.5840878", "0.57342094", "0.57132715", "0.57132715", "0.57132715", "0.570266", "0.56852305", "0.56825584", "0.5658213", "0.5579737", "0.55752975", "0.5560742", "0.5548182", "0.5547017", "0.5449623", "0.5435342", "0.5429598", "0.5421516...
0.70450777
0
Retrieve the Notional corresponding to the specified Date
public double notional ( final int iDate) throws java.lang.Exception { int iEffectiveDate = effective().julian(); int iAdjustedDate = iEffectiveDate > iDate ? iEffectiveDate : iDate; org.drip.analytics.cashflow.CompositePeriod cp = containingPeriod (iAdjustedDate); if (null == cp) throw new java.lang.Ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double notional (\n\t\tfinal int iDate1,\n\t\tfinal int iDate2)\n\t\tthrows java.lang.Exception\n\t{\n\t\torg.drip.analytics.cashflow.CompositePeriod cp = containingPeriod (iDate1);\n\n\t\tif (null == cp || !cp.contains (iDate2))\n\t\t\tthrow new java.lang.Exception (\"Stream::notional => Invalid Inputs\");...
[ "0.5830215", "0.57499677", "0.5525641", "0.542927", "0.5363897", "0.5356984", "0.53260565", "0.52934283", "0.5243731", "0.52255666", "0.5176874", "0.51702315", "0.51647896", "0.51533943", "0.5146923", "0.51226383", "0.5115386", "0.5115037", "0.50323945", "0.5010665", "0.50013...
0.64200115
0
Retrieve the Notional aggregated over the Date Pairs
public double notional ( final int iDate1, final int iDate2) throws java.lang.Exception { org.drip.analytics.cashflow.CompositePeriod cp = containingPeriod (iDate1); if (null == cp || !cp.contains (iDate2)) throw new java.lang.Exception ("Stream::notional => Invalid Inputs"); org.drip.quant.common.Arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pair<Date, Date> getForDatesFrame();", "public DateSavingsSumMap toModelType() {\n DateSavingsSumMap modelDssm = new DateSavingsSumMap();\n this.mappings.forEach(\n jdsp -> {\n try {\n modelDssm.add(jdsp.getDate(), jdsp.getSavings());\n } ...
[ "0.5755842", "0.4892607", "0.4818243", "0.48146477", "0.48043513", "0.4777092", "0.47763124", "0.47581333", "0.47503123", "0.4745598", "0.47343662", "0.46821913", "0.4674756", "0.46663922", "0.46275982", "0.46092623", "0.46051797", "0.45939755", "0.45929897", "0.45900938", "0...
0.48002407
5
Retrieve the Effective Date
public org.drip.analytics.date.JulianDate effective() { try { return new org.drip.analytics.date.JulianDate (_lsPeriod.get (0).startDate()); } catch (java.lang.Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getEffectiveDate() {\r\n return effectiveDate;\r\n }", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "@gw.int...
[ "0.7494322", "0.7490041", "0.7490041", "0.7490041", "0.74815875", "0.71854234", "0.7106792", "0.70981103", "0.7006767", "0.69009805", "0.684399", "0.6820626", "0.67946416", "0.66917694", "0.6679812", "0.6650035", "0.6605467", "0.66026855", "0.6564741", "0.65444803", "0.650811...
0.64407796
22
Retrieve the Maturity Date
public org.drip.analytics.date.JulianDate maturity() { try { return new org.drip.analytics.date.JulianDate (_lsPeriod.get (_lsPeriod.size() - 1).endDate()); } catch (java.lang.Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int finalMaturityDate()\n\t{\n\t\treturn _iFinalMaturityDate;\n\t}", "public DateInfo getDate() {\r\n\t\treturn new DateInfo(super.getDate());\r\n\t\t//return new DateInfo(maturityDate);\r\n\t}", "ValuationDate getValuationDate();", "String getCoverageExpirationDate(Record inputRecord);", "public in...
[ "0.7634364", "0.68771505", "0.6712855", "0.66949147", "0.6669534", "0.6624322", "0.65533787", "0.65019983", "0.64803207", "0.647726", "0.6417102", "0.64076227", "0.63452256", "0.63313055", "0.63313055", "0.63313055", "0.62907857", "0.6284071", "0.6279999", "0.622612", "0.6217...
0.74637014
1
Retrieve the First Coupon Pay Date
public org.drip.analytics.date.JulianDate firstCouponDate() { try { return new org.drip.analytics.date.JulianDate (_lsPeriod.get (0).endDate()); } catch (java.lang.Exception e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final BondStream FromFirstPenultimateCouponDate (\n\t\tfinal int iMaturityDate,\n\t\tfinal int iEffectiveDate,\n\t\tfinal int iFinalMaturityDate,\n\t\tfinal int iFirstCouponDate,\n\t\tfinal int iPenultimateCouponDate,\n\t\tfinal int iFreq,\n\t\tfinal double dblCoupon,\n\t\tfinal java.lang.String strC...
[ "0.5973829", "0.59540784", "0.58748674", "0.57953525", "0.5738173", "0.5720867", "0.57201076", "0.5711842", "0.56501377", "0.5631325", "0.5630206", "0.5584244", "0.55762225", "0.55762225", "0.55603063", "0.55589443", "0.55451745", "0.5537134", "0.5531814", "0.5510804", "0.547...
0.7654367
0
Retrieve the Coupon Currency
public java.lang.String couponCurrency() { return _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Currency getCurrency();", "public Currency getCurrency();", "String getTradeCurrency();", "String getSettlementCurrency();", "public String getCurrency() {\n return this.currency;\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public Pokemon.Currency getCurrency() {...
[ "0.7571733", "0.73094165", "0.71618336", "0.7159344", "0.70715064", "0.7050811", "0.7045247", "0.6943295", "0.6923539", "0.6923539", "0.6923539", "0.6923539", "0.6920498", "0.69200253", "0.6911765", "0.6904372", "0.6890791", "0.68834555", "0.686384", "0.68291974", "0.6797878"...
0.7669337
0
Retrieve the Pay Currency
public java.lang.String payCurrency() { return _lsPeriod.get (_lsPeriod.size() - 1).payCurrency(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Currency getCurrency();", "String getTradeCurrency();", "public Currency getCurrency();", "String getSettlementCurrency();", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public String getCurrency() {\n return this.currency;\n }", "public String getCurrency() {\r\n ...
[ "0.8309743", "0.8060724", "0.79364353", "0.7788456", "0.7683507", "0.7654515", "0.75904125", "0.75800365", "0.75684303", "0.7562418", "0.7562418", "0.7562418", "0.7562418", "0.7521331", "0.7444008", "0.74006164", "0.73917025", "0.7385094", "0.73603415", "0.73397785", "0.73197...
0.7800341
3
Retrieve the Cash Flow Currency Set
public java.util.Set<java.lang.String> cashflowCurrencySet() { java.util.Set<java.lang.String> setCcy = new java.util.HashSet<java.lang.String>(); setCcy.add (payCurrency()); setCcy.add (couponCurrency()); return setCcy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Set<String> getCurrencySet() {\n Set<String> currencySet = new HashSet<>();\n for (int i= 0; i<getDataBase().length;i++){\n currencySet.add(getDataBase()[i][0]);\n }\n return Collections.synchronizedSet(currencySet);\n }", "String getSettlementCur...
[ "0.67794895", "0.6603694", "0.6522162", "0.64178836", "0.638596", "0.62932265", "0.6282132", "0.62177587", "0.6214017", "0.6065217", "0.60483265", "0.6012709", "0.5999494", "0.59984475", "0.5984072", "0.59840405", "0.5968861", "0.5952953", "0.5932899", "0.5930334", "0.5928617...
0.766823
0
Retrieve the Stream Name
public java.lang.String name() { org.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel(); java.lang.String strTrailer = "::{" + effective() + "->" + maturity() + "}"; if (null != floaterLabel) return "FLOATSTREAM::" + payCurrency() + "::" + floaterLabel.fullyQualifiedName() + strTrailer; ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getStreamName();", "public String getStreamNameString() {\n return streamName;\n }", "public String getName() {\n\treturn (super.getName() + \".\" + stream.getName());\n }", "public String getVideoStreamName() {\n return videoStreamName;\n }", "public String getName() {\n\t\treturn ...
[ "0.91045964", "0.8553889", "0.7879215", "0.68989617", "0.64311546", "0.6316381", "0.6279697", "0.6267219", "0.62059844", "0.6142073", "0.6108339", "0.6065308", "0.6030241", "0.59996676", "0.59743726", "0.59728014", "0.5971334", "0.5933252", "0.5874681", "0.58746314", "0.58503...
0.0
-1
Get the Coupon Metrics for the period corresponding to the specified accrual end date
public org.drip.analytics.output.CompositePeriodCouponMetrics coupon ( final int iAccrualEndDate, final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs) { if (null == valParams) return null; org.drip.analytics.cashflow.CompositePeriod cp = cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CostItem[] getCostReport(String start, String end) throws CostManagerException;", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "public JFreeChart getPieChart(String start, String end) throws CostManagerException;", "List<Coupon> findB...
[ "0.5494645", "0.54592526", "0.5407877", "0.5356687", "0.5211007", "0.51335466", "0.5057822", "0.5057822", "0.5036173", "0.5008802", "0.49506634", "0.49209055", "0.48347366", "0.48345935", "0.4820547", "0.48131064", "0.48080334", "0.48079365", "0.4788379", "0.4788379", "0.4771...
0.6121659
0
Generate the Calibration Quote Set corresponding to the specified Latent State Array
public org.drip.product.calib.ProductQuoteSet calibQuoteSet ( final org.drip.state.representation.LatentStateSpecification[] aLSS) { try { return null == floaterLabel() ? new org.drip.product.calib.FixedStreamQuoteSet (aLSS) : new org.drip.product.calib.FloatingStreamQuoteSet (aLSS); } catch (java.lang.Ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long[] getState() {\n return new long[] {(long)Cg0, (long)Cg1, (long)Cg2,\n (long)Cg3, (long)Cg4, (long)Cg5};\n }", "public Sarsa(int states, int actions, ExplorationPolicy explorationPolicy, boolean randomize) {\n this.states = states;\n this.actions = action...
[ "0.5106366", "0.49770626", "0.49656534", "0.47379303", "0.47201025", "0.46621522", "0.4617894", "0.4594368", "0.45778507", "0.4559568", "0.45261452", "0.45109373", "0.44938856", "0.44840732", "0.44460425", "0.44299808", "0.44200402", "0.44178247", "0.4411152", "0.439015", "0....
0.5243337
0
Retrieve the Stream Coupon Basis
public double basis() { return _lsPeriod.get (0).basis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIncomeStreamFinancialCoaCode() {\n return incomeStreamFinancialCoaCode;\n }", "int getCouponStat();", "int getCouponType();", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "@java.lang.Override\n public ...
[ "0.6218416", "0.5815287", "0.5766331", "0.563502", "0.55866957", "0.55527806", "0.5542095", "0.5542095", "0.5522188", "0.54943556", "0.5486817", "0.5486817", "0.54700553", "0.54561204", "0.5452309", "0.54394954", "0.5420144", "0.538395", "0.5367708", "0.5367398", "0.5337157",...
0.0
-1
Generate a Value Map for the Stream
public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomiza...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n void convertStreamBean2MapMethod() {\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream();\r\n\t\t// Convert stream -> Map<Object, Object> -> Map<String, TransactionBean>\r\n\t\tMap<String, TransactionBean> afterStreamMap = (Map<String, TransactionBean>)transactionBeanStream.pe...
[ "0.61544764", "0.6038352", "0.5851085", "0.5802548", "0.5729786", "0.5726409", "0.5696489", "0.56448215", "0.56229496", "0.56027436", "0.5601077", "0.5597323", "0.55518824", "0.54577947", "0.5447762", "0.5424156", "0.5409739", "0.54004914", "0.53968656", "0.53870463", "0.5383...
0.0
-1
Retrieve the set of the implemented measures
public java.util.Set<java.lang.String> availableMeasures() { java.util.Set<java.lang.String> setstrMeasures = new java.util.TreeSet<java.lang.String>(); setstrMeasures.add ("AccrualCoupon"); setstrMeasures.add ("Accrued"); setstrMeasures.add ("Accrued01"); setstrMeasures.add ("CleanDV01"); setstrMeasu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Set<Measure> supportedMeasures();", "@Override\n public List<String> getMeasures() {\n return measures;\n }", "@Override\n public Set<Measure> supportedMeasures() {\n return ImmutableSet.of();\n }", "@Override\n public Enumeration<String> enumerateMeasures() {\n\n Vector...
[ "0.8256186", "0.8220706", "0.77369344", "0.7520789", "0.65568066", "0.6492008", "0.64353216", "0.63785416", "0.63099533", "0.6252851", "0.6224013", "0.61058694", "0.60474056", "0.60455203", "0.59263134", "0.5905402", "0.5901735", "0.5867111", "0.58165926", "0.57988834", "0.57...
0.7814511
2
Compute the PV for the specified Market Parameters
public double pv ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqc, final org.drip.param.valuation.ValuationCustomizationParams vcp) throws java.lang.Exception { if (null == va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double couponPV()\n\t{\n\t\treturn _dblCouponPV;\n\t}", "@Test\n public void test_parameterSensitivity() {\n SimplePriceIndexValues test = SimplePriceIndexValues.of(US_CPI_U, VAL_DATE, CURVE_NOFIX, USCPI_TS);\n InflationRateSensitivity point =\n InflationRateSensitivity.of(PriceIndexObservat...
[ "0.57223845", "0.568636", "0.5402192", "0.5402192", "0.53874844", "0.5357304", "0.5326472", "0.5324077", "0.5302959", "0.5244701", "0.52299964", "0.5186419", "0.5170881", "0.5161554", "0.5157274", "0.5147524", "0.5141194", "0.5128022", "0.5090648", "0.5084561", "0.50800025", ...
0.4783883
47
Generate the State Loading Constraints for the Forward Latent State
public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomizatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testLPState()\n \t{\n \t\tsolver.buildLPState();\n \t\tassertTrue(solver.hasLPState());\n \t\t\n \t\tfinal int nLPVars = solver.getNumberOfLPVariables();\n \t\tassertTrue(nLPVars >= 0);\n \t\t\n \t\tfinal double[] objective = solver.getObjectiveFunction();\n \t\tassertEquals(nLPVars, objective.length);...
[ "0.56771815", "0.5336378", "0.5329037", "0.52981037", "0.5233846", "0.5115891", "0.5102483", "0.5049701", "0.5023344", "0.4993071", "0.49926987", "0.49572027", "0.4952929", "0.49195555", "0.49186864", "0.49076033", "0.48895702", "0.48561865", "0.4846372", "0.4840333", "0.4838...
0.0
-1
Generate the State Loading Constraints for the Funding Latent State
public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomizatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testLPState()\n \t{\n \t\tsolver.buildLPState();\n \t\tassertTrue(solver.hasLPState());\n \t\t\n \t\tfinal int nLPVars = solver.getNumberOfLPVariables();\n \t\tassertTrue(nLPVars >= 0);\n \t\t\n \t\tfinal double[] objective = solver.getObjectiveFunction();\n \t\tassertEquals(nLPVars, objective.length);...
[ "0.5656169", "0.55079234", "0.5472892", "0.54528224", "0.5403826", "0.5343341", "0.52920365", "0.52351385", "0.52276003", "0.51735127", "0.5171785", "0.51133263", "0.5094659", "0.5023714", "0.50145715", "0.50100875", "0.50091165", "0.49993885", "0.498671", "0.4979749", "0.497...
0.0
-1
Generate the State Loading Constraints for the Merged Forward/Funding Latent State
public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCusto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solveGame4() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, I...
[ "0.5495977", "0.53509593", "0.53213596", "0.5274447", "0.5121231", "0.5084851", "0.50842166", "0.5065969", "0.5036651", "0.49918306", "0.49856636", "0.49622568", "0.49457937", "0.49094322", "0.48996636", "0.48849663", "0.48826113", "0.4863468", "0.48526835", "0.48257053", "0....
0.0
-1
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Nonmerged FX Curve FX Forward Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
public org.drip.state.estimator.PredictorResponseWeightConstraint fxPRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomizationPara...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void calculate(double[] x) {\n\n double prob = 0.0; // the log prob of the sequence given the model, which is the negation of value at this point\n Triple<double[][], double[][], double[][]> allParams = separateWeights(x);\n double[][] linearWeights = allParams.first();\n double[][]...
[ "0.49675936", "0.48108283", "0.48009998", "0.47816962", "0.47122014", "0.4711302", "0.46626073", "0.46270412", "0.46154404", "0.45259142", "0.45154217", "0.4514669", "0.4501271", "0.4466499", "0.4449678", "0.4441388", "0.4426709", "0.44215813", "0.4407837", "0.4400905", "0.43...
0.47509235
4
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Nonmerged Govvie Curve Yield Latent State from the Component's Cash Flows. The Constraints here typically correspond to Date/Cash Flow pairs and the corresponding leading PV.
public org.drip.state.estimator.PredictorResponseWeightConstraint govviePRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomization...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateCost() throws StandardException {\n\n double baseTableSelectivity = computePhaseSelectivity(selectivityHolder,QualifierPhase.BASE);\n double filterBaseTableSelectivity = computePhaseSelectivity(selectivityHolder,QualifierPhase.BASE,QualifierPhase.FILTER_BASE);\n double proj...
[ "0.49196377", "0.4844701", "0.47751012", "0.47480255", "0.473246", "0.47095716", "0.4670785", "0.46374092", "0.45839107", "0.45750362", "0.45744944", "0.45688927", "0.45573348", "0.45386213", "0.4537088", "0.45075026", "0.4479291", "0.44749618", "0.44473693", "0.44356215", "0...
0.44341025
21
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Nonmerged Volatility Curve Volatility Latent State from the Component's Cash Flows. The Constraints here typically correspond tovDate/Cash Flow pairs and the corresponding leading PV.
public org.drip.state.estimator.PredictorResponseWeightConstraint volatilityPRWC ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomiza...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void InitializeConstraints(boundkey[] bkc, double[] blc, NodesVector nvector, PipesVector pvector,\n\t\t\tTapsVector tvector, double outflow, double PrixMax, double lcom) {\n\t\tNodes nodes;\n\t\tPipes pipes;\n\t\tTaps taps;\n\n\t\t/* Contraintes sur les Nodes - taps */\n\t\tfor (int i = 0; i < (NbNodes - N...
[ "0.49333188", "0.47457168", "0.47104055", "0.4622128", "0.45666656", "0.45471382", "0.45235628", "0.44968522", "0.4460658", "0.44345257", "0.44276357", "0.4417899", "0.43890798", "0.43724954", "0.43718514", "0.43661314", "0.43578488", "0.4304602", "0.42962167", "0.4291844", "...
0.48803034
1
Generate the Jacobian of the Dirty PV to the Manifest Measure
public org.drip.quant.calculus.WengertJacobian jackDDirtyPVDManifestMeasure ( final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.drip.param.valuation.ValuationCustomizationP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Jacobian {\n\n /**\n * Fetch an element in the jacobian matrix. Bounds checking is up to the implementer.\n * @param row Row id in matrix. Number from 0 to getRowSize()-1\n * @param col Column id in matrix. Number from 0 to getColumnSize()-1\n */\n double get(int row,int col)...
[ "0.53433704", "0.52052104", "0.51187766", "0.49703133", "0.49398366", "0.48711008", "0.48141837", "0.47640523", "0.46892503", "0.4656957", "0.46299797", "0.4620345", "0.4584311", "0.45753193", "0.45687208", "0.45463687", "0.45293447", "0.45282608", "0.45176125", "0.4516728", ...
0.4954907
4
Generate the microJacobian of the Manifest Measure to the Discount Factor
public org.drip.quant.calculus.WengertJacobian manifestMeasureDFMicroJack ( final java.lang.String strManifestMeasure, final org.drip.param.valuation.ValuationParams valParams, final org.drip.param.pricer.CreditPricerParams pricerParams, final org.drip.param.market.CurveSurfaceQuoteContainer csqs, final org.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getSuffixCValue(int sufIndex){\n long result = 0;\n for(int index = sufIndex; index<number;index++){\n result = result^array[index];\n }\n return result;\n }", "public static void matrixDis()\n\t{\n\t\t\n\t\tclade = clad[k];\n\t\t//System.err.println(\"\\n\\...
[ "0.5360259", "0.5023242", "0.500104", "0.49573663", "0.4949933", "0.49432126", "0.48971167", "0.48811853", "0.4871537", "0.48403797", "0.47445926", "0.4738086", "0.47335047", "0.47316965", "0.4728945", "0.47152084", "0.4708405", "0.470762", "0.4705067", "0.47036296", "0.46952...
0.5110159
1
Takes a String s in camel class and splits it by injecting a space Taken from polygenelubricants answer on
public static String splitCamelCase(String s) { return s.replaceAll( String.format("%s|%s|%s", "(?<=[A-Z])(?=[A-Z][a-z])", "(?<=[^A-Z])(?=[A-Z])", "(?<=[A-Za-z])(?=[^A-Za-z])" ), " " )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String splitCamelCase(String s) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"),\n \" \").replaceAll(\"[-_]\", \"\").r...
[ "0.7494371", "0.7052162", "0.6790428", "0.6580964", "0.63633204", "0.63013303", "0.6199556", "0.6185821", "0.6183761", "0.6171002", "0.6166158", "0.61357725", "0.6087131", "0.60428196", "0.60142267", "0.6008457", "0.59993404", "0.59847015", "0.59598386", "0.5925488", "0.58839...
0.7373392
1
Takes a String s in camel class and splits it by injecting the supplied replacement Taken from polygenelubricants answer on
public static String splitCamelCase(String s, String replacement) { return s.replaceAll( String.format("%s|%s|%s", "(?<=[A-Z])(?=[A-Z][a-z])", "(?<=[^A-Z])(?=[A-Z])", "(?<=[A-Za-z])(?=[^A-Za-z])" ), replaceme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String splitCamelCase(String s) {\n return s.replaceAll(\n String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\",\n \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"),\n \" \").replaceAll(\"[-_]\", \"\").r...
[ "0.6464311", "0.6332634", "0.61056125", "0.5949995", "0.5846709", "0.5819106", "0.5665756", "0.560157", "0.5539888", "0.5405675", "0.5342492", "0.5276182", "0.52368367", "0.52094054", "0.51906765", "0.5180283", "0.5176807", "0.5147173", "0.51232207", "0.5039645", "0.50230634"...
0.7052626
0
Removes all line break characters from a supplied string
public static String removeLineBreaks(String string) { String[] lines = string.split("\r\n|\r|\n"); String oneLiner = ""; for (String line : lines) { oneLiner += line; } return oneLiner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String removeLineBreak(String text){\n\t\ttext = text.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\treturn text;\n\t}", "private String trimStringNewline(String text) {\n while (text.endsWith(\"\\n\")) {\n text = text.substring(0, text.length() - 1);\n }\n \n r...
[ "0.80699694", "0.70172185", "0.6753621", "0.6749205", "0.6623076", "0.65002054", "0.6405545", "0.63638586", "0.6330869", "0.6219904", "0.6167412", "0.61453533", "0.6057256", "0.6045583", "0.6042984", "0.60174066", "0.6012843", "0.5987661", "0.59285647", "0.5924761", "0.590565...
0.7703012
1
Counts the number of occurences of a char within a string Taken from Jon Skeets answer from
public static int countOccurrences(String haystack, char needle) { int count = 0; for (int i=0; i < haystack.length(); i++) { if (haystack.charAt(i) == needle) { count++; } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int char_count(String y, char c){\r\n\tint count = 0;\r\n\tfor(int i = 0; i < y.length(); i++){\r\n\t\tif(y.charAt(i) == c){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t}\r\n\treturn count;\r\n}", "private static int countOccurrences(String input, char c) {\n int count = 0;\n for (int i = 0; i < ...
[ "0.8046001", "0.8014129", "0.7821778", "0.77220386", "0.76944315", "0.7681828", "0.76259327", "0.7587956", "0.74850714", "0.7475265", "0.7451532", "0.7360138", "0.7309561", "0.7306047", "0.72852254", "0.728433", "0.7179896", "0.7168203", "0.71676004", "0.71439993", "0.7126994...
0.69953656
25
Prints to console the occurences of each regex match within a string of text Taken from Jean Logeart's answer from
public static void printMatches(String text, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(text); // Check all occurrences while (matcher.find()) { System.out.print("Start index: " + matcher.start()); System.out.print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printMatches(String text, String regex) {\n\t\tvar matches = getMatches(text, regex);\n\t\tconsole.printf(\"%10s -> %2d matches: %s %n\", replaceSymbols(regex), matches.size(), matches);\n\t}", "public static void showMatches(String text, String regex) {\n\t\t// create regex and matcher\n\t\tP...
[ "0.7732845", "0.7301418", "0.6801707", "0.66742915", "0.6075175", "0.6071267", "0.60184515", "0.59916633", "0.5723449", "0.5597834", "0.5578458", "0.5559976", "0.55451745", "0.55279005", "0.5477942", "0.546708", "0.5437158", "0.54360574", "0.5434503", "0.5428034", "0.53912437...
0.7838839
0
Returns all the RegexResult objects for regex matches within a string
public static ArrayList<RegexResult> getMatches(String text, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(text); // Check all occurrences ArrayList<RegexResult> results = new ArrayList<>(); while (matcher.find()) { resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DynamicObject getMatchResult(TruffleObject result, String inputStr) {\n return JSArray.createLazyRegexArray(context, regexResultAccessor.groupCount(result), result, inputStr);\n }", "public static ArrayList<String> getMatches(String text, String regex) {\n\t\tArrayList<String> matches =...
[ "0.65765435", "0.6567474", "0.62210864", "0.6119133", "0.6119133", "0.6009622", "0.59467083", "0.5900778", "0.58987087", "0.5866742", "0.58558315", "0.57648826", "0.574516", "0.56033504", "0.55900407", "0.5468816", "0.54561144", "0.5452806", "0.54415035", "0.5412439", "0.5406...
0.73669624
0
Taken from CraigTP's answer on StackOverflow Works for negative and decimal numbers but not international
public static boolean isNumericRegex(String str) { return str.matches("-?\\d+(\\.\\d+)?"); //match a number with optional '-' and decimal. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String convertEnglishNumber(String number);", "public static void main( String[] args ) {\n System.out.println(NumUtil.format4DecimalPoint(1));\n System.out.println(NumUtil.format4DecimalPoint(1.1));\n System.out.println(NumUtil.format4DecimalPoint(1.12));\n System.out.println(NumUtil.format...
[ "0.65394247", "0.63646406", "0.59206754", "0.5881485", "0.5799803", "0.5755947", "0.57297724", "0.5697359", "0.56487477", "0.5635813", "0.56229794", "0.56125", "0.55878836", "0.55092907", "0.5506636", "0.54885393", "0.54787654", "0.5473533", "0.5434447", "0.54258186", "0.5423...
0.0
-1
Taken from CraigTP's answer on StackOverflow
public static boolean isNumericInternational(String str) { try { double d = Double.parseDouble(str); } catch(NumberFormatException nfe) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "protected boolean func_70814_o() { return true; }", "public void func_70305_f() {}", "public abstract int mo9754s();", "@Override\n public void func_104112_b() {\n \n }", "public abstract String mo13682d();", "private void kk12() {\n\n\t}", "void mo57277b(...
[ "0.5463842", "0.52122253", "0.51914793", "0.51697344", "0.5144335", "0.50483245", "0.50391316", "0.5034999", "0.5028256", "0.50192255", "0.50068474", "0.49757388", "0.49706703", "0.49445093", "0.49212712", "0.48753402", "0.48738697", "0.48714086", "0.48661065", "0.48617268", ...
0.0
-1
Taken from CraigTP's answer on StackOverflow Does not work for numbers that are negative or decimals
public static boolean isNumeric(String str) { return str.chars().allMatch( Character::isDigit ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main( String[] args ) {\n System.out.println(NumUtil.format4DecimalPoint(1));\n System.out.println(NumUtil.format4DecimalPoint(1.1));\n System.out.println(NumUtil.format4DecimalPoint(1.12));\n System.out.println(NumUtil.format4DecimalPoint(1.123));\n System.out.println(NumUtil.for...
[ "0.64957696", "0.6137498", "0.6043085", "0.6011973", "0.59220195", "0.5879067", "0.5875702", "0.58572125", "0.5852673", "0.58503664", "0.58236146", "0.58050126", "0.57940704", "0.57748014", "0.5769493", "0.5744782", "0.57385045", "0.5689715", "0.56781", "0.5668533", "0.566853...
0.0
-1
TODO: save step state in the descripor
public void onButtonTouched(int index, View anchor ){ WorkflowStepDescriptor descr = descriptors.get(index); descr.status_completed = true; FutureVisitActivity.this.showMessageDialog(index, anchor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStepDescription()\r\n\t{\r\n\t\treturn stepDescription;\r\n\t}", "public java.lang.String getStepDescription() {\n return stepDescription;\n }", "public void setStepDescription(String stepDescription)\r\n\t{\r\n\t\tthis.stepDescription = stepDescription;\r\n\t}", "@Override\n pu...
[ "0.72575194", "0.6906461", "0.6684224", "0.66805255", "0.6600281", "0.6600281", "0.65801305", "0.65801305", "0.65656835", "0.6559091", "0.6549611", "0.65338", "0.6489475", "0.6395018", "0.63893384", "0.63540596", "0.63540596", "0.6338217", "0.6325045", "0.62881386", "0.62845"...
0.0
-1
15, only letters and numbers, not simbols
public RegistrationRutPage(WebDriver driver) { super(driver); PageFactory.initElements(driver, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true...
[ "0.59685236", "0.59402144", "0.5880569", "0.5849386", "0.56389856", "0.5616063", "0.5588638", "0.55811775", "0.55776256", "0.5560203", "0.5560039", "0.55508304", "0.5547023", "0.55462235", "0.55400115", "0.55097795", "0.5505419", "0.550337", "0.5491488", "0.5450988", "0.54341...
0.0
-1
clicking on the buttons
public RegistrationRutPage clickOnAddUserButton() { Log.info("Clicking on Add user button"); clickElement(addUserButton); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "public void buttonClicked();", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "private void button1MouseClicked(MouseEvent e) {\n\t}", "public void click(){\n\t\t\n\tfor(MouseListener...
[ "0.71963924", "0.7182013", "0.717067", "0.71462506", "0.71356565", "0.7122098", "0.6996352", "0.6990564", "0.6989841", "0.6968635", "0.69476354", "0.69194686", "0.68894464", "0.68520224", "0.68369675", "0.6835636", "0.67991537", "0.6792789", "0.67749774", "0.6770518", "0.6751...
0.0
-1
Sets upp a clip for treePane
private void initializeTreePane() { Rectangle clipRect = new Rectangle(treePane.getWidth(), treePane.getHeight()); clipRect.heightProperty().bind(treePane.heightProperty()); clipRect.widthProperty().bind(treePane.widthProperty()); treePane.setClip(clipRect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PaneOrganizer() {\n\t\t\n\t\t_root = new BorderPane();\n\t\t_game = new Game(_root);\n\t\tthis.setupButton();\n\t\t\n\t}", "public void setClip(Shape clip)\r\n\t{\r\n\t\tg.setClip(clip);\r\n\t}", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(n...
[ "0.6346305", "0.5843613", "0.58298177", "0.5812045", "0.5780987", "0.5775481", "0.5750647", "0.5733432", "0.57230175", "0.57033277", "0.5699892", "0.56799316", "0.56541157", "0.5620668", "0.561723", "0.5610482", "0.5574504", "0.55719656", "0.55620307", "0.55213666", "0.547703...
0.7857707
0
Sets upp and initializes the spinner input for branchLimit
private void initializeBranchLimitSpinner() { SpinnerValueFactory<Integer> valueFactory; valueFactory = new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 20, inputN){ @Override public void decrement(int steps) { final int min = getMin(); final int currentV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initSpinner() {\n }", "public void setupPrioritySpinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),\n R.array.prirority_level_list, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.s...
[ "0.61726886", "0.6088473", "0.6071019", "0.60037965", "0.59693265", "0.5960306", "0.58440197", "0.58242774", "0.5822374", "0.5767914", "0.5706264", "0.5686165", "0.5664048", "0.5654706", "0.5650077", "0.56451845", "0.56361026", "0.5616766", "0.55894756", "0.5582324", "0.55769...
0.8079941
0
The method used to clear and build a tree
@FXML private void renderTree() { unmountTree(); buildTree(inputN, treePane.getWidth() / 2, treePane.getHeight(), Math.toRadians(inputTrunkAngle), inputBranchLength); mountTree(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n tree.clear();\n }", "public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}", "public TreeBuilder() {\n\t\troot = null;\n\t}", "@Override\r\n public void clear(){\r\n root = null;\r\n }", "public void clear(){\n ...
[ "0.7647076", "0.7209922", "0.7155653", "0.7146795", "0.71353114", "0.7130077", "0.7118458", "0.71030825", "0.71009463", "0.70842725", "0.70753175", "0.70702636", "0.7063944", "0.7057031", "0.70186317", "0.6994936", "0.69767404", "0.6969378", "0.6969378", "0.6951991", "0.69519...
0.0
-1
Renders the slider that controls the inputBranchWitherRatio field
@FXML private void renderBranchWitherSlider() { renderSlider(0, 1, inputBranchWitherRatio, (e) -> { inputBranchWitherRatio = slider.getValue(); renderTree(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderBranchGrowthRatioSlider() {\n renderSlider(0.5, 1, inputBranchGrowthRatio, (e) -> {\n inputBranchGrowthRatio = slider.getValue();\n renderTree();\n });\n }", "@FXML\n private void renderBranchAngleSlider() {\n renderSlider(1, 30, inpu...
[ "0.81464815", "0.7562315", "0.74384034", "0.62105924", "0.59863317", "0.5842651", "0.5821956", "0.57995373", "0.5765713", "0.5739573", "0.5712611", "0.5696003", "0.56489456", "0.56008995", "0.5599106", "0.5573541", "0.5533203", "0.5529043", "0.55173427", "0.5466139", "0.54492...
0.8416763
0
Renders the slider that controls the inputBranchLength field
@FXML private void renderBranchLengthSlider() { renderSlider(1, 100, inputBranchLength, (e) -> { inputBranchLength = slider.getValue(); renderTree(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderBranchGrowthRatioSlider() {\n renderSlider(0.5, 1, inputBranchGrowthRatio, (e) -> {\n inputBranchGrowthRatio = slider.getValue();\n renderTree();\n });\n }", "@FXML\n private void renderBranchWitherSlider() {\n renderSlider(0, 1, inpu...
[ "0.71128684", "0.69999975", "0.6957884", "0.57808393", "0.5700991", "0.5656721", "0.54315734", "0.54163754", "0.53798735", "0.5341865", "0.52874964", "0.5284961", "0.5252166", "0.52426", "0.516793", "0.51652676", "0.5124004", "0.51209766", "0.50761706", "0.50745875", "0.50648...
0.8361786
0
Renders the slider that controls the inputBranchGrowthRatio field
@FXML private void renderBranchGrowthRatioSlider() { renderSlider(0.5, 1, inputBranchGrowthRatio, (e) -> { inputBranchGrowthRatio = slider.getValue(); renderTree(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderBranchWitherSlider() {\n renderSlider(0, 1, inputBranchWitherRatio, (e) -> {\n inputBranchWitherRatio = slider.getValue();\n renderTree();\n });\n }", "@FXML\n private void renderBranchLengthSlider() {\n renderSlider(1, 100, inputBran...
[ "0.7813283", "0.7500392", "0.74079984", "0.57754546", "0.5659731", "0.5554458", "0.5464184", "0.5448314", "0.5398842", "0.5363041", "0.5321663", "0.53177434", "0.53113294", "0.53094125", "0.53082395", "0.52994835", "0.5235362", "0.52122146", "0.52064896", "0.5158338", "0.5156...
0.85692126
0
Renders the slider that controls the inputBranchAngle field
@FXML private void renderBranchAngleSlider() { renderSlider(1, 30, inputBranchAngle, (e) -> { inputBranchAngle = slider.getValue(); renderTree(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderBranchWitherSlider() {\n renderSlider(0, 1, inputBranchWitherRatio, (e) -> {\n inputBranchWitherRatio = slider.getValue();\n renderTree();\n });\n }", "@FXML\n private void renderBranchGrowthRatioSlider() {\n renderSlider(0.5, 1, inpu...
[ "0.7263239", "0.7179494", "0.71741235", "0.708682", "0.60620487", "0.5465874", "0.536721", "0.53148764", "0.5262232", "0.5258807", "0.51618713", "0.514601", "0.51015097", "0.50655574", "0.50556266", "0.5054633", "0.50312597", "0.50077367", "0.49805763", "0.4978545", "0.496996...
0.84581774
0
Renders the slider that controls the inputTrunkAngle field
@FXML private void renderTrunkAngleSlider() { renderSlider(-180, 0, inputTrunkAngle, (e) -> { inputTrunkAngle = slider.getValue(); renderTree(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderBranchAngleSlider() {\n renderSlider(1, 30, inputBranchAngle, (e) -> {\n inputBranchAngle = slider.getValue();\n renderTree();\n });\n }", "@FXML\n void angleSliderEvent() {\n \tint value = (int) angleSlider.getValue();\n \tangleText.s...
[ "0.7127012", "0.6531134", "0.60295886", "0.5923007", "0.5698197", "0.56713545", "0.5637436", "0.5626394", "0.5520627", "0.5428475", "0.5427872", "0.54096836", "0.5381897", "0.5330204", "0.53277165", "0.52696455", "0.52613765", "0.52575505", "0.52549887", "0.5225345", "0.52020...
0.82781607
0
A generic method for rendering sliders with an event on mouse release
private void renderSlider(double min, double max, double value, EventHandler eventHandler) { unmountSlider(); buildSlider(min, max, value); slider.addEventHandler(MouseEvent.MOUSE_RELEASED, eventHandler); mountSlider(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseReleaseHandler(MouseEvent e) {\n\n\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void onMouseReleased(MouseEvent event, DrawingView dv) {\n }", "@Override\n public void mouseRe...
[ "0.6847691", "0.68272895", "0.68209857", "0.67379", "0.67332166", "0.6728356", "0.6726712", "0.67183656", "0.670848", "0.670848", "0.67070156", "0.6705201", "0.6705201", "0.6705201", "0.6705201", "0.6705201", "0.66999835", "0.66999835", "0.66999835", "0.66999835", "0.6694474"...
0.7178929
0
Unmounts tree from treePane
private void unmountTree() { if (tree != null) { treePane.getChildren().clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void removedFromWidgetTree();", "private void mountTree() {\n if (tree != null) {\n treePane.getChildren().addAll(tree);\n }\n }", "public void removeFromRoot(){\n Main.getRootPlayGround().getChildren().remove(imageView);\n }", "private void unmountSlider...
[ "0.63570833", "0.6227573", "0.5964328", "0.59201646", "0.58464634", "0.5807764", "0.57793176", "0.5680599", "0.56556475", "0.56276566", "0.56223804", "0.56189305", "0.55402344", "0.5508049", "0.55004215", "0.54990774", "0.5466417", "0.54606736", "0.545505", "0.5368895", "0.53...
0.8659417
0
initializes the tree array and populates it
private void buildTree(int n, double x, double y, double a, double branchLength) { tree = new ArrayList<>(); populateTree(n, x, y, a, branchLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] initializeTree() {\n BST myTree = new BST();\n int[] myArray = {0, 52, 33, 75, 21, 40, 64, 86, 15, 27, 37, 46, 58, 70, 81, 89, 12, 18, 24, 30, 35, 39, 43, 49, 55, 61, 67, 73, 79, 83, 87, 92};\n for (int i = 1; i < myArray.length; i++) {\n myTree.addItem(myArray[i]);\n ...
[ "0.7268921", "0.7044916", "0.7042618", "0.69291246", "0.68158394", "0.68158394", "0.6808646", "0.6805295", "0.67891484", "0.6656674", "0.65560013", "0.6548724", "0.6520185", "0.6495217", "0.64779013", "0.63851863", "0.63804877", "0.63701475", "0.6325351", "0.63131696", "0.631...
0.6354159
18
Generic method for "curving" the branch wither ratio
private double curveBranchWitherRatio(int n){ return Math.pow(((double)n / (double)inputN), inputBranchWitherRatio); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getBranchProbability();", "private void reduce() {\n int gcd = gcd(this.numerator, this.denominator);\n this.numerator = this.numerator / gcd;\n this.denominator = this.denominator / gcd;\n }", "double getRatio();", "private void reduce() {\n /** The fraction is equal to 0. Th...
[ "0.6367253", "0.5861993", "0.57022095", "0.56775475", "0.5663086", "0.55269384", "0.55242926", "0.5484173", "0.5466344", "0.54548484", "0.54186654", "0.5416349", "0.53747463", "0.53664595", "0.53494334", "0.53197956", "0.5292197", "0.52755123", "0.5261603", "0.5236263", "0.52...
0.66868603
0
Mounts tree onto treePane
private void mountTree() { if (tree != null) { treePane.getChildren().addAll(tree); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void renderTree() {\n unmountTree();\n buildTree(inputN, treePane.getWidth() / 2, treePane.getHeight(), Math.toRadians(inputTrunkAngle), inputBranchLength);\n mountTree();\n }", "private void initializeTreePane() {\n Rectangle clipRect = new Rectangle(treePane.ge...
[ "0.6816048", "0.64292", "0.63967437", "0.6240624", "0.62085754", "0.6010165", "0.59163964", "0.587", "0.57927287", "0.57863486", "0.5770739", "0.5741902", "0.56922394", "0.5624246", "0.55535895", "0.55467564", "0.54782206", "0.5461528", "0.54571205", "0.5433121", "0.54283035"...
0.8122045
0
Unmounts slider from sliderPane
private void unmountSlider() { if (slider != null) { sliderPane.getChildren().remove(slider); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dropview() {\n\t\tthis.remove(scrollPane);\n\t}", "public void removeFromRoot(){\n Main.getRootPlayGround().getChildren().remove(imageView);\n }", "@Override\r\n\tpublic void onClosed() {\n\t\tmSlidingLayer.removeAllViews();\r\n\t}", "private void mountSlider() {\n if (slider != ...
[ "0.5891477", "0.5770983", "0.5760895", "0.57597435", "0.57505834", "0.57378703", "0.5545681", "0.5470041", "0.54341847", "0.543041", "0.54291815", "0.53988546", "0.5385946", "0.534111", "0.53298193", "0.5320292", "0.5313458", "0.53120625", "0.52916443", "0.52743036", "0.52516...
0.8895049
0
Mounts slider onto sliderPane
private void mountSlider() { if (slider != null) { sliderPane.getChildren().add(slider); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void unmountSlider() {\n if (slider != null) {\n sliderPane.getChildren().remove(slider);\n }\n }", "private void initSlider() {\n setOrientation(HORIZONTAL);\n }", "private void createSlider(){\n\t\tslider = new GVertSlider(winApp, (int)width - 10, (int)height, 10...
[ "0.6620579", "0.6459802", "0.63890624", "0.62705684", "0.60200006", "0.58442074", "0.58395976", "0.57896096", "0.57786644", "0.5752813", "0.5698313", "0.5666282", "0.56498635", "0.5596167", "0.55955327", "0.55833435", "0.5578919", "0.5570712", "0.5563887", "0.55479413", "0.55...
0.82988966
0
Return the trade price
public BigDecimal getPrice() { return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Price getTradePrice();", "@Field(26) \n\tpublic double TradePrice() {\n\t\treturn this.io.getDoubleField(this, 26);\n\t}", "TickerPrice getPrice(String symbol);", "public double getBuyPrice() {\n return buyPrice;\n }", "public static int getPrice() {\n return PRICE_TO_BUY;\n }", "doub...
[ "0.88450676", "0.790492", "0.7516808", "0.74722284", "0.74597454", "0.7417922", "0.7417922", "0.7417922", "0.7379568", "0.73563653", "0.72945", "0.7285025", "0.7282232", "0.7280733", "0.72803754", "0.7278834", "0.72637856", "0.7250905", "0.725046", "0.72452146", "0.7216305", ...
0.7174617
30
Return the trade amount.
public BigDecimal getAmount() { return amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getTradeTotal() {\n return tradeTotal;\n }", "public int getTradeValue() {\n \t\treturn tradeValue;\n \t}", "public double getDepositAmount()\n\t{\n\t\treturn this.getFlightCosts() + this.totalPrice * this.half;\n\t}", "public Double getTotalBuyMoney() {\r\n return totalBuy...
[ "0.75257635", "0.730285", "0.6966845", "0.69192314", "0.6882328", "0.6881878", "0.68226755", "0.68053883", "0.67649233", "0.67506933", "0.67226547", "0.66950446", "0.66666675", "0.6629405", "0.6624925", "0.6607314", "0.6606099", "0.65890276", "0.65796447", "0.6570975", "0.656...
0.6214783
95
Return the trade id.
public BigDecimal getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTradeId() {\n return tradeId;\n }", "public String getTradeId() {\n\t\treturn this.tradeId;\n\t}", "public String getTradeNo() {\n\t\treturn tradeNo;\n\t}", "public long id() {\n\t\treturn message.getBaseMarketId();\n\t}", "public java.lang.Long getInternalTradeId() {\n retu...
[ "0.81206524", "0.8034848", "0.7211089", "0.71210355", "0.6815663", "0.6814581", "0.67674494", "0.6662002", "0.6655534", "0.6628759", "0.6586141", "0.647857", "0.6458992", "0.6339173", "0.629731", "0.6238321", "0.6205278", "0.6197215", "0.61952317", "0.61850446", "0.6172611", ...
0.0
-1
Returns true if the attribute "for" is set.
public final boolean isForSetted() { return engine.isPropertySetted(Properties.FOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSetAttribute();", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "boolean isAttribute();", "boolean hasAttributes();", "boolean hasAttributes();", "public boolean isSetAttrs() {\n return this.attrs != null;\n }", "public boolean isSetLoop...
[ "0.68169665", "0.65799344", "0.6396289", "0.63216114", "0.63216114", "0.62969863", "0.6222567", "0.61916256", "0.6170728", "0.61575115", "0.61423266", "0.61165786", "0.6071341", "0.6014158", "0.60066015", "0.59748966", "0.58895135", "0.5884925", "0.584304", "0.5814462", "0.57...
0.73865855
0
Returns true if the attribute "manyResultsMessage" is set.
public final boolean isManyResultsMessageSetted() { return engine.isPropertySetted(Properties.MANY_RESULTS_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isOneResultMessageSetted() {\n\t\treturn engine.isPropertySetted(Properties.ONE_RESULT_MESSAGE);\n\t}", "public boolean isSetResults() {\n return this.results != null;\n }", "public boolean getMoreResults() {\n return moreResults_;\n }", "public boolean getMoreResults() {\n ...
[ "0.665829", "0.6501732", "0.6469233", "0.6448871", "0.62809116", "0.61320066", "0.5858878", "0.581694", "0.5786029", "0.5780845", "0.57478344", "0.5663061", "0.56095475", "0.55644226", "0.55608916", "0.55577284", "0.5527805", "0.54951066", "0.5491291", "0.54911244", "0.548175...
0.86627984
0
Returns true if the attribute "message" is set.
public final boolean isMessageSetted() { return engine.isPropertySetted(Properties.MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetMessage() {\n return this.Message != null;\n }", "public boolean is_set_msg() {\n return this.msg != null;\n }", "public boolean isSetMsg() {\n return this.msg != null;\n }", "public boolean isValid() {\n return message == null;\n }", "boolean hasMessage();", "bo...
[ "0.79260176", "0.74718606", "0.7249422", "0.7137898", "0.71103394", "0.71103394", "0.71103394", "0.71103394", "0.71103394", "0.71103394", "0.71103394", "0.71103394", "0.7035329", "0.7035329", "0.7035329", "0.7035329", "0.7035175", "0.7035175", "0.701567", "0.701567", "0.70142...
0.77528805
1
Returns true if the attribute "oneResultMessage" is set.
public final boolean isOneResultMessageSetted() { return engine.isPropertySetted(Properties.ONE_RESULT_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isZeroResultMessageSetted() {\n\t\treturn engine.isPropertySetted(Properties.ZERO_RESULT_MESSAGE);\n\t}", "public boolean isSetResult() {\n return this.result != null;\n }", "public boolean isSetMessage() {\n return this.Message != null;\n }", "public static void ensureResultMess...
[ "0.72161865", "0.68635327", "0.6455939", "0.64409065", "0.64051956", "0.64051956", "0.64051956", "0.6405153", "0.6405153", "0.64035285", "0.639855", "0.6385228", "0.6385228", "0.6385228", "0.6384776", "0.6384776", "0.6384776", "0.6378558", "0.6362597", "0.635765", "0.6347301"...
0.828893
0
Returns true if the attribute "zeroResultMessage" is set.
public final boolean isZeroResultMessageSetted() { return engine.isPropertySetted(Properties.ZERO_RESULT_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isOneResultMessageSetted() {\n\t\treturn engine.isPropertySetted(Properties.ONE_RESULT_MESSAGE);\n\t}", "public boolean hasResult() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n ...
[ "0.65579", "0.6526155", "0.6503942", "0.6503942", "0.6503942", "0.6503753", "0.6503753", "0.6503753", "0.65007836", "0.64899474", "0.6487348", "0.6484246", "0.6484246", "0.6484081", "0.6484081", "0.6484081", "0.6482163", "0.641695", "0.62825334", "0.6264697", "0.62177575", ...
0.8491803
0
Returns a string specifying the message to display when there is no row to display.
public String getNoPagedMessage() { return getNoPagedMessage(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayNoResults()\n {\n tableData.add(new Company(null, \"No results found\"));\n tableView.setItems(tableData); \n }", "private void displayNoRoomMsg() {\n\t\t \n\t\t //displays error message to user\n\t\t System.out.println(\"Unable to move in that direction.\...
[ "0.65571356", "0.64867556", "0.6467869", "0.6248714", "0.6151021", "0.60408384", "0.60408384", "0.5983701", "0.59688735", "0.5966816", "0.59420544", "0.59227043", "0.59227043", "0.5900729", "0.5877202", "0.5822069", "0.5809091", "0.57711357", "0.57458913", "0.5744804", "0.573...
0.57851326
17
Returns a string specifying the message to display when there is no row to display.
public String getNoPagedMessage(javax.faces.context.FacesContext facesContext) { String s = engine.getStringProperty(Properties.NO_PAGED_MESSAGE, facesContext); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayNoResults()\n {\n tableData.add(new Company(null, \"No results found\"));\n tableView.setItems(tableData); \n }", "private void displayNoRoomMsg() {\n\t\t \n\t\t //displays error message to user\n\t\t System.out.println(\"Unable to move in that direction.\...
[ "0.6559164", "0.6488702", "0.6467328", "0.6249669", "0.6150954", "0.6040549", "0.6040549", "0.5984542", "0.5966944", "0.59653366", "0.5944742", "0.5923682", "0.5923682", "0.5898448", "0.5878485", "0.58192855", "0.5811681", "0.578501", "0.5769989", "0.5746674", "0.57449794", ...
0.56609744
26
Steps a string specifying the message to display when there is no row to display.
public void setNoPagedMessage(String noPagedMessage) { engine.setProperty(Properties.NO_PAGED_MESSAGE, noPagedMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayValidityReport() {\r\n\t\tif (this.tuple == null)\r\n\t\t\treturn;\r\n\t\tsetMessage(\"\");\r\n\t\tint row = this.tableView.getSelectedRow();\r\n\t\tif (row < this.tuple.getNumberOfEntries() && row >= 0)\r\n\t\t\tdisplayValidityReport(row);\r\n\t}", "private void displayNoRoomMsg() {\n\t\t \n...
[ "0.64088136", "0.6297014", "0.61763275", "0.6086415", "0.5667458", "0.56472045", "0.5609208", "0.55679077", "0.5494457", "0.54286444", "0.54209554", "0.5413702", "0.5402042", "0.53806627", "0.53801733", "0.5349081", "0.53278154", "0.5275024", "0.526673", "0.5259567", "0.52595...
0.0
-1
Steps a string specifying the message to display when there is no row to display.
public boolean isNoPagedMessageSetted() { return engine.isPropertySetted(Properties.NO_PAGED_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayValidityReport() {\r\n\t\tif (this.tuple == null)\r\n\t\t\treturn;\r\n\t\tsetMessage(\"\");\r\n\t\tint row = this.tableView.getSelectedRow();\r\n\t\tif (row < this.tuple.getNumberOfEntries() && row >= 0)\r\n\t\t\tdisplayValidityReport(row);\r\n\t}", "private void displayNoRoomMsg() {\n\t\t \n...
[ "0.64088136", "0.6297014", "0.61763275", "0.6086415", "0.5667458", "0.56472045", "0.5609208", "0.55679077", "0.5494457", "0.54286444", "0.54209554", "0.5413702", "0.5402042", "0.53806627", "0.53801733", "0.5349081", "0.53278154", "0.5275024", "0.526673", "0.5259567", "0.52595...
0.0
-1
Check if the last executed deployment scripts was successful.
@Override public boolean wasLastScriptSuccessful() { if (LOG.isDebugEnabled()) { LOG.debug("Checking if the last deployment script was successful"); } final StringBuilder queryBuilder = new StringBuilder(79); // The creation time is unreliable because on fast machines tw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean wasLastScriptSuccessful() {\n return this.deploymentScriptService.wasLastScriptSuccessful();\n }", "public boolean runAllPendingScripts() {\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Running all pending update deployment scripts.\");\n }\n return this.runAl...
[ "0.81606466", "0.65619195", "0.615247", "0.600427", "0.5953454", "0.5876571", "0.58717346", "0.57295275", "0.5710881", "0.5692137", "0.5630059", "0.5630059", "0.5630059", "0.5535444", "0.55185884", "0.5516604", "0.54417753", "0.54404473", "0.54182714", "0.54117155", "0.539834...
0.79337823
1
TODO Autogenerated method stub
public static void main(String[] args) { VolatileDemo vd = new VolatileDemo(); for (int i=0;i<500;i++) { new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub vd.increase(); } }).start(); } while(Thread.activeCount() > 1) { Thre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { vd.increase(); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_registro_conductor, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904451", "0.78051436", "0.7766031", "0.77275425", "0.76321447", "0.7622237", "0.7584132", "0.7530231", "0.74875915", "0.7457484", "0.7457484", "0.7438372", "0.74221927", "0.7403421", "0.73915446", "0.738672", "0.7378976", "0.73701847", "0.7362139", "0.73556066", "0.734531...
0.0
-1
Techtorial / T e c h ... 0123456789 Techtorial
public static void main(String[] args) { /* * T * e * c * h * ... */ //0123456789 //Techtorial String word="Techtorial"; for(int index=0, lenght=word.length() ; index<lenght ; index++ ) { System.out.println(word.charAt(index)); } // // for(int index=0, le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String mo21078i();", "private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }", "private static String m12564b(String str, String ...
[ "0.59872085", "0.59645474", "0.5875846", "0.5816474", "0.5777148", "0.5774027", "0.5759332", "0.5752272", "0.5745448", "0.57408154", "0.5719666", "0.5716889", "0.56941265", "0.5640088", "0.56205004", "0.56066906", "0.5606121", "0.5600665", "0.55886716", "0.557705", "0.5565472...
0.5495396
30
Keep max value low so that the basket total weight is low (problem limit is 100,000)
@Test public void when_provided_maximum_size_list_with_all_elements_that_can_be_added_then_return_sum_in_allowable_amount_of_time() { final int[] elements = Fixture.initializeRandomList(MAX_NUM_ELEMENTS, MIN_ELEMENT_SIZE, 5); final int elementSum = IntStream.of(elements).sum(); final long startTime = System.curr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int knapsack(Item[] items, int maxWeight) {\n return knapsack(items, maxWeight, 0);\n }", "public void setMaxWeight(double inMaxWeight) {\n maxWeight = inMaxWeight;\n }", "public void setMaxprice(int value) {\n this.maxprice = value;\n }", "public void setmaxWeigh...
[ "0.6650229", "0.6519421", "0.64571065", "0.6399682", "0.6357538", "0.6351207", "0.6313644", "0.629626", "0.6145918", "0.6127599", "0.6116213", "0.6100449", "0.6087184", "0.60794073", "0.607563", "0.60680765", "0.6039796", "0.60363775", "0.60312504", "0.5989931", "0.5986619", ...
0.57092255
50
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.bestbuy.tsh.facilities.locations.service.v2
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private EntityFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "ObjectFactoryGenerator objectFactoryGenerator();", "@Override\n protected ObjectFactory initObjectFactory() {\n try {\n BeanManager bm = (BeanManager) new InitialConte...
[ "0.5970813", "0.5906768", "0.5906768", "0.5906768", "0.5899731", "0.58580935", "0.58211935", "0.5797012", "0.578937", "0.5783719", "0.57710516", "0.5770201", "0.5765123", "0.5758739", "0.57543504", "0.57472646", "0.57397753", "0.5729349", "0.57234794" ]
0.0
-1
Check if it's need to compare values as numbers or not. value1 is usually expected one and could contain formula from ComparisonUtils. So need to process it like notnumeric value in default way
@Override public ComparisonResult compareValues(String expectedValue, String actualValue, String column) throws Exception { if (StringUtils.isNotBlank(expectedValue) && StringUtils.isNotBlank(actualValue) && !expectedValue.startsWith(MatrixFunctions.FORMULA_START) && numericColumns.containsKey(column)) { t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEq...
[ "0.6406389", "0.6257816", "0.6235029", "0.6010553", "0.59858894", "0.59606755", "0.587236", "0.5812742", "0.5796492", "0.5763025", "0.57388186", "0.57323223", "0.5714801", "0.56903946", "0.5653628", "0.56501627", "0.56500155", "0.5606238", "0.55873275", "0.5570015", "0.553604...
0.60942626
3
Creates new form Formas
public Formas() { initComponents(); setIconImage(new ImageIcon(this.getClass().getResource("/Imagen/capsule.png")).getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FormInserir...
[ "0.748264", "0.7274339", "0.65657145", "0.65645075", "0.6318116", "0.62970716", "0.60711354", "0.60194737", "0.60178494", "0.60037094", "0.5986952", "0.59763", "0.5963809", "0.5938802", "0.5932473", "0.59083813", "0.5908022", "0.5899548", "0.58720845", "0.5865205", "0.5847255...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); setDefaultCloseOp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
End of variables declaration//GENEND:variables
public void SetValues(Map<String, Integer> Usuario,int cont){ //Crear un dataset DefaultPieDataset data = new DefaultPieDataset(); Iterator it = Usuario.keySet().iterator(); int c = 0; while(it.hasNext()){ if(c<5){ String key = (String)it.next(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Create remote console writer instance.
public RemoteConsoleWriter(int port) { debug("Create remote console server instance."); ServerSocket server = null; Thread thread = null; try { server = new ServerSocket(); thread = new Thread(this); thread.setDaemon(true); thread.start(); } catch(IOException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConsoleHandler createConsoleHandler () {\r\n\t\t\t\r\n\t\tConsoleHandler consoleHandler = null;\r\n\t\t\t\r\n\t\ttry {\r\n\t\t \t\r\n\t\t\tconsoleHandler = new ConsoleHandler();\r\n\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t \r\n\t\t r...
[ "0.567867", "0.5450029", "0.54417866", "0.52625364", "0.525718", "0.52485496", "0.51781327", "0.5171072", "0.5167998", "0.514637", "0.51183426", "0.51164347", "0.50651383", "0.5045914", "0.50295967", "0.50021845", "0.4972306", "0.49389556", "0.4936409", "0.49284518", "0.48786...
0.70811266
0
Writes a portion of an array of characters.
@Override public void write(char[] cbuf, int off, int len) throws IOException { builder.append(cbuf, off, len); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeChars(char[] c, int off, int len) throws IOException;", "public void write(char[] charArray, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(charArray, offset, length);\r\n ...
[ "0.8040365", "0.69351685", "0.6754314", "0.66677344", "0.64745426", "0.64163166", "0.6251137", "0.62477624", "0.6234871", "0.6193163", "0.61458325", "0.6139917", "0.61393845", "0.61271626", "0.6127038", "0.61244005", "0.60924226", "0.60894907", "0.60780525", "0.60670334", "0....
0.6314676
6
Flushes this stream by writing any buffered output to the underlying stream.
@Override public void flush() throws IOException { for(;;) { int index = indexOneOf(builder, '\r', '\n'); if(index == -1) { break; } // ignore false returned by offer when queue is full queue.offer(builder.substring(0, index)); if(builder.charAt(index) == '\r') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush() {\n wasFlushed = true;\n }", "public void flush() throws IOException\n {\n getStream().flush();\n }", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "public synchronized void flush() {\n\t\ttry {\n\t\t\tcloseWriter();\n\t\t} catch(I...
[ "0.75294834", "0.73114276", "0.7289606", "0.7164379", "0.71445906", "0.70890856", "0.69873977", "0.68884796", "0.6833588", "0.682276", "0.68087804", "0.68087804", "0.68087804", "0.67931044", "0.6788341", "0.6788341", "0.6788341", "0.6788341", "0.6774422", "0.6735276", "0.6729...
0.0
-1
Closes the stream, flushing it first.
@Override public void close() throws IOException { debug("Dispose remote console server."); // this method tries its best and as a least resort uses thread interruption synchronized(this) { try { // try to break server.accept in order to force queue reading on thread Socket socket ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeStream() {\n output.close();\n input.close();\n }", "protected void closeStream ()\n {\n stream.close ();\n }", "public void closeStream() {\n\t\ttry {\n\t\t\tisReaderStatusClosed = true;\n\t\t\tif(buffReader != null) {\n\t\t\t\tbuffReader.close();\n\t\t\t}\n\t\t} catch(...
[ "0.742372", "0.73023313", "0.7160331", "0.70681417", "0.69970876", "0.67976123", "0.66543734", "0.6564473", "0.64817876", "0.64380145", "0.64156985", "0.6405659", "0.6285523", "0.627561", "0.62693334", "0.625075", "0.6232578", "0.6231858", "0.62049574", "0.61861706", "0.61651...
0.0
-1
internal logging helpers uses log4j internal logger LogLog in order to avoid circular dependencies Internal debug message.
private static void debug(String message, Object... args) { StatusLogger.getLogger().debug(String.format(message, args)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "abstract protected void logInternal(int level, String message);", "private void debugLog(String msg)\n {\n m_log.log(\"[\" + m_appNa...
[ "0.6820123", "0.6780879", "0.671974", "0.6700964", "0.6637071", "0.6519738", "0.64312446", "0.6427003", "0.6338282", "0.63056445", "0.63048685", "0.6277209", "0.6267726", "0.6261081", "0.62280333", "0.62098986", "0.62031895", "0.62021124", "0.6188186", "0.6185712", "0.6180807...
0.0
-1
also needs to path auth
@GetMapping("/info") public String info(){ return "info"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean authNeeded();", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "boolean hasAuth();", "private void authenticate(String user, String pass) {\n }", "@Override\n protected void configure(AuthenticationManagerBuilder auth) {\n }", "@Override\...
[ "0.6752812", "0.6218072", "0.6218072", "0.6218072", "0.61995625", "0.6182027", "0.6143835", "0.61392474", "0.59708935", "0.5931679", "0.5897202", "0.5876196", "0.58608854", "0.5836865", "0.5805912", "0.57852453", "0.57065666", "0.5679263", "0.56727016", "0.5665092", "0.565755...
0.0
-1
TODO Autogenerated method stub
protected void checkQueryForSearch(CandidateQuery query, List<Object> params) { if(query==null) { throw new IllegalArgumentException("checkQueryForSearch(CandidateQuery query, List<Object> params) "+query+" can not be null"); } String[] checkList= { "query.getTargetType()",query.getTargetType(), "q...
{ "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
Converts Date given as String to date given as object.
public Date parseDate(String date, String format) { return this.convertStringToDate(date, format); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = forma...
[ "0.6909921", "0.6881368", "0.68681103", "0.6784058", "0.67214596", "0.66932607", "0.668448", "0.6682733", "0.66671634", "0.6661706", "0.6592853", "0.65484166", "0.6543475", "0.65428084", "0.65289915", "0.651658", "0.6513105", "0.6494011", "0.6493836", "0.64858776", "0.6470408...
0.60682964
50
Converts Date given as String to date given as object.
public Date convertStringToDate(String dateToParse, String format) { SimpleDateFormat formatter = new SimpleDateFormat(format); Date result = null; try { result = formatter.parse(dateToParse); } catch (Exception exception1) { System.err.println( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = forma...
[ "0.690975", "0.68790036", "0.68677276", "0.6784011", "0.6719434", "0.6692963", "0.66848546", "0.668141", "0.66657454", "0.6659591", "0.6591835", "0.6546939", "0.6541635", "0.6541179", "0.65279484", "0.6516968", "0.65118176", "0.6491956", "0.64834255", "0.64689696", "0.6466199...
0.6491432
18
Formats given date with given format.
public String formatDate(Date date, String format) { return this.convertDateToString(date, format); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String format (Date date , String dateFormat) ;", "public Date formatDate( String date, String format )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format);\n dateFormat.setLenient(false);\n return dateFormat.parse(date);\n }", "public stati...
[ "0.7205822", "0.7132317", "0.7005666", "0.69919586", "0.6561013", "0.64861333", "0.64353704", "0.63492525", "0.6329546", "0.62939", "0.6269629", "0.62261266", "0.6205373", "0.6187804", "0.6160959", "0.6159536", "0.6156424", "0.611411", "0.6104788", "0.61036026", "0.6083815", ...
0.7147396
1
Converts given date with given pattern to String object.
public String convertDateToString(Date date, String format) { DateFormat dateFormat = new SimpleDateFormat(format); String dateAsString = dateFormat.format(date); return dateAsString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final Function<Date,String> toStr(final String pattern) {\r\n return new ToString(pattern);\r\n }", "public String getSimpleDate( java.util.Date date, String pattern ){\n if ( date == null || pattern == null ) return null;\n SimpleDateFormat sdf = new SimpleDateFormat(patter...
[ "0.8005487", "0.7416862", "0.7283096", "0.7163661", "0.70958173", "0.70723426", "0.6571093", "0.65497774", "0.6296196", "0.61360383", "0.6113263", "0.6046777", "0.6011517", "0.59892505", "0.5979728", "0.5913717", "0.5908517", "0.5901056", "0.5875054", "0.5874348", "0.5867673"...
0.54833686
51
/ finds the shortest path in a graph using bellmanford Algorithm.
public int[] findMinimunPathBF(int src, int[][] graph) { // The distance from the src to each vertices. int[] dist = new int[graph.length]; // Maximizing the distance of the sre to all the vertices. for (int i = 0; i < dist.length; i++) { dist[i] = Integer.MAX_VALUE; } dist[src] = 0; // Loop ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bellman_ford(int s)\n {\n int dist[]=new int[V]; \n \n //to track the path from s to all\n int parent[]=new int[V] ;\n //useful when a vertex has no parent\n for(int i=0;i<V;i++)\n parent[i]=-2;\n \n for(int i=0;i<V;i++) \n dist[i]=INF;\n \n //start from...
[ "0.7235284", "0.71405", "0.70830643", "0.6733986", "0.65027964", "0.64627135", "0.6458492", "0.6431659", "0.6394997", "0.6389615", "0.6381586", "0.63688207", "0.6359802", "0.6355839", "0.63443756", "0.6308898", "0.6297694", "0.62451416", "0.6212219", "0.6200578", "0.61981344"...
0.5797351
70
Sort in decreasing length order
@Override public int compare(String o1, String o2) { return Integer.compare(o2.length(), o1.length()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public static ArrayList<String> lineLengthSort(ArrayList<String> inArray)\n\t{\n\t\tbool...
[ "0.6709117", "0.66611093", "0.66513926", "0.6611596", "0.65257436", "0.6493754", "0.6491357", "0.6491357", "0.6490662", "0.64609885", "0.64414567", "0.64180756", "0.6372272", "0.6300941", "0.6286009", "0.6286009", "0.6286009", "0.6286009", "0.6286009", "0.6286009", "0.6286009...
0.0
-1
Find by unique key
public CurrencyXRateProvider findByCode(String code) { return (CurrencyXRateProvider) this .getEntityManager() .createNamedQuery(CurrencyXRateProvider.NQ_FIND_BY_CODE) .setParameter("clientId", Session.user.get().getClient().getId()) .setParameter("code", code).getSingleResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n ...
[ "0.6557548", "0.643432", "0.6391567", "0.6365645", "0.63271624", "0.62824047", "0.6248718", "0.62012416", "0.6187755", "0.6091412", "0.60801125", "0.60783225", "0.6019925", "0.6017186", "0.60071295", "0.5949148", "0.59168965", "0.590516", "0.5889019", "0.58544356", "0.5850748...
0.0
-1
Find by unique key
public CurrencyXRateProvider findByName(String name) { return (CurrencyXRateProvider) this .getEntityManager() .createNamedQuery(CurrencyXRateProvider.NQ_FIND_BY_NAME) .setParameter("clientId", Session.user.get().getClient().getId()) .setParameter("name", name).getSingleResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n ...
[ "0.6557548", "0.643432", "0.6391567", "0.6365645", "0.63271624", "0.62824047", "0.6248718", "0.62012416", "0.6187755", "0.6091412", "0.60801125", "0.60783225", "0.6019925", "0.6017186", "0.60071295", "0.5949148", "0.59168965", "0.590516", "0.5889019", "0.58544356", "0.5850748...
0.0
-1
Constructor to call if output to console desired or DAG visual desired
public OWLReasoner createReasoner(OWLOntology ontology, boolean verbose, boolean showGraph) { return new DMTReasoner(ontology, verbose, showGraph); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "public OutputConsole() {\n initComponents();\n setSize (1520, 750);\n }", "public NullPrintStream()\r\n\t{\r\n\t\tsuper(System.out);\r\n\t}", "abstract void initiateConsole();", "private CGraphInliner() {\n }"...
[ "0.6333759", "0.6127229", "0.6077421", "0.60292816", "0.5983578", "0.59658235", "0.5913372", "0.58349746", "0.5833874", "0.5833127", "0.5796187", "0.57904845", "0.57721853", "0.5746298", "0.57434523", "0.5726681", "0.5707729", "0.5701344", "0.56994724", "0.56431377", "0.55765...
0.0
-1
Costruttore per un'istanza RuleParser
public RuleParser() { this.fileName = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Rule createRule();", "Rule createRule();", "Rule createRule();", "public interface ValidParserRules {\n String getName();\n String getPrefix();\n PropertyType getType();\n ValidParserRules getParent();\n}", "Rule getRule();", "public ParserRule getRule() { return rule; }", "public ParserRul...
[ "0.62157726", "0.62157726", "0.62157726", "0.62084335", "0.60326684", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451", "0.5987451"...
0.60495967
4
Permette di specificare il percorso del file da cui estrarre le regole
public void setUp(String fileName) { this.fileName = fileName; this.timer = new MyTimer("TimerThread"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }", "public void showFile() throws FileNotFoundException, IOException{\r\n ArrayList<String> arxiu = new ArrayList<>();\r\n \r\n BufferedReader br = new BufferedReader(new FileReader(fitxe...
[ "0.6538007", "0.6518997", "0.6489293", "0.6483024", "0.6373594", "0.6324646", "0.6267357", "0.6245618", "0.61500937", "0.61420095", "0.61260396", "0.61188596", "0.6105742", "0.6100809", "0.6062974", "0.60073733", "0.60028297", "0.59977794", "0.59917605", "0.59848845", "0.5971...
0.0
-1
Permette la scrittura di regola/e nel file dal percorso specficato in modo da salvare permanentemente
public void writeRuleToFile(String text, boolean append) { if (fileName.isEmpty()) return; try { FileWriter fileWriter = new FileWriter(fileName, append); PrintWriter writer = new PrintWriter(fileWriter); writer.println(text); writer.close()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println...
[ "0.63330466", "0.6260972", "0.623227", "0.6163346", "0.6153471", "0.6147348", "0.61067605", "0.6017744", "0.60124224", "0.6009369", "0.59205586", "0.5892288", "0.5828394", "0.5813266", "0.5761136", "0.572993", "0.5706137", "0.5700054", "0.5694814", "0.5680734", "0.56720215", ...
0.0
-1