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
Test of logLikelihoodCorrelationMatrix method, of class MarkovModelUtilities.
@Test public void testLogLikelihoodCorrelationMatrix() { IDoubleArray corr = null; IDoubleArray C = null; MarkovModelUtilities instance = new MarkovModelUtilities(); double expResult = 0.0; double result = instance.logLikelihoodCorrelationMatrix(corr, C); assertEquals(expResult, result, 0.0); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n...
[ "0.71758837", "0.6273626", "0.6229849", "0.5951504", "0.5664662", "0.54419446", "0.5315465", "0.52274144", "0.5186116", "0.51603496", "0.515574", "0.5141745", "0.51273674", "0.511824", "0.5094275", "0.50418", "0.5038153", "0.5034446", "0.5032211", "0.5017526", "0.5014535", ...
0.87242913
0
Test of isTransitionMatrix method, of class MarkovModelUtilities.
@Test public void testIsTransitionMatrix() { IDoubleArray T = null; MarkovModelUtilities instance = new MarkovModelUtilities(); boolean expResult = false; boolean result = instance.isTransitionMatrix(T); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTransition() {\n/* 4839 */ return this.isTransition;\n/* */ }", "@Test\n public void testIsRateMatrix()\n {\n IDoubleArray K = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance...
[ "0.63742524", "0.6122955", "0.5891601", "0.58670515", "0.5830061", "0.560945", "0.54867595", "0.5482906", "0.5413282", "0.5387542", "0.5384318", "0.5352454", "0.53364486", "0.53206384", "0.52900267", "0.52642846", "0.52486026", "0.5226597", "0.52194333", "0.51832", "0.5159867...
0.85188055
0
Test of isRateMatrix method, of class MarkovModelUtilities.
@Test public void testIsRateMatrix() { IDoubleArray K = null; MarkovModelUtilities instance = new MarkovModelUtilities(); boolean expResult = false; boolean result = instance.isRateMatrix(K); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testIsTransitionMatrix()\n {\n IDoubleArray T = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean expResult = false;\n boolean result = instance.isTransitionMatrix(T);\n assertEquals(expResult, result);\n // TODO review...
[ "0.6774746", "0.57368207", "0.5717755", "0.5604211", "0.5588953", "0.5579619", "0.5544486", "0.5523025", "0.55169946", "0.54659516", "0.5449605", "0.54078823", "0.54061824", "0.5367155", "0.5344988", "0.5337239", "0.5317689", "0.53174573", "0.5270262", "0.5268403", "0.5266807...
0.8684727
0
Test of isReversible method, of class MarkovModelUtilities.
@Test public void testIsReversible_IDoubleArray() { IDoubleArray T = null; MarkovModelUtilities instance = new MarkovModelUtilities(); boolean expResult = false; boolean result = instance.isReversible(T); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReversible() {\n return true;\n }", "public boolean isReversible() {\n\t\treturn false;\r\n\t}", "@Test\n public void testIsReversible_IDoubleArray_IDoubleArray()\n {\n IDoubleArray T = null;\n IDoubleArray pi = null;\n MarkovModelUtilities instance ...
[ "0.80372834", "0.80205834", "0.6975375", "0.6713375", "0.6335168", "0.63269925", "0.6298313", "0.61435604", "0.6074352", "0.6065609", "0.5908621", "0.5870563", "0.5857251", "0.58427566", "0.5791016", "0.57618284", "0.57080996", "0.5701093", "0.5668724", "0.561355", "0.5589243...
0.7041612
2
Test of isReversible method, of class MarkovModelUtilities.
@Test public void testIsReversible_IDoubleArray_IDoubleArray() { IDoubleArray T = null; IDoubleArray pi = null; MarkovModelUtilities instance = new MarkovModelUtilities(); boolean expResult = false; boolean result = instance.isReversible(T, pi); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReversible() {\n return true;\n }", "public boolean isReversible() {\n\t\treturn false;\r\n\t}", "@Test\n public void testIsReversible_IDoubleArray()\n {\n IDoubleArray T = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n boolean...
[ "0.803656", "0.80197793", "0.7040556", "0.6713235", "0.63356674", "0.6326099", "0.62988925", "0.6145196", "0.6075537", "0.6065657", "0.591015", "0.5870669", "0.5859328", "0.58427614", "0.5792223", "0.5761348", "0.5708449", "0.57024974", "0.5669849", "0.561468", "0.55887735", ...
0.697422
3
Test of estimateT method, of class MarkovModelUtilities.
@Test public void testEstimateT() { IDoubleArray counts = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.estimateT(counts); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPerturbationExpectation()\n {\n IDoubleArray M = null;\n IDoubleArray pi0 = null;\n IDoubleArray observable = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null...
[ "0.6424646", "0.61012846", "0.60298246", "0.5904299", "0.56874526", "0.55412877", "0.54965585", "0.54822665", "0.54671025", "0.5456951", "0.5438459", "0.54373664", "0.5430289", "0.5409268", "0.5314263", "0.53045404", "0.5262019", "0.52573663", "0.52525485", "0.5239653", "0.52...
0.86361825
0
Test of estimateTrev method, of class MarkovModelUtilities.
@Test public void testEstimateTrev_IDoubleArray() { double[][] C = { {10,5,1}, {1,7,4}, {5,7,25}}; double[][] Tref = { {0.625, 0.23689343769530435, 0.13810656230469573}, {0.18414208307292756, 0.5833333333333334, 0.23252458359373912}, {0.10244040548986129, 0.22188391883446298, 0.6756756756756757}}; IDoubleArray counts = Doubles.create.array(C); IDoubleArray expResult = Doubles.create.array(Tref); IDoubleArray result = MarkovModel.util.estimateTrev(counts); DoubleArrayTest.assertEqual(result, expResult, 1e-4); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEstimateT()\n {\n \n IDoubleArray counts = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.estimateT(counts);\n assertEquals(expResult, result);\n // ...
[ "0.7777899", "0.71122175", "0.6275401", "0.57914376", "0.5741144", "0.5736739", "0.56762874", "0.5359849", "0.53146034", "0.52791756", "0.5216847", "0.5206894", "0.5188977", "0.51741564", "0.51591563", "0.51108354", "0.50677824", "0.5059931", "0.5049377", "0.5045009", "0.5020...
0.6711455
2
Test of estimateTrev method, of class MarkovModelUtilities.
@Test public void testEstimateTrev_IDoubleArray_IDoubleArray() { IDoubleArray counts = null; IDoubleArray piFixed = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.estimateTrev(counts, piFixed); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEstimateT()\n {\n \n IDoubleArray counts = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.estimateT(counts);\n assertEquals(expResult, result);\n // ...
[ "0.7777883", "0.67116666", "0.6276782", "0.5792056", "0.57413036", "0.573767", "0.5676649", "0.5360095", "0.53155226", "0.5279082", "0.5216665", "0.52074224", "0.5190313", "0.51742774", "0.51586705", "0.5110851", "0.5067505", "0.50606525", "0.50491714", "0.50460684", "0.50212...
0.7112861
1
Test of stationaryDistribution method, of class MarkovModelUtilities.
@Test public void testStationaryDistribution() { try { IDoubleArray T = Doubles.create.fromFile(inputT1); IDoubleArray expResult = Doubles.create.fromFile(inputT1_pi); IDoubleArray pi = MarkovModel.util.stationaryDistribution(T); assertEqual(pi, expResult, 1e-5); } catch(IOException e) { e.printStackTrace(); } // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStationaryDistributionRevQuick()\n {\n IDoubleArray T = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.stationaryDistributionRevQuick(T);\n assertEquals(expResult,...
[ "0.70543385", "0.6037696", "0.5978993", "0.58923346", "0.5889022", "0.5795521", "0.5713222", "0.5701155", "0.5678063", "0.56685793", "0.5620291", "0.56018084", "0.558944", "0.557813", "0.55670446", "0.55551124", "0.5530477", "0.5522407", "0.55131125", "0.5486328", "0.5484399"...
0.7983763
0
Test of stationaryDistributionRevQuick method, of class MarkovModelUtilities.
@Test public void testStationaryDistributionRevQuick() { IDoubleArray T = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.stationaryDistributionRevQuick(T); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStationaryDistribution()\n {\n try\n {\n IDoubleArray T = Doubles.create.fromFile(inputT1);\n IDoubleArray expResult = Doubles.create.fromFile(inputT1_pi); \n IDoubleArray pi = MarkovModel.util.stationaryDistribution(T);\n ...
[ "0.634964", "0.53895277", "0.53895247", "0.5388766", "0.53727454", "0.53061575", "0.5282599", "0.52659446", "0.52635586", "0.5200852", "0.51897055", "0.5182886", "0.5180493", "0.5146961", "0.51407355", "0.513061", "0.51246864", "0.51208967", "0.5109763", "0.50863016", "0.5077...
0.8405477
0
Test of timescales method, of class MarkovModelUtilities.
@Test public void testTimescales_IDoubleArray_double() { IDoubleArray T = null; double tau = 0.0; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.timescales(T, tau); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTimescales_5args()\n {\n Iterable<IIntArray> dtraj = null;\n ICountMatrixEstimator Cest = null;\n ITransitionMatrixEstimator Test = null;\n int ntimescales = 0;\n IIntArray lagtimes = null;\n MarkovModelUtilities instance = new MarkovModelUtil...
[ "0.79191047", "0.5704539", "0.5666854", "0.5551703", "0.5431126", "0.5393781", "0.53575176", "0.53233826", "0.53000605", "0.5294793", "0.5254387", "0.522282", "0.5178208", "0.5167666", "0.50909215", "0.5059016", "0.50518984", "0.50336117", "0.50301945", "0.50272524", "0.50193...
0.6770811
1
Test of timescales method, of class MarkovModelUtilities.
@Test public void testTimescales_5args() { Iterable<IIntArray> dtraj = null; ICountMatrixEstimator Cest = null; ITransitionMatrixEstimator Test = null; int ntimescales = 0; IIntArray lagtimes = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.timescales(dtraj, Cest, Test, ntimescales, lagtimes); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTimescales_IDoubleArray_double()\n {\n IDoubleArray T = null;\n double tau = 0.0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.timescales(T, tau);\n assertEqual...
[ "0.67707103", "0.5704444", "0.56631225", "0.5550392", "0.54328597", "0.5394308", "0.5354964", "0.53236526", "0.5302289", "0.529369", "0.5253898", "0.5223866", "0.51758033", "0.51659596", "0.509053", "0.50608116", "0.505263", "0.5034298", "0.5030427", "0.50275004", "0.50203604...
0.7918428
0
Test of metastableStates method, of class MarkovModelUtilities.
@Test public void testMetastableStates() { IDoubleArray M = null; int nstates = 0; MarkovModelUtilities instance = new MarkovModelUtilities(); IIntArray expResult = null; IIntArray result = instance.metastableStates(M, nstates); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMetastableMemberships()\n {\n IDoubleArray M = null;\n int nstates = 0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.metastableMemberships(M, nstates);\n assert...
[ "0.70054924", "0.61927694", "0.5975241", "0.58032185", "0.5782842", "0.57107306", "0.56871647", "0.56856644", "0.5685296", "0.55905426", "0.55781794", "0.5549088", "0.55474806", "0.5545777", "0.5533892", "0.5526405", "0.5510707", "0.53888834", "0.53198814", "0.5275341", "0.52...
0.8603486
0
Test of metastableMemberships method, of class MarkovModelUtilities.
@Test public void testMetastableMemberships() { IDoubleArray M = null; int nstates = 0; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.metastableMemberships(M, nstates); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Test\n public void testMetastableStates()\n {\n IDoubleArray M = null;\n int nstates = 0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IIntArray exp...
[ "0.63243693", "0.60804546", "0.5567289", "0.5449207", "0.5433412", "0.5420344", "0.5398108", "0.53653514", "0.5319218", "0.53094226", "0.5291866", "0.5268957", "0.5196393", "0.5184285", "0.51489586", "0.5127189", "0.5124405", "0.50893426", "0.50654477", "0.50559026", "0.50269...
0.85010624
0
Test of forwardCommittor method, of class MarkovModelUtilities.
@Test public void testForwardCommittor() { IDoubleArray M = null; IIntArray A = null; IIntArray B = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.forwardCommittor(M, A, B); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBackwardCommittor()\n {\n IDoubleArray M = null;\n IIntArray A = null;\n IIntArray B = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.backwardCommittor(M, A...
[ "0.73157567", "0.5696445", "0.5407438", "0.5370475", "0.5315627", "0.5297077", "0.52137655", "0.5186107", "0.5174689", "0.5161525", "0.514915", "0.5140223", "0.51295894", "0.51269275", "0.5122024", "0.5105485", "0.50585884", "0.5049636", "0.5036233", "0.5028699", "0.50246537"...
0.8232362
0
Test of backwardCommittor method, of class MarkovModelUtilities.
@Test public void testBackwardCommittor() { IDoubleArray M = null; IIntArray A = null; IIntArray B = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.backwardCommittor(M, A, B); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testForwardCommittor()\n {\n IDoubleArray M = null;\n IIntArray A = null;\n IIntArray B = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.forwardCommittor(M, A, ...
[ "0.7147915", "0.614085", "0.6083887", "0.60253245", "0.59855074", "0.58801687", "0.5816005", "0.5647967", "0.5582781", "0.55728054", "0.5560513", "0.5504352", "0.5468938", "0.54436445", "0.5431327", "0.54276717", "0.5408351", "0.5400455", "0.53813577", "0.53793883", "0.537537...
0.84157175
0
Test of autocorrelation method, of class MarkovModelUtilities.
@Test public void testAutocorrelation() { IDoubleArray M = null; IDoubleArray observable = null; IDoubleArray timepoints = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.autocorrelation(M, observable, timepoints); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n...
[ "0.6911617", "0.657751", "0.61705124", "0.5979178", "0.5584032", "0.5471109", "0.546512", "0.53280854", "0.5146895", "0.5146619", "0.5114449", "0.5101543", "0.5048534", "0.5029519", "0.5007086", "0.50031924", "0.49893585", "0.49002227", "0.48725218", "0.48507547", "0.48437423...
0.8696308
0
Test of correlation method, of class MarkovModelUtilities.
@Test public void testCorrelation() { IDoubleArray M = null; IDoubleArray observable1 = null; IDoubleArray observable2 = null; IDoubleArray timepoints = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.correlation(M, observable1, observable2, timepoints); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAutocorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance....
[ "0.679053", "0.66915673", "0.651345", "0.6210462", "0.5937084", "0.5927249", "0.5823158", "0.57037723", "0.56221074", "0.5534309", "0.5517464", "0.54602104", "0.54272336", "0.5329693", "0.5315985", "0.52944535", "0.5286221", "0.5273603", "0.5234745", "0.52177113", "0.5198266"...
0.86729217
0
Test of perturbationExpectation method, of class MarkovModelUtilities.
@Test public void testPerturbationExpectation() { IDoubleArray M = null; IDoubleArray pi0 = null; IDoubleArray observable = null; IDoubleArray timepoints = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.perturbationExpectation(M, pi0, observable, timepoints); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFingerprintPerturbation()\n {\n IDoubleArray M = null;\n IDoubleArray p0 = null;\n IDoubleArray observable = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance....
[ "0.65514165", "0.6373037", "0.56071705", "0.5577951", "0.54495406", "0.53771555", "0.5315814", "0.5312208", "0.53063434", "0.5264601", "0.52399904", "0.5237213", "0.5223015", "0.5222607", "0.5178143", "0.5177531", "0.5144026", "0.51180667", "0.5097437", "0.50397587", "0.50351...
0.8327207
0
Test of fingerprintAutocorrelation method, of class MarkovModelUtilities.
@Test public void testFingerprintAutocorrelation() { IDoubleArray M = null; IDoubleArray observable = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.fingerprintAutocorrelation(M, observable); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAutocorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable = null;\n IDoubleArray timepoints = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance....
[ "0.7553548", "0.7491265", "0.6640061", "0.5893892", "0.5216553", "0.5158335", "0.51483774", "0.5143283", "0.51150167", "0.5086318", "0.50828856", "0.5050254", "0.5030721", "0.5029138", "0.5024145", "0.5005777", "0.49787673", "0.49756554", "0.49460876", "0.4944315", "0.4928026...
0.8646217
0
Test of fingerprintCorrelation method, of class MarkovModelUtilities.
@Test public void testFingerprintCorrelation() { IDoubleArray M = null; IDoubleArray observable1 = null; IDoubleArray observable2 = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.fingerprintCorrelation(M, observable1, observable2); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFingerprintAutocorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.fingerprintAutocorrelation(M, ...
[ "0.74735767", "0.69278467", "0.6718206", "0.5578056", "0.5481915", "0.53663456", "0.53389513", "0.531954", "0.5292233", "0.52606535", "0.5227066", "0.51581687", "0.51245296", "0.51162577", "0.51160717", "0.51006866", "0.5081456", "0.50624454", "0.5023178", "0.49970546", "0.49...
0.8647576
0
Test of fingerprintPerturbation method, of class MarkovModelUtilities.
@Test public void testFingerprintPerturbation() { IDoubleArray M = null; IDoubleArray p0 = null; IDoubleArray observable = null; MarkovModelUtilities instance = new MarkovModelUtilities(); IDoubleArray expResult = null; IDoubleArray result = instance.fingerprintPerturbation(M, p0, observable); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFingerprintCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = ...
[ "0.7078415", "0.68263966", "0.61688286", "0.5299206", "0.5180532", "0.5154093", "0.5146689", "0.5141612", "0.50238025", "0.5013609", "0.49934316", "0.4986498", "0.49582377", "0.49389556", "0.49304208", "0.48778608", "0.4875811", "0.48725605", "0.48664948", "0.48505616", "0.48...
0.8801367
0
Obtiene el elemento que hay en la cima y lo elimina de la pila.
public T pop();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n def...
[ "0.7741615", "0.75555617", "0.71925557", "0.71201146", "0.70836276", "0.70093745", "0.69910944", "0.6968639", "0.6884489", "0.66918564", "0.66514945", "0.6643744", "0.6625804", "0.6609223", "0.6607134", "0.6586327", "0.65860754", "0.65759504", "0.65442383", "0.65386504", "0.6...
0.0
-1
Make a new block instance.
@SuppressWarnings({ "rawtypes" }) public ConfigurableBlockLog(ExtendedConfig eConfig) { this.setConfig(eConfig); this.setBlockName(this.getUniqueName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "Block create(int xpos, int ypos);", "RclBlock createRclBlock();", "Blo...
[ "0.82026565", "0.7467288", "0.7452699", "0.7040366", "0.69578105", "0.6921044", "0.67545724", "0.6686189", "0.665559", "0.6636994", "0.66098005", "0.6600689", "0.6554013", "0.6548257", "0.6536828", "0.6425964", "0.64073384", "0.63951045", "0.6363033", "0.63345474", "0.6329223...
0.0
-1
/ before starting talking to you let me check that if you are a reliant client authorize client and save the socket for further checks against the authorization policies
@Override public void run() { final boolean isAuthorized = authzManager.checkClient(socket); /* not an authorized client, close this connection */ if (!isAuthorized) { if (logger.isLoggable(Level.INFO)) { logger.log(Level.INFO, "Client " + socket + "it' not authorized. Closing connection..."); } close(); } // register in authorization manager for periodic checks of permissions authzManager.registerClient(socket); // ok pal, let's I agree to talk to you super.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AuthServerConnectionHandler(Socket socket){\n\t\tthis.socket=socket;\n\n\t}", "public boolean authToServer() throws ClientChatException{\n\n\t\t// On crée un objet container pour contenir nos donnée\n\t\t// On y ajoute un AdminStream de type Authentification avec comme params le login et le mot de pass\n \tAu...
[ "0.6370911", "0.6365466", "0.63155866", "0.6253805", "0.6156059", "0.61323047", "0.61296666", "0.60415393", "0.60215276", "0.601248", "0.58258903", "0.57991815", "0.57978547", "0.5771551", "0.57606316", "0.57427675", "0.5717714", "0.571762", "0.5678694", "0.5668346", "0.56632...
0.6827651
0
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() { jButton_ = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jTextField_nombre_encuesta1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jTextField_descripcion_encuesta1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jTextField_cod_emcuesta1 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jTextField_cod_tipoEncuesta1 = new javax.swing.JTextField(); jButton_guardarRegistro = new javax.swing.JButton(); jButton_cancelar = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jTextField_cod_encuesta2 = new javax.swing.JTextField(); jButton_buscarModificar = new javax.swing.JButton(); jTextField_cod_tipoEncuesta2 = new javax.swing.JTextField(); jTextField_descripcion_encuesta2 = new javax.swing.JTextField(); jTextField_nombre_encuesta2 = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jButton_actualizarRegistro = new javax.swing.JButton(); jButton_cancelar5 = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); jTextField_cod_encuesta3 = new javax.swing.JTextField(); jButton_buscarEliminar = new javax.swing.JButton(); jTextField_nombre_encuesta3 = new javax.swing.JTextField(); jTextField_descripcion_encuesta3 = new javax.swing.JTextField(); jTextField_cod_tipoEncuesta3 = new javax.swing.JTextField(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jButton_eliminarRegistro = new javax.swing.JButton(); jButton_cancelar2 = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos de Encuesta")); jLabel1.setText("Nombre:"); jLabel2.setText("Descripcion:"); jLabel3.setText("Codigo:"); jLabel4.setText("Cod. Tipo En:"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField_cod_emcuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField_nombre_encuesta1, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_descripcion_encuesta1, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_cod_tipoEncuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(33, 33, 33)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField_cod_emcuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField_nombre_encuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(7, 7, 7) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField_descripcion_encuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField_cod_tipoEncuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(16, Short.MAX_VALUE)) ); jButton_guardarRegistro.setText("Guardar"); jButton_guardarRegistro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_guardarRegistroActionPerformed(evt); } }); jButton_cancelar.setText("Cancelar"); jButton_cancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_cancelarActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(136, 136, 136) .addComponent(jButton_guardarRegistro) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton_cancelar) .addContainerGap(42, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_guardarRegistro) .addComponent(jButton_cancelar))) ); jButton_.addTab("Ingreso Encuesta", jPanel2); jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos de Encuesta")); jButton_buscarModificar.setText("Buscar"); jButton_buscarModificar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_buscarModificarActionPerformed(evt); } }); jLabel10.setText("Codigo:"); jLabel11.setText("Nombre:"); jLabel12.setText("Descripcion:"); jLabel13.setText("Cod. Tipo En:"); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(jTextField_cod_encuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton_buscarModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField_nombre_encuesta2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_descripcion_encuesta2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_cod_tipoEncuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(32, 32, 32)) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addGap(14, 14, 14) .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(7, 7, 7) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel7Layout.createSequentialGroup() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField_cod_encuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton_buscarModificar)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_nombre_encuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addComponent(jTextField_descripcion_encuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_cod_tipoEncuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jButton_actualizarRegistro.setText("Actualizar"); jButton_actualizarRegistro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_actualizarRegistroActionPerformed(evt); } }); jButton_cancelar5.setText("Cancelar"); jButton_cancelar5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_cancelar5ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(128, 128, 128) .addComponent(jButton_actualizarRegistro) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton_cancelar5) .addContainerGap(42, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_actualizarRegistro) .addComponent(jButton_cancelar5)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jButton_.addTab("Modificacion Encuesta", jPanel3); jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos de Encuesta")); jButton_buscarEliminar.setText("Buscar"); jButton_buscarEliminar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_buscarEliminarActionPerformed(evt); } }); jLabel18.setText("Codigo:"); jLabel19.setText("Nombre:"); jLabel20.setText("Descripcion:"); jLabel21.setText("Cod. Tipo En:"); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jTextField_cod_encuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton_buscarEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField_nombre_encuesta3, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_descripcion_encuesta3, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextField_cod_tipoEncuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(33, 33, 33)) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(14, 14, 14) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(7, 7, 7) .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField_cod_encuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton_buscarEliminar)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_nombre_encuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addComponent(jTextField_descripcion_encuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_cod_tipoEncuesta3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jButton_eliminarRegistro.setText("Eliminar"); jButton_eliminarRegistro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_eliminarRegistroActionPerformed(evt); } }); jButton_cancelar2.setText("Cancelar"); jButton_cancelar2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_cancelar2ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(138, 138, 138) .addComponent(jButton_eliminarRegistro) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton_cancelar2) .addContainerGap(42, Short.MAX_VALUE)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_eliminarRegistro) .addComponent(jButton_cancelar2)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jButton_.addTab("Eliminar Encuesta", jPanel4); jLabel5.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N jLabel5.setText("ENCUESTAS:"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton_, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(11, 11, 11) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(6, 6, 6) .addComponent(jButton_, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Receive submitted media data, read configuration file and insert data to DB and KafkaQueue as per configuration
public ServiceOutputObject execute(FormMediaValue formMediaValue) throws TokenNotFoundException, TokenExpiredException, IOException, DataNotFoundException, ValidationException, InterruptedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFi...
[ "0.5279069", "0.525259", "0.5061341", "0.5041703", "0.50309575", "0.50063384", "0.49823165", "0.49810588", "0.49731192", "0.49656436", "0.4958633", "0.4953974", "0.49438536", "0.49414033", "0.49140495", "0.48749012", "0.4861589", "0.48481637", "0.48462686", "0.48259175", "0.4...
0.0
-1
private Constructor prevents any other class from instantiating
private DarthSidious(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Instantiation(){}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Rekenhulp()\n\t{\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ct...
[ "0.80017614", "0.773952", "0.7535203", "0.7526432", "0.7472758", "0.74425983", "0.7437299", "0.74281764", "0.74201393", "0.7386436", "0.7371625", "0.72897553", "0.72327465", "0.72260857", "0.71924967", "0.71858674", "0.7171788", "0.7140228", "0.71332496", "0.7120402", "0.7120...
0.7255375
12
getter for only instance of DarthSidious class
public static DarthSidious getInstance(){ return darthVader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IDwelling getDwelling();", "private DarthSidious(){\n }", "Side getSide();", "static Grandson getGrandson() {\n\t\treturn new Grandson();\r\n\t}", "Objet getObjetAlloue();", "public Entity.Spigot spigot() {\n/* 1087 */ return this.spigot;\n/* */ }", "public Sandwich getSandwich(){\...
[ "0.63295066", "0.59876025", "0.58947915", "0.5889561", "0.5887581", "0.5855537", "0.5829701", "0.5766001", "0.5708671", "0.57043225", "0.5698069", "0.5686062", "0.5679375", "0.56519115", "0.56519115", "0.5626779", "0.56241184", "0.56071997", "0.56006664", "0.55988187", "0.559...
0.72616744
0
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public AccountbaseExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63371223", "0.59390783", "0.5923802", "0.58866423", "0.5848204", "0.58397186", "0.5804929", "0.5758779", "0.5694896", "0.5674712", "0.5614868", "0.5551139", "0.5530871", "0.55122644", "0.55091876", "0.5495863", "0.5489697", "0.5489697", "0.54818004", "0.5464711", "0.543873...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63358784", "0.5940752", "0.5922731", "0.5884708", "0.5845648", "0.5837492", "0.580378", "0.5758849", "0.56921744", "0.5672213", "0.5612851", "0.5550944", "0.552817", "0.5508899", "0.55056953", "0.54970205", "0.5486497", "0.5486497", "0.54784757", "0.54612124", "0.54363704"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63371223", "0.59390783", "0.5923802", "0.58866423", "0.5848204", "0.58397186", "0.5804929", "0.5758779", "0.5694896", "0.5674712", "0.5614868", "0.5551139", "0.5530871", "0.55122644", "0.55091876", "0.5495863", "0.5489697", "0.5489697", "0.54818004", "0.5464711", "0.543873...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63358784", "0.5940752", "0.5922731", "0.5884708", "0.5845648", "0.5837492", "0.580378", "0.5758849", "0.56921744", "0.5672213", "0.5612851", "0.5550944", "0.552817", "0.5508899", "0.55056953", "0.54970205", "0.5486497", "0.5486497", "0.54784757", "0.54612124", "0.54363704"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63370925", "0.59401995", "0.59247136", "0.58860064", "0.5848123", "0.5838011", "0.5804715", "0.57592267", "0.56938213", "0.5672943", "0.561452", "0.5551468", "0.5530007", "0.5510531", "0.5508437", "0.5496618", "0.5487935", "0.5487935", "0.54807854", "0.54639655", "0.543887...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table AccountBase
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}", "public abstract AccountDAO getAccountDAO();", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public abstract in...
[ "0.63371223", "0.59390783", "0.5923802", "0.58866423", "0.5848204", "0.58397186", "0.5804929", "0.5758779", "0.5694896", "0.5674712", "0.5614868", "0.5551139", "0.5530871", "0.55122644", "0.55091876", "0.5495863", "0.5489697", "0.5489697", "0.54818004", "0.5464711", "0.543873...
0.0
-1
TODO Autogenerated method stub
@Override public boolean matches(String regex, CharSequence input) { return false; }
{ "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
TO DO: sequence checking(e.g. STORE 2:4 ...)
public Store (String prefix, String request, DB db, PrintWriter out) { this.FLAGS = new String[]{"Answered", "Recent", "Deleted", "Seen", "Draft", "Flagged"}; this.prefix = prefix; this.request = request; this.db = db; this.out = out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void test4() {\n int[] data4 = {5, 4, 3, 2, 1};\n System.out.println(\"true: \" + verifySequenceOfBST(data4));\n }", "private static void test3() {\n int[] data3 = {1, 2, 3, 4, 5};\n System.out.println(\"true: \" + verifySequenceOfBST(data3));\n }", "public int ...
[ "0.5518114", "0.55150104", "0.55039984", "0.5407868", "0.53437203", "0.5337274", "0.52949566", "0.5281176", "0.52496994", "0.5226834", "0.5220585", "0.5215627", "0.5209132", "0.5207205", "0.5170292", "0.5166272", "0.5146792", "0.5146141", "0.5128682", "0.5128682", "0.5128682"...
0.0
-1
Initializes database. Creates database if doesn't exist.
private void initialize() { if (databaseExists()) { SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(mContext); int dbVersion = prefs.getInt(SP_KEY_DB_VER, 1); if (DATABASE_VERSION != dbVersion) { File dbFile = mContext.getDatabasePath(DBNAME); if (!dbFile.delete()) { Log.w(TAG, "Unable to update database"); } } } if (!databaseExists()) { createDatabase(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(db...
[ "0.8012003", "0.8000198", "0.79918146", "0.76986474", "0.76777524", "0.760023", "0.74791497", "0.7424262", "0.7370059", "0.7304737", "0.72794384", "0.72619414", "0.72509384", "0.7229679", "0.72293246", "0.7210963", "0.7129802", "0.7090796", "0.7084286", "0.7075247", "0.701956...
0.8139477
0
Returns true if database file exists, false otherwise.
private boolean databaseExists() { File dbFile = mContext.getDatabasePath(DBNAME); return dbFile.exists(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean existsDatabase() throws IOException {\n return existsDatabase(database.get(), null);\n }", "public static boolean DBDirExists() {\n File dir = new File(path);\n return dir.exists();\n }", "public boolean databaseExists() {\n\t\treturn defaultDatabaseExists();\n\...
[ "0.8051793", "0.8027446", "0.79947144", "0.7986562", "0.79655284", "0.79331094", "0.7886528", "0.7756108", "0.7517701", "0.73860365", "0.7378826", "0.73487496", "0.73487496", "0.72948855", "0.724178", "0.7212637", "0.7204105", "0.7152", "0.70919126", "0.7049674", "0.6968544",...
0.8335129
0
Creates database by copying it from assets directory.
private void createDatabase() { String parentPath = mContext.getDatabasePath(DBNAME).getParent(); String path = mContext.getDatabasePath(DBNAME).getPath(); File file = new File(parentPath); if (!file.exists()) { if (!file.mkdir()) { Log.w(TAG, "Unable to create database directory"); return; } } InputStream is = null; OutputStream os = null; try { is = mContext.getAssets().open(DBNAME); os = new FileOutputStream(path); byte[] buffer = new byte[1024]; int length; while ((length = is.read(buffer)) > 0) { os.write(buffer, 0, length); } os.flush(); SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(mContext); SharedPreferences.Editor editor = prefs.edit(); editor.putInt(SP_KEY_DB_VER, DATABASE_VERSION); editor.commit(); } catch (IOException e) { e.printStackTrace(); } finally { if (is != null) { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } if (os != null) { try { os.close(); } catch (IOException e) { e.printStackTrace(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void copyDatabaseFromAsset() {\n\n /** Just to calculate time How much it will take to copy database */\n //Utility t = new Utility();\n\n\t\t/* Insert Database */\n DBHelper db = new DBHelper(this);\n\n try {\n boolean dbExist = db.isDataBaseAvailable();\n\n ...
[ "0.8398912", "0.8361789", "0.77305526", "0.76107764", "0.7532337", "0.75109565", "0.750933", "0.75086313", "0.74890584", "0.74890584", "0.74863356", "0.74829704", "0.74793595", "0.74447906", "0.743005", "0.743005", "0.74152213", "0.7407575", "0.7374789", "0.7338423", "0.72999...
0.76489204
3
Get the Size Types
public synchronized List<WebElement> list_SizeType() throws Exception { if (Utils.device.equals("mobile")) return utils.findElementsByLocator(driver, "PDP_Lnk_MB_SizeType_Options", "|PDP: Size Types not present"); else return utils.findElementsByLocator(driver, "PDP_Lnk_SizeType", "|PDP: Size Types not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSizeType() {\n\t\treturn sizeType;\n\t}", "public static int size_infos_type() {\n return (16 / 8);\n }", "public int size(){\n\t\treturn types.size();\n\t}", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n ...
[ "0.7030475", "0.6821259", "0.67935765", "0.65809363", "0.6381919", "0.6302282", "0.62556976", "0.6218778", "0.62177783", "0.6107319", "0.60393083", "0.60321283", "0.6021743", "0.60064846", "0.5993144", "0.5988801", "0.59454334", "0.5940302", "0.59244275", "0.5922653", "0.5894...
0.6848297
1
Get the Color Swatch
public synchronized List<WebElement> list_ColorSwatch() throws Exception { if (Utils.isDeviceMobile() && Utils.isBrandFullPrice()) return utils.findElementsByLocator(driver, "MBL_PDP_Lnk_ColorSwatch", "| PDP: Color swatch Not Displayed On PDP"); return utils.findElementsByLocator(driver, "PDP_Lnk_ColorSwatch", "| PDP: Color swatch Not Displayed On PDP"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getColor() { return color.get(); }", "public GameColor getColor();", "public Color getCurrentColor();", "java.awt.Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public Color getColor();", "public Color g...
[ "0.66807336", "0.6568094", "0.65524036", "0.6534112", "0.6464812", "0.6464812", "0.6464812", "0.6464812", "0.6464812", "0.64524215", "0.64524215", "0.64524215", "0.64351463", "0.6433794", "0.64050186", "0.6393199", "0.6392659", "0.6387995", "0.6387257", "0.63647616", "0.634",...
0.0
-1
Get the Color Swatch Default color 1st color in swatch
public synchronized List<WebElement> list_ColorSwatch_DefaultColor() throws Exception { return utils.findElementsByLocator(driver, "PDP_Lnk_ColorSwatchDefault", "| PDP: Color swatch Not Displayed On PDP"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float[] getDefaultColor() {\n \treturn defaultColor;\n }", "public Color getDefaultColor() {\n return defaultColor;\n }", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float...
[ "0.69348407", "0.689892", "0.67238086", "0.6600695", "0.6557747", "0.64968807", "0.63963765", "0.63657945", "0.63391477", "0.63321745", "0.6331892", "0.63162786", "0.63162786", "0.6311193", "0.62652224", "0.6262817", "0.62606484", "0.62029094", "0.6197595", "0.6195635", "0.61...
0.65733767
4
Get the Color Swatch
public synchronized List<WebElement> list_ColorSwatchQuickShop() throws Exception { return utils.findElementsByLocator(driver, "PDP_Lnk_ColorSwatchQuickShop", "| PDP: Color swatch Not Displayed On PDP"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getColor() { return color.get(); }", "public GameColor getColor();", "public Color getCurrentColor();", "java.awt.Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public Color getColor();", "public Color g...
[ "0.66807336", "0.6568094", "0.65524036", "0.6534112", "0.6464812", "0.6464812", "0.6464812", "0.6464812", "0.6464812", "0.64524215", "0.64524215", "0.64524215", "0.64351463", "0.6433794", "0.64050186", "0.6393199", "0.6392659", "0.6387995", "0.6387257", "0.63647616", "0.634",...
0.0
-1
Get the final Sale message
public synchronized WebElement pdp_finalSaleMsg() throws Exception { return utils.findElementByLocator(driver, "PDP_FinalSaleMsg", "| PDP: Final Message Not Displayed On PDP"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String completeSale(){\n updateEISAndEAS();\n return sale.printReceipt(paymentDTO);\n }", "public Amount endSale(){\n totalCost = sale.getRunningTotal(); \n payment = new CashPayment(totalCost);\n \n return totalCost;\n }", "public void endSale() {\r\n ...
[ "0.6800643", "0.62631154", "0.61780953", "0.61751974", "0.6168833", "0.5847908", "0.58224744", "0.5781362", "0.57111514", "0.5676935", "0.56467736", "0.558378", "0.5560077", "0.5541489", "0.55345607", "0.5487342", "0.54665625", "0.5447437", "0.54335016", "0.5426214", "0.54186...
0.68082035
0
Get the Color Swatch Name
public synchronized List<WebElement> list_ColorSwatchName() throws Exception { return utils.findElementsByLocator(driver, "PDP_ColorSwatchName", "| PDP: Color swatch Name Not Displayed On PDP"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "public String getName() {\n Boolean color = this.getColor();\n if (!color) {\n return \"bQ\";\n }\n return \"wQ\";\n }", "public String getColouredName() {\n\t\tConfigManager crates = new Config...
[ "0.68217856", "0.6521246", "0.6466323", "0.6433821", "0.6408239", "0.6028095", "0.6012696", "0.60057926", "0.59727377", "0.5966951", "0.5876435", "0.5843203", "0.58404064", "0.58393914", "0.58208", "0.579161", "0.5766341", "0.5737004", "0.57261485", "0.57257736", "0.5662164",...
0.5670982
20
Get the Size Swatch
public synchronized List<WebElement> list_SizeSwatch() throws Exception { if (Utils.isDeviceMobile() && !Utils.brand.equals("LGFP")) return utils.findElementsByLocator(driver, "PDP_Lnk_MB_SizeSwatch_options", "| PDP: Size not present"); else if (Utils.isDeviceMobile() && Utils.brand.equals("LGFP")) return utils.findElementsByLocator(driver, "MBL_SizeSwatch_LG", "| PDP: Size not present"); else return utils.findElementsByLocator(driver, "PDP_Lnk_SizeSwatch", "| PDP: Size not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSize();", "int getCurrentSize();", "public Size getSize() {\n return size;\n }", "public double getSize() \n {\n return size;\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public long getSize() {\n return size.get();\n }", "@...
[ "0.64155805", "0.64098996", "0.622103", "0.62082386", "0.61748517", "0.6140642", "0.6138795", "0.6118419", "0.61131877", "0.6093482", "0.60625976", "0.60625976", "0.6061015", "0.6049744", "0.60300857", "0.6018302", "0.6010782", "0.599273", "0.59876233", "0.59497976", "0.59269...
0.0
-1
Get the ADD TO BAG button
public synchronized WebElement pdp_btn_AddToBag() throws Exception { return utils.findElementByLocator(driver, "PDP_btn_AddToBag", "| PDP: Add To Bag not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "public JButton getAddBtn() {\n\t\treturn addBtn;\n\t}", "Button getBtn();", "pub...
[ "0.6697353", "0.6624913", "0.6589989", "0.6555944", "0.6471795", "0.64244425", "0.641858", "0.63700294", "0.63122153", "0.629654", "0.6269594", "0.62611234", "0.6190248", "0.61501926", "0.61063564", "0.6078406", "0.60776883", "0.6070171", "0.6058774", "0.6045334", "0.6022983"...
0.61235315
14
Get the ADD TO BAG button
public synchronized void pdp_AddToBag() throws Exception { // Code to remove focus from zoomed image on page load if (!Utils.isDeviceMobile()) { Actions actions = new Actions(driver); actions.moveToElement(productPrice()).build().perform(); } utils.scrollToViewElement(driver, pdp_btn_AddToBag()); // Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile if (Utils.isDeviceMobile()) handleBounceXOnPDP(); pdp_btn_AddToBag().click(); // Thread.sleep(3000); if (!utils.brand.equals("LGFP")) Assert.assertTrue(utils.isElementPresent(driver, "PDP_continueShopping"), "Item Added To Bag modal not displayed in mobile"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "public JButton getAddBtn() {\n\t\treturn addBtn;\n\t}", "Button getBtn();", "pub...
[ "0.6697353", "0.6624913", "0.6589989", "0.6555944", "0.6471795", "0.64244425", "0.641858", "0.63700294", "0.63122153", "0.629654", "0.6269594", "0.62611234", "0.6190248", "0.61501926", "0.61235315", "0.61063564", "0.6078406", "0.60776883", "0.6070171", "0.6058774", "0.6045334...
0.0
-1
Method used for Add Item to Shopping Bag.
public synchronized void addToBag(WebDriver driver, int rowNo, int colNo) throws Exception { try { if (rowNo != 0 && colNo != 0) openPDP(driver, rowNo, colNo); // plpPage.navigateToPLP(driver, "Clothing", "New Arrivals"); Reporter.log(Constants.DELIMITER + "*************Product Description Page: Add Item to Shopping Bag************"); Thread.sleep(500); // Clicking on the Size Types on the Product Description Page Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Types"); // Clicking on the Color Swatch on the Product Description Page selectColor(); Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Color Swatch"); // Clicking on the Size Swatch on the Product Description Page if (utils.device.equals("desktop")) selectSize(); else selectSizeMobile(); Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Swatch"); if (utils.browser.equals("android")) { utils.scrollDownByxPostion(driver, 1000); // pdp_btn_AddToBag().click(); pdp_AddToBag(); } else { // productName_PDP = txt_ProductName().getText(); // Clicking on the Add To Bag Button on the Product Description // Page // Clicking on the Add To Bag Button on the Product Description // Page // Clicking on the Add To Bag Button on the Product Description // Page pdp_AddToBag(); } Reporter.log(Constants.DELIMITER + "| Login Page: Click action is perfromed on Add To Bag button"); Utils.waitForPageLoaded(driver); // Assert.assertTrue(utils.isElementPresent(driver, // "PDPAddToBagNotification", // "Add To Bag Notifications"), // "'ITEM ADDED TO BAG' Not displayed"); ReporterLog.actionMsg("Item Successfully Added to Bag"); Thread.sleep(6000); if (utils.browser.equals("android")) { utils.scrollUp(driver); Thread.sleep(1000); } homePage.click_lnk_shoppingBag(); Utils.waitForPageLoaded(driver); // utils.waitForElementToBeClickable(driver, // "PDPAddToBagNotification", // "checkout now not clickable"); // utils.findElementByLocator(driver, "PDPAddToBagNotification", // "continue // shopping not found").click(); // utils.waitForPageLoaded(driver); // // // driver.get("https://origin-stage2-factory.r.anntaylor.com/cart"); // // Utils.waitForPageLoaded(driver); } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To Bag action failed", driver); } catch (AssertionError e) { CustomException.throwAssertionError(e, "PDP", "Add To Bag action failed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void add(Item item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void addIte...
[ "0.77443147", "0.7476917", "0.741118", "0.7304897", "0.7301947", "0.7208653", "0.7145338", "0.711069", "0.70689595", "0.70415354", "0.70066804", "0.6994895", "0.6994001", "0.69925237", "0.68947107", "0.6868234", "0.6858448", "0.6858448", "0.6808602", "0.6777978", "0.67766774"...
0.0
-1
Method used for Add Item to Shopping Bag.
public synchronized void addToBagSpecificSizeAndColor(WebDriver driver, int rowNo, int colNo, String size, String color) throws Exception { try { if (rowNo == 0 && colNo == 0) ReporterLog.actionMsg("PDP page already opened"); else openPDP(driver, rowNo, colNo); Reporter.log(Constants.DELIMITER + "*************Product Description Page: Add Item to Shopping Bag************"); Thread.sleep(2000); // try { // Clicking on the Size Types on the Product Description Page /* commented on 03/12 as still no size type being seen on the PDP */ // List<WebElement> sizesType=list_SizeType(); // for(WebElement el:sizesType) // { // if(el.getText().equalsIgnoreCase(sizetype)) // { // utils.clickWebElement(driver, el, "size selection"); // break; // } // } // }catch(AssertionError e) // { // ReporterLog.warn("No Size Type Present"); // } // catch (Exception e) { // ReporterLog.warn("No Size Type Present"); // } Thread.sleep(3000); Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Types"); if (color.isEmpty()) { selectColor(); } else { List<WebElement> colors = list_ColorSwatch(); if (XLUtils.env.equalsIgnoreCase("breakfix") || XLUtils.env.equalsIgnoreCase("dryrun")) { for (WebElement el : colors) { el.click(); Utils.waitForPageLoaded(driver); if (utils.findElementByLocator(driver, "PDP_ColorSwatchName", "").getText().toUpperCase() .contains(color.toUpperCase())) { break; } } } else { // Clicking on the Color Swatch on the Product Description // Page for (WebElement el : colors) { if (el.getAttribute("title").contains(color)) { utils.clickWebElement(driver, el, "color selection"); break; } } } } Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Color Swatch"); Thread.sleep(2000); // Clicking on the Size Swatch on the Product Description Page if (utils.device.equals("desktop")) { if (size.isEmpty()) { selectSize(); } else { selectParticularSize(size); } } else { if (size.isEmpty()) { selectSizeMobile(); } else { selectParticularSizeMobile(size); } } Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Swatch"); Thread.sleep(2000); // Clicking on the Add To Bag Button on the Product Description Page pdp_AddToBag(); Reporter.log(Constants.DELIMITER + "| Login Page: Click action is perfromed on Add To Bag button"); // Utils.waitForPageLoaded(driver); } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To Bag action failed", driver); } catch (AssertionError e) { CustomException.throwAssertionError(e, "PDP", "Add To Bag action failed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void add(Item item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void addIte...
[ "0.7743952", "0.74766076", "0.7410577", "0.73037577", "0.73001915", "0.72080606", "0.71435213", "0.7110403", "0.70685333", "0.7040748", "0.7006761", "0.6993661", "0.6992491", "0.699144", "0.6894614", "0.6867579", "0.68570817", "0.68570817", "0.6807242", "0.6777041", "0.677574...
0.0
-1
Method used for Add Item to Shopping Bag.
public synchronized void openPDP(WebDriver driver, int rowNo, int columnNo) throws Exception { String pdpURL; try { pdpURL = xlUtils.AccessExcelSheetForCellData(Constants.SHEETNAME_SEARCH, rowNo, 1); searcPage.searchByData(pdpURL); if (Utils.device.equals("desktop")) driver.navigate().refresh(); Utils.waitForPageLoaded(driver); } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To Bag action failed", driver); } catch (AssertionError e) { CustomException.throwAssertionError(e, "PDP", "Add To Bag action failed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void add(Item item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void addIte...
[ "0.77443147", "0.7476917", "0.741118", "0.7304897", "0.7301947", "0.7208653", "0.7145338", "0.711069", "0.70689595", "0.70415354", "0.70066804", "0.6994895", "0.6994001", "0.69925237", "0.68947107", "0.6868234", "0.6858448", "0.6858448", "0.6808602", "0.6777978", "0.67766774"...
0.0
-1
Get the Checkout button
public synchronized WebElement pdp_btn_checkout() throws Exception { if (Utils.device.equals("mobile")) return utils.findElementByLocator(driver, "PDP_btn_FlyoutViewBag", "| PDP:Checkout button not present"); else if (!Utils.brand.equals("LGFP")) { utils.isElementPresent(driver, "PDP_btn_FlyoutCheckout"); return utils.findElementByLocator(driver, "PDP_btn_FlyoutCheckout", "| PDP:Checkout button not present"); } else return utils.findElementByLocator(driver, "PDP_btn_FlyoutCheckout_LG", "| PDP:Checkout button not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Checkout_button() {\n\t\tthis.endUser.checkOut();\n\t\tthis.defaultSetup();\n\t}", "public boolean isCheckoutButtonPresent() {\n\t\ttry{\n\t\t\tdriver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + checkout + \"']\"));\n\t\t\treturn true;\n\t\t} catch(Exception e) {\n\t\t\treturn false...
[ "0.6701551", "0.6678469", "0.6651125", "0.6597309", "0.64899915", "0.6457604", "0.63759977", "0.6351775", "0.62202704", "0.62143356", "0.61820054", "0.6175009", "0.61701345", "0.61483705", "0.6123918", "0.6107683", "0.6095495", "0.6043508", "0.6030862", "0.5930483", "0.592070...
0.7482702
0
Click on checkout button
public synchronized void click_lnk_checkout() throws Exception { utils.clickWebElement(driver, pdp_btn_checkout(), "Checkout button not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickCheckout()\n\t{\n\t\twaitForVisibility(checkout);\n\t\tcheckout.click();\n\t}", "@When(\"user clicks on checkoutbutton\")\r\n\tpublic void usert_clicks_on_checkoutbutton() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"cart\\\"]/tfoot/tr[2]/td[5]/a\")).click();\r\n\t}", "@Then(\"^click on ch...
[ "0.8472993", "0.8181987", "0.8098494", "0.79743785", "0.79675025", "0.7747089", "0.74768144", "0.7401162", "0.7293514", "0.7133316", "0.7107396", "0.69870317", "0.69533014", "0.68891", "0.6844046", "0.68061674", "0.67721844", "0.6758507", "0.67553777", "0.6736611", "0.668681"...
0.794448
5
Get the Product Name
public synchronized WebElement txt_ProductName() throws Exception { return utils.findElementByLocator(driver, "PDP_ProductName", "| PDP:Product Name not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public String getProductName() {\r\n return productName;\r\n }", "public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\...
[ "0.8488001", "0.8409583", "0.8400024", "0.8373865", "0.8352457", "0.8342693", "0.8342693", "0.8342693", "0.83195627", "0.8275608", "0.8249424", "0.7942589", "0.7715989", "0.77081734", "0.76436156", "0.74980867", "0.73893785", "0.7336547", "0.7313527", "0.7112284", "0.70938146...
0.70494086
23
Get the Bread Chrumb
public synchronized List<WebElement> txt_breadChrumb() throws Exception { return utils.findElementsByLocator(driver, "PDP_BreadCrumb", "| PDP:Bread Crumb not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Brick getBrick() {\n return this.myBrick;\n }", "public GitBranch getBranch() { return GitDir.this.getBranch(getName()); }", "public java.lang.String getUnitBreadth() {\n\t\treturn _tempNoTiceShipMessage.getUnitBreadth();\n\t}", "int getBackpack();", "public int bcNode() {\n return...
[ "0.6359678", "0.5991046", "0.59393436", "0.5914464", "0.58013856", "0.57474643", "0.56598854", "0.56328607", "0.56122816", "0.56118625", "0.55733836", "0.5545549", "0.5544405", "0.55441797", "0.55093384", "0.54700065", "0.54700065", "0.54700065", "0.54534465", "0.54534465", "...
0.5958104
2
Get the Bread Chrumb
public synchronized WebElement div_pdpBreadcrumb_parent() throws Exception { return utils.findElementByLocator(driver, "PDP_BreadCrumb_Parent", "| PDP:Bread Crumb not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Brick getBrick() {\n return this.myBrick;\n }", "public GitBranch getBranch() { return GitDir.this.getBranch(getName()); }", "public synchronized List<WebElement> txt_breadChrumb() throws Exception {\n\n\t\treturn utils.findElementsByLocator(driver, \"PDP_BreadCrumb\", \"| PDP:Bread Crumb not...
[ "0.6359678", "0.5991046", "0.5958104", "0.59393436", "0.5914464", "0.58013856", "0.57474643", "0.56598854", "0.56328607", "0.56122816", "0.56118625", "0.55733836", "0.5545549", "0.5544405", "0.55441797", "0.55093384", "0.54700065", "0.54700065", "0.54700065", "0.54534465", "0...
0.51264167
80
Get the Color Swatch Price
public synchronized List<WebElement> colorSwatchPrice() throws Exception { return utils.findElementsByLocator(driver, "PDP_ColorSwatchPrice", "| PDP:Color Swatch Price not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTwoColourCost() {\n return 0.16;\n }", "public float c() {\n if (this.f3465c) {\n return BitmapDescriptorFactory.HUE_RED;\n }\n com.airbnb.lottie.g.a g2 = g();\n if (g2.d()) {\n return BitmapDescriptorFactory.HUE_RED;\n }\n ...
[ "0.6042031", "0.5917782", "0.58300745", "0.58165675", "0.581139", "0.5760618", "0.5739451", "0.57197505", "0.5719361", "0.5719361", "0.5719361", "0.5697071", "0.5692471", "0.5671749", "0.56488323", "0.5632343", "0.5625118", "0.55958974", "0.5566587", "0.55184525", "0.549792",...
0.66916066
0
Get the Marketing message
public synchronized WebElement pdpMarketingMsg() throws Exception { return utils.findElementByLocator(driver, "PDP_MarketingMsg", "| PDP: Marketing Message div not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = ...
[ "0.6859193", "0.66359127", "0.6411596", "0.64053494", "0.6404583", "0.63421273", "0.6228758", "0.62197876", "0.6206954", "0.6189104", "0.61378115", "0.6119038", "0.60692227", "0.60691446", "0.6060687", "0.60484445", "0.6022254", "0.6022254", "0.5988038", "0.59860444", "0.5971...
0.64864373
2
Get the Content(Product Name) of the Shopping bag page
public synchronized WebElement shoppingBagProductName() throws Exception { return utils.findElementByLocator(driver, "PDP_ShoppingBagProduct", "| PDP:Content(Product Name) of the Shopping bag page"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCartDetailonProductDetailPage()\n\t{\n\t\twaitForVisibility(cartDetailonProductDetailPage);\n\t\treturn cartDetailonProductDetailPage.getText();\n\t}", "public String getfirstVolumeDiscountonProductDetailPage()\n\t{\n\t\twaitForVisibility(firstVolumeDiscountonProductDetailPage);\n\t\treturn firs...
[ "0.6745492", "0.64465594", "0.6287018", "0.62198985", "0.6219756", "0.6171608", "0.61593676", "0.61582536", "0.61396986", "0.6076478", "0.6054", "0.6050266", "0.6034489", "0.6034489", "0.6034489", "0.59894836", "0.59531015", "0.5945521", "0.59251", "0.5923746", "0.58711964", ...
0.72506356
0
Click on continue shopping button
public synchronized void click_lnk_continueShopping() throws Exception { utils.clickWebElement(driver, btn_continueShopping(), "Continue Shopping button not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnContinueShoppingButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnContinueShoppingButton.click();\n\n \t}", "public synchronized WebElement btn_continueShopping() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_continueShopping\", \"| PDP:Continue Shop...
[ "0.8380191", "0.76490366", "0.7580737", "0.7565919", "0.7466811", "0.73737144", "0.7349288", "0.7323796", "0.7320436", "0.7316295", "0.7305359", "0.7128257", "0.71041584", "0.7081254", "0.7033549", "0.7019614", "0.7004869", "0.698602", "0.6972319", "0.69621044", "0.69519573",...
0.8052787
1
Get the Product Name
public synchronized WebElement btn_continueShopping() throws Exception { return utils.findElementByLocator(driver, "PDP_continueShopping", "| PDP:Continue Shopping not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public String getProductName() {\r\n return productName;\r\n }", "public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\...
[ "0.8488001", "0.8409583", "0.8400024", "0.8373865", "0.8352457", "0.8342693", "0.8342693", "0.8342693", "0.83195627", "0.8275608", "0.8249424", "0.7942589", "0.7715989", "0.77081734", "0.76436156", "0.74980867", "0.73893785", "0.7336547", "0.7313527", "0.7112284", "0.70938146...
0.0
-1
Added By Sunil Jangir | Sep05
public synchronized WebElement lnk_writeareview() throws Exception { return utils.findElementByLocator(driver, "BV_WriteAReviewLink", "| PDP:Write A Review link not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "protected boolean func_70814_o() { return true; }", "public void mo38117a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overrid...
[ "0.6096046", "0.60722786", "0.60647887", "0.5973963", "0.5923885", "0.58909297", "0.5864787", "0.5845391", "0.58395123", "0.58395123", "0.5835482", "0.58350927", "0.5827172", "0.5816666", "0.5815232", "0.57660747", "0.575404", "0.5746728", "0.57320094", "0.5726927", "0.572339...
0.0
-1
Get the Product Detail Accordion Infomation div
public synchronized WebElement productInfomationAccordionDetail() throws Exception { return utils.findElementByLocator(driver, "PDP_ProductInfomationAccordionDetail", "| PDP:Product Description Accordion Infomation div not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized WebElement ProductInfomationAccordionDescription() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_ProductInfomationAccordionDescription\",\n\t\t\t\t\"| PDP:Product Description Accordion not present\");\n\t}", "public synchronized WebElement ProductInfomationAccordio...
[ "0.6661412", "0.620801", "0.5865711", "0.56321424", "0.56178606", "0.54460615", "0.5402428", "0.52783483", "0.5202315", "0.5185448", "0.51272076", "0.51214206", "0.5053906", "0.5035992", "0.50233966", "0.5022227", "0.49011683", "0.48986405", "0.48878318", "0.48828122", "0.487...
0.77210754
0
Click on the Product Infomation Accordion Label
public synchronized void click_productInfomationAccordianLabel() throws Exception { utils.clickWebElement(driver, ProductInfomationAccordionLabel(), "Product Infomation Accordion Label not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "public ...
[ "0.6716568", "0.6679185", "0.65249544", "0.6401221", "0.6379347", "0.62190294", "0.6214587", "0.61660194", "0.6163652", "0.61285436", "0.6084744", "0.60820884", "0.6075511", "0.60639066", "0.59978664", "0.59778446", "0.59498364", "0.5942362", "0.59106636", "0.5904809", "0.589...
0.7359796
0
Get the Product Label Accordion
public synchronized WebElement ProductInfomationAccordionLabel() throws Exception { return utils.findElementByLocator(driver, "PDP_ProductInfomationAccordionLabel", "| PDP:Product Infomation Accordion Label not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProductLabel(){\n return productLabel.getText().trim();\n }", "private RLabel getProductLabel() {\n if (productLabel == null) {\n productLabel = new RLabel();\n productLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/product\\\") %>\");\n productLabel.setStylePropert...
[ "0.65738654", "0.65334296", "0.6408448", "0.63344485", "0.61242455", "0.5959659", "0.59148467", "0.5821022", "0.5767127", "0.5767127", "0.57478446", "0.57478446", "0.57478446", "0.57478446", "0.57451314", "0.5738779", "0.5677037", "0.5677037", "0.5677037", "0.56579447", "0.56...
0.71233857
0
Get the Product Infomation Description Accordion
public synchronized WebElement ProductInfomationAccordionDescription() throws Exception { return utils.findElementByLocator(driver, "PDP_ProductInfomationAccordionDescription", "| PDP:Product Description Accordion not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized WebElement productInfomationAccordionDetail() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_ProductInfomationAccordionDetail\",\n\t\t\t\t\"| PDP:Product Description Accordion Infomation div not present\");\n\t}", "java.lang.String getProductDescription();", "publ...
[ "0.77983177", "0.69049025", "0.68759036", "0.6579274", "0.6475606", "0.64481676", "0.63357306", "0.6330047", "0.6317606", "0.6316255", "0.628602", "0.6262384", "0.6257835", "0.6257835", "0.62409717", "0.62242556", "0.6209361", "0.6193554", "0.61818045", "0.6177206", "0.616203...
0.8282182
0
Get the Fabric Care label
public synchronized WebElement fabricCareAccordionLabel() throws Exception { return utils.findElementByLocator(driver, "PDP_FabricInfoLabel", "| PDP:Fabric Label Accordion Infomation div not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "protected String getCntxLabel(ContainableEditPart editPart) {\r\n\t\tif (editPart instanceof StrataRootEditPart)\r\n\t\t\treturn ((TitledArtifactEditPart) editPart).getCommonContextLabel();\r\n\t\telse\r\n//\t\t\treturn strTruncEnd(CodeUnit.getLabelW...
[ "0.6632787", "0.62329423", "0.6075497", "0.6075497", "0.6019687", "0.601897", "0.60168326", "0.6000855", "0.6000855", "0.5993049", "0.5990096", "0.5977836", "0.5951363", "0.5898884", "0.5872837", "0.58532614", "0.58532614", "0.58532614", "0.58532614", "0.5849535", "0.5830477"...
0.6643097
0
Get the Product infomation inside flyout
public synchronized WebElement productInfomationFlyout() throws Exception { if (Utils.device.equals("mobile")) return utils.findElementByLocator(driver, "PDP_MB_FLyOutProductInfomation", "|PDP:Product Infomation Flyout not present"); else return utils.findElementByLocator(driver, "PDP_FlyoverProductInfomation", "| PDP:Product Infomation Flyout not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getProduct();", "String getProduct();", "public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}", "public String getProduct()\n {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n...
[ "0.72623736", "0.7251515", "0.7035332", "0.6992206", "0.6891532", "0.6891532", "0.6878618", "0.6861938", "0.68616116", "0.6860118", "0.68343306", "0.67576396", "0.67444986", "0.67037", "0.6665587", "0.6663509", "0.659237", "0.6581569", "0.6567482", "0.65599865", "0.65520865",...
0.58909
81
Get the Size Guide Label
public synchronized WebElement sizeGuideLabel() throws Exception { if (Utils.device.equals("mobile")) return utils.findElementByLocator(driver, "PDP_MB_SizeGuide", "| Size Guide label not present"); else return utils.findElementByLocator(driver, "PDP_SizeGuide", "| Size Guide label not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSizeLabel() {\n return (String)getAttributeInternal(SIZELABEL);\n }", "public int getLabelSize()\n {\n return myLabelSize;\n }", "public int getLabelTextSize(){\n return labelTextSize;\n }", "private JPanel getPackSizeLabel() {\n\t\tif (packSizePanel == null)...
[ "0.73821604", "0.7151529", "0.6913542", "0.67762977", "0.6636644", "0.6417269", "0.62690985", "0.62292284", "0.6172234", "0.6168585", "0.6168585", "0.61125743", "0.6091535", "0.60793453", "0.6036097", "0.60356927", "0.6022", "0.5996001", "0.59412116", "0.59340024", "0.5926509...
0.75578845
0
Click on Size Guide
public synchronized void click_lnk_sizeGuide() throws Exception { utils.clickWebElement(driver, sizeGuideLabel(), "Size Guide label not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectSmallSize() {\n\t\tdriver.findElement(By.xpath(\"//*[@id='layered_id_attribute_group_1']\")).click();\n\t}", "public void clickDemandSideManagement();", "public void click() {\n final boolean wasMaximized = maximized;\n setMaximized( !wasMaximized );\n if ( wasMaximized )...
[ "0.6401202", "0.6308209", "0.6229473", "0.61410725", "0.60656", "0.6056182", "0.59900284", "0.5962123", "0.59115213", "0.5886176", "0.58616996", "0.58531076", "0.58329", "0.5815719", "0.58070374", "0.57383955", "0.57244277", "0.5694744", "0.5686629", "0.56684875", "0.5635394"...
0.79901505
0
Get the Size Guide Description
public synchronized WebElement lnk_viewFullSizeGuide() throws Exception { WebElement element = null; if (utils.brand.equals("ATF") && utils.device.equals("desktop")) { element = utils.findElementByLocator(driver, "PDP_ViewSizeGuide_Link", "| Size Guide Description not present"); } else if (utils.brand.equals("LO") || utils.device.equalsIgnoreCase("mobile")) { element = utils.findElementByLocator(driver, "PDP_LO_lnk_SizeChart", "| Size Guide Description not present"); } return element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getGuideDescription();", "public synchronized WebElement sizeGuideLabel() throws Exception {\n\n\t\tif (Utils.device.equals(\"mobile\"))\n\t\t\treturn utils.findElementByLocator(driver, \"PDP_MB_SizeGuide\", \"| Size Guide label not present\");\n\t\telse\n\t\t\treturn utils.findElementByLocat...
[ "0.6840541", "0.6524584", "0.63703024", "0.6223348", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6199163", "0.6185734", "0.6185734", "0.61613715", "0.61601", "0.6104957", "0.6104957", "0.6104957", "0.6104957", "...
0.60982573
55
Get the Shipping & Return Label
public synchronized WebElement shippingReturnLabel() throws Exception { return utils.findElementByLocator(driver, "PDP_ShippingReturn", "| Shipping & Return label not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public String getShippingConvert() {\r\n\t\treturn this.getShipping().getName();\r\n\t}", "String getLabel();", "String getLabel();", "java.lang.String getLabel();", "com.google.ads.googleads.v6.resources.Label getLabel();", "String getLoca...
[ "0.7106705", "0.6579291", "0.65725255", "0.65725255", "0.6482616", "0.6467171", "0.6467126", "0.64543766", "0.64374423", "0.6392582", "0.62808466", "0.62808466", "0.62808466", "0.62808466", "0.6235968", "0.62160116", "0.61971986", "0.61971986", "0.61971986", "0.6185361", "0.6...
0.7527207
0
Click on Shipping & Return
public synchronized void click_lnk_shippingReturn() throws Exception { utils.clickWebElement(driver, shippingReturnLabel(), "Shipping & Return label not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clickOnDelivery(Delivery delivery);", "public void continueToShipping() {\r\n\t\tclick(shipping);\r\n\t}", "public void purchaseFlights()\r\n\t{\n\t\tdriver.findElement(By.xpath(trObj.PURCHASEFLISGHTS)).click();\r\n\r\n\t}", "public void click_Continue_ShippingSummary()\n\t{\n\t\twaitForVisibility(conti...
[ "0.7487672", "0.7358863", "0.67031246", "0.6684951", "0.6636392", "0.66202605", "0.6603805", "0.65076756", "0.649571", "0.64781386", "0.64745694", "0.64521813", "0.64329964", "0.6403243", "0.63689446", "0.633936", "0.63236165", "0.63162524", "0.625773", "0.6250849", "0.624022...
0.739336
1
Get the Shipping & Return Description
public synchronized WebElement shippingReturnDescription() throws Exception { return utils.findElementByLocator(driver, "PDP_ShippingReturnDescription", "| Shipping & Return Description not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription()\r\n\t{\r\n\t\tStringBuilder msgreturn = new StringBuilder().append(m_name).append(\" \").append(m_taxBaseAmt.toString());\r\n\t\treturn msgreturn.toString();\r\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods delivery\";\n ...
[ "0.7025316", "0.6792416", "0.6715734", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6679801", "0.6670005", "0.66330993", "0.65688014", "0.6568411", "0.6553568", "0.65393656", "0.65299916", "0.65299916", "0.65299916...
0.7390072
0
Get the Partial Markdown price
public synchronized WebElement productPrice() throws Exception { return utils.findElementByLocator(driver, "PDP_priceRange", "| Mark down price not present"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPriceOfArticle(Document document) {\n\t\tString price = \"\";\n\t\t// <p class=\"price\" itemprop=\"offers\" itemscope \n\t\t// \titemtype=\"http://schema.org/Offer\"><span data-currency=\"EUR\" itemprop=\"price\">€1,698</span></p>\n\t\t// Peut etre sélectionner la div \"details\" avant de cherch...
[ "0.6885467", "0.6779616", "0.6694514", "0.6535567", "0.64793116", "0.6353727", "0.6353727", "0.6353727", "0.6317153", "0.6280468", "0.6252603", "0.6240774", "0.62386495", "0.6238468", "0.6229922", "0.62145424", "0.6176948", "0.61689126", "0.6149129", "0.6147433", "0.61226636"...
0.0
-1
Method used for Add Item to Shopping Bag.
public synchronized void addToBagSpecificSizeAndColorMobile(WebDriver driver, int rowNo, int colNo, String sizetype, String color) throws Exception { try { if (rowNo == 0 && colNo == 0) ReporterLog.actionMsg("PDP page already opened"); else openPDP(driver, rowNo, colNo); Reporter.log(Constants.DELIMITER + "*************Product Description Page: Add Item to Shopping Bag************"); Thread.sleep(500); // Clicking on the Size Types on the Product Description Page try { if (!sizetype.isEmpty()) { selectParticularSizeTypeMobile(sizetype); } } catch (Exception e) { ReporterLog.fail("Size type not there is the product"); } catch (AssertionError e) { ReporterLog.fail("Size type not there is the product"); } Thread.sleep(3000); Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Types"); if (color.isEmpty()) { selectColor(); } else { // Clicking on the Color Swatch on the Product Description Page List<WebElement> colors = list_ColorSwatch(); if (XLUtils.env.equalsIgnoreCase("breakfix") || XLUtils.env.equalsIgnoreCase("dryrun")) { for (WebElement el : colors) { el.click(); Utils.waitForPageLoaded(driver); if (utils.findElementByLocator(driver, "PDP_ColorSwatchName", "").getText().toUpperCase() .contains(color.toUpperCase())) { break; } } } else { for (WebElement el : colors) { if (el.getAttribute("title").contains(color)) { el.click(); Thread.sleep(2000); break; } } } } Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Color Swatch"); // Clicking on the Size Swatch on the Product Description Page selectSizeMobile(); Reporter.log(Constants.DELIMITER + "| PDP Page: Click action is performed on Size Swatch"); // Clicking on the Add To Bag Button on the Product Description Page utils.scrollToViewElement(driver, pdp_btn_AddToBag()); pdp_btn_AddToBag().click(); Reporter.log(Constants.DELIMITER + "| Login Page: Click action is perfromed on Add To Bag button"); // Thread.sleep(2000); if (Utils.device.equals("desktop")) { Assert.assertTrue(utils.isElementPresent(driver, "PDPAddToBagNotification", "Add To Bag Notifications"), "'ITEM ADDED TO BAG' Not displayed"); ReporterLog.actionMsg("Item Successfully Added to Bag"); } } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To Bag action failed", driver); } catch (AssertionError e) { CustomException.throwAssertionError(e, "PDP", "Add To Bag action failed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void add(Item item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void addIte...
[ "0.77443147", "0.7476917", "0.741118", "0.7304897", "0.7301947", "0.7208653", "0.7145338", "0.711069", "0.70689595", "0.70415354", "0.70066804", "0.6994895", "0.6994001", "0.69925237", "0.68947107", "0.6868234", "0.6858448", "0.6858448", "0.6808602", "0.6777978", "0.67766774"...
0.0
-1
Get and Validate the color of webelement
public synchronized void validateElementColor(WebDriver driver, String object, String colorText, String customMessage) throws Exception { WebElement elem = utils.findElementByLocator(driver, object, "Product Name is not present"); String color = elem.getCssValue("color"); String hex = Color.fromString(color).asHex(); if (colorText.equalsIgnoreCase("black")) { Assert.assertTrue(hex.equalsIgnoreCase("#000000"), "Color text is not Black"); ReporterLog.pass("Color text is Black for " + customMessage); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getTxtColor();", "public String getColor() { \n return color; \n }", "public String getColor(){\r\n return color;\r\n }", "java.awt.Color getColor();", "public Color getColor() { return color; }", "public Color getColor() { return color.get(); }", "public String getColor() {...
[ "0.6796291", "0.67300594", "0.6727977", "0.66764605", "0.66364604", "0.66364425", "0.6596911", "0.6562884", "0.6562884", "0.65453464", "0.65421355", "0.65309757", "0.6523069", "0.6522796", "0.6521412", "0.6511359", "0.6511359", "0.6511359", "0.6511359", "0.6511359", "0.651135...
0.66517323
4
Get the product image src
public synchronized List<WebElement> productImage() throws Exception { List<WebElement> images = null; try { images = utils.findElementsByLocator(driver, "PDP_productImage", "| product image not present"); } catch (Exception e) { } return images; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProductImageUrl();", "public String getProductPictureDetails(){\r\n\t\t\t\r\n\t\t\treturn (hasProductPicture())?McsElement.getElementByXpath(driver, PRODUCT_PIC_CONTAINER+\"//img\").getAttribute(\"src\"): \"\";\r\n\t\t}", "com.google.protobuf.ByteString\n getProductImageUrlBytes();", ...
[ "0.85577947", "0.7894751", "0.73296744", "0.70000976", "0.69029903", "0.68488437", "0.68360126", "0.6814585", "0.6788394", "0.6771219", "0.6765396", "0.65741545", "0.6521084", "0.6497771", "0.6492697", "0.648024", "0.64265126", "0.6409251", "0.63946074", "0.63946074", "0.6394...
0.6300576
36
Get the order value in mini bag
public synchronized WebElement txt_miniBagOrderValue() throws Exception { return utils.findElementByLocator(driver, "PDP_MiniBag_orderValue", "Mini Bag| order value"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getOrder();", "public int getOrder();", "Order getOrder();", "public Integer getOrder() {\n return order;\n }", "@VTID(10)\r\n int getOrder();", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "public Intege...
[ "0.67823166", "0.64273757", "0.6254024", "0.6223267", "0.62076646", "0.6160578", "0.6160578", "0.6132825", "0.6129037", "0.6042852", "0.5970938", "0.5964547", "0.5964547", "0.5962485", "0.59596324", "0.5848811", "0.5823787", "0.5817668", "0.58042485", "0.5796366", "0.57838494...
0.59057504
15
Get product link on mini bag
public synchronized WebElement lnk_productNameMiniBag() throws Exception { return utils.findElementByLocator(driver, "PDP_MiniBag_productLNK", "Mini Bag| Product name"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CimString getProductUrl() {\n return productUrl;\n }", "public String getProductUrl() {\n\t\treturn productUrl;\n\t}", "List<ProductLink> links();", "String getLink();", "public String getLink();", "java.lang.String getProductImageUrl();", "public String getBuyLink() {\n return buy...
[ "0.6667144", "0.6444801", "0.63235605", "0.63226354", "0.6257156", "0.6255002", "0.6199918", "0.5873411", "0.5842674", "0.58288777", "0.5796474", "0.5792531", "0.57875913", "0.57713777", "0.57467103", "0.5721167", "0.57078695", "0.5694058", "0.5692885", "0.5690334", "0.566580...
0.62037903
6
Method used for Add Item to Shopping Bag.
public synchronized void storelocator_selectSize() throws Exception { List<WebElement> sizes = list_SizeSwatch(); for (WebElement el : sizes) { if (el.isEnabled()) { utils.clickWebElement(driver, el, "size selection"); size = el.getText(); System.out.println("************* " + size); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void add(Item item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public abstract void addItem(AbstractItemAPI item);", "public void addIte...
[ "0.77443147", "0.7476917", "0.741118", "0.7304897", "0.7301947", "0.7208653", "0.7145338", "0.711069", "0.70689595", "0.70415354", "0.70066804", "0.6994895", "0.6994001", "0.69925237", "0.68947107", "0.6868234", "0.6858448", "0.6858448", "0.6808602", "0.6777978", "0.67766774"...
0.0
-1
Method used for clicking on Add To Wishlist link on PDP page
public synchronized void clickOnWishList(WebDriver driver) throws Exception { utils.isElementPresent(driver, "Add_To_WishList"); try { WebElement elem = utils.findElementByLocator(driver, "Add_To_WishList", "Add To Wishlist not clicked"); elem.click(); ReporterLog.actionMsg("Add To WishList clicked"); } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To WishList action failed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickWishlistLink()\n\t{\n \telementUtils.performElementClick(wbWishlistLink);\n\t}", "@When(\"I click on add to compare list link\")\n public void i_click_on_add_to_compare_list_link() {\n BasePage.driverUtils.waitForWebElementToBeClickable(BasePage.htcOneMiniBluePage.getHtcOneMiniBlue...
[ "0.79116964", "0.67868423", "0.65771383", "0.6441545", "0.626066", "0.62324935", "0.6214085", "0.6156359", "0.60850084", "0.6061444", "0.60033315", "0.6000108", "0.59769875", "0.59248066", "0.5895466", "0.5870713", "0.5870348", "0.5852182", "0.5844034", "0.58412343", "0.58397...
0.7619691
1
Method used for verifying message dispayed after clicking on Add To Wishlist
public synchronized void verifyAddToWishlistMsg(WebDriver driver) throws Exception { try { String elemText = utils.findElementByLocator(driver, "WishList_Added_Msg", "ADDED text not displayed after clicking on Add To Wishlist").getText(); Assert.assertEquals(elemText, "ADDED"); } catch (Exception e) { CustomException.throwExceptionError(e, "PDP", "Add To WishList Modal not displayed", driver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void addToWishList(String item, String messageOnFailure) {\n String wishlistCount = getText(WISHLIST_UPPER_MENU);\n System.out.println(\"Current wishlist count: \" + wishlistCount);\n\n type(SEARCH_FIELD_INPUT, item);\n click(SEARCH_ICON);\n List<WebElement> wishlis...
[ "0.65972954", "0.6502615", "0.62514544", "0.6178751", "0.6109131", "0.6097167", "0.6062681", "0.5986766", "0.5975239", "0.5917909", "0.5911904", "0.59076184", "0.58921534", "0.587656", "0.58625543", "0.58599085", "0.58440393", "0.5809302", "0.57944006", "0.57893354", "0.57642...
0.73372513
0
/ Buffer to hold your errors
public synchronized void verifyMayWeSuggestSection(WebDriver driver) throws Exception, InterruptedException, AssertionError, IOException { StringBuffer errorBuffer = new StringBuffer(); // Verification : May We Suggest section on PDP try { Assert.assertTrue(utils.isElementPresent(driver, "PDPRVSection", "People like you also viewed : Section not showing up on PDP")); Reporter.log( Constants.DELIMITER + Constants.PASS + "| People like you also viewed : section showing up on PDP"); } catch (AssertionError e) { errorBuffer.append(e.getMessage() + "\n"); } // Verification : May We Suggest Header try { Assert.assertTrue(utils.isElementPresent(driver, "PDPRVHeader", "People like you also viewed : Header not showing up on PDP")); Reporter.log( Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Header showing up on PDP"); } catch (AssertionError e) { errorBuffer.append(e.getMessage() + "\n"); } // Verification : People like you also viewed : Product Image try { if (Utils.brand.equals("ATFP")) { Assert.assertTrue(utils.isElementPresent(driver, "AT_PDPRVProductImage", "People like you also viewed : Product Image not showing up on PDP")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Image showing up on PDP"); } else if (Utils.brand.equals("LOFP")) { Assert.assertTrue(utils.isElementPresent(driver, "LO_PDPRVProductImage", "People like you also viewed : Product Image not showing up on PDP")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Image showing up on PDP"); } else { Assert.assertTrue(utils.isElementPresent(driver, "PDPRVProductImage", "People like you also viewed : Product Image not showing up on PDP")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Image showing up on PDP"); } } catch (AssertionError e) { errorBuffer.append(e.getMessage() + "\n"); } // Verification : People like you also viewed : Product Price try { if (Utils.brand.equals("ATFP")) { Assert.assertTrue(utils.isElementPresent(driver, "AT_PDPRVProductPrice", "People like you also viewed : Product Price not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Price showing up for People like you also viewed"); } else if (Utils.brand.equals("LOFP")) { Assert.assertTrue(utils.isElementPresent(driver, "LO_PDPRVProductPrice", "People like you also viewed : Product Price not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Price showing up for People like you also viewed"); } else { Assert.assertTrue(utils.isElementPresent(driver, "PDPRVProductPrice", "People like you also viewed : Product Price not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Price showing up for People like you also viewed"); } } catch (AssertionError e) { errorBuffer.append(e.getMessage() + "\n"); } // Verification : People like you also viewed : Product Name try { if (Utils.brand.equals("ATFP")) { Assert.assertTrue(utils.isElementPresent(driver, "AT_PDPRVProductName", "People like you also viewed : Product Name not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Name showing up for People like you also viewed"); } else if (Utils.brand.equals("LOFP")) { Assert.assertTrue(utils.isElementPresent(driver, "LO_PDPRVProductName", "People like you also viewed : Product Name not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Name showing up for People like you also viewed"); } else { Assert.assertTrue(utils.isElementPresent(driver, "PDPRVProductName", "People like you also viewed : Product Name not showing up for People like you also viewed")); Reporter.log(Constants.DELIMITER + Constants.PASS + "| People like you also viewed : Product Name showing up for People like you also viewed"); } } catch (AssertionError e) { errorBuffer.append(e.getMessage() + "\n"); } // Verification : People like you also viewed : Product Image // redirecting to PDP try { if (Utils.brand.equals("ATFP")) { WebElement elProduct = utils.findElementByLocator(driver, "AT_PDPRVProductImage", "| May We Suggest | Product Image "); elProduct.click(); } else if (Utils.brand.equals("LOFP")) { WebElement e2Product = utils.findElementByLocator(driver, "LO_PDPRVProductImage", "| May We Suggest | Product Image "); e2Product.click(); } else { WebElement e3Product = utils.findElementByLocator(driver, "PDPRVProductImage", "| May We Suggest | Product Image "); e3Product.click(); } Utils.waitForPageLoaded(driver); addToBag(driver, 0, 0); Utils.waitForPageLoaded(driver); } catch (AssertionError e) { Reporter.log(Constants.DELIMITER + Constants.FAIL + "| People like you also viewed : Product Image not redirecting to PDP"); errorBuffer.append(e.getMessage() + "\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void error(String err);", "java.lang.String getErr();", "public void error();", "void err( Object msg );", "protodef.b_error.info getError();", "protodef.b_error.info getError();", "void setError();", "public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n ...
[ "0.65158904", "0.63976765", "0.6351131", "0.6222045", "0.61625147", "0.61625147", "0.6110899", "0.60891163", "0.6079508", "0.6073935", "0.60643935", "0.6009456", "0.60080785", "0.5986833", "0.5986833", "0.5986833", "0.5984108", "0.59825855", "0.5980603", "0.59801656", "0.5962...
0.0
-1
Used for reading files.
public static String getStringFromFile(String s, String dir, String path) throws IOException { return getStringFromFile(path + dir + s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "protected abstract void readFile();", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public static void reading(String fileNa...
[ "0.78484553", "0.7246386", "0.7134532", "0.71200275", "0.7102085", "0.70538396", "0.6858713", "0.68399125", "0.66947156", "0.6620651", "0.66105", "0.6549356", "0.6494126", "0.6489619", "0.64282054", "0.6427119", "0.63994324", "0.63837254", "0.63814354", "0.63660127", "0.63575...
0.0
-1
Used for reading files.
public static void writeToFile(String s, String dir, String filename) { writeToFile(s, dir + filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "protected abstract void readFile();", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public static void reading(String fileNa...
[ "0.7847521", "0.72478366", "0.7134119", "0.7118788", "0.7102266", "0.7054395", "0.685893", "0.68391293", "0.6693561", "0.6620349", "0.6614236", "0.6549883", "0.6492622", "0.6488156", "0.64285237", "0.6426996", "0.6402516", "0.6381167", "0.63810164", "0.6363441", "0.63555235",...
0.0
-1
Used for reading files.
public static String getStringFromFile(String s, String dir) throws IOException { return getStringFromFile(dir + s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFromFile() {\n\n\t}", "protected abstract void readFile();", "public void fileRead() {\n\t\tString a, b;\n\t\t\n\t\twhile (input.hasNext()) {\n\t\t\ta = input.next();\n\t\t\tb = input.next();\n\t\t\tSystem.out.printf(\"%s %s\\n\", a, b);\n\t\t}\n\t}", "public static void reading(String fileNa...
[ "0.78484553", "0.7246386", "0.7134532", "0.71200275", "0.7102085", "0.70538396", "0.6858713", "0.68399125", "0.66947156", "0.6620651", "0.66105", "0.6549356", "0.6494126", "0.6489619", "0.64282054", "0.6427119", "0.63994324", "0.63837254", "0.63814354", "0.63660127", "0.63575...
0.0
-1
Get method for Grants
@GET @Path("getGrants") @Produces(MediaType.TEXT_HTML) public String readGrants() { return Obj.readGrants(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPants();", "public Object retrieveGrants(final Map<String, String[]> filter) throws Exception {\r\n return null;\r\n }", "public Object retrieveCurrentGrants(final String id) throws Exception {\r\n return null;\r\n }", "public AccountGrants accountGrants() {\n return this.accoun...
[ "0.6788546", "0.6714973", "0.6707212", "0.66245025", "0.5938696", "0.5931", "0.58590287", "0.56986165", "0.5695537", "0.56833386", "0.55327106", "0.55143356", "0.5470873", "0.54514307", "0.5450879", "0.54469913", "0.5377379", "0.5368368", "0.53024083", "0.5297257", "0.528889"...
0.7554818
0
POST METHOD FOR ADDING NEW GRANT
@POST @Path("NewGrant") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) @Produces(MediaType.TEXT_PLAIN) public String insertFund( @FormParam("id") String id, @FormParam("title") String title, @FormParam("full_name") String full_name, @FormParam("email") String email, @FormParam("phone") String phone, @FormParam("research_category") String research_category, @FormParam("budget") String budget, @FormParam("introduction") String introduction) { { String output = Obj.insertGrantApplication(id,title,full_name,email,phone,research_category,budget,introduction); return output; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void permissionGranted(int requestCode);", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "@Override\n\tpublic void grant(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}", "@Overri...
[ "0.6322108", "0.61841404", "0.6155269", "0.5965115", "0.5965115", "0.5943902", "0.5797699", "0.5782306", "0.57617855", "0.5754413", "0.5748173", "0.5730651", "0.5713685", "0.5678766", "0.5652665", "0.56411654", "0.56411654", "0.56213236", "0.56083083", "0.5594921", "0.5570607...
0.5044881
82
Method to delete staff using staff id.
@DeleteMapping("/deleteStaff/{id}") public void deleteStaff(@PathVariable("id") int id) { staffService.deleteStaff(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\r\n\t@Path(\"{id}\")\r\n\tpublic void deleteStaff(@PathParam(\"id\") int id) {\r\n\t\tservice.deleteStaff(id);\r\n\t}", "@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn staffMapper.deleteByPrimaryKey(id);\n\t}", "@DeleteMapping(\"/{staffId}\")\n\tpublic String removeStaff(@PathVari...
[ "0.8187765", "0.8095777", "0.7876639", "0.78306097", "0.7528557", "0.7523649", "0.74299777", "0.7331153", "0.7202972", "0.69408184", "0.68353397", "0.6608285", "0.6604088", "0.6570842", "0.65636706", "0.65636706", "0.65636706", "0.65636706", "0.65636706", "0.6562896", "0.6535...
0.8207248
0
Method to add newly or update on existing staff.
@PutMapping("/updateStaff") public Staff updateStaff(@RequestBody Staff staff) { return staffService.updateStaff(staff); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateStaff(Staff staff) {\n\t\treturn false;\n\t}", "public Boolean addStaff(StaffPojo staff) {\n\t\tLoginPojo login = new LoginPojo();\n\t\tString sid = staffDao.addStaff(staff);\n\t\tif(sid.equals(\"false\"))\n\t\t\treturn false;\n\t\telse\n\t\t{\n\t\t\tlogin.setUserName(staff.getStaffUserName(...
[ "0.71820325", "0.69719076", "0.66223705", "0.6549942", "0.63380927", "0.6330332", "0.62589896", "0.62134445", "0.617044", "0.61303484", "0.6104946", "0.60441273", "0.6029116", "0.59971404", "0.59913063", "0.59682906", "0.594019", "0.5932808", "0.59303886", "0.592469", "0.5916...
0.6286123
6
Method to add newly or update on existing staff.
@PostMapping("/addStaff") public Staff addStaff(@RequestBody Staff staff) { return staffService.addStaff(staff); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateStaff(Staff staff) {\n\t\treturn false;\n\t}", "public Boolean addStaff(StaffPojo staff) {\n\t\tLoginPojo login = new LoginPojo();\n\t\tString sid = staffDao.addStaff(staff);\n\t\tif(sid.equals(\"false\"))\n\t\t\treturn false;\n\t\telse\n\t\t{\n\t\t\tlogin.setUserName(staff.getStaffUserName(...
[ "0.71820325", "0.69719076", "0.66223705", "0.6549942", "0.6330332", "0.6286123", "0.62589896", "0.62134445", "0.617044", "0.61303484", "0.6104946", "0.60441273", "0.6029116", "0.59971404", "0.59913063", "0.59682906", "0.594019", "0.5932808", "0.59303886", "0.592469", "0.59165...
0.63380927
4
Getting list of staffs by specific department using department id.
@GetMapping("/department/{deptId}/staff") public List<Staff> getStaffByDepartment(@PathVariable("deptId") int deptid) { return staffService.getStaffByDepartment(deptid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Employee> getAllByDepartment(Department id) throws SQLException {\n Session session = currentSession();\n Transaction transaction = session.beginTransaction();\n Query<Employee> query = session.createQuery(\n \"from Employee as e where e.department = :department\",Em...
[ "0.6986989", "0.6940519", "0.6800933", "0.67832875", "0.6742081", "0.66648805", "0.6634229", "0.6550152", "0.6527839", "0.65273064", "0.6499574", "0.6427659", "0.633131", "0.6298424", "0.6237901", "0.62272274", "0.6185452", "0.61708903", "0.61676216", "0.6150679", "0.6142695"...
0.78929836
0
Total salary of staff in specific department id given by this method.
@GetMapping("/department/{deptId}/totalSalary") public Long getSalaryTotalByDepartment(@PathVariable("deptId") int deptId) { return staffService.getSalaryTotalByDepartment(deptId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void computeSalary(int empid) {\n\t\t\n\t}", "public void calculateSalary() ;", "@Override\n\tpublic float CalculateSalary() {\n\t\treturn salary;\n\t}", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "public void salary(int sal)\n {\n IT it = new IT()...
[ "0.66764444", "0.6475588", "0.6207633", "0.6190432", "0.6076847", "0.6065566", "0.6041147", "0.6036016", "0.6008937", "0.59888184", "0.59423536", "0.59342223", "0.5913939", "0.59092027", "0.58629453", "0.5853475", "0.58464116", "0.5838257", "0.5832991", "0.5827118", "0.581830...
0.7687856
0